arXiv:2606.29554cs.LGcs.NA2026-06被引 4

优化器内存让数据顺序成为微调噪声的首要来源

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

论文配图:Optimizer Memory Makes Shuffle Order a First-Order Source of Fine-Tuning Noise
图 1 · 摘自论文原文
  • 固定时钟优化器使数据顺序产生一阶噪声,而非传统认为的二阶
  • 同一组数据重排可导致接近对比结果翻转,噪声幅度达1.83~4.00倍
  • 适用于评估微调结果稳定性,尤其对种子敏感场景

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

原文摘要 · Abstract (English)

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.

微调噪声优化器内存数据顺序随机性控制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。