M+Adam: Low-Precision Training via Additive-Multiplicative Optimization
The paper proposes M+Adam, a novel optimizer that combines additive and multiplicative updates to overcome the complementary failure modes of low-precision training, thereby enabling stable and accurate training of LLaMA-style models using only BF16, FP8, and FP4 master weights.
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, hyper-intelligent robot (a Large Language Model) to write like a human. To do this, you have to adjust millions of tiny dials on the robot's brain. Usually, these dials are adjusted with extreme precision, like using a microscope to turn a screw. But microscopes are heavy, slow, and expensive.
The paper asks: What if we used a cheap, lightweight wrench instead?
This is the world of low-precision training. Instead of using high-precision "master weights" (the robot's memory of the dials), researchers try to store them in a smaller, coarser format like BF16, FP8, or even FP4. It's like trying to measure a mountain's height with a ruler that only has marks every 10 feet.
The Problem: The "Rounding" Trap
The authors discovered that when you use these coarse rulers, standard training methods (called Adam) hit a wall. Here's why:
- The Big Mountain Problem: When a dial is set to a huge number, the "ruler" marks are very far apart. If the robot needs to move the dial by a tiny amount, the ruler can't see it. The tiny move gets rounded off to zero, and the robot thinks, "I didn't move anything!" The robot gets stuck, unable to climb the mountain.
- The Zero Valley Problem: Other methods tried to fix this by using multiplicative updates (like Madam). Instead of adding a tiny number, they multiply the dial by a factor. This works great for big mountains because the step size grows with the dial. However, if a dial is stuck at exactly zero, you can't multiply it to get it moving. It's like trying to push a car that has no wheels; multiplying zero by anything still gives you zero. Also, if the dial needs to flip from positive to negative (crossing zero), these methods get confused and can't make the switch.
The Solution: M+Adam (The Two-Tool Kit)
The paper introduces M+Adam, a new optimizer that acts like a clever mechanic carrying two different tools at once. It combines the best of both worlds to fix the "complementary failure modes."
- Tool 1: The Additive Wrench (Adam-style). This tool is great for small, precise adjustments. It can nudge a dial from zero, flip a sign from positive to negative, and handle tiny movements near the bottom of the valley.
- Tool 2: The Multiplicative Lever (Madam-style). This tool is great for big, heavy lifting. When the dial is huge and the additive wrench gets "rounded off" to nothing, the multiplicative lever kicks in. It scales the dial up or down, ensuring the robot keeps making progress even on the tallest mountains.
M+Adam uses both tools simultaneously. If the additive tool gets stuck due to rounding, the multiplicative tool keeps the robot moving. If the multiplicative tool can't escape zero, the additive tool pushes it out.
The Proof: Did it Work?
The authors didn't just guess; they tested this on a massive scale.
- The Test: They trained "LLaMA-style" language models ranging from 60 million to 1 billion parameters.
- The Budget: They used training budgets from 1x to 8x the standard "Chinchilla" budget (a standard measure of how much data a model sees).
- The Precision: They tested with BF16, FP8, and NVFP4 master weights.
The Results:
In every single test, M+Adam consistently beat the standard Adam optimizer.
- In the most extreme low-precision setting (NVFP4), M+Adam reduced the "perplexity" (a measure of how confused the model is) by 16.6% for the 350M model compared to Adam.
- Even with 1 billion parameters, M+Adam showed clear improvements over Adam in all precision regimes.
The paper proves mathematically that this combined approach guarantees the training loss will go down (a "monotone descent"), meaning the robot is always learning and never getting stuck in a loop.
What It Is NOT
It is important to know what this paper does not claim:
- It does not say that M+Adam is a magic bullet that eliminates all memory costs. In fact, the paper notes that M+Adam adds a tiny bit of extra memory (one extra "state" for the multiplicative tool), though they show this can be compressed later.
- It does not claim that standard methods like Stochastic Rounding (a technique to fix rounding errors) are useless. They tested Adam with Stochastic Rounding, and M+Adam still performed better.
- It does not suggest that we should stop using high-precision hardware entirely. Instead, it shows that if we must use low-precision storage, M+Adam is the right way to do it.
The Bottom Line
The paper suggests that when you are forced to use "coarse" rulers (low-precision weights) to train giant AI models, you can't rely on just one type of movement. You need a hybrid approach. M+Adam is that hybrid, using both additive and multiplicative steps to ensure the robot never gets stuck, whether it's climbing a giant mountain or escaping a zero-valley. It's a principled step toward training massive AI models efficiently without needing the heavy, expensive high-precision memory we usually rely on.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.