协调双边界:一种受算术强度启发的加速框架用于扩散语言模型
Orchestrating Dual-Boundaries: An Arithmetic Intensity Inspired Acceleration Framework for Diffusion Language Models
AI总结:
ODB-dLLM通过协调双边界,利用算术强度差异优化扩散语言模型的推理速度,显著提升效率并减少准确性损失。
摘要:
基于大型语言模型(dLLMs)的扩散方法最近因其卓越的性能和固有的并行解码潜力而受到广泛关注。现有框架通过启用KV缓存进一步提高其推理效率。然而,其双向注意力机制需要定期刷新缓存,这会交织前填充和解码阶段,两者都导致显著的推理成本并限制可实现的加速。受前填充和解码阶段异构算术强度的启发,我们提出ODB-dLLM,一种协调双边界以加速dLLM推理的框架。在前填充阶段,我们发现预定义的固定响应长度引入了沉重且冗余的计算开销,影响效率。为缓解这一问题,ODB-dLLM集成了一个自适应长度预测机制,逐步减少前填充开销和不必要的计算。在解码阶段,我们分析了dLLMs的计算特性,并提出了一种特定于dLLM的跳-share推测解码方法,通过减少解码迭代次数来提高效率。实验结果表明,ODB-dLLM在基准dLLM和Fast-dLLM上分别实现了46-162倍和2.63-6.30倍的加速,同时同时减轻了现有加速框架中的准确性下降。
英文摘要:
Diffusion-based large language models (dLLMs) have recently gained significant attention for their exceptional performance and inherent potential for parallel decoding. Existing frameworks further enhance its inference efficiency by enabling KV caching. However, its bidirectional attention mechanism necessitates periodic cache refreshes that interleave prefill and decoding phases, both contributing substantial inference cost and constraining achievable speedup. Inspired by the heterogeneous arithmetic intensity of the prefill and decoding phases, we propose ODB-dLLM, a framework that orchestrates dual-boundaries to accelerate dLLM inference. In the prefill phase, we find that the predefined fixed response length introduces heavy yet redundant computational overhead, which affects efficiency. To alleviate this, ODB-dLLM incorporates an adaptive length prediction mechanism that progressively reduces prefill overhead and unnecessary computation. In the decoding phase, we analyze the computational characteristics of dLLMs and propose a dLLM-specific jump-share speculative decoding method to enhance efficiency by reducing the number of decoding iterations. Experimental results demonstrate that ODB-dLLM achieves 46-162x and 2.63-6.30x speedups over the baseline dLLM and Fast-dLLM, respectively, while simultaneously mitigating the accuracy degradation in existing acceleration frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。