Gold-Anchored Calibration for Task-Aware LLM Compression

Compressing a large language model so it runs on less memory, for example by storing most weights in 2 or 3 bits, works best when the compressor is told which weights matter for the task the model will actually serve. The strongest recent methods work this out by running the model on example inputs, computing how wrong it is, and back-propagating that error to score each weight. That requires knowing the right answer for each example. In practice there are two cheap sources of answers and one expensive one. The cheap ones are the uncompressed model's own outputs and unverified answers scraped from the web. The expensive one is a small set of human-verified examples. Current methods quietly assume the expensive kind, in modest quantities, and nobody has asked how the choice of answer source changes which weights get protected.

We propose to treat the examples used to tune compression (called calibration data) as a hybrid supervision problem, meaning a small trusted set is combined with a large cheap one. A large pool of cheap task prompts, scored against the full model's own outputs, supplies coverage and statistical stability. A handful of human-verified examples (32 to 128) acts as an anchor. Each cheap example's contribution to the weight-importance scores is scaled by how well its gradient agrees with the gradient of the verified set. The claim is specific. When the full model is often wrong on a task, the weights that support its correct behaviour deserve protection more than the weights that reproduce its mistakes. A small verified set can steer importance scores toward those weights cheaply. It should do this while also reducing the large seed-to-seed swings that small calibration sets cause.

Why this gap is real

Three findings motivate the proposal. The large diagnostic study On the Impact of Calibration Data in Post-training Quantization and Pruning compressed 1,800 models. It found that with 128 calibration samples, a pruned LLaMA-7B's RTE accuracy swung by nearly 10% depending only on the random C4 seed, and that no single calibration source won everywhere. That study only diagnoses the problem and uses unlabeled single-source text.

Task-Circuit Quantization (TACQ) supplies the method we build on. It scores weights by a combination of simulated quantization loss and gradient magnitude computed on task data, keeps the top-scoring few percent in 16-bit, and quantizes the rest. It shows that task-conditioned calibration is what makes 2-bit compression viable. TACQ, however, uses clean benchmark examples with gold answers and never varies where the answers come from.

GuidedQuant and AIR constrain the design. GuidedQuant weights its quantization objective by gradients of the final loss. AIR combines forward activation statistics with backward influence signals in a closed-form low-rank fit. Both show that backward signals are powerful; AIR matches baseline quality with about 90% less calibration data. Both also treat every calibration example as equally trustworthy, so their importance estimates are only as good as the targets behind the gradients.

On the hybrid-supervision side, Omni-DETR and Leveraging Web-Crawled Data for High-Quality Fine-Tuning supply the principle: a small strong set should decide how much to trust a large weak one. Omni-DETR does this by matching teacher predictions against partial labels. The web-data paper does it by training a format converter on aligned seed pairs. Neither touches compression. The second paper also warns that model-generated targets can be fluent but wrong, which is exactly the failure we expect from self-generated calibration targets.

AdaPruner is the closest attempt at choosing calibration data. It uses a Bayesian search over sequence-length filters within BookCorpus, run separately for each model and each pruning ratio. We differ on two counts. Our selection signal comes from label agreement rather than surface attributes. And our selection costs one extra backward pass per example rather than a 150-iteration outer search.

Core Claim and Mechanism

Let $\mathcal{G}$ be a small verified set and $\mathcal{W}$ a large pool of cheap task prompts. Each prompt in $\mathcal{W}$ is paired with the full model's own greedy output, or with an unverified web answer when one exists. For example $i$, let $g_i$ be the gradient of its loss, projected to a few thousand dimensions with a fixed random projection to keep the cost low. Let $\bar g_{\mathcal{G}}$ be the mean projected gradient over the verified set. Each cheap example receives a trust weight

$$c_i = \max\big(0, \cos(g_i, \bar g_{\mathcal{G}})\big),$$

and the per-weight importance score used by the compressor becomes

$$s(w) = \lambda\, s_{\mathcal{G}}(w) + (1-\lambda)\,\frac{\sum_{i\in\mathcal{W}} c_i\, s_i(w)}{\sum_{i\in\mathcal{W}} c_i}.$$

Here $s_i(w)$ is TACQ's per-example saliency for weight $w$, $s_{\mathcal{G}}(w)$ is the same score averaged over the verified set, and $\lambda$ sets how much the verified set counts directly. The same weights $c_i$ can scale per-example contributions to GuidedQuant's Fisher blocks or AIR's influence matrices. The mechanism is therefore a recipe for building calibration importance, not a new quantizer.

The prediction that could prove us wrong is this. The gain over scoring with the model's own outputs alone should grow as the uncompressed model's task accuracy falls and as the bit budget tightens. When the full model is nearly always right, its own outputs already are the gold answers, and anchoring should add nothing.

Research Program

The program has three stages. The first is a controlled fragility study that the literature lacks. We take TACQ and GuidedQuant and hold the calibration prompts fixed while changing the answer source: gold answers, the full model's own outputs, and gold answers with 10–50% of answers replaced by plausible wrong ones (wrong final numbers on GSM8k, wrong SQL on Spider, wrong option on MMLU). We then measure how much the set of protected weights overlaps across conditions and how much task accuracy drops after compression. This shows whether label quality matters for gradient-based compression at all. If it does not, the hybrid idea is moot and we report that instead.

The second stage builds the gold-anchored score and runs it with TACQ as the primary host. We also run a structured variant: group-level bit allocation in the style of SliM-LLM, where calibration sensitivity is expected to be higher.

The third stage measures cost. The anchor weights need one projected backward pass per cheap example, which TACQ already performs, plus one cosine similarity per example. We will report the wall-clock overhead against TACQ alone and against AdaPruner-style search.

The cheap pools are deliberately realistic. For GSM8k we use training questions with answers stripped, plus model-paraphrased questions. For Spider we use training questions paired with model-generated SQL. For MMLU we use auxiliary questions answered by the model. The verified anchor is 32, 64 or 128 examples drawn from the respective training split with gold answers.

Baselines

The naive reference point is generic calibration. This means TACQ, GPTQ and SliM-LLM run with 128 random C4 samples, the default practice whose seed variance On the Impact of Calibration Data in Post-training Quantization and Pruning documents.

The strongest existing method is TACQ with clean task calibration. On Llama-3-8B-Instruct, TACQ reports recovering 96% of unquantized MMLU performance at 3.1 bits, 5.25% absolute above SpQR. On Qwen2.5-32B-Instruct it reports recovering 87.93% of MMLU performance at 2 bits. In the 2-bit regime it reports an average 14.74% gain over SliM-LLM across its benchmarks (TACQ). The file gives no absolute GSM8k accuracy for TACQ. We will therefore re-run it ourselves on identical models and splits. A beating result means higher accuracy at the same bit width and the same count of verified examples, not more labels.

For the gradient-weighted quantizer we use GuidedQuant. It reports 2-bit Llama-2-7B WikiText-2 perplexity falling from 39.58 to 8.83 (GuidedQuant). We use it as a second host, to check that the anchor weights transfer beyond TACQ, and as a guard that general perplexity does not degrade.

Three ablations isolate the key ingredient. The first is TACQ scored only on the verified set of size $|\mathcal{G}|$. The second is TACQ scored on the cheap pool with uniform weights ($c_i = 1$), which is the naive mix. The third replaces $c_i$ with random weights that have the same distribution, which tests whether agreement with gold matters or merely down-weighting.

Fairness is enforced in four ways. Every method sees the same prompts and the same number of verified labels. The weight-scoring step, which differs between methods, is capped at the same number of forward-backward passes. Hyperparameters ($\lambda$, the fraction of weights protected in 16-bit) are tuned on a held-out validation split with an equal search budget. Every configuration runs over 10 calibration seeds, following the diagnostic study's protocol, so we report the spread across seeds as well as the mean.

Why not just…?

Why not just use the full model's own outputs as targets and skip human labels entirely? This is the most serious threat. Compression aims to preserve the model's function, and the model's own outputs are free and match its distribution exactly. The fragility study and the self-target baseline settle it directly. Our claim survives only if anchoring wins on tasks where the full model errs often, such as GSM8k and Spider at 8B scale, and at 2 bits. If self-targets match anchoring everywhere, we will report that verified labels are unnecessary for task-aware compression. That is a useful negative result and simplifies practice.

Why not just hand-curate 128 gold examples, since calibration sets are small? The verified-only ablation tests exactly this. We expect it to match on mean accuracy at 3 bits but to show larger spread across seeds. The diagnostic study shows that 128 examples is where seed variance bites hardest. The cheap pool's job is to reduce that variance, and its value will be read from the spread across seeds, not the mean.

Why not just filter cheap examples by the model's confidence? We include a confidence-threshold variant that keeps cheap examples whose output probability exceeds a tuned cutoff. Omni-DETR found that threshold filtering keeps confident errors and drops informative hard cases. Our gradient-agreement weight is designed to avoid that failure, and the comparison shows whether the same failure appears in language model calibration.

Why not just use an unstructured outlier-preserving quantizer that is insensitive to calibration data? SpQR shows only about 0.2% variance across calibration sets, per the diagnostic study. SliM-LLM argues that its irregular memory layout runs poorly on GPUs. We therefore report throughput alongside accuracy and include the structured group-level variant, which is where calibration sensitivity and hardware efficiency both apply.

Decisive Checks

The proposal succeeds if three things hold together. First, at 2 bits on GSM8k and Spider, the anchored score beats both self-target and verified-only TACQ in mean accuracy across seeds. Second, it narrows the seed-to-seed spread relative to verified-only TACQ. Third, the size of the gain tracks the uncompressed model's task error rate across tasks and model sizes, which is the prediction that could prove us wrong.

The proposal fails if, once the label-noise injection is applied, protected-weight overlap barely moves and accuracy is flat. That would mean gradient-based compressors do not care where their answers come from.

The secondary checks are three. MMLU should retain at least TACQ's reported recovery. WikiText-2 perplexity should not regress relative to GuidedQuant, given the gap between perplexity and task accuracy noted by AIR and the diagnostic study. The added calibration cost should stay a small fraction of TACQ's own scoring time.