The Implicit Bias of Adam and Muon on Smooth Homogeneous Neural Networks
Abstract
Lay Summary
"Generalization" is the measure of how well machine learning models perform on data they did not see during training. A prevalent problem in machine learning is "overfitting" - when models adapt too well to their training data and generalize poorly, like a student memorizing solutions to problems instead of understanding the underlying concepts. One source of good generalization is for the model to have a large "confidence margin" for its decisions: even if the input changes a bit, the decision of the model doesn't flip. Often, to ensure that models generalize well and don't overfit, it is necessary to incorporate smart training strategies like penalizing the model for being too sophisticated. However, surprisingly, sometimes models can learn to generalize even without such explicit penalizing strategies. Researchers noticed that this might be related to the training algorithm "gradient descent" and its variants; this line of research is called "implicit bias". We analyze popular variants of gradient descent called Adam and Muon, on a specific set of models called smooth homogeneous models. We prove mathematically and show experimentally that training with Adam, Muon, and other algorithms encourages the model to generalize well by increasing a sort of margin for its decisions. Also, interestingly, the characteristics of this margin depend on the algorithm used.