2025-08-21 · 进阶 · 机器学习 · 自然语言处理

Quantization Meets dLLMs: A Systematic Study of Post-training Quantization for Diffusion LLMs

本文系统性地研究了针对扩散大语言模型(dLLMs)的量化问题,通过实验分析了不同量化配置下的量化行为,为高效部署dLLMs提供了有价值的指导。

更新于 2025-08-21。作者:Haokun Lin、Haobo Xu、Yichen Wu、Ziyu Guo、Renrui Zhang、Zhichao Lu、Ying Wei、Qingfu Zhang、Zhenan Sun。

中文摘要

近年来,扩散大语言模型(dLLMs)在自然语言生成任务中为自回归(AR)LLMs提供了一种有前景的替代方案,它利用了全注意力和基于去噪的解码策略。然而,由于这些模型具有庞大的参数规模和高资源需求,在边缘设备上的部署仍然具有挑战性。虽然训练后量化(PTQ)已成为压缩AR LLMs的一种广泛采用的技术,但其在dLLMs上的适用性仍然鲜有探索。在本研究中,我们首次系统地研究了量化基于扩散的语言模型。我们首先识别了激活异常值的存在,这些异常值以异常大的激活值为主,占据了动态范围。这些异常值对低比特量化构成了关键挑战,因为它们使得难以保留大多数值的精度。更重要的是,我们实现了最先进的PTQ方法,并在多个任务类型和模型变体上进行了全面的评估。我们的分析沿着四个关键维度展开:比特宽度、量化方法、任务类别和模型类型。通过这种多角度评估,我们为dLLMs在不同配置下的量化行为提供了实用的见解。我们希望我们的发现为未来在高效dLLM部署方面的研究奠定基础。所有代码和实验设置都将公开发布以支持社区。

英文摘要

Recent advances in diffusion large language models (dLLMs) have introduced a promising alternative to autoregressive (AR) LLMs for natural language generation tasks, leveraging full attention and denoising-based decoding strategies. However, the deployment of these models on edge devices remains challenging due to their massive parameter scale and high resource demands. While post-training quantization (PTQ) has emerged as a widely adopted technique for compressing AR LLMs, its applicability to dLLMs remains largely unexplored. In this work, we present the first systematic study on quantizing diffusion-based language models. We begin by identifying the presence of activation outliers, characterized by abnormally large activation values that dominate the dynamic range. These outliers pose a key challenge to low-bit quantization, as they make it difficult to preserve precision for the majority of values. More importantly, we implement state-of-the-art PTQ methods and conduct a comprehensive evaluation across multiple task types and model variants. Our analysis is structured along four key dimensions: bit-width, quantization method, task category, and model type. Through this multi-perspective evaluation, we offer practical insights into the quantization behavior of dLLMs under different configurations. We hope our findings provide a foundation for future research in efficient dLLM deployment. All codes and experimental setups will be released to support the community.

解读

一句话总结

本文系统性地研究了针对扩散大语言模型(dLLMs)的量化问题,通过实验分析了不同量化配置下的量化行为,为高效部署dLLMs提供了有价值的指导。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源