arXiv:2608.00434cs.CLcs.AI2026-08

自适应预测长度提升大模型多标记生成效率与精度

AdaMTP: An Adaptive Training Paradigm for Multi-Token Prediction

论文配图:AdaMTP: An Adaptive Training Paradigm for Multi-Token Prediction
图 1 · 摘自论文原文
  • 根据语义不确定性动态划分序列,调整预测深度
  • 在数学推理等任务上性能超越传统MTP,加速推理
  • 适合追求高效生成的开发者与研究者使用

多标记预测(MTP)通过在共享大语言模型基础上添加辅助头,同时预测多个未来标记,增强监督信号并加速推理。然而现有框架采用固定长度预测窗口,忽视自然语言与代码中信息密度的高度不均匀性。强制辅助头跨高熵语义边界预测会引入噪声且冲突的训练信号,因共享底层表示,反向传播梯度会干扰模型核心能力。本文提出AdaMTP,一种自适应训练范式,动态对齐预测范围与序列内在可预测性。核心是一个基于熵的分段算法,利用基础模型检测不确定性突增作为语义边界,将序列划分为可变长度片段。每个标记分配自适应预测深度,通过动态掩码的MTP目标抑制跨边界的损失,降低干扰梯度。在三个骨干模型(Llama-3.1-8B、Qwen-2.5-7B、Gemma-3-12B)上,涵盖数学推理、代码生成及通用基准,AdaMTP在任务表现和推理速度上均持续优于标准MTP。

原文摘要 · Abstract (English)

Multi-Token Prediction (MTP) has emerged as an effective paradigm that augments a shared Large Language Model backbone with auxiliary heads, training the model to predict several future tokens in parallel to enrich its supervision signal and accelerate inference. However, existing training frameworks adopt a rigid, fixed-length prediction horizon, disregarding the highly non-uniform information density of natural language and code. Forcing the auxiliary heads to predict across high-entropy semantic boundaries injects noisy, conflicting training signals; because these heads share the backbone's latent representations, the resulting gradients backpropagate and interfere with the model's core capabilities. We propose AdaMTP, an adaptive training paradigm that dynamically aligns the prediction horizon with the intrinsic predictability of the sequence. At its core, an entropy-based segmentation algorithm leverages the base model to detect sudden surges in uncertainty as semantic boundaries, partitioning sequences into variable-length groups. Each token is assigned an adaptive prediction depth, and a dynamically masked MTP objective suppresses the loss for predictions that cross these boundaries, attenuating the noisy gradients that degrade the backbone. Across mathematical reasoning, code generation, and general benchmarks on three backbones (Llama-3.1-8B, Qwen-2.5-7B, Gemma-3-12B), AdaMTP consistently outperforms standard MTP in both task performance and inference speedup.

多标记预测自适应训练大模型优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。