DLLMQuant: A Post-Training Quantization Framework Tailored for Diffusion-Based Large Language Models

Chen Xu, Zhixuan Chen, Dawei Yang

TL;DR

DLLMQuant is the first post-training quantization (PTQ) framework specifically designed for Diffusion-Based Large Language Models (DLLMs). By introducing temporal-aware calibration and interaction-aware error compensation, it enables 4-bit model deployment with over 3x memory savings and 1.6x speedups while significantly outperforming standard quantization methods.

What Problem Does This Paper Address?

While most Large Language Models (LLMs) generate text one token at a time (autoregressive), a new class of models called Diffusion-Based LLMs (DLLMs)—such as LLADA—generate text by iteratively denoising a sequence of mask tokens. This allows for parallel decoding and better control, but it comes with a massive computational price tag.

When researchers try to compress these models using standard Post-Training Quantization (PTQ) tools like AWQ or GPTQ, the performance collapses. The authors identify three reasons why DLLMs are "quantization-resistant":

  1. Temporal Shift: The distribution of data inside the model changes drastically from the first step (mostly masks) to the last step (mostly text). Standard calibration only takes a "snapshot" and misses this evolution.
  2. Error Accumulation: Because DLLMs are iterative, a tiny quantization error in step 1 snowballs over 50 or 100 denoising steps.
  3. Feature Mismatch: DLLMs mix "fixed" unmasked tokens with "probabilistic" masked tokens. Treating them with the same quantization priority leads to "uncoordinated" feature distributions that confuse the model.

Methods

The authors propose DLLMQuant, a framework consisting of three "plug-and-play" techniques:

  • Temporal-Mask Adaptive Sampling (TMAS): Instead of random calibration, TMAS strategically samples data across different time steps and masking ratios. This ensures the quantization parameters are robust for the entire denoising "movie," not just a single frame.
  • Interaction-Aware Activation Quantization (IA-AQ): The authors found that the matrix multiplication following the softmax in the attention mechanism is a primary source of error. IA-AQ uses bidirectional attention scores to identify which tokens are most "important" and prioritizes their precision during activation quantization.
  • Certainty-Guided Quantization (CGQ): This is a weight quantization strategy. It modifies the Hessian-based error compensation (the math used to "fix" weights after they are rounded) by giving more weight to unmasked regions and tokens with high confidence scores. It essentially tells the quantizer: "Don't mess up the parts of the sequence the model is already sure about."

Datasets

The researchers evaluated DLLMQuant on three primary models: LLADA-8B, LLADA-1.5-8B, and DREAM-7B. They tested these models across nine diverse benchmarks:

  • Reasoning & Math: GSM8K, HumanEval (coding).
  • Knowledge & Logic: MMLU, C-EVAL, ARC-Challenge.
  • Common Sense: HellaSwag, PIQA, WinoGrande, TruthfulQA.

Key Insights and Ideas

  • The Iteration Trap: In autoregressive models, an error in one token might affect the next. In DLLMs, an error in one step affects every token in the next step. This makes "Interaction-Aware" quantization much more critical for diffusion than for standard GPT-style models.
  • Sparsity is a Double-Edged Sword: The authors observed that softmax outputs in DLLMs are extremely sparse (see Figure 6 in the paper). While sparsity usually helps compression, here it causes "precision misallocation" where the quantizer ignores small but vital details. IA-AQ fixes this by using the softmax output as a weighting mask.
  • The 0.7 Rule: Through ablation studies, the authors found that assigning a weight of 0.7 to unmasked regions (versus 1.0 for masked) provided the best balance for error compensation, proving that "context" tokens need specific protection during the quantization process.

Key Results

DLLMQuant demonstrates that 4-bit (W4A4) quantization for DLLMs is finally viable:

  • Accuracy Boost: On the GSM8K math benchmark, DLLMQuant improved LLADA's accuracy by over 10 points compared to the AWQ baseline.
  • Average Gains: Across all nine tasks, it outperformed original PTQ methods by an average of 2%, effectively bridging the gap between compressed and full-precision (FP16) models.
  • Efficiency: The framework achieved a 1.6x inference speedup and reduced memory usage by 3.2x (e.g., bringing an 8B model down from ~16GB to ~5GB of VRAM). This makes it possible to run these powerful diffusion models on consumer-grade hardware like an NVIDIA RTX 4090.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the authors found a "sweet spot" for weights (like the 0.7 weight for unmasked regions), these might vary for different model architectures or specialized tasks.
  • Multimodal Expansion: The paper focuses on text-based DLLMs. The authors suggest that extending this framework to multimodal diffusion models (which handle images and text) is a promising next step.
  • Quantization-Aware Training (QAT): This paper focuses on Post-Training Quantization. Exploring how to train DLLMs from scratch with quantization in mind could potentially push the bit-width even lower (e.g., to 2-bit).

Summary updated

BibTeX
@inproceedings{xu2026dllmquant,
  author = {Chen Xu and Zhixuan Chen and Dawei Yang},
  title = {{DLLMQuant: A Post-Training Quantization Framework Tailored for Diffusion-Based Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=fl93PQfTT6},
}
Figure