4.10.20 · D3 · HinglishAdvanced Topics (Elite Level)

Worked examplesGradient descent and variants — convergence analysis

2,486 words11 min read↑ Read in English

4.10.20 · D3 · Maths › Advanced Topics (Elite Level) › Gradient descent and variants — convergence analysis

Shuru karne se pehle: teen words jo hum baar baar use karenge, ek picture ke saath.


The scenario matrix

Neeche har cell GD ka ek alag behaviour hai. Har cell exactly ek example se claim ki gayi hai.

Cell Input class Kya special hai Example
A , round bowl EK step mein converge Ex 1
B large, thin canyon crawl karta hai, zig-zag Ex 2
C step diverge karta hai (bahar oscillate) Ex 3
D step exactly boundary: na barhta na ghatta Ex 4
E , flat bottom () convex but sirf , sublinear Ex 5
F momentum on cell B ko bana deta hai Ex 6
G noisy gradients (SGD) constant ek residual ball chhod deta hai Ex 7
H real-world word problem data se choose karo (logistic-style) Ex 8
I exam twist: negative eigenvalue convex nahi — GD escape/diverge karta hai Ex 9

Sign coverage note. One-step contraction factor hai . Hum ise positive dekhenge (, cell B), zero (, cell A), negative par (overshoot par converge, Ex 4 discussion), equal to (boundary, cell D), below (divergence, cell C), aur ke saath (non-convex, cell I). Har sign dikhaya gaya hai.


Ex 1 — Cell A: the perfectly round bowl ()

Yahan contraction factor exactly zero hai — positive-factor world (Ex 2) aur overshoot world (Ex 4) ke beech ki boundary.


Ex 2 — Cell B: the thin canyon (large )

Figure — Gradient descent and variants — convergence analysis

Ex 3 — Cell C: bahut bada step ⟹ divergence

Figure — Gradient descent and variants — convergence analysis

Ex 4 — Cell D: exact boundary

Sign ledger ab tak: Ex 1 factor , Ex 2 factor , Ex 4 factor , Ex 3 factor . Bacha hua sign — factor , overshoot par converge — kisi bhi ke liye hota hai; e.g. yahan factor deta hai , sides alternate karte hue converge karta hai.


Ex 5 — Cell E: flat bottom (, sublinear)

Figure — Gradient descent and variants — convergence analysis

Ex 6 — Cell F: momentum ko banaata hai


Ex 7 — Cell G: noisy gradients (SGD residual ball)


Ex 8 — Cell H: real-world word problem ( data se choose karo)


Ex 9 — Cell I: exam twist (negative curvature, non-convex)


The completed matrix

Har cell A–I ka ab ek worked, verified example hai. Contraction factor value (Ex 1) ke saath, mein (Ex 2), (Ex 4), (Ex 3), ke saath (Ex 3), aur ke saath (Ex 9) appear hua hai; degenerate case (Ex 5), noisy case (Ex 7), aur data-driven step (Ex 8) har scenario ko round out karte hain.

Recall Quick self-test

Kaun sa cell ek step mein converge karta hai, aur kyun? ::: Cell A (): factor jab . ke liye, GD ko error cut karne mein kitne iterations lagte hain? ::: Lagbhag 115; momentum ko lagbhag 11.5 chahiye. Exact step size kya hai jis par GD hamesha ke liye oscillate karta hai bina progress ke? ::: (factor ). Constant- SGD exact minimum tak kyun nahi pahunchta? ::: Noise har step mein variance inject karta hai, ek residual ball chhod deta hai. Ex 9 mein saari convergence guarantees kya tod deta hai? ::: Ek negative eigenvalue (): koi safe nahi, GD diverge karta hai.

Related build-up: Convex Functions and Optimization, Lipschitz Continuity, Eigenvalues and the Condition Number, Taylor's Theorem and the Fundamental Theorem of Calculus.