Abstract
Diffusion-based Large Language Models (dLLMs), such as LLaDA and Dream, offer unique advantages in text generation through iterative denoising and bidirectional context encoding. However, their high computational requirements hinder deployment on edge devices. This paper presents the first systematic study of Post-Training Quantization (PTQ) for dLLMs. We identify unique activation outlier patterns that distinguish dLLMs from traditional autoregressive models and demonstrate that specific methods—namely GPTQ for weight-only and DuQuant for weight-activation quantization—can successfully compress these models to 4-bit or 8-bit with minimal performance degradation.
Introduction
As Large Language Models continue to scale, the search for efficient alternatives to standard autoregressive (AR) architectures has led to the rise of Diffusion LLMs (dLLMs). By treating text generation as a denoising process, dLLMs provide finer-grained control and bidirectional context. Despite these benefits, dLLMs share the same deployment challenges as AR models: they are massive and compute-intensive. While Post-Training Quantization (PTQ) is a standard solution for AR models, its effectiveness on dLLMs has remained unexplored until now. This study systematically evaluates whether existing PTQ techniques can handle the unique internal dynamics of diffusion-based text generation.
The Outlier Landscape in dLLMs
A primary challenge in low-bit quantization is the presence of activation outliers—values that significantly exceed the typical range, leading to high quantization errors. Our analysis reveals that dLLMs exhibit "massive outliers," particularly within the Feed-Forward Network (FFN) layers.
Crucially, dLLM outliers differ from those in AR models in their distribution. In dLLMs, these outliers are "wider," appearing across a significantly larger number of tokens rather than being isolated to a few. This broader distribution makes standard global clipping or scaling strategies less effective, as the outliers are not easily isolated.
Methodology
We conducted a comprehensive empirical evaluation of state-of-the-art PTQ methods on recent dLLMs, including LLaDA-8B and Dream-7B. The study analyzed models across several dimensions:
- Bit-width: 8-bit, 4-bit, and 3-bit configurations.
- Quantization Methods: Weight-only (GPTQ, AWQ) and weight-activation (SmoothQuant, QuaRot, DuQuant).
- Task Categories: General QA (MMLU, ARC), Mathematical Reasoning (GSM8K, MATH), and Code Generation (HumanEval, MBPP).
Key Findings
Weight-Only Quantization
For weight-only quantization, 4-bit (W4A16) is the optimal balance for dLLMs. GPTQ at 4-bit is near-lossless; for instance, LLaDA-8B-Instruct showed only a 0.6% drop on math tasks and a slight improvement in general QA. However, pushing to 3-bit causes severe degradation, particularly in complex logic tasks. Notably, AWQ underperformed relative to GPTQ because its activation-driven salient weight protection is less effective against the wider outlier structures found in dLLMs.
Weight-Activation Quantization
While 8-bit (W8A8) quantization is highly tolerable, 4-bit (W4A4) weight-activation quantization is significantly more challenging. Standard methods like SmoothQuant suffer near-total performance collapse at W4A4 due to the massive outliers in the FFN output layers.
Rotation-based methods, which smooth the activation landscape by redistributing outlier energy, proved far more effective. DuQuant emerged as the superior method, maintaining performance within 2.5% of the baseline for the Instruct model at W4A4.
Task Sensitivity and Model Robustness
Instruction-tuned models are generally more robust to quantization than base models. Furthermore, mathematical reasoning and code generation tasks are the most sensitive to quantization errors. Because these tasks require multi-step logic, small errors in the early stages of the iterative denoising process compound, eventually derailing the model's output.
Conclusion
This study establishes that dLLMs are viable candidates for low-bit deployment via PTQ, provided the right algorithms are used. GPTQ is recommended for 4-bit weight-only compression, while rotation-based methods like DuQuant are essential for 4-bit weight-activation quantization. Future research should explore step-aware quantization strategies that account for the iterative nature of the diffusion generation process.
Summary updated