← 🧠 AI & Machine Learning

📉 LR Schedule

Step: 0
Current LR:
Loss:
FPS:
Drag — rotate · Scroll — zoom

📉 Learning Rate Scheduling Strategies Explained

A ball performs live gradient descent across a rugged 3D loss surface, its step size at every moment set by the learning-rate schedule you choose, while a floating curve plots the schedule and the resulting loss over the run.

🔬 What It Demonstrates

How the shape of a learning-rate schedule — constant, step decay, cosine annealing, warmup, or exponential decay — changes the path an optimizer takes: whether it overshoots, oscillates, or settles smoothly into a minimum.

🎮 How to Use

Pick a schedule, base learning rate, total steps, and warmup length. Watch the ball descend the landscape in real time and compare the purple LR curve against the teal loss curve above the surface.

💡 Did You Know?

Cosine annealing with warm restarts (SGDR), introduced by Loshchilov & Hutter in 2016, is one of the most widely used schedules in modern deep learning, including large transformer training runs.