Synthesizing the Calibration Text That Real Corpora Never Show the Quantizer

Shrinking a large language model's weights to 2 or 3 bits needs a small "calibration set": a few hundred text sequences run through the model so the quantization algorithm can see which weights and activations matter. Recent work shows that much of the damage at low bit-widths comes from what this set fails to show. A few hidden dimensions, called outlier channels, occasionally fire at very large magnitudes and carry a large share of the model's computation. If no calibration sequence makes them fire, the quantizer treats them as unimportant and rounds them away. Today the only fix is to choose better sequences from a fixed real corpus. If the corpus never triggers a channel, which is likely for math, code, or private domains missing from web crawls, then selecting harder from it cannot help.

We propose to have the full-precision model generate the missing calibration text itself. A small anchor of real text sets the overall statistics. A handful of synthetic sequences are then generated under a search that rewards two things at once: firing the outlier channels the anchor missed, and staying fluent under the full-precision model. This borrows the central lesson of hybrid synthetic-real training, that synthetic data supplies the rare tail cases and a small real fraction keeps the model on the true distribution, and applies it to the calibration step of post-training quantization (PTQ, quantizing a trained model without retraining it). The claim is testable. At a fixed budget of 128 sequences, a mostly-real set with a few targeted synthetic sequences should reduce both 2–3-bit downstream degradation and its sensitivity to the random seed more than the best selection from a real pool. The gain should be largest on reasoning domains that the real pool covers poorly.

Core Claim and How It Differs From Prior Work

Several papers motivate this proposal. Coverage-Based Calibration for Post-Training Quantization via Weighted Set Cover over Outlier Channels (COVERCAL) shows that PTQ error is driven by calibration sequences that fail to activate outlier channels, defined as activations above the pool mean plus six standard deviations. It greedily selects RedPajama sequences that maximize weighted channel coverage. On the Impact of Calibration Data in Post-training Quantization and Pruning shows that the choice of calibration sample alone can swing downstream accuracy by nearly 10%, and that perplexity hides this swing. Both papers stay inside naturally occurring text. COVERCAL's coverage is limited by its candidate pool, and our method removes that limit by generating candidates.

Two papers supply the method, and one constrains it. GenQ calibrates quantized vision networks with diffusion-generated images. Its prompts are generic class names, and it filters samples afterward rather than steering generation toward particular internal activations. Widening the Gap: Exploiting LLM Quantization via Outlier Injection shows that structured inputs can reliably trigger outlier channels, but it uses this as an attack. That paper is also a warning. Inputs optimized only to fire channels may be unnatural, and calibrating on them could bend the quantizer's error statistics away from real use. SynQ adds a similar caution from vision: fully synthetic calibration data carries artifacts that distract the quantized model. These cautions are why the design includes both a real anchor and a fluency term. The real-anchor idea comes from Direction 1, where Day-to-Night Image Synthesis for Training Nighttime Neural ISPs finds that 5–10% real data brings synthetic-trained models close to fully real-trained ones. Expecting the Unexpected shows that targeted synthetic tail cases cut pedestrian-detector miss rate from 72.39% on real data alone to 45.97%.

Research Program

The pipeline has three stages. First, we define the channels we need to reach. We run the full-precision model on a broad, multi-domain probe set covering web text, math, and code, and record every channel that becomes an outlier anywhere. We weight each channel by its squared activation magnitude and its contribution to the layer output, following COVERCAL. The real anchor, for example 112 of the 128 sequences, is chosen by COVERCAL from the real pool. Channels the anchor leaves uncovered become the targets.

Second, the full-precision model generates the remaining sequences from short seed prompts. Generation uses best-of-N sampling with a reranking score. For a candidate sequence $x$ we score

$$ R(x) = \sum_{c \in U} w_c \min\!\left(1, \frac{a_c(x)}{\tau_c}\right) + \lambda \, \frac{1}{|x|}\log p_{\text{FP}}(x), $$

where $U$ is the set of uncovered channels, $w_c$ is channel $c$'s COVERCAL weight, $a_c(x)$ is the peak activation of $c$ on $x$, $\tau_c$ is its outlier threshold, $p_{\text{FP}}$ is the full-precision model's likelihood, and $\lambda$ trades coverage against fluency. After each sequence is accepted, the channels it covers are removed from $U$. This greedy rule keeps the submodular coverage structure COVERCAL relies on.

Third, the mixed set is passed unchanged to standard quantizers: GPTQ at 3 and 2 bits, and QuIP at 2 bits. The analysis tracks three things. We measure per-layer reconstruction error on held-out real text. We measure how far the calibration statistics drift from those computed on real data, using the distance between the per-layer Hessians each quantizer computes from calibration data. And we test whether the gains concentrate in layers whose outlier channels were recovered by synthesis.

Baselines

The naive reference is GPTQ calibrated on 128 random C4 sequences, run over 10 seeds. On LLaMA2-7B at 3 bits, Cherry on Top reports a C4 perplexity of 8.28 for GPTQ. We reproduce this number before comparing anything to it.

The strongest data-side competitor is COVERCAL itself, selecting all 128 sequences from the same RedPajama pool. We run it at the paper's 10,000-sequence pool size and also at a 100,000-sequence multi-domain pool that adds math and code text. The file has no reported downstream numbers for COVERCAL (no reported result found on Lacuna for COVERCAL's per-benchmark accuracies), so we rerun it ourselves.

The strongest structure-side competitor is QuIP, which rotates the weights by random orthogonal matrices to spread outlier energy before rounding. QuIP reports 6.33 WikiText-2 perplexity at 2 bits on Llama 2 70B, against 123.91 for OPTQ.

Every method gets the same 128-sequence, 2048-token budget, the same quantizer settings, and the same tuning grid for $\lambda$ and the anchor fraction. That grid is tuned on a held-out validation split, never on the test benchmarks. The ablations isolate each ingredient. Plain self-generated text with no coverage term tests whether synthesis alone helps. Coverage-only generation with $\lambda=0$ produces outlier-injection-style triggers. A 100% synthetic set with no anchor tests the role of real data. An anchor-fraction sweep from 0% to 100% maps the trade-off.

Beating the strongest competitor means two things across 10 seeds. Mean accuracy must be significantly higher than COVERCAL on the larger pool for MATH-500 or GSM8K, with no loss on ARC-Challenge, HellaSwag, WinoGrande, and MMLU. The spread of accuracy across seeds must also be smaller.

Why not just…?

Why not just use more real calibration data, or select from a bigger real pool? This is the most serious threat. If COVERCAL on the 100,000-sequence multi-domain pool covers the same channels as our synthesis, the generator adds nothing. We will report channel coverage and accuracy as a function of real pool size. The proposal survives only if some high-weight channels stay uncovered at the largest pool size, or if synthesis matches large-pool coverage while starting from a much smaller pool. The second case still matters when, as GenQ documents, real in-domain data cannot be exported. If neither holds, we will report that result.

Why not just remove outliers with rotations or keep them in high precision? QuIP rotations and the FP16 "cherry" parameters of Cherry on Top address outliers in the model structure rather than the data. However, QuIP still computes its Hessian from calibration data, and mixed precision needs custom kernels to run efficiently. We run every calibration set under QuIP as well as GPTQ. If the gap between the hybrid set and COVERCAL disappears under QuIP, the method is only useful for rotation-free quantizers. That is a narrower finding, but still a clear one.

Why not just use fully synthetic, data-free calibration? SynQ shows that fully synthetic calibration needs frequency filtering and saliency alignment to avoid fitting artifacts. Fake & Square reports roughly 65% accuracy for 100%-synthetic training against 84.04% with real data added. The no-anchor ablation and the anchor-fraction sweep test whether the same pattern holds for language-model calibration.

Why not just recover accuracy with LoRA or quantization-aware training afterward? Retraining is orthogonal to calibration, not a replacement for it. An empirical study of LLaMA3 quantization also reports that fine-tuning quantized LLaMA3 on small instruction data with LoRA, which adds small trainable low-rank matrices, can perform worse than not fine-tuning at all. We keep the comparison to PTQ, where calibration is the only data the method sees.

Proposed Experiments and Decisive Checks

The models are LLaMA-2-7B, LLaMA-3-8B, and Mistral-7B, the families COVERCAL used, plus Qwen3-8B as a reasoning model. Bit-widths are 3 and 2 bits. Metrics are WikiText-2 and C4 perplexity, zero-shot ARC-Challenge, HellaSwag, WinoGrande, and MMLU, and GSM8K and MATH-500 for reasoning. We also measure the standard deviation of every metric across 10 calibration seeds.

Three results would decide the question. The first is a coverage-to-accuracy link. Gains should appear in the layers whose outlier channels synthesis recovered, and recovering a random set of non-outlier channels should give no gain. The second is the fluency check. The coverage-only ablation should perform worse than the hybrid set and show larger drift in the calibration Hessians. That would confirm that the outlier-injection triggers are harmful as calibration data and that the real anchor and likelihood term are what make synthetic tail data safe. The third is the domain split. The hybrid set's advantage over COVERCAL should be largest on MATH-500 and GSM8K, the domains a web pool underrepresents, and close to zero on HellaSwag. If the gains are instead uniform across benchmarks, the method is working through some mechanism other than outlier coverage, and the core claim would be wrong.