← Latest papers
🤖 machine learning

MosaicQuant: Inlier-Outlier Disaggregation for Unified 4-Bit LLM Quantization

MosaicQuant introduces a unified 4-bit LLM quantization framework that disaggregates weights into a dense base and a sparse residual to preserve accuracy, while its ZipperEngine component fuses their execution into a single low-bit pipeline to achieve near-FP16 performance with up to 1.24× speedup over baselines.

Original authors: Yangjia Hu, Haodong Wang, Zicong Hong, Qianli Liu, Quanxin Shou, Jian Lin, Song Guo, Xiaowei Shen, Xiangjun Huang, Dian Wang, Jian Yang

Published 2026-06-16
📖 4 min read☕ Coffee break read

Original authors: Yangjia Hu, Haodong Wang, Zicong Hong, Qianli Liu, Quanxin Shou, Jian Lin, Song Guo, Xiaowei Shen, Xiangjun Huang, Dian Wang, Jian Yang

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 have a massive library of books (Large Language Models, or LLMs) that you want to carry in your backpack. The problem is, the books are so heavy and thick that your backpack can't hold them, and reading them takes forever.

To solve this, you decide to shrink the books. You want to compress them down to tiny, 4-bit "pocket editions" (quantization). This makes them light and fast to read. However, there's a catch: when you shrink a book too much, you lose the important details.

Most books have a lot of common, boring words (like "the," "is," "and") that are easy to shrink. But every now and then, there's a rare, complex word or a dramatic plot twist (an "outlier") that is crucial for the story. If you try to shrink these rare words down to the same tiny size as the common ones, the story falls apart, and the AI starts making mistakes.

The Old Way: The "VIP Section" Problem

Previous methods tried to fix this by saying, "Okay, let's keep the rare, important words in their original, heavy format (high precision) and only shrink the boring ones."

While this kept the story accurate, it created a new problem. Imagine a bus where most passengers are sitting on tiny folding stools (the small, compressed data), but a few VIPs are sitting in giant, heavy armchairs (the high-precision data).

  • The Issue: The bus driver (the computer chip) has to constantly switch gears to handle the different seats. It has to stop, move the heavy chairs, and convert them back and forth. This switching slows the bus down, canceling out the speed you gained by shrinking the other passengers.

The New Way: MosaicQuant

The authors of this paper propose a new system called MosaicQuant. Instead of keeping the VIPs in big chairs, they keep everyone on the same tiny folding stools (unified 4-bit). But, they add a clever twist to handle the rare, difficult words.

Here is how it works, using a "Mosaic" analogy:

1. The Base Layer (The Dense 4-bit)
They take the whole book and shrink it down to a uniform 4-bit size. This captures all the common words perfectly. However, the rare, complex words get a little blurry or distorted because they were forced into the tiny format.

2. The "Stitch" Layer (The Sparse Residual)
Instead of giving the rare words a whole new big chair, they create a tiny, invisible "patch" or "stitch" just for the parts of the story that got blurry.

  • They don't patch the whole book. They only patch the specific pages where the distortion is worst.
  • This patch is also 4-bit, so it fits on the same tiny stool.
  • Because they only patch a few specific spots (about 10% of the book), it's very light and doesn't weigh down the backpack.

3. The "Zipper" Engine (ZipperEngine)
This is the secret sauce that makes it fast. In the old "VIP" method, the computer had to stop and switch between the heavy chairs and the tiny stools.

  • MosaicQuant's ZipperEngine acts like a master tailor. It takes the main book (the dense base) and the tiny patches (the sparse residuals) and sews them together while the bus is moving.
  • It doesn't stop to switch gears. It processes the main text and the patches at the exact same time in a single, smooth motion. This means the computer chip never has to stop to "convert" data, keeping the speed high.

Why This Matters

The paper tested this on powerful AI models (like LLaMA and Qwen) and found two main results:

  1. Accuracy: The stories (AI outputs) remained almost as perfect as the original heavy books. The "patches" fixed the blurry parts so well that the AI didn't lose its intelligence.
  2. Speed: Because they didn't have to switch between different formats, the AI ran up to 1.24 times faster than the standard 16-bit version, and much faster than other methods that tried to mix high and low precision.

In short: MosaicQuant is like shrinking a whole library into a pocket size, but instead of leaving the important parts out or making them heavy, it adds tiny, lightweight "patches" to fix the errors, all while keeping the reading process smooth and fast.

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 →