首页 > AI前沿 > Dynamic Processing During Generation: Quality Checking and Rewind in the LLM Inference Server

Dynamic Processing During Generation: Quality Checking and Rewind in the LLM Inference Server

arXiv自然语言 2026-12-02 13:00 2 阅读 查看原文

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%.