Paper: 2603.03099 Authors: Ruinan Jin, Yingbin Liang, Shaofeng Zou Categories: cs.LG, cs.AI

The Gap

Everyone knows Adam converges faster than SGD in practice. But existing theory says they should perform roughly the same—both get O(1/√T) convergence rates, both need similar iteration counts. The theory-practice mismatch has been an open embarrassment: we use Adam everywhere but can’t explain why it’s actually better.

Prior work (Kingma & Ba 2015, Reddi et al. 2018, Zaheer et al. 2018) focused on expectation-based convergence guarantees. They showed Adam and SGD both achieve similar rates in expectation. The problem? Real training cares about high-probability guarantees—you want to know “with 99% confidence, my loss will be below X after T steps,” not just “on average across infinite parallel universes.”

Empirical Reality              Theoretical Void              This Paper's Bridge
                                                            
Adam trains faster    -->   Existing theory says      -->  Stopping-time analysis
in practice                 Adam ~ SGD in expectation      reveals structural difference
                                                            
                            Gap: High-probability          Second-moment normalization
                            behavior unexplained           gives δ^(-1/2) vs δ^(-1)
                                                            
                            Bounded variance model         Martingale concentration
                            insufficient                   + variance decomposition

The Increment

One sentence: Before this paper, theory couldn’t distinguish Adam from SGD; after, we have the first proof that Adam’s second-moment normalization fundamentally improves high-probability convergence by a √δ factor.

Core Mechanism

The analysis has three interlocking pieces. First, they decompose Adam’s update into a “normalized SGD” view: instead of taking gradient steps, Adam takes steps normalized by the accumulated second moment. This normalization acts as an adaptive learning rate that shrinks when gradients are large and grows when they’re small.

Second, they introduce a stopping-time argument. Traditional analysis averages over all T iterations. Instead, they track when the algorithm “stops making progress”—when the gradient norm drops below a threshold. This stopping time τ is itself a random variable that depends on the optimization trajectory.

Third, they apply martingale concentration inequalities to bound how far the actual trajectory deviates from its expected path. Here’s where the magic happens: SGD’s variance accumulates linearly with each step, but Adam’s second-moment normalization keeps the variance per step bounded. When you sum up T steps, SGD needs a δ^(-1) penalty to control tail probability, while Adam only needs δ^(-1/2).

Adam's Internal Flow:

Gradient g_t  -->  [Square & Accumulate]  -->  v_t = β*v_(t-1) + (1-β)*g_t^2
                            |
                            v
                   [Normalize Step Size]
                            |
                            v
Update: x_t - (α/√v_t) * g_t  -->  Next iterate x_(t+1)

Key: Division by √v_t keeps per-step variance bounded
     SGD lacks this, so variance grows with gradient magnitude

Think of it like driving on a winding mountain road. SGD is like maintaining constant speed—when the road gets steep (large gradients), you accelerate dangerously; when it flattens (small gradients), you crawl. Adam is like cruise control that adjusts to terrain—it automatically slows on steep sections and speeds up on flat ones. The second moment v_t is your speedometer reading the “steepness,” and dividing by √v_t is the automatic brake/accelerator.

The stopping-time analysis is like asking: “How long until I reach the summit?” Instead of averaging over all possible routes, you track the specific path you’re on and ask when you’ll hit the “gradient small enough” milestone. The martingale bound says: “Even if you hit bad weather (unlucky gradient samples), the cruise control keeps you from veering too far off course.” SGD without cruise control can veer wildly, requiring much stronger safety margins (the δ^(-1) factor).

Key Concepts

  • Second-Moment Normalization: Imagine you’re adjusting a recipe. SGD says “add 1 cup of each ingredient.” Adam says “add ingredients in proportion to how much you’ve used so far.” If you’ve been heavy-handed with salt (large gradients in that direction), Adam automatically reduces the next salt addition by dividing by √(accumulated salt usage). This prevents any single ingredient from dominating. Mathematically, instead of step size α, Adam uses α/√v_t where v_t tracks the sum of squared gradients. The square root is crucial—it’s the geometric mean that balances the scale.

  • High-Probability vs Expectation Guarantees: Expectation tells you the average outcome if you ran training infinite times. High-probability tells you “in 99 out of 100 runs, you’ll achieve this.” It’s the difference between “average flight time is 3 hours” and “99% of flights arrive within 3.5 hours.” The confidence parameter δ controls this: δ=0.01 means 99% confidence. SGD’s guarantee degrades as δ^(-1)—to go from 90% to 99% confidence (δ: 0.1→0.01), you pay 10× in iteration count. Adam only pays √10 ≈ 3.16×.

  • Stopping-Time Analysis: Traditional convergence proofs fix T iterations upfront and bound the final error. Stopping-time flips this: define a target error ε, then bound how many iterations until you hit it. The stopping time τ is random—it depends on which gradient samples you draw. The trick is proving that even though τ is random and depends on the past, you can still get concentration bounds. It’s like proving “even though you don’t know when you’ll finish the race, you can still bound your finish time with high probability.”

Framework Shift

Before (expectation-based):        After (high-probability):

E[f(x_T) - f*] < ε                P[f(x_τ) - f* < ε] > 1-δ
      |                                    |
      v                                    v
Average over all runs              Bound on single run
                                          |
SGD: Need T = O(1/ε^2)                   v
Adam: Need T = O(1/ε^2)            SGD: T = O(1/(ε^2*δ))
                                   Adam: T = O(1/(ε^2*√δ))
No distinction!                           ^
                                          |
                                   √δ improvement!

From “what happens on average” to “what happens in your actual training run,” the core shift is exposing how variance control translates to tail probability control.

Expert Assessment

Problem choice: This is a real gap, not manufactured. The Adam-vs-SGD mystery has been a thorn in optimization theory’s side since 2015. Practitioners know Adam works better, theorists couldn’t explain it—that’s a genuine intellectual debt. The paper sits at a sweet spot: not chasing incremental improvements, but resolving a foundational mismatch.

Method maturity: The stopping-time/martingale approach is clever, not brute force. It’s a natural tool from probability theory that hasn’t been fully exploited in optimization analysis. That said, the bounded variance assumption is doing heavy lifting—real neural nets violate this regularly. The authors acknowledge this but don’t explore how far the result extends. A simpler approach might be direct concentration inequalities without stopping times, but those typically give looser bounds.

Experimental integrity: This is a theory paper—no experiments to scrutinize. The proofs appear sound (modulo detailed verification), and the authors clearly state their assumptions. The bounded variance model is classical but restrictive. A red flag: they don’t discuss what happens when variance is unbounded, which is common in deep learning. The result is clean but potentially fragile.

Writing quality: The intro and main theorem are crisp. The proof sketch in Section 3 is readable. But Section 4 (full proofs) is dense and could use more intuition. The paper would benefit from a “proof roadmap” figure showing how the lemmas connect. Also, they bury the key insight—that second-moment normalization bounds per-step variance—in the middle of a proof. That should be a highlighted remark.

Verdict: weak accept — Solves a real problem with a novel technique, but the bounded variance assumption limits practical impact and the writing doesn’t fully capitalize on the insight’s elegance.

Takeaways

If you’re designing a new optimizer, steal the “variance normalization” principle: track some measure of gradient variability and divide your step size by it. This isn’t just about Adam—any algorithm that normalizes by accumulated statistics can potentially get better high-probability guarantees.

For theorists: stopping-time analysis is underused in optimization. If you’re stuck proving high-probability bounds with standard techniques, try defining a stopping time based on your convergence criterion and applying martingale concentration. The key trick here is showing the stopped process still concentrates despite τ being random.

For practitioners: this paper won’t change what you do (you’re already using Adam), but it gives you ammunition when someone asks “why not SGD?” The answer is now precise: Adam’s high-probability guarantees are fundamentally better by a √δ factor, which matters when you care about reliability, not just average performance.

One concrete technique: the variance decomposition in Lemma 3.2 (splitting variance into “within-step” and “across-step” components) is a general proof strategy that could apply to analyzing other adaptive methods like RMSprop or AdaGrad variants.

论文: 2603.03099 作者: Ruinan Jin, Yingbin Liang, Shaofeng Zou 分类: cs.LG, cs.AI

缺口

大家都知道 Adam 在实践中比 SGD 收敛更快。 但现有理论说它们性能应该差不多——都是 O(1/√T) 收敛率,都需要相似的迭代次数。 理论与实践的错配一直是个公开的尴尬:我们到处用 Adam 却说不清它为什么真的更好。

之前的工作(Kingma & Ba 2015, Reddi et al. 2018, Zaheer et al. 2018)聚焦于基于期望的收敛保证。 它们证明了 Adam 和 SGD 在期望意义下都能达到相似的速率。 问题在哪?真实训练关心的是高概率保证——你想知道”有 99% 把握,T 步后损失会低于 X”,而不只是”在无限平行宇宙的平均值”。

实证现实              理论空白              本文的桥梁
                                                            
Adam 训练更快    -->   现有理论说          -->  停时分析揭示
在实践中               Adam ~ SGD 期望上        结构性差异
                                                            
                      缺口:高概率              二阶矩归一化
                      行为未解释               给出 δ^(-1/2) vs δ^(-1)
                                                            
                      有界方差模型             鞅集中
                      不充分                   + 方差分解

增量

一句话: 这篇论文之前,理论无法区分 Adam 和 SGD;之后,我们有了首个证明——Adam 的二阶矩归一化从根本上将高概率收敛改进了 √δ 倍。

核心机制

分析有三个互锁的部分。 首先,他们把 Adam 的更新分解为”归一化 SGD”视角:不是直接走梯度步,Adam 走的是被累积二阶矩归一化后的步。 这个归一化充当自适应学习率——梯度大时缩小,梯度小时放大。

其次,他们引入停时论证。 传统分析对所有 T 次迭代取平均。 相反,他们追踪算法何时”停止进展”——即梯度范数降到阈值以下。 这个停时 τ 本身是个随机变量,依赖于优化轨迹。

第三,他们应用鞅集中不等式来界定实际轨迹偏离期望路径的程度。 魔法在这里发生:SGD 的方差随每步线性累积,但 Adam 的二阶矩归一化让每步方差保持有界。 当你累加 T 步时,SGD 需要 δ^(-1) 惩罚来控制尾概率,而 Adam 只需要 δ^(-1/2)。

Adam 的内部流程:

梯度 g_t  -->  [平方并累积]  -->  v_t = β*v_(t-1) + (1-β)*g_t^2
                      |
                      v
              [归一化步长]
                      |
                      v
更新: x_t - (α/√v_t) * g_t  -->  下一个迭代点 x_(t+1)

关键:除以 √v_t 让每步方差保持有界
     SGD 缺少这个,所以方差随梯度幅度增长

把它想象成在蜿蜒山路上开车。 SGD 像是保持恒定速度——路陡时(大梯度)你危险加速;路平时(小梯度)你缓慢爬行。 Adam 像是根据地形调整的定速巡航——在陡峭路段自动减速,在平坦路段加速。 二阶矩 v_t 是你的速度表读取”陡峭度”,除以 √v_t 是自动刹车/油门。

停时分析就像问:“多久能到山顶?”不是对所有可能路线取平均,而是追踪你正在走的具体路径,问何时会达到”梯度足够小”的里程碑。 鞅界说:“即使遇到坏天气(不幸的梯度样本),定速巡航也能防止你偏离航线太远。“没有定速巡航的 SGD 可能剧烈偏离,需要强得多的安全边际(δ^(-1) 因子)。

关键概念

  • 二阶矩归一化: 想象你在调整食谱。 SGD 说”每种配料加 1 杯”。 Adam 说”按你目前用量的比例加配料”。 如果你盐用得太重(该方向梯度大),Adam 通过除以 √(累积盐用量) 自动减少下次加盐量。 这防止任何单一配料占主导。 数学上,不是步长 α,Adam 用 α/√v_t,其中 v_t 追踪梯度平方和。 平方根至关重要——它是平衡尺度的几何平均。

  • 高概率 vs 期望保证: 期望告诉你如果无限次运行训练的平均结果。 高概率告诉你”100 次运行中 99 次能达到这个”。 这是”平均飞行时间 3 小时”和”99% 航班 3.5 小时内到达”的区别。 置信参数 δ 控制这个:δ=0.01 意味着 99% 置信度。 SGD 的保证按 δ^(-1) 退化——从 90% 到 99% 置信度(δ: 0.1→0.01),你在迭代次数上付出 10 倍代价。 Adam 只付出 √10 ≈ 3.16 倍。

  • 停时分析: 传统收敛证明预先固定 T 次迭代并界定最终误差。 停时翻转这个:定义目标误差 ε,然后界定达到它需要多少次迭代。 停时 τ 是随机的——取决于你抽到哪些梯度样本。 技巧在于证明即使 τ 是随机的且依赖于过去,你仍能得到集中界。 就像证明”即使你不知道何时完成比赛,你仍能高概率界定完成时间”。

框架转变

之前(基于期望):                之后(高概率):

E[f(x_T) - f*] < ε            P[f(x_τ) - f* < ε] > 1-δ
      |                                |
      v                                v
所有运行的平均                    单次运行的界
                                      |
SGD: 需要 T = O(1/ε^2)               v
Adam: 需要 T = O(1/ε^2)        SGD: T = O(1/(ε^2*δ))
                               Adam: T = O(1/(ε^2*√δ))
无法区分!                             ^
                                      |
                               √δ 改进!

从”平均发生什么”到”你实际训练中发生什么”,核心转变是揭示方差控制如何转化为尾概率控制。

专家评审

选题眼光: 这是真缺口,不是人造的。 Adam-vs-SGD 之谜自 2015 年以来一直是优化理论的眼中钉。 实践者知道 Adam 更好用,理论家解释不了——这是真正的智识债务。 论文处于甜蜜点:不是追逐增量改进,而是解决根本性错配。

方法成熟度: 停时/鞅方法是巧劲,不是蛮力。 这是概率论中的自然工具,在优化分析中还没被充分利用。 话虽如此,有界方差假设承担了重任——真实神经网络经常违反这个。 作者承认这点但没探索结果能延伸多远。 更简单的方法可能是不用停时的直接集中不等式,但那些通常给出更松的界。

实验诚意: 这是理论论文——没有实验可审查。 证明看起来可靠(需详细验证),作者清楚陈述了假设。 有界方差模型是经典的但有限制性。 值得警惕之处:他们没讨论方差无界时会怎样,这在深度学习中很常见。 结果干净但可能脆弱。

写作功力: 引言和主定理简洁。 第 3 节的证明草图可读。 但第 4 节(完整证明)密集,需要更多直觉。 论文会受益于”证明路线图”图示,展示引理如何连接。 另外,他们把关键洞见——二阶矩归一化界定每步方差——埋在证明中间。 那应该是高亮备注。

判决: 弱接收 — 用新颖技术解决真问题,但有界方差假设限制了实际影响,写作没有充分利用洞见的优雅性。

要点总结

如果你在设计新优化器,偷走”方差归一化”原则:追踪某种梯度变异性度量,用它除你的步长。 这不只关于 Adam——任何通过累积统计量归一化的算法都可能获得更好的高概率保证。

对理论家:停时分析在优化中使用不足。 如果你用标准技术证明高概率界卡住了,试试基于收敛准则定义停时并应用鞅集中。 这里的关键技巧是证明停止过程尽管 τ 是随机的仍然集中。

对实践者:这篇论文不会改变你的做法(你已经在用 Adam),但当有人问”为什么不用 SGD”时它给你弹药。 答案现在很精确:Adam 的高概率保证从根本上好 √δ 倍,当你关心可靠性而非仅平均性能时这很重要。

一个具体技术:引理 3.2 中的方差分解(将方差拆分为”步内”和”跨步”成分)是通用证明策略,可应用于分析其他自适应方法如 RMSprop 或 AdaGrad 变体。