← Latest papers
🤖 AI

Rethinking Shrinkage Bias in LLM FP4 Pretraining: Geometric Origin, Systemic Impact, and UFP4 Recipe

This paper identifies a fundamental "Shrinkage Bias" in non-uniform E2M1 FP4 formats that causes training instability, and proposes UFP4, a uniform 4-bit (E1M2/INT4) training recipe that leverages Random Hadamard Transform to achieve superior pretraining performance across various model scales compared to existing E2M1-based approaches.

Original authors: Qian Zhao, Kunlong Chen, Changxin Tian, Zhonghui Jiang, Haitao Zhang, Chaofan Yu, Peijie Jiang, Mingliang Gong, Jia Liu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou

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

Original authors: Qian Zhao, Kunlong Chen, Changxin Tian, Zhonghui Jiang, Haitao Zhang, Chaofan Yu, Peijie Jiang, Mingliang Gong, Jia Liu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou

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 build a giant, incredibly complex LEGO castle (a Large Language Model). To make the construction faster and cheaper, you decide to stop using the standard, heavy, precise bricks and switch to a new, ultra-lightweight set of tiny 4-bit bricks.

The problem is that the current "standard" lightweight bricks (called E2M1) have a weird, lopsided shape. The authors of this paper discovered that these bricks have a hidden flaw: they naturally shrink things slightly every time you use them.

Here is the breakdown of their discovery and solution, explained simply:

1. The Problem: The "Shrinking" Bricks

Think of the standard E2M1 bricks as having uneven spacing. Some gaps between the bricks are tiny, while others are huge.

  • The Flaw: Because of this uneven spacing, when you try to snap a piece of data into one of these bricks, the math forces it to round down slightly more often than up.
  • The Result: This creates a "Shrinkage Bias." It's like a leaky bucket; every time you pass a message through a layer of the model, the message gets just a tiny bit smaller and weaker.
  • The Compounding Effect: In a deep model with hundreds of layers, this tiny shrinkage happens over and over. By the time the message reaches the end, it has shrunk so much that the model starts to lose its mind (training becomes unstable).

2. The "Magic Spin" That Made It Worse

To fix the problem of data being too big or too weird (outliers), engineers use a trick called Random Hadamard Transform (RHT).

  • The Analogy: Imagine you have a pile of sand where most of it is in one giant mound (outliers). The RHT is like a mixer that spins the sand around so it spreads out evenly across the whole tray.
  • The Conflict: When you mix the sand (RHT) and then try to put it into the lopsided E2M1 bricks, the sand lands in the worst possible gaps. The uneven spacing of the bricks grabs the mixed-up sand and shrinks it even more than before. The paper found that the standard recipe actually makes the "leaky bucket" problem worse by using this mixer.

3. The Solution: The "Even" Bricks (UFP4)

The authors propose a new recipe called UFP4. Instead of using the lopsided E2M1 bricks, they use a new set of bricks called E1M2/INT4.

  • The Difference: These new bricks are perfectly uniform. The gaps between them are all exactly the same size.
  • Why it Works: Because the gaps are even, there is no "shrinkage bias." When the "mixed sand" (the RHT data) lands in these uniform bricks, it fits perfectly without losing any size.
  • The Strategy: With these new even bricks, the authors realized they could safely use the "mixer" (RHT) on every single part of the construction process (forward pass, backward pass, and weight updates). Previously, they had to be careful and only use the mixer in one spot to avoid breaking the model. Now, they can use it everywhere.

4. The Proof

The team tested this new recipe on three different sizes of AI models (small, medium, and huge).

  • The Result: The models built with the new UFP4 (even bricks) stayed much closer to the performance of the heavy, standard bricks (BF16) than the models built with the old E2M1 (lopsided bricks).
  • The Takeaway: The "even" grid allows the model to train longer and more stably without losing its signal.

Summary

The paper argues that the industry has been trying to fix a leaky bucket by patching the holes, but the bucket itself is the wrong shape. By switching to a bucket with perfectly even spacing (Uniform Grids), they can finally use the powerful mixing tools (RHT) that were previously too dangerous, leading to faster, cheaper, and more stable AI training.

The Bottom Line: Don't just patch the old, lopsided 4-bit format; switch to a new, uniform 4-bit format to stop the signal from shrinking away.

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 →