Calibrate in Context: Efficient Data-Free Quantization from Small Synthetic Pools

Haowen Hua, Sen Lin, Yaokun Huang, Zeyi Shao, Hao Zhang, Wei Sui, John See, Zeyd Boukhers, Cong YangarXiv 2026

TL;DR

This paper introduces Functional Grid Calibration (FGC), a method that significantly boosts the efficiency of data-free quantization (DFQ) by accounting for how quantization errors interact within a neural network block. By combining FGC with a progressive image synthesis strategy, the authors achieve high-accuracy 4-bit quantization (W4A4) using as few as 256 synthetic images in under 30 minutes—outperforming previous state-of-the-art methods that use much larger data pools.

What Problem Does This Paper Address?

Quantizing Vision Transformers (ViTs) to low bit-widths (like 4-bit) is essential for edge deployment but typically requires the original training data to "recover" lost accuracy. When that data is unavailable due to privacy or proprietary reasons, we turn to Data-Free Quantization (DFQ), which synthesizes "fake" images from a teacher model to train a low-bit student.

The authors identify two major bottlenecks in current DFQ:

  1. Synthesis Cost: Generating high-quality synthetic images is computationally expensive.
  2. Suboptimal Calibration: Standard calibration methods (like minimizing Mean Squared Error) look at operators in isolation. However, a quantization setting that looks "locally" perfect might actually be worse when placed in the "context" of the whole model because it fails to account for how errors from previous layers accumulate or cancel out.

Methods

The authors propose a two-pronged approach to make small synthetic image pools highly effective:

1. Functional Grid Calibration (FGC)

Instead of calibrating an operator against the original teacher's output, FGC calibrates against a "contextual" target. It takes the student's actual (distorted) input to a block, runs a full-precision (FP) version of that block, and uses those responses as the calibration target.

  • Why it works: This captures "within-block distortion." By evaluating candidates at their consuming operators while keeping weights fixed, FGC can choose activation grids that potentially cancel out preceding errors.
The FGC pipeline: (1) Progressive synthesis, (2) Contextual calibration, and (3) Student recovery via distillation.

2. Progressive Inversion

For image synthesis, rather than updating images through the entire deep teacher model from the start, they use progressive inversion. They start by synthesizing images through shallow teacher prefixes and gradually increase the depth. This allocates more "update work" to the earlier layers of the teacher, which the authors find improves the utility of the resulting synthetic pool.

Datasets

The method was evaluated on standard computer vision benchmarks:

  • ImageNet (ILSVRC 2012): Used as the primary evaluation metric for Top-1 accuracy.
  • ImageNetV2 (MatchedFrequency split): Used to verify that the low-budget synthetic checkpoints generalize well to out-of-distribution data.
  • Models: Tested across nine backbones, including various sizes of DeiT, ViT, and Swin Transformers.

Key Insights and Ideas

  • "Locally better can be contextually worse": The authors demonstrate that reducing local error can sometimes remove "useful cancellation" of preceding distortions, leading to higher overall error. FGC explicitly exploits these error interactions.
  • Quality over Quantity in Synthesis: A key finding is that performing more updates on a smaller number of images (e.g., 256 images with 500 updates) is more effective than fewer updates on a larger pool (e.g., 512 images with 250 updates) at the same computational cost.
  • Efficiency: FGC brings "block context" to the calibration process at a cost nearly as low as local scoring, making it highly practical for rapid model deployment.

Key Results

The proposed pipeline sets a new efficiency frontier for data-free quantization:

  • Accuracy vs. Time: On an RTX 5090, DeiT-S and ViT-S reached 68.20% and 66.90% ImageNet Top-1 accuracy (W4A4) in just 26–27 minutes using only 256 images.
  • Comparison to MimiQ: The pipeline outperformed a strengthened version of MimiQ (a leading baseline) by 13.03 to 24.36 percentage points while being significantly faster.
  • Scaling: With 1,000 images, the method exceeded MimiQ's reported accuracy in all 18 tested W4A4/W5A5 settings across all nine backbones.
Figure 1. High accuracy from small synthetic pools at low preparation cost. Our 256-image configurations outperform reduced-budget MimiQ at lower total preparation cost. W4A4 timings include synthesis, calibration and recovery on one RTX 5090. Labels indicate pool size; each curve fixes the inversion updates per image. Our bars span two recovery seeds. 100× denotes amplified ordinary-activation scale gradients; external configurations are defined in Sec. 4.1.

Limitations and Future Work

  • Architecture Specificity: While the method works well for Transformers (including hierarchical ones like Swin), the progressive inversion strategy is currently optimized for "flat" transformer architectures.
  • Weight Quantization: This work focuses heavily on activation grid calibration; the authors suggest that extending these contextual principles to weight reconstruction (e.g., integrating with methods like AdaRound) could be a promising future direction.
  • Teacher Dependency: Like all DFQ methods, it still requires access to a high-quality full-precision teacher model.

Summary updated

Abstract

We enable accurate low-bit recovery from small synthetic pools by improving both image synthesis and student preparation. A grid with lower local response error can incur greater error in the student's block context. Functional Grid Calibration (FGC) selects activation scales and integer offsets against full-precision responses constructed from the student's current block input. With weights fixed during calibration, FGC evaluates candidates only at their consuming operators, bringing block context to calibration at nearly local-scoring cost. For DeiT and ViT, progressive inversion updates the same images through increasingly deep teacher prefixes. With 1,000 images, the complete pipeline exceeds MimiQ's reported accuracy in all 18 W4A4/W5A5 settings across nine backbones. With 256 images, DeiT-S and ViT-S reach 68.20% and 66.90% ImageNet top-1 accuracy at W4A4 in 26-27 minutes on one RTX 5090. The pipeline outperforms strengthened 1K-image MimiQ by 13.03 and 24.36 percentage points at lower preparation cost and the same recovery-update count. The same low-budget checkpoints retain their advantage on ImageNetV2.
BibTeX
@misc{hua2026calibrate,
  author = {Haowen Hua and Sen Lin and Yaokun Huang and Zeyi Shao and Hao Zhang and Wei Sui and John See and Zeyd Boukhers and Cong Yang},
  title = {{Calibrate in Context: Efficient Data-Free Quantization from Small Synthetic Pools}},
  year = {2026},
  eprint = {2611.25711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25711},
}
Figure