Denoise First, Orthogonalize Later: Understanding Momentum in Muon via Spectral Filtering
This paper theoretically demonstrates that momentum in the Muon optimizer acts as a spectral filter to suppress gradient noise and enlarge the spectral gap, thereby stabilizing the orthogonalization step and improving signal alignment, a finding supported by experiments in large language model training.
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
The Big Picture: Tuning a Radio in a Storm
Imagine you are trying to tune a radio to hear a specific song (the signal) while driving through a heavy thunderstorm (the noise). The radio is your AI model, and the song is the correct direction it needs to learn to get smarter.
In modern AI training, we use a tool called Muon to help the radio tune in faster and better. Muon has two main steps:
- Momentum: Smoothing out the static.
- Orthogonalization: Aligning the antenna perfectly.
For a long time, researchers knew Muon worked great, but they didn't know why the "smoothing" step (momentum) was so important, or why the order of operations mattered. This paper solves that mystery.
The Core Discovery: You must clean the signal first (Denoise), and then align the antenna (Orthogonalize). If you try to align the antenna while it's still covered in static, you will point it in the wrong direction.
The Three Ways to Tune the Radio
The authors tested three different ways to handle the radio signal (the gradient) to see which one worked best:
The "Clean First" Method (Pre-polar / Muon's way):
- Action: You take the noisy signal, run it through a filter to smooth out the static (Momentum), and then you align the antenna (Orthogonalization).
- Result: Best performance. The antenna points exactly at the song.
The "Align First" Method (Post-polar):
- Action: You try to align the antenna immediately on the noisy signal, and then you try to smooth it out.
- Result: Poor performance. Because you aligned the antenna to the static noise first, smoothing it later doesn't fix the fact that the antenna is pointing in the wrong direction.
The "No Filter" Method (Polar-only):
- Action: You just align the antenna on the raw, noisy signal without any smoothing.
- Result: Worst performance. The antenna is jittery and confused by the storm.
The Analogy: Imagine trying to draw a straight line on a piece of paper while someone is shaking the table (noise).
- Muon (Clean First): You wait for the table to stop shaking (smoothing), then you draw your straight line.
- Post-polar (Align First): You try to draw a straight line while the table is shaking, and then you try to "smooth" the drawing afterward. The line is already crooked; smoothing the paper doesn't fix the crooked line.
Why Does "Cleaning First" Work? (The Spectral Filter)
The paper explains that momentum acts like a spectral filter. Think of the signal as a deep, steady bass note (the truth) and the noise as high-pitched, chaotic squeaks.
- The Problem: If you look at the raw data, the squeaks are so loud they drown out the bass. If you try to find the "direction" of the music immediately, you might think the squeaks are the song.
- The Solution: Momentum acts like a low-pass filter. It averages out the rapid, chaotic squeaks (noise) over time, but it keeps the steady, deep bass note (the signal) intact.
- The Result: Once the noise is filtered out, the "direction" of the music becomes very clear. The gap between the loud bass (signal) and the quiet squeaks (noise) becomes huge. This makes it very easy for the next step (Orthogonalization) to lock onto the correct direction.
The "Spectral Gap"
The authors prove mathematically that when you use momentum before aligning, it creates a Spectral Gap.
- Imagine the signal and noise are two different colors of light mixed together.
- Without momentum, the colors are muddy and hard to separate.
- With momentum, the noise fades away, leaving the signal color bright and distinct.
- This "gap" makes the final alignment step much more reliable. It's like trying to find a needle in a haystack: if you first remove all the hay (noise), finding the needle (signal) is easy.
What the Experiments Showed
The authors didn't just do math; they tested this on real AI models (like NanoGPT and LLaMA).
- They found that the "Clean First" method (Muon) consistently beat the other methods.
- They visualized the data and saw that as they increased the "smoothing" (momentum), the noise disappeared, and the signal became clearer, exactly as their theory predicted.
- They confirmed that if you try to align the antenna before smoothing, the AI gets confused and learns slower.
The Takeaway
The paper concludes with a simple design rule for future AI optimizers: Denoise First, Orthogonalize Later.
If you are building a system that needs to find a clear direction in a noisy world, do not try to make perfect decisions while the world is chaotic. First, smooth out the chaos to find the truth, and then make your decision. In the world of AI training, this means letting the momentum buffer clean up the noise before you try to orthogonalize (align) the update.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.