LRQ-DiT: Log-Rotation Post-Training Quantization of Diffusion Transformers for Text-to-Image Generation

Lianwei Yang, Haokun Lin, Tianchen Zhao, Yichen Wu, Hongyu Zhu, Ruiqi Xie, Zhenan Sun, Yu Wang, Qingyi GuarXiv 2025 · DOI

Introduction

Diffusion Transformers (DiTs) have emerged as the state-of-the-art architecture for high-fidelity image and video generation, powering models like Sora, PixArt, and FLUX. However, their massive parameter counts and high computational costs pose significant challenges for deployment. While Post-Training Quantization (PTQ) is a standard technique to reduce model size and latency without retraining, existing methods often fail when pushing DiTs to extreme low-bit settings (e.g., 3-bit weights and 4-bit activations).

This paper introduces LRQ-DiT, a novel PTQ framework designed specifically to address the unique distributional characteristics of DiTs. By combining a log-based weight quantizer with an adaptive activation rotation scheme, LRQ-DiT enables high-quality generation at unprecedented compression levels.

Challenges in DiT Quantization

The authors identify two primary bottlenecks that cause standard PTQ methods to fail on DiTs:

  1. Weight Distribution Mismatch: DiT weights typically follow a Gaussian-like distribution with a dense central region and sparse long tails. Standard uniform quantization allocates bins evenly, which wastes precision on empty tail regions while failing to accurately capture the high-density center.
  2. Activation Outliers: Unlike Large Language Models (LLMs) where outliers are often token-specific, DiT activations exhibit massive magnitude spikes concentrated in specific channels across all tokens. These "salient outliers" skew the quantization scale, effectively destroying the resolution for the majority of activation values.

Methodology: LRQ-DiT

To overcome these issues, LRQ-DiT employs a two-pronged strategy:

Twin-Log Quantization (TLQ) for Weights

Instead of uniform spacing, TLQ applies a base-2 logarithmic transformation to the weights. This approach naturally aligns with Gaussian distributions by allocating more quantization intervals to the dense central region. To maintain hardware efficiency, the authors utilize a bitwise shift-and-AND implementation that avoids expensive exponential operations during inference.

Adaptive Rotation Scheme (ARS) for Activations

To mitigate the impact of outliers, LRQ-DiT uses orthogonal rotation matrices to "smear" high-magnitude spikes across multiple channels. The framework adaptively selects the rotation intensity based on a fluctuation metric ($J$):

  • Mild Outliers (Low $J$): A lightweight Hadamard rotation is applied.
  • Salient Outliers (High $J$): A dual transformation involving greedy outlier-aware rotation and channel permutation is used to aggressively smooth massive spikes.
Figure 1: Overview of the LRQ-DiT framework, illustrating the Twin-Log Quantization (TLQ) for weights and the Adaptive Rotation Scheme (ARS) for activation outliers.

Experimental Results

LRQ-DiT was evaluated across multiple text-to-image (PixArt, FLUX) and text-to-video (OpenSORA) benchmarks.

Quantitative Performance

As shown in the table below, LRQ-DiT significantly outperforms existing state-of-the-art PTQ methods like ViDiT-Q and QuaRot, particularly in extreme low-bit regimes. For instance, on the PixArt-Σ model at W3A4 (3-bit weight, 4-bit activation), LRQ-DiT achieves an FID of 90.15 on the COCO prompt set, whereas previous methods produce significantly higher error rates (FID > 210).

Figure 3: Quantitative comparison of LRQ-DiT against baseline methods on the PixArt-Σ model across various bit-widths and prompt sets.

Hardware Efficiency

Beyond accuracy, the authors demonstrated real-world speedups using custom Triton kernels. On an NVIDIA RTX 4090, their implementation achieved a 2.15× to 2.45× throughput increase over FP16, effectively pushing performance from ~65 TFLOPs to over 160 TFLOPs.

Conclusion

LRQ-DiT represents a significant step forward in making large-scale Diffusion Transformers accessible on consumer-grade hardware. By tailoring quantization strategies to the specific mathematical properties of DiT weights and activations, the framework maintains high visual fidelity even at 3-bit and 4-bit precision. Future work may focus on eliminating the need for high-precision fallback layers and further optimizing kernels for native low-bit hardware execution.

Summary updated

BibTeX
@misc{yang2025lrq,
  author = {Lianwei Yang and Haokun Lin and Tianchen Zhao and Yichen Wu and Hongyu Zhu and Ruiqi Xie and Zhenan Sun and Yu Wang and Qingyi Gu},
  title = {{LRQ-DiT: Log-Rotation Post-Training Quantization of Diffusion Transformers for Text-to-Image Generation}},
  year = {2025},
  eprint = {2508.03485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.03485},
}
Figure