Skip to main content
QUICK REVIEW

[Paper Review] Gradient-Aligned Calibration for Post-Training Quantization of Diffusion Models

Dung Anh Hoang, Cuong Pham anh Trung Le|arXiv (Cornell University)|Feb 1, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

The paper introduces a meta-learning based calibration framework that learns samplewise weights to align gradients across diffusion timesteps during post-training quantization, improving generation quality on diffusion models.

ABSTRACT

Diffusion models have shown remarkable performance in image synthesis by progressively estimating a smooth transition from a Gaussian distribution of noise to a real image. Unfortunately, their practical deployment is limited by slow inference speed, high memory usage, and the computational demands of the noise estimation process. Post-training quantization (PTQ) emerges as a promising solution to accelerate sampling and reduce memory overhead for diffusion models. Existing PTQ methods for diffusion models typically apply uniform weights to calibration samples across timesteps, which is sub-optimal since data at different timesteps may contribute differently to the diffusion process. Additionally, due to varying activation distributions and gradients across timesteps, a uniform quantization approach is sub-optimal. Each timestep requires a different gradient direction for optimal quantization, and treating them equally can lead to conflicting gradients that degrade performance. In this paper, we propose a novel PTQ method that addresses these challenges by assigning appropriate weights to calibration samples. Specifically, our approach learns to assign optimal weights to calibration samples to align the quantized model's gradients across timesteps, facilitating the quantization process. Extensive experiments on CIFAR-10, LSUN-Bedrooms, and ImageNet demonstrate the superiority of our method compared to other PTQ methods for diffusion models.

Motivation & Objective

  • Motivate and address gradient conflict arising from treating calibration samples across timesteps equally in PTQ of diffusion models.
  • Propose a meta-learning framework to learn optimal sample weights that align gradients across timesteps during quantization.
  • Develop a bi-level optimization formulation and surrogate gradient matching objective to enable stable calibration.
  • Demonstrate improved generative fidelity (FID/sFID) over prior PTQ methods on standard datasets.

Proposed method

  • Formulate calibration data with a weighted training set where each calibration sample has a learnable weight ω_i.
  • Define a bi-level objective where the weighted quantized model minimizes a validation loss that includes gradient matching and MSE terms.
  • Introduce a gradient-matching validation loss L_GM to promote coherence of gradient directions across timesteps.
  • Propose Algorithm 2 as a surrogate optimization that implicitly minimizes the target validation objective by minimizing a surrogate GM loss.
  • Use AdaRound with block reconstruction for weight quantization and EMA-based activation quantization, following PTQ conventions.
  • Train sample weights ω with a meta-optimization loop (Adam optimizer) and update quantized model θ_Q blockwise across timesteps.

Experimental results

Research questions

  • RQ1Can gradient conflict across diffusion timesteps hinder PTQ performance, and can this conflict be mitigated by weighting calibration samples?
  • RQ2Does learning timestep-aware sample weights improve gradient alignment and quantization quality for diffusion models?
  • RQ3What is the impact of gradient alignment on overall quantization performance across CIFAR-10, LSUN-Bedrooms, and ImageNet?
  • RQ4How does the proposed method compare to existing PTQ methods for diffusion models in terms of FID/sFID metrics?

Key findings

  • The method yields superior FID and sFID scores compared to prior PTQ methods on CIFAR-10, LSUN-Bedrooms, and ImageNet under various bitwidths.
  • Gradient alignment across timesteps improves calibration effectiveness and reduces gradient conflicts during quantization.
  • The approach maintains competitive inference-time efficiency, with training-time overhead modest relative to gains in generation quality.
  • The method remains effective even with very few timesteps and small validation sets, showing robustness of the sample-weight learning strategy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.