← Latest papers
🤖 machine learning

RDQ: Residual Distribution Quantization for Large Language Models

This paper introduces RDQ, a post-training quantization framework that mitigates the super-linear accumulation of quantization noise in large language models by employing Cascaded Error Compensation to fit per-channel scales against drifted residual distributions, thereby achieving state-of-the-art perplexity at 3-bit and 4-bit precision with zero inference overhead.

Original authors: Prateek Singh

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Prateek Singh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to send a secret message down a long, winding tunnel made of 32 connected rooms. In the original, high-quality version of this tunnel (called FP16), the message travels perfectly clear from start to finish. But when we try to shrink the message to fit into a tiny, compressed format (quantization) to save space on your phone or edge device, things start to go wrong.

For a long time, scientists thought the problem was just that each room was a little bit messy on its own. They thought, "If we just clean up Room 1, then Room 2, then Room 3, everything will be fine." But this new paper, RDQ (Residual Distribution Quantization), discovered that this "clean each room separately" approach is actually the wrong way to think about it.

The Real Culprit: The "Snowball" Effect

The authors found that the real problem is a snowball effect. Every time a message passes through a room, a tiny bit of "noise" or static gets added to it. In a normal tunnel, this doesn't matter. But in a compressed tunnel, that tiny bit of noise doesn't disappear; it gets carried over to the next room, where it mixes with new noise from that room.

By the time the message reaches the 32nd room, that tiny static has turned into a massive roar. The authors measured this "noise accumulation" (which they call residual stream drift) and found something amazing: the amount of noise perfectly predicts how bad the message sounds. In fact, they found a correlation so strong (Pearson r=0.999) that if you know how much the signal has drifted, you can predict exactly how confused the computer will get.

The Big Discovery: The Tunnel Isn't Smooth

Before this paper, most experts assumed the noise in these tunnels looked like a smooth, predictable hill (a "Gaussian" distribution). They built their cleaning tools based on that smooth hill.

But the authors went inside and took a look. They discovered that 84% of the rooms in the LLaMA-3-8B model don't have smooth hills at all! Instead, the noise is jagged, weird, and sometimes has two peaks (bimodal). It's like expecting a calm lake and finding a choppy ocean with sudden waves. Because the noise is so weird, the old "smooth hill" cleaning tools were failing miserably, especially when they tried to shrink the message down to just 3 bits (a very tiny size).

The Solution: "Cascaded Error Compensation" (CEC)

So, how do we fix a tunnel where the noise changes as you go deeper? The authors propose a new method called Cascaded Error Compensation (CEC).

Instead of cleaning each room while pretending the message is still fresh and clean (which is what old methods did), CEC says: "Let's walk through the tunnel first, see exactly what the message looks like when it gets to each room, and then clean it."

Here is how it works:

  1. The Walk-Through: The computer runs a test message through the tunnel. It lets the first few rooms get "dirty" (quantized) just like they would be in real life.
  2. The Real Look: When the message arrives at Room 10, it is already a bit noisy from Rooms 1 through 9. The system captures this actual, messy signal.
  3. The Custom Fix: Instead of using a generic cleaning tool, the system builds a custom cleaning tool specifically for that messy signal. It adjusts the "volume" (scales) of the message right there in the room.
  4. The Magic Fold: Once the cleaning tool is built, it gets folded into the room's doorframe (the RMSNorm weights). This means when the real message travels through later, the cleaning happens automatically, with zero extra time or speed loss.

The Results: A Massive Improvement

The team tested this on three famous AI models: LLaMA-3-8B, Qwen-2.5-7B, and Mistral-7B.

  • The Old Way: When they tried to shrink LLaMA-3-8B to 3 bits using the standard method (RTN), the message became almost unintelligible, with a score (Perplexity) jumping from 5.83 to 14.09. That's a huge drop in quality.
  • The RDQ Way: Using their new "walk-through" method, they got the score down to 7.55. That is a 46.4% improvement over the old method!
  • At 4 bits: They also got the best results ever recorded, beating the previous champions by a wide margin (e.g., 5.62 vs 6.92 for LLaMA).

What This Means

The authors are very clear: this isn't just a better tool; it's a new way of seeing the problem. They proved that the "drift" is the main reason these models break at low bit-widths. They also showed that the old idea of "cleaning each room independently" is a dead end because it ignores the snowball of noise coming from the previous rooms.

While they can't fix the problem for 2-bit compression yet (the noise is just too strong there), they have shown that for 3-bit and 4-bit compression, we can keep the models smart and fast. The best part? This new method works with the standard tools engineers already use, so it can be deployed on phones and computers right now without needing any special, slow hardware.

In short: The tunnel was getting messy because we were cleaning the rooms in the wrong order. By cleaning them in the order the message actually travels, we can keep the signal clear all the way to the end.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →