SGLang paper adds in-server quality checks that rewind and rewrite LLM output
A new arXiv paper describes a Quality Checker that reviews paragraphs as a model generates, then continues, rewrites, or ends the thinking phase based on the verdict.
In plain words
Most inference servers focus on speed and leave output quality to the model. This paper proposes having the server check each paragraph during generation and, when needed, cancel and rewrite from the kept output. Because the prefix cache is reused, only tens to about a hundred tokens must be recomputed.
What was announced
The authors report that broad questions fail: all four checkers tested were near chance when asked whether a response contains a hallucination. Narrowing the question works better. When the checker only judged whether session facts were consistent, a 27B dense model without decision training got every item right regardless of material length and placement, while a decision-trained 35B-A3B was sensitive to placement, and neither 9B nor 122B-A10B was good enough.
The paper also reports that rewind needs a clue. In production cases where the model denied a tool listed in its tool list, rewriting with only a new random seed lowered the share of outputs still denying from 69% to 47%, while writing the checker's clue into the context brought it to 11%. For repetition, pairwise comparison of the new paragraph with earlier ones raised AUC from 0.94-0.95 to 0.99, and rules plus ending the thinking phase when the budget ran out cut severe loops from 5.2% to 0.3%.
What it does not show
- The source is an abstract, so full method details and complete results are not available.
- The evaluation covers a character-level 27B model implemented in SGLang; results may not generalize to other models or serving stacks.
- The reported improvements come from the authors' own evaluation and have not been independently confirmed.
For security and IT teams
- Scope
- The paper describes a serving-side mechanism implemented in SGLang, with no scheduler change required for the rewind approach.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.