3.2.6 · HinglishTraining Deep Networks

Learning rate scheduling

1,883 words9 min readRead in English

3.2.6 · AI-ML › Training Deep Networks


YEH HAI KYA?

ISKE LIYE KYU ZARURAT HAI?

  1. Convergence guarantees. SGD ko noisy objective ke minimum tak converge karne ke liye, classical theory (Robbins–Monro) require karti hai ki step sizes shrink hon. Constant parameters ko minimum ke aas paas "buzz" karte rehne deta hai jisme variance ke proportional hota hai — yeh kabhi truly settle nahi hote.
  2. Speed vs precision trade-off. Bada early = buri regions se fast escape. Chota late = optimum ke paas fine-tuning.
  3. Plateaus se escape karna / warmup. Training ke bilkul shuru mein, gradients aur Adam ke running statistics noisy hote hain; ek warmup (chote se start karke ramp up karna) blowing up se bachata hai.

KAISE: derive karte hain kyun LR decay hona chahiye

Steady-state variance ki derivation (scratch se). Dono sides ka variance lo, assume karte hue ki , se independent hai: Steady state par : expand karo:

Convergence ke liye AUR actually progress banane ke liye, classic Robbins–Monro conditions hain: Schedule dono satisfy karta hai (harmonic series diverge karta hai, converge karta hai) — original theoretical schedule yahi hai.


Common schedules (har ek derive / motivate kiya hua)

Warmup + cosine (modern default) neeche dikhaya gaya hai.

Figure — Learning rate scheduling

Worked examples


Common mistakes (steel-manned)


Forecast-then-verify


Flashcards

SGD ko true minimum tak converge karne ke liye learning rate kyun decay honi chahiye?
Stochastic gradient noise ek steady-state variance deta hai; sirf hi us residual jitter ko zero tak drive karta hai.
Schedule par Robbins–Monro conditions bolo.
(door travel kar sakte hain) aur (noise khatam ho jaata hai).
Ek schedule do jo Robbins–Monro ko exactly satisfy kare.
( schedule).
Cosine annealing formula?
.
Cosine annealing mein aur par kya hote hain?
par , par .
Learning-rate warmup kya hai aur kyun zaroori hai?
Pehle steps mein ko ~0 se tak linearly ramp karo; zaroori hai kyunki early Adam variance estimates unreliable hote hain, isliye unscaled early steps diverge kar sakte hain.
Step decay formula?
.
Constant ke under quadratic minimum ke paas steady-state variance?
.
Sirf tiny constant LR kyun use nahi karna chahiye?
Tum phir bhi minimum ke upar plateau karte ho (residual variance) AUR compute waste hota hai; decaying dono speed aur precision deta hai.
Exponential decay ki half-life?
.

Recall Feynman: 12-saal ke bachche ko samjhao

Tum fog mein lowest point tak pahunchne ke liye pahadi se neeche chal rahe ho. Upar se tum bade confident steps lete ho taaki jaldi neeche aao. Jaise tumhe lagta hai tum bottom ke paas ho, tum bahut chote careful steps lete ho taaki lowest spot par trip na karo aur wapas upar na chale jao. Ek learning rate schedule bas yeh plan hai ki tum apne steps kitni jaldi shrink karte ho. Aur bilkul shuru mein, jab tum kuch bhi nahi dekh sakte, tum apna balance paane ke liye kuch slow steps lete ho — yahi "warmup" hai.

Connections

  • Stochastic Gradient Descent — update rule jisme multiply hota hai.
  • Adam and Adaptive Optimizers — kyun warmup adaptive methods ke saath kaam karta hai.
  • Loss Landscapes and Minima — flat vs sharp basins jinhe schedule navigate karta hai.
  • Robbins-Monro Stochastic Approximation — decay ke peeche convergence theory.
  • Batch Size and Learning Rate scaling — linear scaling rule schedules ke saath interact karta hai.
  • Warm Restarts (SGDR) — cosine schedule ko periodically reset karna.
  • Hyperparameter Tuning, , search targets ke roop mein.

Concept Map

varied by

causes

quantified by

proportional to eta

goal of

must satisfy

met by

big early small late

early phase uses

avoids

Learning rate eta

LR schedule eta of t

Constant eta

Buzzing noise floor

Steady-state variance V

Decay eta to zero

Robbins-Monro conditions

Schedule eta0 over t

Warmup ramp-up

Speed vs precision