Dictionary of Applied Machine Learning: 114 machine-learning terms, each with a definition, a figure, citations and a Python demo · All terms · Demos · Start here
Updated on 2026-10-29
Readiness 100/100
See also hypothesis gradient descent stochastic gradient descent empirical risk minimization hyperparameter hypothesis space
A learning rate is a hyperparameter of an iterative machine learning (ML) method that controls the extent of a single update of the current hypothesis. A prime example for a learning rate is the step size of gradient descent (GD). A learning rate that is too small makes little progress within the available number of iterations, and one that is too large can result in divergent iterations. For a fixed number of iterations, the learning rate bounds the effective hypothesis space of an ML method, which makes it a means of regularization. The learning rate can be chosen by the validation error of the learned hypothesis.

learnrate.py, which recomputes what the entry states: the script block by block · open in ColabLearning a linear model by gradient descent (GD) on the average squared error loss over a training set, as in Fig. 1, is an iterative machine learning (ML) method for learning a useful hypothesis $h \in \mathcal{H}$. Such a method repeats similar update steps that modify the current hypothesis to obtain an improved one. A learning rate is a parameter of such a method that controls the extent to which the current hypothesis can be modified during a single iteration.
B-stepThe main example of a learning rate $\eta$ is the step size of
GD (Boyd and Vandenberghe, 2004, Sect. 9.3),
\begin{equation}
\label{equ_def_basic_gradstep_lrate_dict}
{\mathbf w}^{(t\!+\!1)} = {\mathbf w}^{(t)} - \eta \nabla f({\mathbf w}^{(t)}) \text{.}
\end{equation}
Here, the objective function $f({\mathbf w})$ is the empirical risk incurred by a
hypothesis $h^{({\mathbf w})}$ on a training set, and
each gradient step moves the model parameters against its
gradient $\nabla f({\mathbf w}^{(t)})$ by a distance
proportional to $\eta$. Fig. 1
illustrates one gradient step \(\eqref{equ_def_basic_gradstep_lrate_dict}\)
of GD for a linear model, started from the same
hypothesis with three choices of the learning rate. The
learning rates are given as multiples of $1/L$, with $L$ the largest
eigenvalue of the Hessian of $f$. For the squared error loss,
a gradient step lowers $f$ for every learning rate below $2/L$
(Nesterov, 2004, Thm. 2.1.14); the largest learning rate of
Fig. 1 lies above that threshold, and
its step raises $f$.
pythondemos/learnrate.py
B-reachFig. 3 draws the balls around ${\mathbf w}^{(0)}$ with
the radius \(\eqref{equ_learnrate_reach_dict}\) for $T = 10$ gradient steps
of GD solving the empirical risk minimization (ERM) problem of linear regression, and three learning rates. Reducing the learning rate shrinks the effective
hypothesis space that can be reached by the gradient steps. Choosing the
learning rate too small or too large can then result in underfitting or
overfitting.
pythondemos/learnrate.py
Synonyms: step size.
See also: machine learning, hypothesis, parameter, gradient descent, stochastic gradient descent, projected gradient descent, step size, empirical risk minimization, linear model, hyperparameter, parameter space, hypothesis space.
@misc{dictml_learnrate,
author = {Jung, Alexander},
editor = {Olioumtsevits, Konstantina and Schnoor, Ekkehard},
title = {learning rate},
howpublished = {Dictionary of Applied Machine Learning (course edition)},
year = {2026},
doi = {10.5281/zenodo.21569296},
note = {ISBN 978-952-64-3013-3, CC BY 4.0, retrieved 2026-11-03},
url = {https://dictionaryofml.org/terms/learnrate.html}
}