凸な bowl 状関数上の勾配降下の仕組み
予測と観察の証拠を記録した後にのみ支援を利用できます。
前提条件
第 29 日の評価。数学ブロックの 1 変数微分(べき乗則)。
学習目標
勾配降下の更新 x ← x − η·2x = x(1 − 2η) を導出し、因子 (1 − 2η) から最適化の全軌道を予測する。
手順
ここでの最適化は損失を反復的に下げることです。f(x) = x² の勾配は 2x なので、各ステップは x に (1 − 2η) を掛けます。x₀ = 4、η = 0.1 では因子は 0.8:x₁ = 3.2、x₂ = 2.56、x₃ = 2.048、一般に x_k = 4·0.8^k です。まず手で追い、短い Python ループで確認してください。η = 0.5 では因子が 0——この純粋な二次関数では 1 ステップで収束します。
演習と予測記録
f(x) = x²、x₀ = 4 について:(a) x_k の閉形式を書いてください。(b) η = 0.1 のとき x₁, x₂, x₃, x₁₀ を計算。(c) f(x) = (a/2)x² では因子は (1 − ηa) —— 安定条件 |1 − ηa| < 1 とそれが意味する学習率の上界を導いてください。
x_k = 4·(1−2η)^k。0.8^10 ≈ 0.1074 なので x₁₀ ≈ 0.4295。上界:−1 < 1 − ηa < 1 → 0 < η < 2/a。x² では a = 2 なので η < 1。
(a) x_k = 4·(1−2η)^k。(b) η = 0.1:x₁ = 3.2、x₂ = 2.56、x₃ = 2.048、x₁₀ ≈ 0.4295。(c) |1 − ηa| < 1 ⇔ 0 < η < 2/a。f = x²(a = 2)の上界は η < 1——そして η = 0.5 はちょうど 1 ステップで最小値に到達します。
閉形式を導出し、4 つの反復値がすべて正しく、η < 2/a の条件と a = 2 の特殊化を述べられる。
公式ソースリソースと権利証跡
Dive into Deep Learning (d2l.ai)
該当セクション・タイムスタンプ: Chapter Optimization Algorithms: Gradient Descent
検証バージョンと日付: Current online edition (Verified: 2026-10-30)
Primary open reference tying evaluation discipline (model selection, underfitting, overfitting) and optimization algorithms (gradient descent, minibatch) to the rest of the curriculum.
Linear algebra, calculus, and probability at the Days 19-28 level.
All required formulas and worked numbers are reproduced as original explanations; the book is further reading.
比較対象候補リソースと選定評価 (2)
Detailed treatment of optimization difficulties (chapter 8) including saddle points and plateaus; all-rights-reserved text kept as a linking-only alternative.
Strong practitioner framing, but organized around the fastai library and video lessons rather than self-contained mathematics.
Gradient Descent, How Neural Networks Learn
該当セクション・タイムスタンプ: Neural networks chapter 2: the gradient and the descent update
検証バージョンと日付: Neural networks series chapter 2, 2017 (Verified: 2026-10-30)
Visual intuition connecting the gradient vector to steepest descent; complements d2l.ai's worked equations for the optimization day.
High-school functions and slope intuition.
The lesson contains complete derivations and numerical traces; the video is optional visual intuition.
比較対象候補リソースと選定評価 (2)
A detailed optimization text, kept as an advanced alternative; its scope exceeds a single study day.
Rigorous discussion of saddle points and plateaus in high-dimensional optimization; kept as a linking-only alternative.