How does the one-cycle learning rate policy work?

Quick Overview

Asks how the one-cycle learning rate policy schedules the learning rate and momentum over a training run. Tests understanding of the warm-up and annealing phases, inverse momentum cycling, how to choose the peak learning rate, and the practical setup in PyTorch.

How does the one-cycle learning rate policy work?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does the one-cycle learning rate policy work? Describe how the learning rate (and momentum) change over a training run under this policy, and why the schedule helps. ```hint Trace the run end to end Sketch the learning rate and the momentum against the training step. Ask which part of the run explores the loss surface quickly and which part settles into a minimum. ``` ```hint Think about setup Consider what the scheduler must know before training starts, how often it has to be stepped, and how you would pick its peak value. ``` ### What a Strong Answer Covers - The shape of the learning rate schedule across the run and the purpose of each phase - How momentum is cycled relative to the learning rate, and why - Why a stretch of high learning rate speeds up training and helps generalization - How to choose the maximum learning rate and the other schedule parameters - Practical requirements such as a fixed step budget and per-batch stepping ### Follow-up Questions - How does one-cycle compare with linear warm-up followed by cosine decay, the schedule many transformer recipes use? - What happens if you stop training early, or want to train longer after the schedule has finished? - How should you set the total number of steps when you use gradient accumulation? - Why might you lower weight decay or dropout when training with a high maximum learning rate?

Overview: Asks how the one-cycle learning rate policy schedules the learning rate and momentum over a training run. Tests understanding of the warm-up and annealing phases, inverse momentum cycling, how to choose the peak learning rate, and the practical setup in PyTorch.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does the one-cycle learning rate policy work?

Describe how the learning rate (and momentum) change over a training run under this policy, and why the schedule helps.

What a Strong Answer Covers Guidance

  • The shape of the learning rate schedule across the run and the purpose of each phase
  • How momentum is cycled relative to the learning rate, and why
  • Why a stretch of high learning rate speeds up training and helps generalization
  • How to choose the maximum learning rate and the other schedule parameters
  • Practical requirements such as a fixed step budget and per-batch stepping

Follow-up Questions Guidance

  • How does one-cycle compare with linear warm-up followed by cosine decay, the schedule many transformer recipes use?
  • What happens if you stop training early, or want to train longer after the schedule has finished?
  • How should you set the total number of steps when you use gradient accumulation?
  • Why might you lower weight decay or dropout when training with a high maximum learning rate?