Why η? The gradient ∇L has units [loss/parameter]. To get a parameter update [parameter units], we multiply by a scalar η. The magnitude of η controls step size.
Mathematics: For strongly convex L with condition number κ, small η → convergence rate (1−ημ)t where μ is strong convexity constant. Small η makes (1−ημ)≈1, so exponential decay is slow.
Imagine you're blindfolded in a hilly park, trying to find the lowest point. Your friend shouts directions: "Walk 5 steps north!" That's the gradient (direction).
But how big should your steps be? That's the learning rate.
Tiny steps (like baby steps): Safe! You won't fall into a ditch. But it takes FOREVER. You might be out there all day.
Giant steps (like leaping 10 feet): Super fast! But you might jump OVER the lowest spot, land on the other side of the hill, then jump back over it, back and forth, never actually stopping at the bottom.
Medium steps: Just right. You walk steadily downhill and reach the bottom in reasonable time.
The learning rate is like choosing your step size. Too small = slow. Too big = you overshoot and bounce around. Goldilocks = fast and steady.
What does learning rate η control in gradient descent? :: The magnitude (step size) of parameter updates. It scales the gradient vector to determine how far to move in parameter space each iteration.
Write the gradient descent update rule with learning rate :: θt+1=θt−η∇θL(θt)
What happens if learning rate is too small?
Convergence is very slow. Loss decreases monotonically but takes many iterations to reach minimum (glacier-like progress).
What happens if learning rate is too large?
Overshooting and divergence. Parameters oscillate around minimum with increasing magnitude, or loss explodes to infinity.
For L-smooth functions, what is the stability condition for η?
η<L2 where L is the Lipschitz constant of the gradient. Practical choice: η≈L1 for safety.
Why does adaptive learning rate (like Adam) help?
It uses per-parameter step sizes based on gradient history. Parameters with large typical gradients get smaller effective η, normalizing updates across dimensions with different scales.
If training loss increases from iteration1, what's likely wrong?
Learning rate is too large. The first update already overshot, indicating η exceds the stability threshold for this loss landscape.
Give the optimal η for minimizing L(w)=w2 starting from w=1 in one step
η = 0.5. Since gradient is2w and Hessian eigenvalue is 2, optimal rate is 1/λ = 1/2.
What's the relationship between learning rate and number of iterations to converge?
Non-monotonic. Very small η → many iterations. Optimal η → fewest iterations. Too large η → infinite iterations (doesn't converge). There's a sweet spot.
Why can't we always use very large η to converge faster?
Large η causes overshooting. Updates jump past the minimum to the opposite side, often with increasing magnitude, leading to oscillation or divergence rather than convergence.
Dekho bhai, gradient descent mein learning rate (η) sabse important hyperparameter hai. Yeh control karta hai ki har iteration mein parameters ko kitna update karein. Socho aise: tum ek pahadi pe ho, aur sabse niche jana hai (loss minimize karna). Gradient tumhe direction bata hai—kidhar jana hai. Par kitne bade kadam maroge? Wahi learning rate decide karta hai.
Agar learning rate bohot chhota hai (jaise 0.001), toh tum bahut aahista chaloge. Har step mein thoda-thoda age badhoge. Loss kam to hoga, par itni slowly ki training khatam hi nahi hogi—ghanton lag jayenge! Dosri taraf, agar learning rate bohot bada hai (jaise 1.5), toh tum itne bade jumps maroge ki minimum ko cross kar jaoge, dosri side land karoge, phir wapas jump, aur aise hi oscillate karte rahoge. Kabhi converge hi nahi hoga, ulta loss badh jayega! Isliye sweet spot chahiye—na zyada chhota, na zyada bada.
Practical tip: Deep learning mein usually 0.001 se start karo (Adam optimizer ke sath). Agar loss pehle iteration mein hi explode ho raha, matlab η bohot bada hai—10x kam karo. Agar loss bilkul nahi ghat raha, matlab bohot chhota hai—3-5x badha do. Modern optimizers jaise Adam apne ap per-parameter rates adjust karte hain, isliye thoda zyada forgiving hain. Par samajh lena zaroori hai—learning rate tuning hi decide karti hai ki model converge karega ya nahi!