Introduction
Diffusion Transformers (DiTs) have set new benchmarks in high-fidelity image and video generation, powering state-of-the-art models like Sora and PixArt-α. However, their massive parameter counts and computational demands present significant barriers to deployment on edge devices. Generating a short video sequence can consume over 10GB of VRAM and require substantial processing time even on data-center-grade GPUs. While Post-Training Quantization (PTQ) offers a path toward efficiency by converting 16-bit floating-point (FP16) weights and activations into 4-bit integers (W4A4), DiTs are notoriously resistant to such aggressive compression. Standard quantization often leads to "model collapse," where the output degrades into noise or solid colors.
The Challenge: Outliers and Error Accumulation
The primary obstacle in quantizing DiTs is the presence of extreme outliers in activation values. These outliers force a choice between clipping (which destroys critical information) or expanding the quantization range (which increases rounding errors for the majority of values). Furthermore, quantization error is not isolated; it accumulates across the transformer blocks, leading to a "snowball effect" that destabilizes the generation process. Existing methods like QuaRot and ViDiT-Q, while effective at 8-bit, often fail completely when pushed to 4-bit precision.
The CLQ Framework
To address these issues, the researchers developed CLQ (Cross-Layer Guided Orthogonal-based Quantization), a framework designed to maintain visual quality at ultra-low bit-widths through three innovative technical components.
1. Cross-Block Calibration (CBC)
Traditional PTQ methods calibrate each layer using clean, full-precision input data. However, during actual inference, a quantized layer receives noisy inputs from preceding quantized layers. CLQ introduces CBC to bridge this gap. By ensuring that previous blocks are already quantized when calibrating the current target block, CBC provides "honest" calibration data. This approach allows the quantizer to account for and mitigate the actual error drift encountered during model execution.
2. Orthogonal-Based Smoothing (OBS)
Rather than relying on computationally expensive dynamic scaling or destructive clipping, CLQ employs OBS to handle activation outliers. This method identifies channels with high-energy outliers and applies a Block Hadamard Transform—a mathematical rotation—to spread that energy across more stable channels. By rotating the data space using an orthogonal matrix ($G=SH$), the distribution is smoothed, making it significantly easier to map to a 4-bit grid without losing the underlying information.
3. Cross-Layer Parameter Searching (CLPS)
Standard quantization optimizes for local (layer-wise) error. CLQ recognizes that some layers are more sensitive to noise than others. CLPS identifies the "most influenced" downstream layer (the victim layer) for a given quantization step and optimizes the current layer's parameters to minimize the error at that specific downstream point. This global perspective ensures that the most critical parts of the network architecture are protected from cumulative noise.
Experimental Results
CLQ was evaluated on leading generative models, including PixArt-α for image generation and Open-Sora 1.2 for video. The results demonstrate a significant leap over previous state-of-the-art methods.
Quantitative Performance
On the GenEval benchmark, which measures object counting, color accuracy, and spatial positioning, CLQ achieved a total score of 0.509 at W4A4. This is remarkably close to the FP16 baseline of 0.550. In stark contrast, competing methods like QuaRot and ViDiT-Q collapsed at this bit-width, returning scores below 0.09. For video generation, CLQ maintained high temporal consistency and imaging quality on the VBench suite, where other 4-bit models failed to produce recognizable content.
Hardware Efficiency
Beyond quality, CLQ delivers the efficiency required for edge deployment. The framework achieves a 3.98x reduction in memory usage and a 3.95x speedup in inference time compared to the FP16 baseline. This transformation makes it possible to run high-end generative models on hardware with limited VRAM and processing power.
Conclusion
CLQ represents a major advancement in the compression of Diffusion Transformers. By moving beyond local, layer-wise optimization and addressing the fundamental nature of outlier distribution through orthogonal transforms, it enables high-quality W4A4 generation. This framework paves the way for bringing sophisticated image and video generation capabilities to consumer-grade devices without sacrificing the creative potential of the underlying models.
Summary updated