A Closed-Loop Control Architecture for Reliable Constraint Satisfaction in LLM Text Generation
Product features that have to hit a number — a reading level, a word count, a tone score — are usually built by putting the number in the prompt, and across four commercial models that landed inside the target band only 21% to 32% of the time. This paper wraps the model in an ordinary control loop instead: generate, score the draft with deterministic code, hand the model one diagnosed edit, re-score, stop when it lands — which hit the same targets 93% to 99% of the time in 1.7 edit rounds on average. The model is never asked to judge whether it met the constraint; it only writes and edits, and the measurement stays in code where it is reproducible. Their content gate checks recall only, so an edit that reverses “increased 20%” to “decreased 20%” still passes — copy the loop, but add a factual check when the text carries claims.