---
title: "【AI 核心深度 M3-039】比较 Adagrad / RMSProp / AdaDelta 的思想与 Adagrad 的缺陷（Comparing Adagrad, RMSProp, and AdaDelta: The Diminishing Learning Rate Problem）深度数理推导与工程落地解析"
canonical_url: "https://airsota.com/2026/10/01/science-depth-m3-039-optimizers-second-order-methods/"
date_published: "2026-10-01T10:17:54-07:00"
date_modified: "2026-10-01T10:17:54-07:00"
language: "zh-CN"
categories: ["AI 核心深度 856 题 (Science Depth)", "TalentMe (AI 学习与算法架构)", "大厂算法与面试备考 (Interview Guides &amp; Math)"]
tags: ["applied-scientist", "machine-learning", "module-m3", "optimizers-second-order-methods", "science-depth"]
summary: "Adagrad 累积所有历史梯度平方（学习率单调衰减→后期停滞）；RMSProp 用 EWMA 替代累积；AdaDelta 用参数更新量的 RMS 替代固定 lr。"
publisher: "AirSOTA (https://airsota.com)"
---

# 【AI 核心深度 M3-039】比较 Adagrad / RMSProp / AdaDelta 的思想与 Adagrad 的缺陷（Comparing Adagrad, RMSProp, and AdaDelta: The Diminishing Learning Rate Problem）深度数理推导与工程落地解析

> **Executive Summary**: Adagrad 累积所有历史梯度平方（学习率单调衰减→后期停滞）；RMSProp 用 EWMA 替代累积；AdaDelta 用参数更新量的 RMS 替代固定 lr。

> 
**所属模块**：`M3 · 深度学习基础 (Deep Learning Foundations)` | **专题分类**：`优化器 (Optimizers & Second-Order Methods)` | **难度等级**：`Medium`

### 一、核心一句话结论 (One-Sentence Summary)

**Adagrad 累积所有历史梯度平方（学习率单调衰减→后期停滞）；RMSProp 用 EWMA 替代累积；AdaDelta 用参数更新量的 RMS 替代固定 lr。**

*Adagrad accumulates all historical squared gradients causing premature learning rate collapse; RMSProp replaces sum with exponential moving average to preserve adaptive learning.*

### 二、核心考点要义 (Key Insights)

- 📌 Adagrad 的 v 单调增 → 有效 lr 单调减 → 后期几乎不动

- 📌 RMSProp 的 EWMA 让 v 有界、学习率不衰减到 0

- 📌 AdaDelta 无需设置 lr（用历史更新量的 RMS 自适应）

**English Insights:**

- *Adagrad: $v_t = v_{t-1} + g_t^2$; monotonically increasing $v_t$ drives effective learning rate $eta / sqrt{v_t}$ to zero prematurely*

- *RMSProp: $v_t = beta v_{t-1} + (1 - beta) g_t^2$; leaky moving average discards distant history, enabling continuous adaptation*

- *AdaDelta: eliminates learning rate hyperparameter entirely by tracking parameter displacement root-mean-square*

### 三、核心数学原理与机理推导 (Mathematical Principles & Derivation)

$$text{Adagrad}: v_t=v_{t-1}+g_t^2;qquad text{RMSProp}: v_t=beta v_{t-1}+(1-beta)g_t^2;qquad text{AdaDelta}: Deltatheta=-frac{mathrm{RMS}[Deltatheta]_{t-1}}{mathrm{RMS}[g]_t}g_t$$

数学机理：三者都在 Adam 的谱系上。**Adagrad**（Duchi 2011）：v_t=Σ*{k≤t}g_k²（累积平方和），更新 θ←θ−η·g/√(v+ε)。对**稀疏特征**（如 one-hot 文本特征），出现频率低的特征累积的 v 小、故有效步长大，自然实现'低频特征多学'——这是它在 NLP 稀疏场景的经典优势。缺陷是 v **单调递增**，有效 lr η/√v 随时间衰减到 0，训练后期几乎停滞，需手工调 lr 或加 restart。**RMSProp**（Hinton 2012，未正式发表）：把累积改成指数加权 v_t=βv*{t−1}+(1−β)g²，v 不再单调增、而是跟踪'近期梯度能量'，从而学习率自适应但不衰减到 0——解决了 Adagrad 的停滞问题。**AdaDelta**（Zeiler 2012）：进一步把分母的 η 也自适应化——用**历史参数更新量的 RMS** 替代 η，即 Δθ=−(RMS[Δθ]_{t−1}/RMS[g]_t)·g，实现'无需手动设置 lr'；其直觉是'参数应移动的量级应与它过去的移动量级匹配'。**Adam** 可视为 RMSProp + 一阶动量 m，故是 RMSProp 的直接推广。

  📖 查看英文严格数学推导 (English Mathematical Derivation)

Evolution of Adaptive Optimizers:
① **Adagrad (Duchi et al., 2011)**:
$G_t = G_{t-1} + g_t^2 = sum_{tau=1}^t g_tau^2$. Update: $theta_{t+1} = theta_t - frac{eta}{sqrt{G_t} + epsilon} g_t$.
- Advantage: Automatically assigns smaller steps to frequent features and larger steps to rare features (ideal for sparse text/recommendations).
- Defect: Because $g_t^2 ge 0$, $G_t$ is monotonically non-decreasing. As $t to infty$, $G_t to infty$, causing the effective step size $frac{eta}{sqrt{G_t}} to 0$. Training stalls prematurely.
② **RMSProp (Hinton, 2012)**:
Replaces infinite sum with an Exponential Moving Average (EMA): $v_t = beta v_{t-1} + (1 - beta) g_t^2$.
Update: $theta_{t+1} = theta_t - frac{eta}{sqrt{v_t} + epsilon} g_t$. Leaky decay over effective window $1/(1-beta)$ bounds $v_t$, sustaining training indefinitely.
③ **AdaDelta (Zeiler, 2012)**:
Fixes unit mismatch by scaling updates by running RMS of parameter updates: $Delta theta_t = - frac{text{RMS}(Delta theta)_{t-1}}{text{RMS}(g)_t} g_t$, eliminating learning rate $eta$ completely.

  

### 四、工业级落地权衡与工程考量 (Industrial Trade-offs)

深度剖析与工程权衡：① **谱系清晰化**——Adagrad → RMSProp（改累积为 EWMA）→ Adam（加一阶动量 + 偏差修正）；AdaDelta 是旁支（去 lr）；理解这条线可在面试中'一句话定位'任何优化器。② **稀疏场景的现代方案**——Adagrad 在推荐系统/稀疏 embedding 中仍有用武之地；但大规模稀疏场景更常用 **LazyAdam**（只更新被触发的行）或 **sparse Adam**（利用稀疏梯度减少更新）。③ **RMSProp 的历史地位**——它是'自适应方法实用化'的关键一步，且在小 batch、RNN 训练中表现稳健；很多 RL 工作（如 DQN）用 RMSProp 而非 Adam。④ **AdaDelta 的局限**——'无需 lr'的承诺在实践中因需要调节 ε 与 ρ 而打折；且没有一阶动量使其在深度网络上不如 Adam 平滑，故未被广泛采用。⑤ **AdaBound/AMSGrad**——针对 Adam 在后期可能因 v 波动而步长不稳，AdaBound 让有效 lr 在合理区间内变化（动态裁剪），AMSGrad 保证分母单调；两者都是'修补 Adam 理论缺陷'的努力。⑥ **面试要点**——被问'Adagrad 为什么后期不动'，答案要精确到'v 单调累积 → η/√v 单调衰减'；被问'RMSProp 怎么修的'，答'EWMA 使 v 有界'。

  ⚙️ 查看英文落地权衡分析 (English Systems & Trade-offs)

Modern usage: Adagrad remains competitive for massive sparse embeddings in search and recommendation models (DLRM). RMSProp is standard in reinforcement learning (DQN, A3C). Adam combines RMSProp's second moment with classical momentum.

  

### 五、常见面试避坑陷阱 (Common Pitfalls & Traps)

- ⚠️ 以为 RMSProp 需要偏差修正（其 v 无零偏问题严重度低于 Adam）

- ⚠️ 混淆 AdaDelta 的 RMS[Δθ] 与学习率 η 的作用

**English Pitfalls:**

- *Using Adagrad for training deep networks across many epochs, where learning rate collapse halts progress early*

- *Assuming AdaDelta requires zero tuning; while $eta$ is absent, decay momentum $rho$ and $epsilon$ still influence dynamics*

### 六、高频深度面试追问与预测 (Follow-Up Questions)

- **为什么 Adagrad 适合稀疏特征场景？**

- *Why is Adagrad still widely used for large sparse embedding tables in recommendation systems?*

- **AdaDelta 与 Adam 的关系是什么？**

- *How does AdaDelta correct the physical unit mismatch present in standard gradient descent?*

### 七、知识图谱对齐 (Knowledge Graph Anchor)

- 🔗 **关联底层卡片**：`一阶优化器家族：SGD 动量、AdamW、AdaFactor 与 Lion` (`First-Order Optimizers: Momentum, AdamW & Lion`)

- 🗺️ **知识图谱模块**：`深度学习架构导图`

  

#### 🔬 算法科学家与机器学习深度考察全量题库 (Science Depth)

  本题收录于 **TalentMe 算法科学家深度考察真题库 (Science Depth)**。全库共 856 道硬核考点，深度覆盖数学统计、经典ML、深度学习、Transformer、大语言模型、多模态、推荐系统与 MLOps。支持 Jev 面经智能匹配、一键离线单文件 HTML 手册导出并直连 Obsidian 本地记忆。

  [👉 前往 TalentMe 交互式研读本题 (M3-039) →](https://talentme.airsota.com/tools/science-depth/M3-039)

---
*Source: [AirSOTA Knowledge Matrix](https://airsota.com/2026/10/01/science-depth-m3-039-optimizers-second-order-methods/) · Complete Index: [llms.txt](https://airsota.com/llms.txt)*
