← Latest papers
🤖 machine learning

Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention

This paper introduces Full-Stack FP4, a modular framework that extends NVFP4 quantization beyond linear projections to include stable optimizer states, Root/Muon computations, and mixed-precision attention, achieving near-BF16 pretraining performance with significant memory and speedup gains on a single RTX 5090.

Original authors: Siyu Ding, Mingchuan Ma, Jiabo Tong, Xingrun Xing, Ziming Wang, Guoqi Li

Published 2026-08-11
📖 4 min read☕ Coffee break read

Original authors: Siyu Ding, Mingchuan Ma, Jiabo Tong, Xingrun Xing, Ziming Wang, Guoqi Li

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 teach a giant, digital brain how to speak, write, and think. This "brain" is a Large Language Model (LLM), and to learn, it has to process mountains of information. But there's a catch: the more it learns, the more hungry it gets for computer memory and electricity. It's like trying to run a massive, high-definition movie on a tiny, old laptop; the screen gets blurry, and the fan screams. To solve this, scientists have been trying to shrink the numbers the computer uses to do its math. Instead of using super-precise, heavy numbers (like a detailed photograph), they've been switching to smaller, lighter numbers (like a pixelated sketch). This is called "low-precision training." Recently, a new type of tiny number called "FP4" (4-bit floating point) has arrived, promising to make these giant brains much smaller and faster. But here's the problem: while the main parts of the brain can handle these tiny numbers, the "helper" parts—like the memory it keeps for learning and the complex math it does to understand sentences—keep crashing or getting confused when forced to use such small numbers. It's like having a race car engine but trying to run it on a bicycle chain; the engine is ready, but the rest of the machine can't keep up.

This paper introduces a clever new toolkit called Full-Stack FP4, which acts like a master mechanic for these digital brains. The researchers realized that you can't just use the same tiny-number rules for every single part of the brain. Some parts, like the main connections, can handle the tiny numbers just fine. But other parts, like the "memory" the computer uses to remember what it learned yesterday, are very sensitive and need a special kind of care. The team created a modular system where they use different "recipes" for different parts of the brain. For the main connections, they use a trick called LoRA-SVD, which is like keeping a high-resolution sketch of the most important details while using pixelated blocks for the rest. For the memory, they invented a way to "smooth out" the numbers before squishing them into tiny boxes so they don't get lost. For the math that helps the brain focus on the right words (attention), they decided to keep the most sensitive parts in high-definition while letting the rest stay pixelated.

When they tested this full system on a 3-billion-parameter model (a medium-sized digital brain) using 64 billion words of training data, the results were impressive. The "Full-Stack FP4" brain learned almost exactly as well as the traditional, heavy-duty version. The difference in their learning scores was a tiny 0.838%, which is barely noticeable. In fact, when they tested how well the brain could answer questions it had never seen before, the new tiny-number version was actually slightly better at guessing the right words, even though it was using much less memory. On a single powerful graphics card (an RTX 5090), this new method made the brain's learning process 2.5 to 2.8 times faster for certain tasks and used 38% to 42% less memory than the standard high-precision method.

The researchers are careful to note that while this works great for models up to 3 billion parameters, they haven't proven yet if it will work for even bigger brains or over much longer training times. They also found that you can't just throw tiny numbers at everything; if you try to force the most sensitive parts of the brain to use the smallest numbers without these special recipes, the learning breaks down. But for now, this "Full-Stack" approach shows that we can build smarter, faster, and cheaper AI by treating different parts of the brain with the specific level of precision they actually need, rather than forcing the whole system to be one size fits all.

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 →