arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.29554cs.LGcs.NAmath.NAmath.OCstat.ML
收藏

优化器记忆使洗牌顺序成为微调噪声的一阶来源

Optimizer Memory Makes Shuffle Order a First-Order Source of Fine-Tuning Noise

John Sweeney

AI总结:

本文发现,在固定时钟优化器(如AdamW)中,数据洗牌顺序通过动量缓冲等记忆机制产生一阶学习率量级的微调噪声,比无记忆分析预测的噪声更大,并提供了无拟合的噪声大小估计方法。

摘要:

洗牌顺序可能比无记忆分析预测的更大来源的微调噪声:固定时钟优化器记忆使得局部等多重集对比在学习率上为一阶而非二阶,由此产生的顺序通道可能大到足以使单个种子翻转一个接近的A/B比较。我们隔离了这一机制,并推导出一种无拟合的方法来量化其产生的噪声。对于无记忆优化器,重新排列等多重集没有一阶端点项;主要的局部对比是$O(η^2)$梯度括号。固定时钟优化器如AdamW则不同。它们的动量缓冲区、预条件器状态和去偏计数器随步索引而非学习率缩放时间$τ=ηk$前进,因此相同的梯度可能获得位置相关的端点权重。对于任何固定的有限测量窗口,当一阶重放系数非零时,提升状态展开给出$O(η)$等多重集对比,而常规和时钟匹配控制仍为$O(η^2)$;仅裸固定$β$动量缓冲区就足够了。从一个预热优化器状态进行按位确定性重放隔离了该机制,得到AdamW的阶方差斜率为1.83,固定$β$动量为2.00,SGD为4.00;将记忆时钟匹配到$τ$可恢复常规指数。对于冻结预条件器的AdamW,相同的脉冲权重核在测量局部势能后给出闭合形式的渐近阶方差下限,无需拟合系数。该结果局限于测量窗口(独立重洗牌可跨窗口平均通道),但它提供了阶噪声误差条、位置归因权重以及微调比较的种子预算准则。

英文摘要:

Shuffle order can be a larger source of fine-tuning noise than a memoryless analysis predicts: fixed-clock optimizer memory makes local equal-multiset contrasts first order in the learning rate rather than second order, and the resulting order channel can be large enough for a single seed to flip a close A/B comparison. We isolate this mechanism and derive a fit-free way to size the noise it produces. For a memoryless optimizer, reordering an equal multiset has no first-order endpoint term; the leading local contrast is the $O(η^2)$ gradient bracket. Fixed-clock optimizers such as AdamW are different. Their moment buffers, preconditioner state, and de-biasing counters advance with the step index rather than with the learning-rate-scaled time $τ=ηk$, so the same gradient can receive a position-dependent endpoint weight. For any fixed finite measurement window, a lifted-state expansion gives an $O(η)$ equal-multiset contrast whenever the first-order replay coefficient is nonzero, while regular and clock-matched controls remain $O(η^2)$; a bare fixed-$β$ momentum buffer is already enough. A bitwise-deterministic replay from one warmed optimizer state isolates the mechanism, giving order-variance slopes 1.83 for AdamW, 2.00 for fixed-$β$ momentum, and 4.00 for SGD; matching the memory clock to $τ$ restores the regular exponent. For AdamW with a frozen preconditioner, the same impulse-weight kernel gives a closed-form asymptotic order-variance floor after the local potentials are measured, with no fitted coefficients. The result is local to the measurement window (independent reshuffling can average the channel across windows), but it yields order-noise error bars, positional attribution weights, and a seed-budget criterion for fine-tuning comparisons.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑