How do simple rotations affect the implicit bias of Adam?
Adela DePavia, Vasileios Charisopoulos, Rebecca Willett
TL;DR
The paper investigates how simple data rotations affect the implicit bias of Adam-like optimizers. It shows that the inherent richness bias of adaptive methods can be destroyed or reversed by small rotations, yielding linear decision boundaries that generalize worse than those learned by SGD. To address this, it introduces EGOP-reparameterization, an orthogonal transform of the optimization objective based on the eigenbasis of the expected gradient outer product, proving rotation equivariance for any first-order method and demonstrating empirical restoration of nonlinear, Bayes-like boundaries. The findings highlight the critical role of data geometry in optimizer-induced generalization and offer a practical, broadly applicable remedy that extends to related preconditioning methods like Shampoo and SOAP.
Abstract
Adaptive gradient methods such as Adam and Adagrad are widely used in machine learning, yet their effect on the generalization of learned models -- relative to methods like gradient descent -- remains poorly understood. Prior work on binary classification suggests that Adam exhibits a ``richness bias,'' which can help it learn nonlinear decision boundaries closer to the Bayes-optimal decision boundary relative to gradient descent. However, the coordinate-wise preconditioning scheme employed by Adam renders the overall method sensitive to orthogonal transformations of feature space. We show that this sensitivity can manifest as a reversal of Adam's competitive advantage: even small rotations of the underlying data distribution can make Adam forfeit its richness bias and converge to a linear decision boundary that is farther from the Bayes-optimal decision boundary than the one learned by gradient descent. To alleviate this issue, we show that a recently proposed reparameterization method -- which applies an orthogonal transformation to the optimization objective -- endows any first-order method with equivariance to data rotations, and we empirically demonstrate its ability to restore Adam's bias towards rich decision boundaries.
