arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.27255cs.CLcs.AI
收藏

Pair-In, Pair-Out: 面向高效LLM的潜在多令牌预测

Pair-In, Pair-Out: Latent Multi-Token Prediction for Efficient LLMs

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);AI Platform, Xiaohongshu Inc.(小红书人工智能平台);University of Electronic Science and Technology of China(电子科技大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)

Wenhui Tan, Minghao Li, Xiaoqian Ma, Siqi Fan, Xiusheng Huang, Liujie Zhang, Ruihua Song, Weihang Chen

AI总结:

提出Pair-In, Pair-Out (PIPO)方法,通过统一潜在压缩和多令牌预测,并训练轻量级置信度头消除验证器开销,在保持可靠性的同时实现推理加速。

摘要:

长链式推理使得自回归解码成为现代大语言模型的主要推理成本。现有方法要么针对输入侧(潜在压缩),要么针对输出侧(推测解码和多令牌预测,MTP),但这两条工作线是独立进行的。此外,输出侧方法必须进行昂贵的验证器传递,以验证MTP预测的不可靠草稿令牌。为解决这些问题,我们提出 extbf{Pair-In, Pair-Out (PIPO)},通过将潜在压缩器和MTP头视为镜像操作来统一两侧:压缩器将两个输入令牌折叠成一个潜在表示,而MTP头将一个隐藏状态展开成一个额外的输出令牌。为了在不牺牲可靠性的情况下消除验证器成本,PIPO训练一个轻量级置信度头,决定是否接受草稿令牌。我们观察到,在线策略蒸馏(OPD)自然匹配推测解码的拒绝采样准则,因此置信度头可以以可忽略的额外成本与OPD一起训练。在AIME 2025、GPQA-Diamond、LiveCodeBench v6和LongBench v2上使用Qwen3.5-4B和9B骨干网络的实验表明,PIPO在常规解码上将pass@4提高了最多+7.15个点,同时实现了高达2.64倍的首令牌延迟和2.07倍的每令牌延迟加速。项目页面:GitHub.com/RedAI-Infra/PIPO。

英文摘要:

Long chain-of-thought reasoning has made autoregressive decoding the dominant inference cost of modern large language models. Existing methods target either the input side (latent compression) or the output side (speculative decoding and multi-token prediction, MTP), but the two lines of work have been pursued independently. Moreover, output-side methods must incur an expensive verifier pass to validate the unreliable draft tokens predicted by MTP. To address these issues, we propose \textbf{Pair-In, Pair-Out (PIPO)}, which unifies both sides by viewing a latent compressor and an MTP head as mirror-image operations: the compressor folds two input tokens into one latent representation, while the MTP head unfolds one hidden state into one additional output token. To remove the verifier cost without sacrificing reliability, PIPO trains a lightweight confidence head that decides whether draft tokens should be accepted. We observe that On-Policy Distillation (OPD) naturally matches the rejection-sampling criterion of speculative decoding, so the confidence head can be trained alongside OPD with negligible extra cost. Experiments on AIME 2025, GPQA-Diamond, LiveCodeBench v6, and LongBench v2 with Qwen3.5-4B and 9B backbones show that PIPO improves pass@4 over regular decoding by up to $+7.15$ points, while delivering up to $2.64\times$ first-token-latency and $2.07\times$ per-token-latency speedups. Project Page: GitHub.com/RedAI-Infra/PIPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑