← Latest papers
🤖 machine learning

ScaleSweep: Accurate NVFP4 Post-Training Quantization of LLMs via Block Scale Initialization

The paper proposes ScaleSweep, an efficient post-training quantization method for LLMs that optimizes NVFP4 block scales by sweeping a theoretically derived minimal range of candidates, thereby significantly narrowing the performance gap to full precision compared to existing initialization techniques.

Original authors: Li Lin, Xiaojun Wan

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

Original authors: Li Lin, Xiaojun Wan

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, incredibly detailed library of knowledge (a Large Language Model, or LLM). To make this library fit into a small backpack so you can carry it around on a phone or a laptop, you need to shrink the books. This process is called quantization.

Usually, when you shrink a book, you lose some details. If you shrink it too much, the story becomes gibberish. Recently, a new type of "shrink wrap" called NVFP4 was invented. It's like a super-efficient packing material that lets you shrink the books down to 4 bits (very small) while keeping the story mostly intact.

However, there's a catch. To pack these books efficiently, you need to attach a little "size tag" (called a scale) to every small group of pages. If you pick the wrong size tag, the pages get squished or stretched, and the story gets ruined.

The Problem: Guessing the Size Tag

The current method for picking these size tags is like guessing the size of a box by just looking at the biggest item inside and saying, "Okay, this box needs to be big enough for that one item." This is called AbsMax.

The authors of this paper found that this "guessing" method leaves a lot of room for error. It's like packing a suitcase: if you just guess the size, you might leave huge empty gaps or crush your clothes. They wanted a way to find the perfect size tag for every group of pages to keep the story as clear as possible.

The Solution: "ScaleSweep" (The Sweeping Search)

The team invented a new method called ScaleSweep.

Imagine you are trying to find the perfect volume setting on an old radio.

  • The Old Way (AbsMax): You just turn the dial to the spot where the loudest song is, and hope the rest of the songs sound okay.
  • The ScaleSweep Way: You know the perfect volume is somewhere near that loud song. Instead of guessing, you quickly sweep your finger back and forth over a very small, specific range of numbers around that loud song. You check every single tiny setting in that range and pick the one that makes the entire playlist sound the best.

Because the "dial" (the FP8 scale format) only has a limited number of settings (like a radio with only 126 buttons), this "sweeping" is actually very fast and doesn't take much extra time.

The Secret Sauce: The "Math Map"

You might ask, "Why don't they just check every possible button on the radio?" The answer is: they could, but it would take too long.

The authors did some clever math to draw a map. They proved that the perfect button is always located in a tiny neighborhood right next to the "biggest item" guess.

  • They calculated a Lower Bound (you don't need to look below this button).
  • They calculated an Upper Bound (you don't need to look above this button).

This turned a search for a needle in a haystack into a search for a needle in a single, tiny box. This makes the process incredibly fast, adding almost no extra time to the packing process.

The Results: A Clearer Story

The team tested this on popular AI models (like Llama and Qwen). They tried packing the models in three different ways:

  1. Just shrinking the "knowledge" (weights).
  2. Shrinking the knowledge and the "working memory" (KV cache).
  3. Shrinking everything, including the "questions" being asked (query states).

The findings:

  • Better Quality: In almost every test, ScaleSweep kept the AI smarter and more accurate than the old guessing methods.
  • Aggressive Packing: Even when they tried to shrink the AI as much as humanly possible (compressing everything), ScaleSweep managed to keep 93% to 95% of the original, full-size AI's intelligence.
  • No Extra Cost: Because they used their "Math Map" to limit the search, this improvement didn't slow down the computer at all.

In Summary

The paper introduces ScaleSweep, a smart, fast way to find the perfect settings for shrinking AI models. Instead of guessing, it quickly checks a tiny, mathematically proven range of options to ensure the AI stays as smart as possible, even when squeezed into a tiny space. It's like upgrading from a rough guess to a precision tool for packing your digital library.

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 →