On the Effectiveness of Richardson Extrapolation in Machine Learning

Francis R. BacharXiv 2020 · OpenReview

Abstract

Richardson Extrapolation (RE) is a classical numerical analysis technique used to improve the accuracy of sequences. This paper explores its application as a "black-box" acceleration tool for machine learning algorithms. By combining outputs from different hyperparameter settings—such as the number of iterations or regularization penalties—RE can significantly improve convergence rates and reduce bias without requiring modifications to the underlying code. We demonstrate its effectiveness on Averaged Gradient Descent, Frank-Wolfe, and Ridge Regression, while identifying critical limitations in oscillatory settings like Nesterov's acceleration.

Introduction

Most machine learning methods are iterative approximations of an ideal quantity, such as a predictor learned from infinite data or an algorithm run for infinite time. Traditionally, speeding up these methods requires "internal" acceleration techniques. For example, Nesterov’s momentum or heavy-ball methods necessitate fundamental changes to the algorithm's update rules. However, in modern machine learning, many algorithms are already "baked in" to highly optimized software libraries or are part of complex pipelines where modifying the core logic is difficult or risky.

This paper investigates Richardson Extrapolation (RE) as an "external" or "black-box" alternative. RE treats the algorithm as a function of a hyperparameter $t$ (like $1/k$ for iterations or $\lambda$ for regularization). If the error of the algorithm follows a predictable asymptotic behavior, we can combine a few different results to cancel out the leading error terms. This allows practitioners to achieve higher-order accuracy simply by running an existing algorithm a few times with different settings and taking a linear combination of the results.

The Richardson Extrapolation Framework

The core of RE lies in the assumption of an asymptotic expansion. If an estimate $x_t$ approaches the true solution $x_*$ as $t \to 0$ in the form: $$x_t = x_* + t^\alpha \Delta + O(t^\beta)$$ where $\Delta$ is an unknown error direction and $\alpha < \beta$, we can eliminate the $t^\alpha \Delta$ term. By taking two estimates at different scales, say $t$ and $2t$, we can construct a new estimate that is closer to $x_*$. For instance, the combination $2x_t - x_{2t}$ removes the first-order error term when $\alpha=1$.

Geometric intuition of first-order Richardson Extrapolation: combining $x_t$ and $x_{2t}$ to cancel the first-order error term.

This technique can be applied to two primary "knobs" in machine learning:

  1. Number of Iterations ($k$): Here, we set $t = 1/k$. This is applicable to algorithms like Averaged Gradient Descent (AGD) and Frank-Wolfe.
  2. Regularization Parameter ($\lambda$): Here, we set $t = \lambda$. This is useful for Nesterov smoothing of non-smooth functions and Ridge Regression.

Furthermore, Multiple-step Richardson Extrapolation can be employed by using $m+1$ iterates to cancel the first $m$ terms of the error expansion, leading to even higher-order accuracy at the cost of more computations.

Algorithm Dynamics and Convergence

A key insight of this work is that RE's effectiveness depends heavily on the convergence trajectory of the algorithm. It performs exceptionally well when an algorithm converges along a specific direction without significant oscillation. For example, Averaged Gradient Descent (AGD) typically exhibits a smooth, non-oscillatory path toward the optimum, making it an ideal candidate for RE.

In contrast, algorithms that "zig-zag" or oscillate, such as Nesterov’s Accelerated Gradient Descent, do not satisfy the simple asymptotic expansion required for RE. In these cases, the error direction $\Delta$ changes rapidly, and combining iterates from different time steps does not lead to cancellation.

Convergence paths: Richardson Extrapolation succeeds on non-oscillatory paths (left) but fails on oscillatory ones (right).

Interestingly, the paper notes that a common heuristic in stochastic gradient descent—tail-averaging (averaging only the latter half of iterates)—is mathematically equivalent to a first-order Richardson Extrapolation. This provides a theoretical grounding for a widely used practical trick.

Key Results and Applications

The paper validates these theoretical insights across several domains using both simulated data (e.g., Logistic Regression with Gaussian inputs) and classical ML setups:

  • Averaged Gradient Descent: In the non-stochastic, strongly convex case, RE can transform a standard $O(1/k^2)$ convergence rate into exponential convergence.
  • Frank-Wolfe Algorithm: On polytopes, using a step size of $1/k$, RE improves the convergence rate from $O(1/k)$ to $O(1/k^2)$.
  • Ridge Regression: RE helps overcome the "saturation" point in Ridge Regression, where increasing signal smoothness no longer improves error rates. It allows for optimal statistical performance across a much wider range of signal types.
  • Non-Smooth Optimization: For functions like the $L_1$ norm (Lasso), RE allows using a larger, more stable smoothing parameter while mathematically recovering the accuracy of a much smaller one, achieving rates arbitrarily close to $O(1/k^2)$.

Conclusion and Future Work

Richardson Extrapolation offers a powerful, non-invasive way to accelerate machine learning algorithms. Its primary advantage is its "black-box" nature, allowing for significant gains without modifying existing codebases. While its benefits are most pronounced in non-oscillatory settings, the author finds that it rarely degrades performance significantly, even when the underlying assumptions are not perfectly met.

However, several challenges remain. The analysis is largely asymptotic, and the "burn-in" period before these gains manifest is not yet fully quantified. Additionally, extending these techniques to the stochastic regime and non-convex problems, such as deep learning, remains an open and exciting area for future research.

Summary updated

Abstract

Richardson extrapolation is a classical technique from numerical analysis that can improve the approximation error of an estimation method by combining linearly several estimates obtained from different values of one of its hyperparameters, without the need to know in details the inner structure of the original estimation method. The main goal of this paper is to study when Richardson extrapolation can be used within machine learning, beyond the existing applications to step-size adaptations in stochastic gradient descent. We identify two situations where Richardson interpolation can be useful: (1) when the hyperparameter is the number of iterations of an existing iterative optimization algorithm, with applications to averaged gradient descent and Frank-Wolfe algorithms (where we obtain asymptotically rates of $O(1/k^2)$ on polytopes, where $k$ is the number of iterations), and (2) when it is a regularization parameter, with applications to Nesterov smoothing techniques for minimizing non-smooth functions (where we obtain asymptotically rates close to $O(1/k^2)$ for non-smooth functions), and ridge regression. In all these cases, we show that extrapolation techniques come with no significant loss in performance, but with sometimes strong gains, and we provide theoretical justifications based on asymptotic developments for such gains, as well as empirical illustrations on classical problems from machine learning.
BibTeX
@misc{bach2020effectiveness,
  author = {Francis R. Bach},
  title = {{On the Effectiveness of Richardson Extrapolation in Machine Learning}},
  year = {2020},
  eprint = {2002.02835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.02835},
}
Figure