RSQ: Learning from Important Tokens Leads to Better Quantized LLMs
Yi-Lin Sung, Prateek Yadav, Jialu Li, Jaehong Yoon, Mohit Bansal
cs.LG, cs.AI, cs.CL
2025-03-04
RSQ reweights the layer reconstruction loss by token attention during GPTQ quantization: 3-bit LLaMA3 gains ~1 point over QuaRot across 10 tasks, and 5.3 points at 2-bit.
Layer-wise post-training quantization, the family that includes GPTQ and QuaRot, compresses an LLM one layer at a time by minimizing the reconstruction loss between each layer's original and quantized outputs. Every token in the calibration sequence gets the same weight in that loss. That uniform treatment clashes with what the field already knows about LLMs: StreamingLLM showed initial tokens attract disproportionate attention, and H2O showed a few KV-cache tokens absorb most attention values during decoding. With low-bit capacity this scarce, which tokens the loss should preserve first is a question nobody had taken seriously.
The UNC Chapel Hill team ran a clean experiment: quantizing LLaMA3-8B-Instruct to 3-bit while computing the loss on only the first 1,024 tokens of each 4,096-token sequence dropped WikiText-2 perplexity from 9.51 to 9.27 and lifted average accuracy over ten tasks from 63.8% to 64.5%. Less calibration signal, better model.
RSQ (Rotate, Scale, then Quantize) turns the finding into three steps:
For importance itself the paper compares seven options: heuristic ones (First-N and First&Last-N, best when N is roughly 5–10% of the sequence) and dynamic ones (TokenFreq, ActNorm, ActDiff, TokenSim, AttnCon). AttnCon wins by summing, across all attention heads, the attention each token receives, which directly measures a token's influence on the rest of the sequence. It reaches perplexity 9.028, ahead of ActNorm at 9.075 and TokenSim at 9.047. Every strategy skews importance toward sequence endpoints, so a data-expansion step generates eight circularly shifted copies of each calibration sequence, giving every token a turn in an important position.
Main comparison at 3-bit with WikiText-2 calibration (256 sequences of 4,096 tokens):
| Method | Wiki PPL ↓ | Avg accuracy, 10 tasks |
| 16-bit | 8.31 | 72.7 |
| GPTQ | 10.68 | 49.3 |
| QuaRot | 9.51 | 68.7 |
| RSQ | 9.04 | 69.6 |
On Mistral-NeMo-12B the average goes from 69.2 to 69.6, on Qwen2.5-7B from 60.0 to 61.2. Modest at 3-bit, but consistent across all three families. The gap opens at extreme compression: at 2-bit, average accuracy moves from 35.3% to 40.6% and perplexity from 22.7 to 16.2; with QuIP#'s E8P vector-quantization codebook, 2-bit average accuracy rises from 42.5% to 44.3%. At 4-bit the two methods sit 0.2 points apart. The fewer the bits, the more learning from important tokens pays.
Long context is the other bright spot: over QuaRot, RSQ gains 3.0 points on LongEval, 2.5 on L-Eval, 0.6 on LongICLBench, and 0.025 ChrF on LongCodeArena. The conclusions hold across calibration sets (RedPajama, C4, PTB) and model sizes from 7B to 22B.
One curiosity: on LongICLBench the 3-bit models beat the 16-bit original by 2–4 points, which the authors attribute to a possible regularization effect of quantization noise.
For compression teams this is cheap headroom. No change to the inference graph, no deployment overhead: the change is a reweighting of the calibration loss, a few lines on top of GPTQ or QuaRot. The benefit grows as bits shrink, exactly the regime where every accuracy point is hardest to recover. The broader lesson travels beyond quantization: any method trained on a reconstruction loss over tokens, distillation and pruning included, has an untouched degree of freedom in how those tokens are weighted.
At 3-bit the gains run 0.4–1.2 points, incremental by any standard, and the 40.6% average at 2-bit remains far from usable. The paper quantizes weights only and never tests weight-plus-activation configurations common in deployment. Using attention scores as importance rests on indirect evidence; that attended-to tokens deserve higher fidelity is still a hypothesis. Data expansion multiplies the calibration set by eight, and the added calibration time goes unreported. The authors concede that long-context calibration data remains unsolved: longer calibration sequences do not reliably improve long-context performance. The 0.025 ChrF gain on LongCodeArena is noise-level.