arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.29223cs.LG
收藏

LLM解码的深度探索

Depth Exploration for LLM Decoding

Weisi Yang, Zipeng Sun, Stephen Xia

AI总结:

提出DEX算法,通过并行探索多个候选深度而非单深度选择,在保持无损解码的同时减少计算开销,优于现有深度选择方法。

摘要:

自回归LLM解码对每个生成的token评估整个层堆栈,尽管许多token在中间深度就变得可预测。现有的无损深度自适应方法通过选择单个非最终退出深度并利用最终深度模型验证其预测来利用这种冗余。然而,我们的测量表明,这种基于选择的策略留下了很大的改进空间:选择退出太晚会浪费计算,而选择退出太早会触发回退并丢弃依赖的草稿。我们提出深度探索解码(DEX),一种无损解码算法,用多个候选深度上的并行探索取代单深度选择。在每个提交位置,DEX根据最终深度参考验证候选,精确提交最终深度token,并折叠探索格以仅保留可重用的分支状态。这种扩展-提交-折叠过程保持与标准自回归解码的等价性,同时降低了提交每个token的成本。在早期退出训练和标准LLM上,DEX优于代表性的深度选择基线,并在端到端吞吐量上与推测性和分布式解码方法竞争。此外,随着探索深度的细化,DEX性能提升,表明并行深度探索提供了一种可扩展的方式来利用LLM解码中未充分利用的深度维度。

英文摘要:

Autoregressive LLM decoding evaluates every generated token through the full layer stack, even though many tokens become predictable at intermediate depths. Existing lossless depth-adaptive methods exploit this redundancy by choosing a single non-final exit depth and verifying its prediction with the final-depth model. However, our measurements show that this selection-based strategy leaves substantial headroom: choosing an exit too late wastes computation, while choosing one too early triggers fallback and discards dependent drafts. We propose Depth Exploration Decoding (DEX), a lossless decoding algorithm that replaces single-depth selection with parallel exploration over multiple candidate depths. At each commit position, DEX validates candidates against the final-depth reference, commits exactly the final-depth token, and collapses the exploration lattice to retain only reusable branch states. This expand--commit--collapse procedure preserves equivalence to standard autoregressive decoding while reducing the cost of committing each token. Across early-exit-trained and standard LLMs, DEX outperforms representative depth-selection baselines and achieves competitive end-to-end throughput against speculative and distributed decoding methods. Moreover, DEX improves as the explored depths become finer, showing that parallel depth exploration provides a scalable way to exploit the underused depth axis of LLM decoding.

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

↑