Abstract
Diffusion Models (DMs) have revolutionized generative AI but remain computationally intensive due to their iterative nature and high-precision requirements. Quantization offers a path to efficiency, yet it suffers from cross-timestep error propagation, where small errors at early steps snowball into significant image degradation. This paper introduces Cross-Timestep Error Correction (CTEC), a distillation-based approach that utilizes Low-Rank Adaptation (LoRA) to train quantized models to actively correct for inherited drift. By shifting the objective from simple noise estimation to error-aware correction, CTEC achieves state-of-the-art performance at ultra-low bitwidths, such as 2-bit weights, while maintaining high image fidelity.
Introduction
Diffusion Models like Stable Diffusion are the gold standard for high-quality image generation. However, their reliance on high-precision (FP32/FP16) neural network passes across dozens of iterations makes them difficult to deploy on edge devices. Quantization—converting these weights and activations to low-precision integers (e.g., INT8 or INT4)—is a common solution, but it introduces a unique challenge in iterative models: error propagation.
A minor quantization error at an early timestep changes the input for the subsequent step. This "drift" accumulates, often causing the final output to lose structural integrity or devolve into noise. Previous Post-Training Quantization (PTQ) methods focused on minimizing per-step error, ignoring the fact that the model is often denoising an already corrupted input.
Methodology: Cross-Timestep Error Correction (CTEC)
The authors propose a fundamental shift in how quantized models are trained. Instead of forcing the quantized model to mimic the full-precision teacher's output for a given step, they train it to be a "corrective teacher."
The CTEC Objective
The discrepancy between a full-precision sample ($x_{t-1}$) and a quantized sample ($x'_{t-1}$) is mathematically decomposed into two components: the current step's noise estimation error and the error carried over from the previous step ($x_t - x'_t$). CTEC modifies the distillation target so the model learns to predict the noise plus a correction term that offsets this accumulated drift.
Efficient Distillation with LoRA
To implement this correction without the prohibitive cost of full model retraining, the authors employ Low-Rank Adaptation (LoRA). By freezing the original weights and training only small adapter matrices, the model efficiently learns the complex mapping required for error correction. A hyperparameter $\gamma$ balances the trade-off between mimicking the teacher and applying the correction; empirical results suggest $\gamma = 0.6$ provides optimal stability.
Experimental Results and Insights
The method was evaluated on standard benchmarks including LSUN-Churches, LSUN-Bedrooms, and ImageNet (256x256 resolution).
Stability and Error Reduction
A key insight of the paper is that stability is more critical than instantaneous accuracy. Without CTEC, quantization errors exhibit dramatic perturbations, spiking and oscillating across timesteps. CTEC ensures that error growth remains gradual and slight. Quantitative analysis shows that CTEC reduces the Mean Squared Error (MSE) of the denoising process by approximately 10x compared to uncorrected baselines.
State-of-the-Art Performance
CTEC consistently outperforms existing methods like EfficientDM and Q-Diffusion, particularly at ultra-low bitwidths:
- ImageNet (W2/A8): CTEC achieved an Inception Score (IS) of 176.37 and an FID of 7.43, significantly outperforming PTQD (FID 39.37).
- LSUN Benchmarks: At W4/A4, CTEC maintained superior image diversity and structural accuracy across both dataset categories.
Conclusion
CTEC addresses the fundamental "snowball effect" of quantization errors in diffusion models. By leveraging LoRA-based distillation to learn a corrective denoising path, it enables high-quality generation at unprecedented compression levels. Future work includes exploring CTEC's performance on Transformer-based diffusion models (DiTs) and its efficacy in extremely short sampling regimes (1-4 steps).
Summary updated