arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.21323cs.CLcs.LG
收藏

语言模型中的并行令牌预测

Parallel Token Prediction for Language Models

Department of Computer Science, University of California, Irvine(加州大学伊维特分校计算机科学系);Chan-Zuckerberg Initiative(张博士基金会);Pyramidal AI(金字塔人工智能);Computer Science & AI in Science Institute, University of California, Irvine(加州大学伊维特分校计算机科学与科学人工智能研究所)

Felix Draxler, Justus Will, Farrin Marouf Sofian, Theofanis Karaletsos, Sameer Singh, Stephan Mandt

AI总结:

提出并行令牌预测框架,通过引入随机输入变量实现多令牌联合预测,提升语言模型解码效率。

摘要:

语言模型中的自回归解码本质上是缓慢的,每次前向传递只能生成一个令牌。我们提出了并行令牌预测(PTP),一种通用框架,用于在单次模型调用中预测多个令牌。PTP将随机性来源从事后采样转移到随机输入变量,使未来的令牌成为这些输入的确定性函数,从而可以在单次前向传递中联合预测。我们证明单次PTP调用可以表示任意令牌之间的依赖关系。PTP通过蒸馏现有模型或通过逆自回归训练进行训练,而无需教师模型。实验表明,PTP在多样任务的推测解码基准上实现了2.4倍的速度提升。我们提供代码和检查点见https://github.com/mandt-lab/ptp。

英文摘要:

Autoregressive decoding in language models is inherently slow, generating only one token per forward pass. We propose Parallel Token Prediction (PTP), a general-purpose framework for predicting multiple tokens in a single model call. PTP moves the source of randomness from post-hoc sampling to random input variables, making future tokens deterministic functions of those inputs and thus jointly predictable in a single forward pass. We prove that a single PTP call can represent arbitrary dependencies between tokens. PTP is trained by distilling an existing model or through inverse autoregressive training without a teacher. Experimentally, PTP achieves a 2.4x speedup on a diverse-task speculative decoding benchmark. We provide code and checkpoints at https://github.com/mandt-lab/ptp.

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

↑