Error Propagation Mechanisms and Compensation Strategies for Quantized Diffusion Models

Songwei Liu, Chao Zeng, Chenqian Yan, Xurui Peng, Xing Wang, Fangmin Chen, Xing Mei

Abstract Diffusion models have revolutionized image and video synthesis, but their iterative denoising process makes them computationally expensive for edge deployment. Post-training quantization (PTQ) is a popular compression technique, yet it suffers from a critical flaw in diffusion models: stepwise quantization errors accumulate over time, degrading output fidelity. Researchers from ByteDance have introduced TCEC (Timestep-aware Cumulative Error Compensation), a novel framework that mathematically models and mitigates this "snowball effect." By applying a lightweight, timestep-specific correction during generation, TCEC achieves state-of-the-art 4-bit performance with negligible latency overhead.

The Challenge: The "Snowball Effect" of Quantization

Quantizing a neural network—such as reducing weights and activations from 16-bit floats to 4-bit integers—inherently introduces noise. In standard architectures like image classifiers, this quantization error occurs in a single forward pass. However, diffusion models operate differently. They use an iterative denoising process where the model's output at one step becomes its input for the next.

Consequently, a minor quantization error introduced at step $T$ is amplified at step $T-1$, which then cascades into step $T-2$, and so forth. This "snowball effect" results in muddy textures, loss of fine details, and overall reduced image fidelity. While previous research has focused on minimizing the error of individual steps, the dynamics of how these errors accumulate over the entire sampling trajectory have largely been ignored.

The TCEC Framework: Theory and Practice

To address cumulative error, the researchers developed a three-pronged approach combining rigorous mathematical modeling with practical approximations.

1. Mathematical Formulation

The authors derived the first closed-form solution for cumulative error in Diffusion Models. Using the DDIM solver as a baseline, they formulated an error propagation equation that explicitly links the quantization error at the current denoising step to the errors from all preceding steps.

2. Strategic Simplifications

Calculating exact error propagation in real-time is computationally prohibitive due to the need for complex Jacobian matrices. To make the math actionable, the team proved two critical approximations:

  • Jacobian-Free Dynamics: For well-trained diffusion models, local input perturbations do not cause wild fluctuations in the output. This stability allows the framework to bypass expensive Jacobian calculations.
  • Temporal Locality: The researchers mathematically demonstrated that the cumulative error at any given step is overwhelmingly driven by the errors of the immediately preceding steps.

3. The Compensation Mechanism

Instead of requiring costly model retraining, TCEC utilizes a brief calibration phase. It pre-computes channel-wise scaling matrices ($K_t$) for each timestep using a small dataset. During inference, the model estimates its own quantization error at each step and subtracts it. This continuous micro-correction keeps the generation trajectory aligned with the original, uncompressed floating-point model.

Key Insights

  • Errors are Structured: Visualizations reveal that quantization errors are not merely random white noise. They are highly correlated with the model's output, particularly in high-frequency regions like edges and complex textures. This predictability is what enables TCEC to effectively cancel out the error.
  • The "Two-Step" Rule: Because of temporal locality, correcting the current step does not require the entire history of the denoising process. Looking back just one or two steps captures the vast majority of the error propagation.
  • Orthogonality: TCEC is not a standalone quantization algorithm; it is a complementary "overlay." It can be integrated with existing PTQ methods (like SVDQuant or ViDiT-Q) to significantly boost their performance.

Experimental Validation and Results

The researchers validated TCEC across diverse architectures (UNet and DiT) and tasks, including image generation (SDXL, SDXL-Turbo, PixArt-$\Sigma$) and video generation (OpenSora, CogVideoX, Wan2.1).

  • Superior Fidelity: On SDXL (W4A4), adding TCEC improved the PSNR by 1.2 dB over the SVDQuant baseline. In several evaluations, the 4-bit model enhanced with TCEC even outperformed standard 8-bit quantized models.
  • Hardware Efficiency: For a 12-billion parameter model running on an RTX 4090, TCEC-W4A4 reduced the memory footprint by 3.5x and delivered a 3x speedup compared to standard weight-only quantization (NF4).
  • Negligible Overhead: The additional computations required for TCEC's error compensation add less than 0.5% to the total inference time.
  • Human Preference: In video generation tasks using CogVideoX, human evaluators preferred the TCEC-W4A8 outputs over the standard quantized baseline by a margin of +8.72% in overall quality.

Limitations and Future Directions

While TCEC represents a major leap forward for deploying diffusion models on edge devices, the authors note a few limitations:

  • Solver Specificity: The current error propagation equations are derived specifically for solvers like DDIM and DPM++. Adapting the framework to new, specialized ODE solvers may require manual mathematical re-derivation.
  • Calibration Dependency: TCEC relies on a small set of representative samples (e.g., from COCO or WebVid) to calculate the scaling matrices prior to deployment.
  • Extreme Quantization: The linear approximations that make TCEC efficient are proven for 4-bit and 8-bit quantization. It remains an open question whether these assumptions hold at ultra-low bit-widths (e.g., 2-bit), where quantization errors may become highly non-linear.

Ultimately, TCEC provides a robust, theoretically grounded solution to one of the most persistent bottlenecks in generative AI deployment, paving the way for high-fidelity diffusion models on consumer hardware.

Summary updated

BibTeX
@inproceedings{liu2026error,
  author = {Songwei Liu and Chao Zeng and Chenqian Yan and Xurui Peng and XING WANG and Fangmin Chen and Xing Mei},
  title = {{Error Propagation Mechanisms and Compensation Strategies for Quantized Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=4YIY66tpvQ},
}
Figure