TL;DR
When compressing large language models down to 4-bit weights, the small batch of text you use for calibration acts as your guiding flashlight—and picking those texts randomly leaves dangerous blind spots. This paper introduces COVERCAL, an algorithm that treats calibration data selection like a strategic game of "set cover," hunting down rare, massive activation spikes inside specific model modules so quantizers don't accidentally wreck the model's most sensitive pathways. The result is noticeably sharper compressed models achieved in a fraction of the total calibration time.
What Problem Does This Paper Address?
To fit massive language models onto everyday GPUs, engineers rely on Post-Training Quantization (PTQ)—shrinking 16-bit weights down to 4-bit integers (like AWQ or GPTQ) without retraining the model. To figure out how to round those weights without ruining accuracy, quantizers run a tiny "calibration set" (often just 128 text sequences) through the network to observe how activations behave and which weight channels matter most.
Standard practice is to grab those 128 sequences randomly from the web. The catch? Transformer activations are notoriously spiky. Every so often, a specific input triggers a rare, massive "outlier" spike in a specific channel. If your random calibration sample misses the text that triggers that spike, the quantizer assumes that channel is sleepy and unimportant, starving it of precision or protective scaling. Trying to represent the average text distribution isn't enough; you need to make sure you don't miss the rare extremes.
Methods
Instead of inventing a new quantizer, the authors build a smarter data selector (COVERCAL) that feeds existing quantizers better examples.
- What is new (The Formulation): Rather than looking at broad layer outputs, the authors zoom in on module-level outlier channels—triples of (layer, linear module, input channel), including tricky internal spots like post-SwiGLU MLP inputs. Profiling a candidate pool of 10,000 sequences, they flag an "outlier event" whenever a channel's activation exceeds 6 standard deviations ($6\sigma$) above its module's mean. Crucially, they weight each outlier by combining its peak activation magnitude with the squared norm of its corresponding weight column—directly aligning the score with how much squared error that channel could inflict on the output.
- What is standard (The Algorithm): Once every candidate sequence is mapped to the weighted outliers it triggers, picking the best $K$ sequences becomes a textbook weighted maximum coverage problem. Because this objective has diminishing returns (it is monotone submodular), a fast, standard greedy algorithm—repeatedly picking whichever text adds the most newly covered weight—is mathematically guaranteed to achieve at least $(1 - 1/e) \approx 63.2\%$ of the theoretical optimum.
Datasets
No new benchmarks are introduced; the authors use established datasets to isolate the effect of selection:
- Candidate Calibration Pools: RedPajama and C4 (10,000 sequences each) for base models, and UltraChat-200k (rendered in official chat templates) for instruction-tuned models.
- Evaluation Benchmarks: MMLU (5-shot multitask accuracy), WikiText-2 (perplexity), and IFEval (strict prompt-level instruction-following accuracy).
Key Insights and Ideas
- Outlier weight follows a steep power law: You don't need to cover every outlier channel to protect the model. On LLaMA-3-8B at $K=128$, COVERCAL covers just 27.4% of raw outlier events, yet captures 84.6% of the total outlier weight—because the top 10% of events carry nearly 77% of the weight!
- Module-level resolution is essential: Tracking outliers only on the main residual stream yields 4,950 events on LLaMA-3-8B and completely misses the 458,752 post-SwiGLU
down_projchannels (which contribute over 12,000 outlier events on their own). - Rare tokens genuinely steer quantizer math: Even though AWQ averages across ~262,000 tokens at $K=128$, a single extreme token in the top weight decile can still account for nearly 20% of a channel's squared-activation sum. Covering these events causes COVERCAL to match full-pool AWQ scale choices in 84.2% of modules (versus 58.4% for random selection).
Key Results
Tested across Llama-2/3, Mistral, and Qwen2.5 (from 7B up to 70B parameters), COVERCAL consistently outperforms random selection and specialized selectors like SelectQ and ZipCal.
- Accuracy boosts at fixed budgets: On LLaMA-3-8B ($K=128$), COVERCAL improves MMLU by +1.4 points (AWQ) and +1.6 points (GPTQ) over Random, and beats the strongest baseline (ZipCal) by +0.5 points on both backends. Gains hold consistently on MMLU and IFEval across instruction-tuned checkpoints, including Llama-3-70B-Instruct.
- Time-to-quality savings: While massive random sets eventually catch up in accuracy, quantization runtime scales poorly with sample count. Including its 15.1-minute GPU profiling pass and 8.4-second CPU greedy search, COVERCAL at $K=128$ reaches 64.5 MMLU in 30.4 minutes, whereas Random at $K=1024$ takes 103.4 minutes to reach 64.4 MMLU.
Limitations and Future Work
- Checkpoint- and pool-dependent: Profiling is tied to a specific model checkpoint and candidate pool. You cannot cover outliers that never appear in your pool, and while texts selected on a base model partially transfer to its instruction-tuned cousin, profiling the exact target model works best.
- Diminishing returns at large budgets: If you have the compute time to run 1,000+ random calibration samples—and quantization time isn't a bottleneck—random selection approaches the same quality without custom profiling.
- Untested architectures: The mathematical surrogate ignores cross-channel covariance, and experiments are limited to dense decoder-only models—leaving Mixture-of-Experts (MoE), encoder-decoder, and multimodal models as open territory.
Summary updated