Optimizer-Induced Mode Connectivity: From AdamW to Muon
This paper demonstrates that optimizers like AdamW and Muon induce distinct, often disconnected, zero-loss solution manifolds in neural networks, revealing that mode connectivity is fundamentally dependent on the specific optimizer and its implicit regularization rather than being a universal property of the loss landscape.
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 find the lowest point in a vast, mountainous landscape. This landscape represents the "loss function" of a neural network: the higher you are, the worse your model performs; the lower you are, the better.
For a long time, researchers believed that if you trained two different models to reach the very bottom of this valley (the "zero-loss" state), you could draw a simple, smooth path between them without ever climbing back up a hill. This idea is called Mode Connectivity. It's like saying, "If two hikers found the bottom of the same valley, there must be a flat trail connecting them."
However, this paper asks a new question: Does the path depend on how the hikers walked?
The authors introduce two different "hiking styles" (optimizers):
- AdamW: The classic, reliable hiker.
- Muon: A newer, more specialized hiker that moves differently.
Here is what the paper discovered, explained through simple analogies:
1. The "Spectral Fingerprint"
Every model has a unique "fingerprint" made of numbers called singular values (think of these as the model's internal "muscle tone" or "shape").
- AdamW models tend to have a few very strong muscles and many weak ones (outliers in the spectrum).
- Muon models tend to have muscles that are all roughly the same size (a more balanced, "isotropic" spectrum).
The paper found that if you take two models trained with AdamW, you can walk between them, and their "muscle tone" stays consistent. If you take two Muon models, the same is true. They stay in their own "neighborhoods."
2. The Same-Optimizer Highway (Intra-Optimizer Connectivity)
The paper proves mathematically that if the neural network is wide enough (has enough neurons), all the solutions found by AdamW are connected by a smooth, low-loss path. The same is true for Muon.
- Analogy: Imagine a large, flat meadow. If you and your friend both use the same hiking boots (AdamW), you can walk from your spot to your friend's spot without ever stepping on a rock or going uphill. You stay in the same "boot-print" zone.
3. The Cross-Optimizer Barrier (Inter-Optimizer Disconnectivity)
This is the most surprising part. What happens if you try to walk from an AdamW model to a Muon model?
- The Theory: In a small, simple network, the authors proved that the "AdamW valley" and the "Muon valley" might be separated by a high mountain ridge. You cannot walk from one to the other without climbing up and losing performance. They are in different "islands" of the solution space.
- The Reality (Large Models): In their large-scale experiments (using GPT-2, a language model), they found that while you can connect them, the path is special. As you walk from AdamW to Muon, the model's "muscle tone" (spectrum) doesn't just stay the same; it smoothly transforms.
- Analogy: Imagine walking from a forest of pine trees (AdamW) to a forest of oak trees (Muon). You don't just teleport; you walk through a transition zone where the trees gradually change from pine to oak. The path exists, but it passes through a unique "hybrid" landscape that neither optimizer would naturally create on its own.
4. The "Smoothie" Effect (Generalization)
The paper tested what happens if you take a model halfway between an AdamW solution and a Muon solution.
- The Result: These "hybrid" models often performed better on data they hadn't seen before (out-of-distribution generalization) than the original models.
- Analogy: If you blend a coffee (AdamW) and a tea (Muon), you get a new drink that might taste better to some people than either the coffee or the tea alone. The "blend" explores parts of the landscape that the individual optimizers missed.
Summary of Claims
- Same Optimizer: If you use the same optimizer twice, the solutions are connected by a smooth path that keeps the model's internal structure consistent.
- Different Optimizers: If you use different optimizers, the solutions might be separated by a barrier in small networks, or connected by a path that smoothly transitions the model's internal structure in large networks.
- The Benefit: Walking between these different optimizer solutions creates "hybrid" models that can generalize better to new, unseen data.
The paper does not claim this works for medical diagnosis, autonomous driving, or specific future AI applications. It strictly focuses on the mathematical geometry of how these models connect and the empirical observation that mixing them improves generalization in language model training.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.