Quantization shrinks a trained network so it can run on phones and microcontrollers. It does this by storing weights and activations in 2–4 bits instead of 32. Getting a good low-bit model still requires a small set of representative images, called calibration data, and when privacy rules make real images unavailable, practitioners generate them. The current best recipe runs a text-to-image diffusion model (a generator that turns random noise into an image over dozens of denoising steps) to completion for every candidate image. It then throws many of the results away with quality filters. Every discarded image is a full trajectory of wasted GPU work. The images that survive are chosen for looking plausible to the original network, not for being useful to the compressed one.
We propose to treat calibration-data synthesis as a cascade, the same kind used in efficient inference. Many cheap partial denoising trajectories are started. At an early step, the diffusion model's own running estimate of the final image is scored by the full-precision network and the current quantized network. Only candidates on which the two networks disagree, and which pass the filters, are denoised to completion. The claim is that most of the synthesis compute in diffusion-based data-free quantization can be cut at equal or better low-bit accuracy. A second claim is that spending compute on disagreement cases is what makes the saving possible without an accuracy loss.
Core Claim and Relation to Prior Work
The direct predecessor is GenQ. It prompts Stable Diffusion v1.5 with class names, or with tuned prompt embeddings in the one-shot setting. It then filters finished images three ways: an energy-based out-of-distribution score, BatchNorm-statistics sensitivity for CNNs, and patch-similarity entropy for Vision Transformers. GenQ supplies our generator, prompts, and filters. It motivates the proposal in two ways. First, it runs full trajectories and filters only afterwards. Second, generation is independent of the quantized network's current errors. GenQ reports only that diffusion sampling is up to 15x faster than image inversion. We found no reported result on Lacuna for GenQ's total synthesis GPU-hours or filter rejection rate, so our first deliverable is to measure them.
Two GAN-based methods tell us which samples to spend compute on. Qimera shows that calibration samples near decision boundaries help low-bit accuracy far more than "clean" class-centroid samples. It synthesizes such samples by mixing class embeddings. Adaptive Data-Free Quantization (AdaDFQ) shows that sample difficulty must match the target bitwidth. It splits samples into "disagreement" samples, where the full-precision teacher is right and the quantized student is wrong, and "agreement" samples. It trains a generator adversarially to balance the two. We borrow AdaDFQ's disagreement signal. We use it differently: as a stopping rule inside a pretrained diffusion sampler, not as an adversarial training objective. This avoids AdaDFQ's generator-training overhead and instability and keeps GenQ's cross-architecture image quality.
Energy-efficient Amortized Inference with Cascaded Deep Classifiers supplies the method template. It stops inference early on easy inputs using intermediate confidence, and reports matching ResNet-110 on CIFAR-10 at 18.16% of the FLOPs. We apply that logic to the generator rather than the deployed classifier. That is the move the research file's second gap notes nobody has made.
We measure cost as total denoiser evaluations. If candidate $i$ is denoised for $t_i$ steps, the synthesis cost is $C=\sum_i t_i$. Full-trajectory pipelines pay $C = N T$ for $N$ candidates and $T$ steps. We report quantized top-1 accuracy as a function of $C$ and also in GPU-hours.
Research Program
The sampler works in three stages.
- Candidate launch. For each class prompt, it launches a batch of candidates and runs them to an early checkpoint step $k$ of the sampler, for example 20–30% of $T$.
- Early scoring. At step $k$ it forms the diffusion model's predicted clean image, which standard samplers compute at every step anyway. It then applies two tests:
- GenQ's cheap filters, using the full-precision network.
- A disagreement score: the divergence between the full-precision and current quantized network's predictions, gated on the full-precision network being confident in the prompted class.
- Selective completion. Candidates below a threshold are dropped. Survivors continue to $T$ and are rescored on the finished image before joining the calibration pool.
The pool is used in two regimes. In post-training quantization, the quantized network is rebuilt from the growing pool in rounds. In quantization-aware training, the student used for scoring is the live training checkpoint, refreshed every few hundred iterations. This makes selection track the student's evolving errors, as AdaDFQ intends. A fixed fraction of agreement samples is kept, following AdaDFQ's finding that disagreement-only data destabilizes the student.
The analysis has three parts:
- The rank correlation between filter and disagreement scores at step $k$ and at step $T$, measured as a function of $k$.
- Where along the trajectory usefulness for calibration becomes predictable.
- Whether the gain concentrates at the lowest bitwidths, which AdaDFQ's results would predict.
Baselines
The naive reference point is GenQ-style data-free calibration with class-name prompts, full trajectories, and no filtering, at the same number of retained images. It shows what raw generation buys.
The strongest existing diffusion method is the full GenQ pipeline with all three filters, rerun by us so its synthesis cost is logged. Its reported result is 76.10% top-1 for 4-bit quantization-aware training of ResNet-50 on ImageNet (GenQ). For W2A4 on MobileNetV2 and MnasNet, GenQ reports only a margin of over 4% above prior methods, not an absolute number we can quote. Beating GenQ means one of two outcomes: matching its accuracy within 0.3 points at half or less of its denoiser evaluations, or exceeding it by at least 1 point at equal cost.
For the 3-bit regime the strongest reported data-free competitor is AdaDFQ. It reports 38.10% top-1 on ResNet-18 at 3 bits on ImageNet, versus 20.23% for GDFQ and 1.17% for Qimera, and 28.99% on MobileNetV2 at 3 bits (Adaptive Data-Free Quantization). We run AdaDFQ from its published setup and count its generator-training compute in the same GPU-hour currency. Qimera's reported 66.25% on ResNet-50 W4A4 serves as the 4-bit GAN reference (Qimera).
Every method gets the same quantizer, the same quantization-aware training schedule, and the same number of retained calibration images. Every method also gets the same hyperparameter search budget, set in trials, for thresholds, the checkpoint step, and filter settings.
Four ablations isolate the key ingredient:
- Filters only at step $k$. Early rejection using GenQ's filters alone, with no disagreement term, tests whether early rejection alone explains the savings.
- Disagreement only at step $T$. Disagreement selection applied only to finished images tests whether early prediction matters or only the selection criterion does.
- Random rejection. Random early rejection at the matched drop rate tests whether any pruning of candidates would do.
- Fixed full-precision reference. Replacing the live student with a fixed full-precision-only confidence score tests whether tracking the student is necessary.
Why not just…?
Why not just run the diffusion sampler with fewer steps for every image? This is the most serious threat, because calibration may not need photorealistic detail. It would be cheaper and simpler than a cascade. We therefore sweep uniform step counts, from a handful of steps up to $T$, as a full cost-accuracy curve. The proposal only survives if its curve lies above that one. The two ideas also combine: early rejection can run on top of a short sampler. If uniform reduction dominates, we will report that step count is the whole story. We will then redirect the method to deciding per sample how many steps to spend rather than whether to finish.
Why not just generate fewer images, since post-training calibration uses small sets anyway? The number of retained images is fixed across all arms, so this alternative is already controlled. The real question is how many candidates must be generated to obtain them. Random subsampling of GenQ's output is included implicitly through the random-rejection ablation. AdaDFQ's finding that mismatched difficulty causes underfitting at 3 bits and overfitting at 5 bits suggests that which images are kept matters more than how many.
Why not just use model inversion or a GAN generator, as GDFQ and Qimera do? GenQ reports diffusion sampling to be up to 15x faster than high-quality image inversion. At 3 bits, GDFQ and Qimera reach only 20.23% and 1.17% on ResNet-18 according to AdaDFQ. These methods are also tied to one architecture, whereas diffusion data transfers across CNNs and Vision Transformers. AdaDFQ is the exception worth taking seriously, and it appears as a cost-accounted baseline.
Why not just swap in a smaller or distilled generator? No paper in our file evaluates this for quantization calibration, so we have no evidence either way. It is orthogonal to the cascade. We include one smaller-generator arm to check whether the savings persist when each step is already cheap.
Proposed Experiments
The main setting is ImageNet-1k data-free and one-shot quantization, following GenQ. It covers ResNet-18, ResNet-50, MobileNetV2 and a ViT at W4A4, W3A3 and W2A4, under both post-training quantization and quantization-aware training. CIFAR-10 and CIFAR-100 serve for fast threshold and checkpoint-step sweeps. Metrics are:
- top-1 accuracy;
- total denoiser evaluations;
- GPU-hours including filter and scoring passes;
- the fraction of generated candidates that end in the pool.
The first decisive check is the early-prediction test. If the Spearman correlation between disagreement at step $k$ and at step $T$ is weak (below about 0.5) at every $k$ under 40% of $T$, early rejection cannot work and the proposal fails cleanly. The second decisive check is the frontier comparison against uniform step reduction described above. The third is whether the gain grows as bitwidth drops, which would confirm that disagreement-directed spending matters most exactly where AdaDFQ found data mismatch to be most damaging.