Annealing approach to root-finding

Junghyo Jo, Alexandre Wagemakers, Vipul PeriwalarXiv 2024

Abstract

The Newton-Raphson method is a fundamental root-finding technique with numerous applications in physics. In this study, we propose a parameterized variant of the Newton-Raphson method, inspired by principles from physics. Through analytical and empirical validation, we demonstrate that this novel approach offers increased robustness and faster convergence during root-finding iterations. Furthermore, we establish connections to the Adomian series method and provide a natural interpretation within a series framework. Remarkably, the introduced parameter, akin to a temperature variable, enables an annealing approach. This advancement sets the stage for a fresh exploration of numerical iterative root-finding methodologies.

Introduction

Root-finding—the process of identifying $x$ such that $f(x) = 0$—is a cornerstone of computational science, essential for fields ranging from fluid dynamics to the training of deep neural networks. The standard Newton-Raphson (NR) method is the most widely adopted iterative technique due to its quadratic convergence. However, NR suffers from significant limitations: it is highly sensitive to initial guesses, prone to indefinite oscillations, and often fails in regions where the function is "flat" or exhibits complex fractal basin boundaries.

This research addresses these weaknesses by framing root-finding as a physical process. By treating the standard NR method as a "high-temperature" approximation, the authors introduce a parameterized approach that incorporates more information about the function's local landscape, leading to enhanced robustness and accelerated convergence.

Methodology

The proposed method is derived by framing root-finding through the lens of statistical mechanics and Cohomological Field Theory. The root is represented as the ground state of a physical system defined by a partition function. The core innovation is a two-step iterative update involving an auxiliary parameter $\beta$:

  1. Predictor Step: A standard Newton-Raphson update generates an intermediate value $\hat{x}_{n+1}$.
  2. Corrector Step: A correction is applied based on $\beta$: $$x_{n+1} = \hat{x}_{n+1} - \beta \frac{f(\hat{x}_{n+1})}{f'(x_n)}$$
Geometric interpretation of the parameterized root-finding method showing the influence of the beta parameter on the function landscape.

The Role of the $\beta$ Parameter

The parameter $\beta$ acts as an inverse temperature. When $\beta=0$, the method reverts to standard Newton-Raphson. At $\beta=1$, the method aligns with the Adomian decomposition method, yielding cubic convergence. By employing an "annealing schedule" where $\beta_n$ is dynamically adjusted based on local derivatives, the algorithm can achieve convergence orders as high as quartic (4th order). This dynamic cooling allows the algorithm to "feel" the broader landscape of the function, making it less likely to be trapped by local pathologies.

Experimental Evaluation

The researchers evaluated the algorithm against a benchmark suite of 14 complex nonlinear functions ($f_1$ through $f_{14}$), including high-degree polynomials, transcendental functions, and the Kuramoto model.

Performance comparison across 14 benchmark functions for varying beta values, illustrating improvements in iteration count and computation time.

As shown in the empirical data, positive values of $\beta$ (particularly $\beta=1$) consistently outperformed standard NR ($\beta=0$) in several key metrics:

  • Efficiency: The annealing approach required significantly fewer iterations to reach convergence across nearly all test cases.
  • Robustness: The method demonstrated a higher "Convergence Percentage," meaning it successfully found roots from a wider variety of random starting points. For example, in the cube root function ($f(x) = x^{1/3}$), where standard NR typically oscillates and fails, the parameterized method successfully converged.
  • Computation Time: Despite the additional overhead of evaluating the function at the predictor step, the reduction in total iterations led to lower overall computation times for most functions.

Conclusion

By introducing a physics-inspired annealing parameter to the Newton-Raphson framework, this study provides a more robust and efficient methodology for root-finding. The transition from quadratic to quartic convergence represents a significant step forward in numerical analysis. While the method requires additional derivative evaluations per step, the gains in robustness and total iteration count justify the cost. Future work may explore the integration of this approach with the Homotopy Analysis Method (HAM) and its application to optimizing complex architectures in deep learning.

Summary updated

BibTeX
@misc{jo2024annealing,
  author = {Junghyo Jo and Alexandre Wagemakers and Vipul Periwal},
  title = {{Annealing approach to root-finding}},
  year = {2024},
  eprint = {2404.15338},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.15338},
}
Figure