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

关于高效LLM推理的多token预测研究

On multi-token prediction for efficient LLM inference

European Research Center (EUREC), Sony Europe B.V.(欧洲研究中心(EUREC),索尼欧洲有限公司);Swiss Federal Institute of Technology Lausanne (EPFL)(洛桑联邦理工学院)

Somesh Mehra, Javier Alonso Garcia, Lukas Mauch

AI总结:

本研究系统探究预训练LLM的多token预测(MTP)能力,发现模型天生具备该能力但性能依赖数据与规模,集成MTP头至冻结LLM存在挑战,联合训练可提升性能但无法完全克服障碍,为加速推理提供参考。

摘要:

我们系统地研究了预训练用于下一个token预测(NTP)的LLM中的多token预测(MTP)能力。首先,我们通过对中间token概率的数值边缘化表明,此类模型天生具备MTP能力,尽管性能依赖数据且随模型规模提升而改善。此外,我们探索了将MTP头集成到冻结LLM中的挑战,发现其隐藏层高度专门用于NTP,使得适配并非易事。最后,我们表明尽管MTP头与骨干网络联合训练可提升性能,但无法完全克服这一障碍,促使该方向的进一步研究。我们的发现为MTP应用于预训练LLM提供了更深入的理解,为通过并行token预测加速推理的策略提供了参考。

英文摘要:

We systematically investigate multi-token prediction (MTP) capabilities within LLMs pre-trained for next-token prediction (NTP). We first show that such models inherently possess MTP capabilities via numerical marginalization over intermediate token probabilities, though performance is data-dependent and improves with model scale. Furthermore, we explore the challenges of integrating MTP heads into frozen LLMs and find that their hidden layers are strongly specialized for NTP, making adaptation non-trivial. Finally, we show that while joint training of MTP heads with the backbone improves performance, it cannot fully overcome this barrier, prompting further research in this direction. Our findings provide a deeper understanding of MTP applied to pretrained LLMs, informing strategies for accelerating inference through parallel token prediction.

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

↑