4.10.20 · D1 · HinglishAdvanced Topics (Elite Level)

FoundationsGradient descent and variants — convergence analysis

3,370 words15 min read↑ Read in English

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

Yeh page toolbox hai. Parent note symbols ki barish tezi se karta hai. Yahan hum har ek symbol zero se earn karte hain — pehle saadhe alfaaz, phir ek picture, phir kyun yeh topic us ke bina nahi chal sakta. Koi bhi cheez use hone se pehle build ki jaati hai. Upar se neeche padho; har item sirf upar waali cheez pe lean karta hai.


0. Scene: ek function aur uska landscape

Kisi bhi symbol se pehle, mental picture fix karo.

Picture (figure s01): ke liye, ek pahadi landscape imagine karo. Floor plane hai; har floor-point ke upar ki height hai. Hamara goal woh floor-point dhundna hai jo surface ke sabse neeche hisse ke neeche baitha ho.

Figure — Gradient descent and variants — convergence analysis

Topic ko yeh kyun chahiye: baad mein aane waala har symbol is landscape ko describe karta hai — uski slope, uski curvature, uska lowest point. Agar tum landscape nahi dekh rahe, toh algebra sirf shor hai.

Kyun chahiye: har convergence bound se door ya ke upar height gap ke roop mein measure hoti hai. Yeh finish line hain.


1. Vectors aur unki length

Ek location ek vector hai: origin se us floor-point tak ek arrow.

Picture: 2D mein, — 3-by-4 right triangle ka hypotenuse.

Kyun chahiye: convergence ka matlab hai "gap chhota hota ja raha hai". Yeh kehne ke liye ki kuch chhota ho raha hai, hume use measure karna hoga — aur (current point se goal ki distance) exactly wahi measuring stick hai.


2. Dot product

Picture (figure s02): , jahan arrows ke beech ka angle hai. Toh yeh measure karta hai ki do arrows kitna same direction mein point karte hain: jab aligned ho toh maximum, jab perpendicular ho toh zero, jab opposite ho toh negative.

Figure — Gradient descent and variants — convergence analysis

Topic ko yeh kyun chahiye: ek direction mein slope ek dot product hai (, agla section), aur poora "steepest descent" argument yeh hai ki "kaunsa direction is dot product ko sabse zyada negative banata hai?"

Kyun chahiye: yeh ek line hai jo prove karti hai ki steepest direction hai, aur yeh descent-lemma integral ko bound karte waqt bhi aata hai (Section 9). Yeh cap karta hai ki dot product kitna bada ho sakta hai.


3. Gradient

Yahan show ka star hai.

Picture (figure s03): kisi bhi floor-point pe, ek arrow hai jo floor plane mein lie karta hai aur steepest uphill direction mein point karta hai, aur uski length batata hai ki woh climb kitni steep hai. Toh steepest downhill ki taraf point karta hai — woh direction jisme hum step lete hain.

Figure — Gradient descent and variants — convergence analysis

Kyun chahiye: poora update rule is arrow se bana hai. Gradient nahi toh descent nahi.


4. Step size aur iteration index

Kyun chahiye: "step kitna bada () aur kitni tez ()" yahi topic ka central question hai. Dono symbols har bound mein rehte hain.


5. Curvature: Hessian , positive semidefiniteness, aur ordering

Slope batata hai kaun si taraf neeche hai; curvature batata hai slope khud kaise badlata hai — aur curvature hi decide karta hai problem kitni mushkil hai.

Picture (figure s04): sach ki curved surface ko do parabolas ke beech trap karo — neeche curvature ki ek flatter wali aur upar curvature ki ek steeper wali.

Figure — Gradient descent and variants — convergence analysis

Kyun chahiye: yeh do sandwiching bounds ( neeche, upar) sirf yahi facts hain jo convergence proofs use karti hain. Sab kuch — safe step size, speed — is sandwich se squeeze hota hai. Single valley guarantee karne wali convexity () ke liye Convex Functions and Optimization dekho.


6. Do named constants: aur

Kyun chahiye: safe step size set karta hai (Section 7 mein derive hoga). Kyunki curvature hai, ka step guaranteed overshoot nahi karega.

Kyun chahiye: valley ko bottom ki taraf ek definite pull deta hai, jo convergence ko slow se fast geometric mein upgrade karta hai (Section 8).


7. se bade steps kyun blow up karte hain

Ab hum woh danger line derive kar sakte hain jo parent note baar baar cite karta hai, sirf aur bowl ki picture use karke.

Kyun chahiye: yahi precise reason hai ki (na ki ) safe step size control karta hai, aur yeh parent note ke full convergence rates ka seed hai.


8. Condition number , eigenvalues, aur rate

Picture: round bowl → bottom tak seedha shot. Lamba ravine → narrow direction ke across zig-zag karte hue long axis mein barely move karna.

Kyun chahiye: woh single number hai jo batata hai GD uda ya creep karega, aur literal speed hai. Headline "momentum ko mein badal deta hai" yahan rehta hai — Nesterov Acceleration dekho.


9. Descent Lemma, aur do borrowed tools


Sab kuch topic mein kaise feed hota hai

Function f maps R^n to a height

Vector length norm measures the gap

Gradient grad f = steepest uphill arrow

Dot product and Cauchy-Schwarz

Update rule step of size eta

Hessian = curvature

Positive semidefinite = curves up everywhere

L smoothness upper curvature

mu strong convexity lower curvature

Step below two over L stays stable

Descent Lemma via integral

Condition number kappa = L over mu

Eigenvalues = curvatures on perpendicular axes

Convergence rate rho

Gradient Descent convergence analysis


Equipment checklist

Right side cover karo aur aage badhne se pehle har ek yaad karo.

ka saadhe alfaaz mein kya matlab hai?
Ek location ( numbers ki list) leta hai, ek height number return karta hai.
aur kya hain?
Lowest point ki location, aur wahan ki height.
kaise compute karte hain aur yeh kya picture karta hai?
; arrow ki straight-line length.
Topic ko kyun chahiye?
Shrinking gap measure karne ke liye.
geometrically kya measure karta hai?
Do arrows kitna same direction mein point karte hain: .
Cauchy–Schwarz state karo.
, equality jab aligned ho.
kya hai aur kahan point karta hai?
Partials ka vector; floor plane mein steepest-uphill arrow.
Hum ke along step kyun lete hain?
Directional slope tab sabse zyada negative hoti hai jab , ka virodh kare (Cauchy–Schwarz).
kya hai, aur hone pe kya hota hai?
Step size; factor ho jaata hai, toh distance-to-bottom barta hai aur GD diverge karta hai.
bowl pe special kyun hai?
Factor , ho jaata hai — ek step mein bottom reach karta hai.
Hessian kya hai?
Second derivatives ka matrix — landscape ki curvature/bendiness.
"Positive semidefinite" () ka matlab kya hai?
har ke liye — har direction mein upar curve karta hai (kabhi neeche nahi).
ka saadhe alfaaz mein kya matlab hai?
; curvature kabhi se zyada nahi kisi bhi direction mein.
-smoothness define karo.
— gradient -Lipschitz hai.
-strong convexity define karo.
with ; kam se kam -parabola ki tarah upar curve karta hai.
Hessian ka eigenvalue geometrically kya hai?
Uske perpendicular eigenvector axes mein se ek ke along curvature.
kya hai aur yeh kya picture karta hai?
; valley kitni stretched hai (round bowl vs thin ravine).
Descent Lemma state karo aur uska kaam bolo.
; GD har step mein is upper bowl ko minimize karta hai.
Rate kya hai?
Har step mein rakhi gayi error ka fraction; chhota matlab zyada tez ().
kya kehta hai?
Noisy SGD gradient average mein sach wala gradient hai.