Zero-Order Hold
Chapter 20: ODE, SDE, and Continuous Limits of Algorithms — Zero-Order Hold (ZOH)
From the book
Chapter 20: ODE, SDE, and Continuous Limits of Algorithms. In the chapter mind map this icon labels Zero-Order Hold (ZOH). The discussion below is excerpted and lightly edited from § Zero-Order Hold (ZOH) in Mathematics for AI and Machine Learning.
The heavy-ball method $\mathbf{x}_{k+1} = \mathbf{x}_k + \beta(\mathbf{x}_k - \mathbf{x}_{k-1}) - s\nabla f(\mathbf{x}_k)$ of the matrix chapter has a second-order limit. With time $t = k\sqrt{s}$ and $\mathbf{x}_k = \mathbf{x}(t)$, the expansions $\mathbf{x}_{k\pm 1} = \mathbf{x} \pm \sqrt{s}\,\dot{\mathbf{x}} + \frac{s}{2}\ddot{\mathbf{x}} + O(s^{3/2})$ and a momentum $\beta = 1 - \gamma\sqrt{s}$ give, after dividing by $s$,
a damped oscillator. For $f = \frac{\mu}{2}\|\mathbf{x}\|^2$ the solutions decay like $e^{-\lambda t}$ with $\lambda^2 - \gamma\lambda + \mu = 0$; the fastest decay, $e^{-\sqrt{\mu}\,t}$, comes from critical damping $\gamma = 2\sqrt{\mu}$. With $s = 1/L$, step $k$ is time $t = k/\sqrt{L}$, so the rate per step is $e^{-\sqrt{\mu/L}} = e^{-1/\sqrt{\kappa}}$, against $e^{-\mu/L} = e^{-1/\kappa}$ for gradient descent: the square root of the condition number in the matrix chapter is the square root in the frequency of an oscillator.
Nesterov's accelerated gradient descent for convex $f$ uses the growing momentum $\beta_k = \frac{k - 1}{k + 2} = 1 - \frac{3}{k + 2}$. With $k = t/\sqrt{s}$ this is $\beta = 1 - \frac{3\sqrt{s}}{t} + O(s)$, a friction coefficient $\gamma = 3/t$ that weakens over time, and the same expansion is a discretization of
What this drawing shows
What you see. Gray continuous signal dashed; green zero-order-hold stair steps build left to right, holding each sample until the next grid time.
In the mind map. Chapter 20 — Zero-Order Hold (ZOH). See From the book above for definitions, figures, and worked examples.
Where to read next
Read the full definitions, figures, and worked examples in Chapter 20: ODE, SDE, and Continuous Limits of Algorithms — see the mind-map node Zero-Order Hold (ZOH).