Scalable higher-order nonlinear solvers via higher-order automatic differentiation

Songchen Tan, Keming Miao, Alan Edelman, Christopher RackauckasarXiv 2025 · DOI

Abstract

Solving systems of nonlinear equations is a foundational task in computational science, traditionally dominated by Newton's method due to its quadratic convergence. While higher-order methods like Halley’s offer faster cubic convergence, they have historically been dismissed for large-scale problems due to the prohibitive computational cost of full Hessian tensors. This paper demonstrates that higher-order solvers can be made practical and efficient through the use of Taylor-mode automatic differentiation (AD). By computing exact higher-order directional derivatives and reusing Jacobian factorizations, the authors achieve significant speedups over standard Newton-based solvers across dense, sparse, and stiff ODE benchmarks.

Introduction

In fields ranging from fluid dynamics to implicit differential equation modeling, Newton's method is the undisputed workhorse. It utilizes first-order derivatives (the Jacobian matrix) to iteratively find solutions. Mathematicians have long recognized that higher-order methods, such as Householder’s or Halley’s methods, can converge even faster. However, conventional wisdom suggests these methods are computationally infeasible for large systems because they require computing and storing higher-order derivative tensors (Hessians), which scale poorly with the number of variables $n$.

This research challenges that assumption, asking whether the fast convergence of higher-order methods can be harnessed without the massive computational overhead typically associated with them.

Methods: Efficient Higher-Order Derivatives

The core innovation lies in bypassing full derivative tensors using Taylor-mode Automatic Differentiation (AD). Instead of a dense Hessian, Taylor-mode AD allows for the computation of higher-order directional derivatives (e.g., Hessian-vector products). The cost of these directional derivatives is only $O(p)$ times the cost of a standard function evaluation, where $p$ is the derivative order.

The authors implemented two primary algorithms in Julia:

  1. Univariate Householder’s Method: Used to analyze the trade-off between derivative order and total solving speed.
  2. Multivariate Halley’s Method: A second-order variant of Householder's method.

The Factorization Reuse Trick

A critical algorithmic optimization in the multivariate Halley’s method is the reuse of the Jacobian factorization. While Halley's method requires solving two linear systems per iteration, the authors structured the mathematics so that the expensive $O(n^3)$ factorization of the Jacobian matrix occurs only once. The second solve reuses this factorization, making each Halley step asymptotically as cheap as a Newton step while providing superior convergence.

Key Results and Scaling

The effectiveness of these methods was tested on several benchmarks, including Chandrasekhar’s H-function (dense Jacobian) and the 2D Brusselator PDE (sparse Jacobian).

Figure 2: Analysis of the trade-off between derivative order (p), per-iteration time, and total solving speedup.

The "Sweet Spot" for Order $p$

As shown in Figure 2, there are diminishing returns for increasing the order $p$ beyond 2. Halley's method (order $p=2$) consistently provides the best balance, offering a substantial reduction in total iterations that outweighs the marginal increase in per-iteration cost.

Performance on Dense and Sparse Problems

On dense problems like Chandrasekhar’s H-function ($n=128$), the Taylor-mode Halley’s method outperformed Newton’s method by approximately 40%. Crucially, a "naive" implementation that computes the full Hessian becomes computationally impossible as $n$ increases, whereas the AD-based approach scales efficiently.

Figure 5: Scaling of different solvers on a nonlinear problem with a dense Jacobian. The Taylor-mode Halley implementation scales similarly to Newton's method, while the naive approach fails as n grows.

For sparse problems, such as the steady-state 2D Brusselator PDE ($n=2048$), Halley’s method achieved a 25% speedup. When integrated into standard stiff ODE solvers (like QNDF), it resulted in a 5-10% overall speedup for the entire solving process.

Discussion and Future Work

The research demonstrates that directional derivatives, enabled by Taylor-mode AD, allow higher-order optimization to bypass the curse of dimensionality. By focusing on what the solver actually needs rather than full tensors, cubic convergence becomes a practical reality for large-scale systems.

One current limitation is the reliance on exact matrix factorization (LU/QR). For extremely large systems requiring matrix-free iterative solvers (like Krylov methods), the factorization reuse trick cannot be applied. Future work will focus on extending these higher-order AD techniques to remain efficient in matrix-free contexts, where the cost of multiple iterative solves per step currently offsets the convergence benefits.

Summary updated

Abstract

This paper demonstrates new methods and implementations of nonlinear solvers with higher-order of convergence, which is achieved by efficiently computing higher-order derivatives. Instead of computing full derivatives, which could be expensive, we compute directional derivatives with Taylor-mode automatic differentiation. We first implement Householder's method with arbitrary order for one variable, and investigate the trade-off between computational cost and convergence order. We find that the second-order variant, i.e., Halley's method, to be the most valuable, and further generalize Halley's method to systems of nonlinear equations and demonstrate that it can scale efficiently to large-scale problems. We further apply Halley's method on solving large-scale ill-conditioned nonlinear problems, as well as solving nonlinear equations inside stiff ODE solvers, and demonstrate that it could outperform Newton's method.
BibTeX
@misc{tan2025scalable,
  author = {Songchen Tan and Keming Miao and Alan Edelman and Christopher Rackauckas},
  title = {{Scalable higher-order nonlinear solvers via higher-order automatic differentiation}},
  year = {2025},
  eprint = {2501.16895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.16895},
}
Figure