研究揭示Adam与梯度下降在旋转对称性上的优化差异
The Loss Does Not See the Basis, but Adam Does
研究指出,梯度下降(GD)具有旋转等变性并呈现低秩偏置,而Adam不具备这一性质;仅依赖当前梯度且尊重旋转对称性的算法等价于一个只依赖梯度Gram矩阵的左预条件器,据此可用范数检验区分二者。在欠定矩阵感知任务中,九种优化器的分组结果与该检验一致;在四个高光谱场景上,Adam的解与GD解的距离比两次不同步长的GD运行之间远数百至数千倍。
arXiv:2608.05136v2 Announce Type: replace Abstract: Different optimization algorithms can find very different solutions to the same problem. Gradient descent (GD) exhibits a low-rank bias in overparameterized problems when initialized near zero, while Adam does not. GD is rotationally equivariant: rotating both factors of a factored model $W = UV^\top$ by an orthogonal matrix leaves the loss unchanged, and GD's solution rotates accordingly. In contrast, Adam is not. We show that any algorithm using only the current gradient and respecting rotational symmetry amounts to a left-preconditioner depending only on the gradient's Gram matrix. This gives a norm-based test, which passes for the spectral norm in Muon and fails for Adam's $\ell_\infty$ norm. Empirically, nine optimizers fall into groups consistent with the test on underdetermined matrix sensing. Sharing Adam's second moment across coordinates gradually recovers a low-rank bias, and its solutions approach GD's as the stepsize decreases. On four hyperspectral scenes, Adam's solutions are hundreds to thousands of times further from GD's than two GD runs with different step sizes are from each other. In transformers and LoRA adapters, Adam separates two rotationally equivalent models from the first iteration, and learns higher-rank attention updates. Overall, recovering particular solutions depends on the optimizer's invisible coordinate basis, as well as how fast it grows small singular values relative to large ones.
来源:arXiv (AI + Vision + Imaging) · arxiv.org