4.10.20 · HinglishAdvanced Topics (Elite Level)

Gradient descent and variants — convergence analysis

1,604 words7 min readRead in English

4.10.20 · Maths › Advanced Topics (Elite Level)


Gradient descent KYA hai?

YEH direction KYU? Saare unit directions mein se, directional derivative hai, jo Cauchy–Schwarz se minimize hoti hai jab ho. Isliye steepest descent ki direction hai.


Do key assumptions (HUM INHE KYU CHAHIYE)

Kuch bhi prove karne ke liye, hume control karna hoga ki kitni "wild" ho sakti hai.

Ratio condition number hai — yahi sab kuch control karta hai.


Descent Lemma (SAARE proofs ka engine)

ISKA MATLAB KYA HAI: ek parabola se upar sandwiched hai. Hum har step mein woh parabola minimize karte hain.


Smooth (convex) functions ke liye convergence

Toh ke saath loss hamesha decrease hota hai (kabhi diverge nahi hota) — isliye magic step size hai.


Strongly convex + smooth ke liye convergence: linear rate

Figure — Gradient descent and variants — convergence analysis

Variants aur unki rates (80/20 table)

Method Step / idea Rate (strongly convex)
GD full gradient,
Heavy-ball / Momentum add karo
Nesterov accelerated GD lookahead gradient ; convex
SGD stochastic gradient (ek sample) , chahiye

SGD — noise shrinking step kyun force karta hai


Worked examples


Common mistakes


Recall Feynman: ek 12-saal ke bachche ko samjhao

Socho tum ek moti fog mein ek pahaadi se ball roll kar rahe ho. Tum sirf apne pairo ke neeche ka slope feel kar sakte ho, toh sabse steep taraf kadam lete ho aur repeat karte ho. Agar tumhare steps bahut bade hain toh tum valley ke across fly karoge aur doosri side par bounce karoge (diverge). Agar "bilkul sahi" hain toh tum smoothly neeche slide ho jaoge. Ek lamba patla valley annoying hota hai — tum zig-zag karte ho — jab tak ki tumhare paas ek asli rolling ball jaisa thoda momentum nahi hota, jo path ko smooth karta hai. Bumpy fog (noisy slope readings = SGD) matlab hai ki tumhe neeche ke paas chhote aur chhote steps lene chahiye, warna tum uske aas-paas jittery rehte rahoge.


Flashcards

Gradient descent update rule kya hai?
steepest descent direction KYU hai?
Cauchy–Schwarz se, unit par minimize hoti hai jab ho.
-smoothness define karo.
, yani .
-strong convexity define karo.
jisme .
Descent lemma state karo.
.
ke saath kaun sa guaranteed per-step decrease hold karta hai?
.
Smooth convex ke liye GD convergence rate?
.
Strongly convex quadratics ke liye optimal step size?
.
GD ka best contraction factor (strongly convex)?
.
Quadratics par GD converge karne ke liye ki range?
.
Momentum rate kaise improve karta hai?
ko se replace karta hai: factor .
Smooth convex (non-strong) ke liye Nesterov ki rate?
.
SGD ko decaying step size KYU use karni chahiye?
Constant residual noise chhodta hai; chahiye .
Condition number kya hai?
; bada ⇒ slow GD.

Connections

Concept Map

use karta hai

justified by

has

proves

derived via

plug in GD step

choose eta = 1/L

sum plus convexity

combined with LS

controls

1/L set karne se milta hai

Gradient descent step

Steepest descent -grad f

Cauchy-Schwarz

Step size eta

L-smoothness

Descent Lemma

FTC plus Lipschitz

One-step decrease

Guaranteed drop

O of 1/k rate

mu-strong convexity

Condition number kappa = L/mu