Deriving the Optimal Learning Rate for Gradient Descent on Quadratics
Preme Pongcharoen
ระดับมัธยมศึกษาการสำรวจเชิงคณิตศาสตร์คณิตศาสตร์ประยุกต์14 พ.ย. 2569ภาษาอังกฤษ
This investigation examines the conditions under which gradient descent converges on quadratic functions of the form (), and derives the learning rate that minimises the number of iterations required. Applying the update rule to yields the geometric sequence , whose closed form is proven by mathematical induction. From the convergence condition on a geometric sequence, , the stable range of learning rates is shown to be , with the upper bound inversely proportional to the coefficient . Minimising the contraction factor over this interval gives the optimal learning rate , the midpoint of the convergence range, at which the algorithm reaches the minimum in exactly one iteration. An expression for the number of iterations required to reach a tolerance , , is also derived and predicts a U-shaped relationship between and iteration count. These theoretical results were verified computationally using a Python implementation that swept from to for : the observed convergence bounds , optimal learning rates , and iteration counts (e.g., iterations at for ) matched the theoretical predictions. The investigation concludes that steeper quadratics demand smaller learning rates and a narrower stable range, and that even modest deviation from can substantially increase the iteration count.