On the Two Faces of Adam in Separable Linear Classification
Abstract
We consider the behavior of deterministic, full-batch, bias-corrected Adam in separable linear classification with softmax parametrization under log-loss. In this setting, under a wide range of conditions Adam is known to approach max-norm-margin optimality when its stability constant is zero, while with a positive , it is known to approach Euclidean-margin optimality. Our main contribution is the quantitative description of Adam's behavior for small fixed positive . We give sufficient conditions under which an Adam-trained classifier nearly maximizes the max-norm margin before the updates become gradient-like. We also show that the classifier reaches a fixed target Euclidean margin only much later. Specifically, we show that for polynomially decreasing stepsizes with exponent , where , the updates become approximately proportional to the negative gradient after iterations. At that time, the classifier still nearly maximizes the max-norm margin. Reaching a fixed target Euclidean margin above that of every max-norm-optimal classifier, but below the optimum, is shown to require iterations. Under inverse-linear stepsize decay (), the update transition takes polynomially many iterations, whereas reaching the target margin takes exponentially many. Experiments support these predictions. The later change in the classifier can improve or worsen generalization after training error reaches zero, connecting the analysis to grokking and its reverse.
Create a lesson
Related papers
Linear Attention Has Superlinear Capacity
Shared title terminologycs.LGHao Guo, Sudhaunshu Hardikar, Simon Dennis et al.
Automated Machine Learning for Time-Series Early Warning Systems: Separating Signal from Mirage Alarms
Shared title terminologycs.LGFrederick von Rönge
Efficient Algorithms for Lifelong Representation Learning in Linear Bandits Beyond Task Diversity
Shared title terminologycs.LGThang Duong, Zhi Wang, Chicheng Zhang
Ultra-weak separable physics-informed neural networks
Shared title terminologycs.LGBruno Jacob, Carlos Antonio Ribeiro Duarte
CSDD: Class-wise Shapley Contribution Dispersion for Free-Rider Defense in Federated Classification
Shared title terminologycs.LGXiaodong Guo, Ruiyun Zheng, Yinan Sun et al.
Do Personal Adapters Carry Over Across Sessions? Separating Personal From Population Gains When Calibrating EEG Foundation Models for Motor Imagery
Shared title terminologycs.LGXilin Tao, Kani Chen