Bring the mental model from Adam Optimizer; this page will reuse it instead of restarting from zero.
Learning Rate Schedules: Warmup, Decay & Cycling
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.
01
Intuition
Build the mental picture first so the rest of the page has something to attach to.
The learning rate is the step size of training. It is also one of the most sensitive knobs in deep learning: the same model can diverge, crawl, or converge depending on the schedule.
Two page-local teaching patterns, treated here as extensions beyond the listed Smith/SGDR sources:
- Warmup: start small, then ramp up. This page uses warmup as a teaching pattern for smaller early update scale, but the listed Smith/SGDR sources do not by themselves source large-model warmup practice or Adam warmup rationale.
- Decay: reduce the learning-rate multiplier later so the scalar update scale is smaller late in training.
This page includes warmup followed by decay as a teaching shape, but this source-checked claim focuses only on learning-rate range tests, cyclical policies, and cosine annealing/restarts.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
02
Math
Translate the story into symbols, assumptions, and a derivation you can inspect.
Let ηt be the learning rate at step t.
Linear warmup to a peak ηmax over Tw steps:
Cosine decay from ηmax to ηmin over T total steps (after warmup):
A simple classical alternative is:
Schedules can interact with curvature and sharpness: if the learning rate is too high relative to local curvature, training can become unstable. The edge-of-stability connection is background context, not checked by the Smith/SGDR claim here.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
03
Code
Keep the implementation aligned with the notation so the algorithm is legible.
import numpy as np
def warmup_cosine(T, Tw, eta_max, eta_min):
lr = np.zeros(T)
for t in range(T):
if t < Tw:
lr[t] = eta_max * (t + 1) / max(1, Tw)
else:
u = (t - Tw) / max(1, T - Tw - 1)
lr[t] = eta_min + 0.5 * (eta_max - eta_min) * (1 + np.cos(np.pi * u))
return lr
lr = warmup_cosine(T=10000, Tw=500, eta_max=3e-4, eta_min=3e-5)
print("lr[0], lr[Tw], lr[-1]:", lr[0], lr[500], lr[-1])
print("avg lr:", float(lr.mean()))
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
04
Interactive Demo
Use direct manipulation to connect the explanation to a moving system.
Live Concept Demo
Explore Learning Rate Schedules: Warmup, Decay & Cycling
The stage is code-native and interactive. Use it to test the explanation against the mechanism.
Manipulate one control and predict the visible change.
Choose what to inspect in Learning Rate Schedules: Warmup, Decay & Cycling. This shared fallback is an observation guide, not evidence of learning.
Use the demo to tune warmup length and decay style, and build intuition for how "big early steps" vs "small late steps" show up as different curves.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
Concept: Learning Rate Schedules: Warmup, Decay & Cycling
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
Object contextOptimization
concept:optimization/learning-rate-schedulesLearning Rate Schedules: Warmup, Decay & Cycling
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
Start with the prediction checkpoint, then compare the reveal to the mental model.
Take this moveStudy modes
Keep the object fixed; change the lens.Route back through the notebook
Carry the same object through intuition, math, code, and demo.
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.
The next edge should feel earned: use the demo prediction here before following Scaling Laws & Emergent Abilities.
After The First Pass
Turn the concept into an inspected object.
The lower panels are one second act: keep the object fixed, inspect it visually, check source boundaries, practice transfer, then attach the research question.Mechanism Storyboard
See the idea move before the page explains it
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.

Start with the picture, metaphor, or geometric mechanism.
Before reading further, choose the kind of change Learning Rate Schedules: Warmup, Decay & Cycling should make visible.
Visual Inquiry
Make the image answer a mathematical question
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.
Which visible object should carry the first intuition?
Pick the cue that should make Learning Rate Schedules: Warmup, Decay & Cycling easier to reason about before the page gives the answer.
Source Grounding
Canonical references for the mechanism on this page.
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
concept:optimization/learning-rate-schedulessources: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr
Open the closest source note before trusting the local explanation.
2 selected-object sources shown first; 2 references total.
Audit the claim boundary, then ask from the same selected object.
Grounds LR range tests and cyclical policies that vary the global learning rate between lower and upper bounds.
Smith treats LR as a key hyperparameter, describes CLR varying between boundary values, and gives an LR range test for bounds. SGDR defines warm restarts by increasing LR after each run a...
Does not check large-model warmup practice, Adam bias-correction warmup rationale, edge-of-stability claims, inverse-sqrt schedules, convergence guarantees, or universal schedule superior...
Grounds cosine annealing within SGD warm-restart runs, where restarts are emulated by increasing the learning rate while keeping the current parameters.
Smith treats LR as a key hyperparameter, describes CLR varying between boundary values, and gives an LR range test for bounds. SGDR defines warm restarts by increasing LR after each run a...
Does not check large-model warmup practice, Adam bias-correction warmup rationale, edge-of-stability claims, inverse-sqrt schedules, convergence guarantees, or universal schedule superior...
Claim Review
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
concept:optimization/learning-rate-schedulessources: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr
Treat every claim as provisional until source support and a local witness agree.
1 structured claim check on this concept.
Run the prediction or practice transfer before asking for a grounded review.
Publisher-side editorial review is not independent replication. Claims without it still need exact source-support review. 2 references and 3 local witnesses are available for inspection.
Smith treats LR as a key hyperparameter, describes CLR varying between boundary values, and gives an LR range test for bounds. SGDR defines warm restarts by increasing LR after each run and decaying LR insid...
Does not check large-model warmup practice, Adam bias-correction warmup rationale, edge-of-stability claims, inverse-sqrt schedules, convergence guarantees, or universal schedule superiority; support is limi...
Smith supports scalar LR as a key hyperparameter, CLR between min/max bounds, and an LR range test that linearly increases LR to choose bounds. Loshchilov and Hutter support SGDR restarts as LR increases while reusing parameters, plus cosine annealing from eta_max to eta_min within a run. Warmup, inverse-sqrt, LLM practice, Adam warmup, edge-of-stability, convergence, and universal-superiority material remains caveated teaching context.
Reviewer: codex+oracle; reviewed 2026-05-07Practice notebook
Use the idea, then test it somewhere new
Schedule shapes that change the scalar learning-rate scale over training, with sourced CLR/range-test and SGDR cosine-restart examples plus caveated warmup/decay teaching patterns.
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
concept:optimization/learning-rate-schedulessources: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr
Use one state from Learning Rate Schedules: Warmup, Decay & Cycling to explain what changes, why it changes, and which assumption the explanation needs.
No learner move yet; no learning state is inferred.
Write first, use only the help you need, then try a new case without it.
Use one state from Learning Rate Schedules: Warmup, Decay & Cycling to explain what changes, why it changes, and which assumption the explanation needs.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Write an attempt before asking the companion.
0 of 3 progressive hints opened.
This draft and any AI response do not establish mastery; a later unassisted case can.
- ObjectConceptLearning Rate Schedules: Warmup, Decay & Cycling
- PredictBefore revealLearning Rate Schedules: Warmup, Decay & Cycling prediction
- WitnessCompare codeLearning Rate Schedules: Warmup, Decay & Cycling code witness 1
- RoomAsk groundedChecking local snapshot
Research Room
Attach the question to an exact object
Pick the concept, equation, source, code witness, claim, misconception, or demo state before asking for help. The handoff stays grounded to that object.Open the draft below to save one note and next action in this browser.
Learning Rate Schedules: Warmup, Decay & Cycling
What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math?
These are fixed, deterministic perspectives derived from the selected object. They do not represent people, community contributions, or independent review.
Source ids smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr must support the exact object, not just the surrounding topic.
Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion.
Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo.
The learner can state the mechanism in their own words
Local action draftNo local draft saved yetExpand only when ready to capture one local next action
This draft stays locally in this browser for concept:optimization/learning-rate-schedules.
- Source ids to inspect: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr
- Definition, prerequisite, and contrast concept links
- The equation or code witness that makes the concept operational
- One demo state that shows the invariant instead of a slogan
- The learner can state the mechanism in their own words
- The learner can name the prerequisite that would repair confusion
- The learner can predict how the mechanism changes under one perturbation
I am working in Continuous Function's research reading room. Object: concept - Learning Rate Schedules: Warmup, Decay & Cycling Object key: concept:optimization/learning-rate-schedules Context: Optimization Anchor id: concept/concept-notebook/optimization/learning-rate-schedules Open question: What is the smallest example that makes Learning Rate Schedules: Warmup, Decay & Cycling click without losing the math? Evidence to inspect: - Source ids to inspect: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr - Definition, prerequisite, and contrast concept links - The equation or code witness that makes the concept operational - One demo state that shows the invariant instead of a slogan Deterministic role lenses for this object: - Boundary: fixed perspectives, not people, community contributions, or independent review - Source-checking summary: Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Teach/transfer move: Turn the mechanism into one sentence that predicts a neighboring concept. - Assumptions: - Source ids smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr must support the exact object, not just the surrounding topic. - The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. - The concept explanation is local atlas prose until checked against its math, code, and source support. - Prerequisite gaps should become a repair route, not a reason to leave the object vague. - Role-lens requests: - Learner: ask for "Ask what would make "Learning Rate Schedules: Warmup, Decay & Cycling" feel predictable rather than familiar." | assumption: Source ids smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr must support the exact object, not just the surrounding topic. | next action: The learner can state the mechanism in their own words - Researcher: ask for "Source ids to inspect: smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr" | assumption: The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. | next action: The learner can name the prerequisite that would repair confusion - Experimenter: ask for "Choose one variable or condition to perturb before asking for an explanation." | assumption: The concept explanation is local atlas prose until checked against its math, code, and source support. | next action: The learner can predict how the mechanism changes under one perturbation - Professor: ask for "Find the smallest transferable rule a learner could reuse without the AI." | assumption: Prerequisite gaps should become a repair route, not a reason to leave the object vague. | next action: Teach or transfer: Turn the mechanism into one sentence that predicts a neighboring concept. What would resolve this: - The learner can state the mechanism in their own words - The learner can name the prerequisite that would repair confusion - The learner can predict how the mechanism changes under one perturbation Answer as a careful research tutor: stay source-grounded, separate verified evidence from assumptions, name the relevant math objects, and end with one next action. Current deterministic role lens for this object: - Role lens: Learner - Evidence request: Ask what would make "Learning Rate Schedules: Warmup, Decay & Cycling" feel predictable rather than familiar. - Assumption to keep visible: Source ids smith-2015-cyclical-learning-rates, loshchilov-2016-sgdr must support the exact object, not just the surrounding topic. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Next action: The learner can state the mechanism in their own words
concept/concept-notebook/optimization/learning-rate-schedules
concept:optimization/learning-rate-schedules