TL;DR
DiTAS is a new post-training quantization (PTQ) method that allows Diffusion Transformers (DiTs) to run using 4-bit weights and 8-bit activations (W4A8) with almost no loss in image quality. By introducing "Temporal-aggregated Smoothing" and a training-free LoRA integration, the researchers managed to shrink these massive models by nearly 8x, making high-quality AI image generation much more feasible for mobile and edge devices.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the gold standard for visual generation (powering models like OpenAI’s Sora), but they are computationally expensive. Unlike traditional U-Net diffusion models, DiTs have massive parameter counts and require dozens of iterative denoising steps, making them slow and memory-hungry.
To fix this, researchers usually turn to quantization—converting 32-bit floating-point numbers into lower-precision formats like 8-bit or 4-bit integers. However, DiTs are notoriously difficult to quantize. They suffer from "channel-wise outliers"—specific channels in the data that have much larger values than others—which cause massive errors when compressed. Crucially, these outliers in DiTs aren't static; they shift and change across the different time steps of the denoising process, meaning standard "one-size-fits-all" quantization methods fail.
Methods
The authors propose three main innovations to tackle the unique challenges of DiTs:
- Temporal-aggregated Smoothing (TAS): Inspired by "SmoothQuant" (used in Large Language Models), TAS migrates the quantization difficulty from activations to weights. However, since DiT activations change over time, TAS aggregates outlier information across all denoising time steps to find a balanced scaling factor that works for the entire generation process.
- Layer-wise Grid Search: Rather than using a fixed mathematical formula to balance the smoothing, the authors use a grid search to find the optimal smoothing factor ($\alpha$) for every single layer. This ensures the best possible trade-off between weight and activation precision.
- Training-free LoRA for Weights: To compensate for the errors introduced by 4-bit weight quantization, the authors integrate Low-Rank Adaptation (LoRA) modules. Instead of a full, expensive fine-tuning process, they use Alternating Optimization (AO) and Singular Value Decomposition (SVD) to mathematically "fit" the LoRA weights to the quantization error in a data-free manner.
Datasets
The researchers evaluated DiTAS using the standard industry benchmarks for image generation:
- ImageNet 256×256: A classic dataset for conditional image generation.
- ImageNet 512×512: A higher-resolution version to test the model's scaling capabilities.
- Calibration Set: They used a tiny set of just 12 samples to calibrate the quantization parameters, making the method highly efficient.
Key Insights and Ideas
- The Temporal Trap: The "aha moment" here is the realization that quantization methods for LLMs don't work for DiTs because of the time dimension. In an LLM, an outlier channel is usually always an outlier. In a DiT, a channel might be well-behaved at step 1 but explode at step 50. TAS solves this by "looking" at the whole timeline.
- Shifting the Burden: Quantizing activations is hard because they change with every input. Quantizing weights is "easier" because they are static. DiTAS intentionally makes the weights harder to quantize (by shifting outliers into them) so that the activations become easier to handle, then uses the LoRA/AO trick to "fix" the weights.
- Efficiency without Fine-tuning: Most high-performance quantization requires "Quantization-Aware Training" (QAT), which is slow and requires massive GPUs. DiTAS achieves QAT-level performance using only a few calibration samples and mathematical optimization.
Key Results
- Near-Lossless Compression: On ImageNet 256x256, the W4A8 DiTAS model achieved an FID score of 6.86 (lower is better), which is remarkably close to the full-precision (FP32) score of 5.00 and significantly better than previous state-of-the-art methods like PTQ4DiT (7.75).
- Massive Memory Savings: The model size was reduced from 2575 MB (FP32) down to 324 MB (W4A8), a nearly 8x reduction in storage and memory footprint.
- Robustness: The method held up across different sampling steps (50 vs 100) and higher resolutions (512x512), proving it isn't just "overfitting" to a specific setting.
Limitations and Future Work
- MLP Precision: The authors noted that the "conditioning MLP" (the part of the model that processes the class labels or text prompts) is still kept at full 32-bit precision. While its computational cost is small, a truly "all-INT" model remains a future goal.
- Optimization Time: While "training-free," the grid search and Alternating Optimization still require a one-time computational cost during the quantization phase.
- Broader Architectures: While tested on DiT-XL/2, future work could explore how these temporal smoothing techniques apply to even larger video generation models or different transformer backbones like those found in Stable Diffusion 3.
Summary updated