TeCoP:通过试探性上下文流水线加速扩散大语言模型解码
TeCoP: Accelerating Diffusion Large Language Model Decoding via Tentative Context Pipelining
AI总结:
针对扩散大语言模型解码低效问题,提出无需训练的TeCoP解码器,通过解耦预测提交与上下文效用,在多基准测试中大幅减少前向评估次数、提升吞吐量且准确率接近原始模型。
摘要:
扩散大语言模型(dLLMs)每次前向传播可预测多个标记位置,但基于块的解码器会序列化生成过程并重复计算稳定预测。我们将这种低效性归因于将预测的不可逆提交就绪状态与其作为上下文的效用相耦合。我们提出了试探性上下文流水线(TeCoP),这是一种无需训练的解码器,通过交错的块级并行流水线以及草稿与验证机制来解耦这两种角色。TeCoP将稳定但未提交的预测作为临时跨块上下文,其提交由置信度和稳定性检查控制。在GSM8K、Minerva MATH和MBPP三个基准测试上,针对四个LLaDA和Dream dLLMs,TeCoP将前向评估次数最多减少87%,在无KV缓存时实现最高7.50倍的吞吐量,有缓存时则达11.77倍,远超未缓存的原始解码器。在所有12种模型-基准设置(无论是否带缓存)中,TeCoP的吞吐量均优于Fast-dLLM和DSB,同时保持的平均缓存准确率与原始解码器相差不超过1个百分点。
英文摘要:
Diffusion large language models (dLLMs) predict multiple token positions per forward pass, yet block-wise decoders serialize generation and repeatedly recompute stable predictions. We attribute this inefficiency to coupling a prediction's readiness for irreversible commitment with its utility as context. We introduce Tentative Context Pipelining (TeCoP), a training-free decoder that decouples these roles through staggered block-parallel pipelining and draft-and-verify. TeCoP reuses stable but uncommitted predictions as provisional cross-block context, with commitment governed by confidence and stability checks. Across four LLaDA and Dream dLLMs on GSM8K, Minerva MATH, and MBPP, TeCoP reduces number of forward evaluations by up to 87% and achieves up to 7.50-fold throughput without KV caching and 11.77-fold with caching over the uncached original decoder. It outperforms Fast-dLLM and DSB in throughput across all 12 model-benchmark settings, with and without caching, while keeping average cached accuracy within one percentage point of the original decoder.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。