CLP: 零损失自适应多令牌推理的搭配长度预测
CLP: Collocation-Length Prediction for Zero-Loss Adaptive Multi-Token Inference
AI总结:
提出CLP方法,通过轻量级线性层预测可安全接受的额外令牌数,解决多令牌预测中头-主干竞争导致的输出退化问题,在Qwen2.5模型上实现零质量损失的1.14x-1.29x加速。
摘要:
大型语言模型推理受限于自回归解码,每个令牌需要一次完整的前向传播。多令牌预测(MTP)提供了一种有前景的加速路径,但现有方法存在根本性的架构缺陷:第一个令牌的MTP头与主干自身的语言模型(LM)头竞争,导致预测被接受时质量严重下降。我们将这种头-主干竞争确定为先前基于MTP的加速方法中重复和不连贯输出的根本原因。为了解决这个问题,我们提出了Backbone-as-Architect设计原则,其中主干LM头始终生成第一个令牌,MTP头仅负责后续令牌。基于这一原则,我们引入了CLP(搭配长度预测器),一个轻量级的跨度级决策层,预测每个解码步骤可以安全接受多少个额外令牌。CLP仅使用单个线性层(4.6K--7.7K参数),取代了先前工作中过度设计的1M参数门控网络。在Qwen2.5模型(0.5B、1.5B、7B)上的实验表明,CLP在1.5B模型上实现了1.20x--1.29x加速,在7B模型上实现了1.14x--1.20x加速,且零质量退化(重复率<0.02),而基于门控的方法无法加速(1.07x)或产生严重退化的输出(重复率>0.5%)。我们进一步证明,较短的预测范围(k=2)在大模型上恢复了24%更高的MTP头准确率,建立了一个可扩展感知的设计原则。我们确定MTP头预测准确率是加速的约束条件,并为未来改进建立了清晰的路线图。
英文摘要:
Large language model inference is bottlenecked by autoregressive decoding, where each token requires a full forward pass. Multi-token prediction (MTP) offers a promising acceleration path, but existing approaches suffer from a fundamental architectural flaw: the MTP head for the first token competes with the backbone's own language model (LM) head, leading to severe quality degradation when predictions are accepted. We identify this head-backbone competition as the root cause of repetitive and incoherent outputs in prior MTP-based acceleration methods. To address this, we propose Backbone-as-Architect, a design principle where the backbone LM head always generates the first token, and MTP heads are responsible only for subsequent tokens. Building on this principle, we introduce CLP (Collocation-Length Predictor), a lightweight span-level decision layer that predicts how many additional tokens can be safely accepted at each decoding step. CLP uses only a single linear layer (4.6K--7.7K parameters), replacing the over-engineered 1M-parameter gate networks used in prior work. Experiments on Qwen2.5 models (0.5B, 1.5B, 7B) show that CLP achieves 1.20x--1.29x speedup on 1.5B and 1.14x--1.20x on 7B, with zero quality degradation (repetition ratio < 0.02), while gate-based approaches fail to accelerate (1.07x) or produce severely degraded outputs (repetition ratio > 0.5%). We further demonstrate that shorter prediction horizons (k=2) recover 24% higher MTP head accuracy on large models, establishing a scaling-aware design principle. We identify MTP head prediction accuracy as the binding constraint on acceleration and establish a clear roadmap for future improvements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。