投机性预定位:将状态会话解码至关键路径外的下一个决策点
Speculative Pre-Positioning: Decoding Stateful Sessions to the Next Decision Point Off the Critical Path
AI总结:
提出投机性预定位方法,利用状态会话的空闲时间,用目标模型自身前向传播预解码至下一决策点,将跨请求预填充和入口解码移出关键路径,实现首个token延迟从39ms降至约1.0ms。
摘要:
无状态推理服务器(vLLM、SGLang、TensorRT-LLM)在请求之间空闲,而加速器等待;有状态会话则利用这段空闲时间。投机性预定位使用目标模型自身的前向传播(无需草稿模型)将会话解码至其下一个决策点,将跨请求预填充和入口解码移出关键路径:下一个请求从其增量的预付费入口恢复,或者当置信门触发时,通过一次近常数的词汇扫描从缓存分布中回答,无需解码,仅消耗能量和罕见的、有界的错误接受。其收益取决于模型能力:有能力的模型以接近全覆盖和约87%的精度触发门(较小的模型则永远无法触发),返回第一个token约需1.0毫秒,而前缀缓存仍需支付39毫秒的解码时间。
英文摘要:
A stateless inference server (vLLM, SGLang, TensorRT-LLM) idles between requests while the accelerator waits; a stateful session reclaims that idle time. Speculative pre-positioning decodes the session forward to its next decision point with the target model's own forward pass and no draft model, moving the cross-request prefill and entry-decode off the critical path: the next request resumes from a pre-paid entry on its delta, or, when a confidence gate fires, is answered from a cached distribution in one near-constant vocabulary scan with no decode, at a cost only of energy and a rare, bounded false accept. The payoff is conditional on capability: a capable model fires the gate at near-full coverage and about 87% precision (a smaller one never clears it), returning the first token in about 1.0 ms versus the 39 ms decode a prefix cache still pays.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。