Dynamic Processing During Generation: Quality Checking and Rewind in the LLM Inference Server
Liwei Zhang, Xinguang Xiao, Mochen Guan, ZhiMing Tong, Linzhe Li
Abstract
Serving-side components of LLM inference have so far targeted speed, leaving output quality to the model. We propose the Quality Checker (QC), a form of intelligent inference serving: while the large model generates, the server hands each paragraph to a checker and, depending on the verdict, continues, rewinds and rewrites, or ends the thinking phase. Rewind stores no snapshot: the server cancels the request and continues from the kept output, so the prefix cache leaves only tens to about a hundred tokens to recompute, with no scheduler change. We implement QC in SGLang and evaluate it on a character-level 27B model, with four conclusions. (1) Asking whether a response contains a hallucination does not work: all four checkers are near chance. (2) The server holds the complete session and should make the question narrow: rules do verbatim checks, and the checker only judges whether session facts are consistent. Asked this way, a 27B dense model without decision training gets every item right regardless of material length and placement, a decision-trained 35B-A3B is sensitive to placement, and neither 9B nor 122B-A10B is good enough. (3) Rewind needs a clue: in production cases where the model denies a tool that is in its tool list, rewriting with only a new random seed lowers the share of outputs still denying from 69% to 47%, while writing the checker's clue into the context brings it to 11%. (4) Repetition must also be asked narrowly: comparing the new paragraph pairwise with earlier ones raises AUC from 0.94-0.95 to 0.99, and rules plus ending the thinking phase when the budget runs out cut severe loops from 5.2% to 0.3%.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG, cs.SE
- Comments
- Full text in English (pp. 1-31) followed by the full text in Chinese (pp. 32-51). 51 pages, 1 figure, 17 tables
Related papers
Imagine, Don't Narrate: The Generative Bottleneck in World Models of Interaction Dynamics
Shared title terminologycs.CLDaniel Platnick, Marjan Alirezaie, Hossein Rahnama
Generative Curation Yields Bigger and Better Data for Pretraining LLMs
Shared title terminologycs.CLMichael J. Ryan, William Held, Suhas Kotha et al.
Evaluating Sparse, Dense, and Hybrid Retrieval-Augmented Generation for Sinhala Question Answering
Shared title terminologycs.CLAneegha Thithiesha Mahabaduge, Nisansa de Silva
Saidzoda-Uzbek-EmbeddingGemma-300M: Generated Questions Close the Gap on Generated Tests, Not on Belebele
Shared title terminologycs.CLTohir Saidzoda, Madina Abdusalomzoda, Abubakr Abdullozoda et al.
Sublanguage Alignment: A Linguistically-Grounded Evluation Method for Domain-Specific Text Generation
Shared title terminologycs.CLJustin Hofenbitzer, Jacqueline Lammert, Bernhard Haller et al.
Tree-Constrained Adaptive Coverage Search for Knowledge Extraction Attacks against Retrieval-Augmented Generation
Shared title terminologycs.CLWenyun Li, Guiping Cao, Xiangyuan Lan et al.