在不同ε值下重播相同梯度:针对Adam优化器ε的固定轨迹解释的注册测试(针对一个稀有行)
Replaying the Same Gradients at a Different $\varepsilon$: A Registered Test of the Fixed-Trajectory Account of Adam's $\varepsilon$ for One Rare Row
AI总结:
本研究通过固定轨迹重播梯度的方法,测试Adam优化器ε的固定轨迹解释,发现ε增大四个数量级时重播判定为错误,且仅增大探测行ε可重现其变化,为优化器ε的作用机制提供了新的实验证据。
摘要:
Adam优化器将每个更新除以梯度平方的运行平均值的平方根加上一个小常数ε。对于token为稀有词的输出嵌入行(我们称之为探测行),增大ε可被解读为仅通过算术运算缩小该行的步长。我们直接测试这一解读。在训练运行过程中,我们使用该运行自身的矩估计值,将探测行的更新除以不同的ε;这种重播是对该运行实际所见梯度的精确算术运算,因此保持了该运行的轨迹固定。在运行开始前就已确定了重播被判定为错误的规则。我们以标准配置训练了一个小型因果Transformer。当ε增大四个数量级时,在为该测试注册的三个随机种子上,重播均被判定为错误:探测行保留的位移比主采样负头预测的多8.9-11.4倍,在作为第二工具评分的全Softmax头上则多5.0-7.7倍。在三个数量级时,仅用主头测试,重播以微弱差距未被判定为错误;在该结果确定后注册并单独评分的另外两个随机种子也遵循相同模式。在单独的实际运行中,仅增大探测行的ε就足以重现该行的变化,而仅增大其他所有参数的ε也会使该行产生一定程度的移动——这些关于运行的解读均无法挽救重播;相反,缩放该行的学习率(分母不变)会被重播在相同方向上错误预测。这是一个模型家族的一个嵌入行在一个语料库上的结果;我们未对比例、一般行(其他行仅作为一条轨迹的面板被读取)或效果如何随模型大小变化提出任何主张。
英文摘要:
Adam divides every update by the square root of a running average of squared gradients plus a small constant, epsilon. For an output-embedding row whose token is rare, which we call the probe row, raising epsilon can be read as shrinking that row's steps by arithmetic alone. We test that reading directly. While a training run proceeds, we also divide the probe row's update by a different epsilon, using the run's own moment estimates; this replay is exact arithmetic on the gradients the run actually saw, so it holds the run's trajectory fixed. A rule for when the replay counts as wrong was written down before the runs. We train a small causal transformer in a standard configuration. When epsilon rises by four orders of magnitude, the replay counts as wrong on each of the three seeds registered for the test: the probe row keeps 8.9--11.4 times more of its displacement than predicted with the main, sampled-negative head, and 5.0--7.7 times more with a full-softmax head scored as a second instrument. At three orders of magnitude, tested with the main head only, it does not, by narrow margins; a further two seeds, registered after this result had been committed and scored on their own, follow the same pattern. In separate real runs, raising epsilon on the probe row alone is enough to reproduce the row's change and raising it on every other parameter alone also moves the row part of the way --- readings about the runs that do not rescue the replay; scaling the row's learning rate instead, with the denominator untouched, is mispredicted by the replay in the same direction. This is one embedding row of one model family on one corpus; we make no claim about rates, about rows in general (other rows were read only as a panel on one trajectory) or about how the effect changes with model size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。