RSQ: Learning from Important Tokens Leads to Better Quantized LLMs
Yi-Lin Sung, Prateek Yadav, Jialu Li, Jaehong Yoon, Mohit Bansal
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Low-bit LLM Quantization · Type: new method · Keywords: LLM quantization, token importance, GPTQ, model compression, efficient inference
Areas: LLM Reasoning › Efficient Reasoning › KV Cache Compression
Summary
RSQ improves quantized large language models by rotating weights, scaling important tokens, and quantizing with GPTQ, leading to better performance across tasks and model families.
Explained to a 5-year-old
A big computer brain called a large language model can write and understand words. To use it on a phone, we need to make its numbers smaller. Usually we shrink all numbers the same way, but some numbers help the model think more than others. So we keep the important numbers bigger and shrink the unimportant ones more. We also rotate the numbers to avoid big jumps, which helps the tiny brain still understand things well.
Explained to a 5-year-old, longer
A large language model is a computer program that can write and understand words. It works because it has many tiny numbers that tell it how to connect ideas. To use it on a small device like a phone, we need to make those numbers smaller so they take up less space. The usual way to do this is to shrink all the numbers the same amount. But not all numbers are equally useful; some numbers help the model decide what to say, while others are less important. The researchers noticed that focusing on the important numbers could make the smaller model work better. So they created a new plan: first they rotate the numbers to smooth out any big jumps. Then they look at how much the model looks at each word and make the important words stay larger while shrinking the less important ones. Finally they compress the model using a special method that uses statistics from these scaled words. This three-step process helps the tiny model keep its ability to answer questions and do tasks. As a result, the smaller model performs almost as well as the original big model on many tasks.
For a technical reader
The paper addresses the challenge of compressing large language models efficiently. It observes that uniform token treatment during quantization is suboptimal and proposes a three-stage pipeline: orthogonal rotation of weights to mitigate outliers, importance-based scaling of token representations using attention scores, and GPTQ-style quantization that leverages second-order statistics from the scaled tokens. Experiments across LLaMA3, Mistral, and Qwen2.5 show consistent improvements on downstream and long-context tasks, with robustness to varying model sizes, calibration data, bit widths, and quantization schemes.
Problem
Quantizing large models layer-wise typically treats all tokens uniformly, which can lead to suboptimal compression. The problem is to achieve better quantized models by focusing on important tokens rather than uniformly optimizing reconstruction loss across all tokens.
Method
The approach rotates model weights to reduce outliers, scales token features according to their importance (using attention scores), and then quantizes the model using GPTQ with second-order statistics computed from the scaled tokens.
Results
The approach yields better performance than baselines on multiple downstream tasks across LLaMA3, Mistral, and Qwen2.5, and also improves results on long-context tasks, while remaining effective across different model sizes, calibration datasets, bit precisions, and quantization methods.
Contributions
The work shows that prioritizing important tokens leads to better quantized models, introduces a rotation-based weight preprocessing step, a token-importance scaling mechanism based on attention scores, and a quantization pipeline that leverages second-order statistics, and validates these gains across multiple tasks, model families, and configuration variations.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction