A Quadratic-Time Algorithm for General Multivariate Polynomial Interpolation

Michael Hecht, Bevan L. Cheeseman, Karl B. Hoffmann, Ivo F. SbalzariniarXiv 2017 · DOI

Abstract

For $m,n \in \mathbb{N}$, $m\geq 1$ and a given function $f : \mathbb{R}^m\longrightarrow \mathbb{R}$ the polynomial interpolation problem (PIP) is to determine a generic node set $P \subseteq \mathbb{R}^m$ and the coefficients of the uniquely defined polynomial $Q\in\mathbb{R}[x_1,\dots,x_m]$ in $m$ variables of degree $\mathrm{deg}(Q)\leq n \in \mathbb{N}$ that fits $f$ on $P$, i.e., $Q(p) = f(p)$, $\forall\, p \in P$. We here show that in general, i.e., for arbitrary $m,n \in \mathbb{N}$, $m \geq 1$, there exists an algorithm that determines $P$ and computes the $N(m,n)=\#P$ coefficients of $Q$ in $\mathcal{O}\big(N(m,n)^2\big)$ time using $\mathcal{O}\big(mN(m,n)\big)$ storage, without inverting the occurring Vandermonde matrix. We provide such an algorithm, termed PIP-SOLVER, based on a recursive decomposition of the problem and prove its correctness. Since the present approach solves the PIP without matrix inversion, it is computationally more efficient and numerically more robust than previous approaches.

Introduction

Polynomial interpolation—the process of finding a polynomial that passes exactly through a specified set of data points—is a cornerstone of scientific computing. It serves as the foundation for various applications, including partial differential equation (PDE) solvers, computer graphics, and signal processing. While interpolation in one dimension is a well-understood problem with efficient solutions like Lagrange or Newton interpolation, the multivariate case (involving multiple variables $x_1, x_2, \dots, x_m$) has historically presented significant computational and numerical challenges.

Traditionally, solving the multivariate polynomial interpolation problem (PIP) requires solving a linear system defined by a Vandermonde matrix. This approach suffers from two primary drawbacks: high computational complexity, typically $\mathcal{O}(N^3)$ where $N$ is the number of coefficients, and extreme numerical instability. Vandermonde matrices are notoriously ill-conditioned, meaning that even minor floating-point errors can lead to catastrophic inaccuracies in the resulting polynomial. PIP-SOLVER addresses these issues by bypassing matrix inversion entirely.

Methodology: The PIP-SOLVER Algorithm

The core innovation of PIP-SOLVER is a recursive "divide-and-conquer" strategy that decomposes the global interpolation problem into manageable sub-problems.

Recursive Decomposition

Instead of attempting to solve for all $N$ coefficients simultaneously, the algorithm splits the $m$-dimensional problem of degree $n$ into two distinct components:

  1. A problem with one fewer dimension $(m-1, n)$.
  2. A problem with a lower degree $(m, n-1)$.

This decomposition is achieved through hyperplane slicing. By isolating data on specific hyperplanes (flat slices of the multidimensional space), the algorithm can solve the interpolation on the slice and then use the remainder to address the rest of the space. This process continues recursively until the problem is reduced to simple one-dimensional or linear cases that are trivial to solve.

Generic Node Selection

A critical requirement for unique polynomial interpolation is the selection of a "generic" node set. If the sampling points are poorly chosen (e.g., they all lie on a specific algebraic curve), a unique solution may not exist. PIP-SOLVER utilizes a rigorous node-selection strategy grounded in Bézout’s Theorem from algebraic geometry. This ensures that the chosen points are guaranteed to produce a unique and stable solution, moving beyond the heuristic or random sampling methods used in previous research.

Experimental Validation

The researchers validated PIP-SOLVER using synthetic numerical experiments, comparing its performance against standard MATLAB approaches such as linsolve (LU-decomposition) and direct matrix inversion. The test suite involved random polynomials with coefficients drawn from a uniform distribution $[-1, 1]$, with dimensions $m$ ranging from 2 to 35.

Numerical Stability and Accuracy

One of the most significant findings was the algorithm's robustness against ill-conditioning. In high-dimensional tests (up to $m=35$), PIP-SOLVER maintained a nearly constant error rate of approximately $10^{-12}$. In contrast, the errors for traditional matrix-based methods grew quadratically with the problem size, eventually rendering them unusable for large-scale problems.

Computational Efficiency

PIP-SOLVER achieved the theoretical complexity of $\mathcal{O}(N^2)$ time and $\mathcal{O}(mN)$ space. For large-scale problems where the number of coefficients $N$ exceeded $10^5$, PIP-SOLVER was orders of magnitude faster than traditional solvers. While standard methods often failed due to memory exhaustion or prohibitive time requirements at this scale, PIP-SOLVER remained efficient and accurate.

Conclusion and Future Work

PIP-SOLVER represents a significant advancement in multivariate interpolation by breaking the "Vandermonde Barrier." By replacing global matrix inversion with recursive decomposition, the algorithm provides a path toward solving high-dimensional problems that were previously computationally inaccessible.

Currently, the algorithm requires the flexibility to choose the interpolation nodes. Future research may explore adapting this recursive logic to fixed data sets or extending the methodology to other basis functions, such as Chebyshev or Fourier bases. Such extensions could lead to the development of "Fast Multivariate Fourier Transforms" and have broad implications for fields ranging from cryptography to gradient-based optimization.

Summary updated

BibTeX
@misc{hecht2017quadratic,
  author = {Michael Hecht and Bevan L. Cheeseman and Karl B. Hoffmann and Ivo F. Sbalzarini},
  title = {{A Quadratic-Time Algorithm for General Multivariate Polynomial Interpolation}},
  year = {2017},
  eprint = {1710.10846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.10846},
}
Figure