Lune

ICLR2025顶会

Optimized Multi-Token Joint Decoding With Auxiliary Model for LLM Inference

Zongyue Qin, Ziniu Hu, Zifan He, Neha Prakriya, Jason Cong, Yizhou Sun

2025年份
9顶会引用

摘要

Large language models (LLMs) have achieved remarkable success across diverse tasks, but, due to single-token generation at each decoding step, their inference processes are hindered by substantial time and energy demands. While previous methods such as speculative decoding mitigate these inefficiencies by producing multiple tokens per step, each token is still generated by its single-token distribution. Although this enhances the speed, it does not improve the output quality. In contrast, our work simultaneously boosts inference speed and improves the output effectiveness. We consider multi-token joint decoding (MTJD), which generates multiple tokens from their joint distribution at each iteration, theoretically reducing perplexity and raising task performance. However, MTJD suffers from the high cost of sampling from the joint distribution of multiple tokens. Inspired by speculative decoding, we introduce multi-token assisted decoding (MTAD), a novel framework designed to accelerate MTJD. MTAD leverages a smaller auxiliary model to approximate the joint distribution of a larger model, incorporating a verification mechanism that not only ensures the accuracy of this approximation, but also increases the decoding efficiency over conventional speculative decoding. To further improve efficiency, we extend MTAD to multi-candidate multi-token assisted decoding (MMTAD) which incorporates tree-wise parallel decoding to efficiently verify multiple candidates. Theoretically, we demonstrate that MTAD and MMTAD closely approximate exact MTJD with a bounded error. Empirical evaluations across various tasks reveal that our method improves downstream performance by 43% compared to standard single-token sampling. Furthermore, MTAD achieves a 1.26× speed-up and consumes 23.6% less energy than vanilla speculative decoding methods. These results highlight MTAD's ability to make multi-token joint decoding both effective and efficient, promoting more productive and high-performance deployment of LLMs. 1

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper9

问问它们各自怎么用它

它引用的顶会 Paper10

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖