TL;DR
RobuQ is a new quantization-aware training (QAT) framework that enables Diffusion Transformers (DiTs) to operate at extreme efficiency, achieving stable image generation with ternary weights (W1.58) and activations as low as 2 bits on average. By leveraging the Hadamard transform to normalize complex activation distributions into predictable Gaussians, RobuQ sets a new state-of-the-art for ultra-low-bit generative models, offering up to a 13.2× compression ratio.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the gold standard for high-quality image generation due to their scalability. However, this performance comes at a massive computational and memory cost, making them difficult to deploy on consumer hardware.
While researchers have successfully compressed the weights of these models to ternary values (1.58 bits), activation quantization remains a major bottleneck. Activations in DiTs are "spiky," with distributions that vary wildly across different layers and tokens. Prior attempts to quantize activations below 4 bits on large-scale datasets like ImageNet-1K typically resulted in severe quality degradation or total model collapse. RobuQ aims to break this "4-bit barrier" for activations without sacrificing generative quality.
Methods
The authors introduce a systematic QAT framework consisting of three main pillars:
- RobustQuantizer & The Hadamard Transform: The core innovation is using the Hadamard transform to "whiten" activations. Mathematically, the authors prove that this orthogonal transform projects diverse, unknown activation distributions into a standard normal (Gaussian) form via the Central Limit Theorem.
- Per-token Gauss Quantizer: Once the activations are normalized into Gaussians, the model uses a pre-computed optimal quantizer (derived via the Lloyd-Max algorithm). This makes the quantization process distribution-agnostic and highly robust.
- Activation-only Mixed-Precision Network (AMPN): Recognizing that some layers are more sensitive than others, the authors use Dynamic Programming to allocate activation bit-widths (1, 2, 3, or 4 bits) across the network. This allows the model to protect "information bottlenecks" while aggressiveley compressing less sensitive layers to meet a target average (e.g., 2 bits).
- Enhanced Baseline: They incorporate an SVD-initialized low-rank branch to compensate for quantization errors in the weights, ensuring a strong starting point for the QAT process.
Datasets
The framework was evaluated on standard high-resolution image generation benchmarks:
- ImageNet-1K (256×256): Used for class-conditional generation.
- FFHQ (256×256): Used for unconditional face generation.
- MJHQ: Used for additional evaluation on the state-of-the-art FLUX model to test zero-shot capabilities.
Key Insights and Ideas
- Embracing the "Worst Case": Information theory suggests that a Gaussian distribution is the hardest to quantize because it has the maximum entropy. RobuQ's "aha moment" is that by forcing activations into this "hardest" distribution, they eliminate the uncertainty of the distribution shape, allowing for a perfectly optimized, fixed quantizer.
- QAT is Mandatory for Ultra-Low Bits: The paper demonstrates that standard Post-Training Quantization (PTQ) metrics fail at ultra-low bit-widths. Layers that look "hard to quantize" in PTQ can often be easily recovered by the model during QAT.
- Attention is the Priority: Through their mixed-precision analysis, the authors found that attention paths (specifically
attn.proj) are the biggest "sinks" for bits. Under tight budgets, these layers must retain higher precision to prevent model collapse.
Key Results
RobuQ achieves unprecedented results for sub-4-bit DiTs:
- W1.58A2 Stability: It is the first framework to achieve stable image generation on ImageNet-1K with activations at an average of 2 bits. The W1.58A2 model achieved an FID of 30.30, significantly outperforming previous ternary weight baselines that used 4-bit activations.
- Efficiency: Compared to full-precision (FP32) models, RobuQ provides a 17.3× theoretical speedup and a 13.2× compression ratio.
- Qualitative Quality: Even at ultra-low bit settings, the generated images remain competitive and free from the structural collapses seen in other quantization methods.
Limitations and Future Work
- Hardware Kernels: While the theoretical FLOP reduction is massive, actual wall-clock speedup is currently limited by the lack of specialized hardware kernels for 2-bit and ternary arithmetic. The authors currently unpack ternary weights to 4-bit backends for execution.
- Hadamard Overhead: The online Hadamard transform adds a small computational overhead (roughly 1.7% on FLUX), though this is largely offset by the gains from quantization.
- Future Directions: The authors suggest that developing dedicated mixed-precision kernels and exploring alternative orthogonal transforms could further push the boundaries of efficiency.
Summary updated