NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Solving Minimal Problems Without Matrix Inversion Using FFT-Based Interpolation

Haidong Wu, Snehal Bhayani, Janne Heikkila

TL;DR

This paper introduces a matrix inversion-free method for solving minimal problems in computer vision by leveraging sparse hidden-variable resultants and IFFT-based interpolation. By shifting the polynomial coefficient recovery into the frequency domain, the proposed solver eliminates the numerical instabilities associated with online matrix inversion, achieving a 0% failure rate and accelerating computation for small-scale geometric estimation problems.

What Problem Does This Paper Address?

Estimating camera geometry—such as finding a camera's position from three points (P3P) or determining relative pose from five points—is a foundational task in computer vision. These tasks are formulated as "minimal problems," which require solving systems of multivariate polynomial equations within robust estimation frameworks like RANSAC.

Traditional approaches rely on Gröbner bases or algebraic resultants. However, these methods typically require explicit matrix inversion during online execution. When the input data is noisy or configurations are degenerate, these matrices become ill-conditioned, leading to severe numerical precision loss or outright solver failure. While symbolic expansion can avoid online inversion, it is often computationally intractable due to the factorial growth of determinant terms. This paper tackles the bottleneck of making polynomial solvers both numerically rock-solid and computationally efficient without relying on matrix inversion.

Methods

The authors propose a sampling-based, matrix inversion-free pipeline divided into offline construction and online execution stages:

High-level overview of the proposed solver pipeline
  1. Hidden-Variable Resultant: The system of equations is reformulated by hiding one variable ($x_1$) in the coefficient field, transforming the system into a matrix equation: $M(x_1)\mathbf{b} = \mathbf{0}$.
  2. IFFT-Based Coefficient Recovery: Instead of expanding the determinant of $M(x_1)$ symbolically, the solver evaluates the determinant numerically at uniformly spaced sample points on the complex unit circle. Because these points are roots of unity, the polynomial coefficients can be stably and efficiently reconstructed using the Inverse Fast Fourier Transform (IFFT) in $O(k \log k)$ time.
  3. Tensor-Wise FFT Acceleration: To speed up the online evaluation of $M(x_1)$ at multiple sample points, the coefficient matrices are stacked into a 3D tensor, allowing a 1D FFT to evaluate all points simultaneously in a single batched operation.
  4. Robust Variable Recovery via Cramer's Rule & GCD: Once $x_1$ is found, the remaining variables are recovered using Cramer's rule on a rank-1 deficient submatrix. To ensure the correct submatrix is identified despite floating-point noise, the authors introduce an offline randomized prime specialization strategy to check the symbolic Greatest Common Divisor (GCD) of the submatrices.

Datasets

The method was evaluated using synthetic datasets generated following standard computer vision evaluation protocols. For each of the 14 distinct minimal problems tested (spanning relative pose, absolute pose, triangulation, and rolling shutter configurations), 5,000 random instances were generated to benchmark numerical stability and runtime performance. No real-world datasets were used, as the focus is strictly on the algorithmic and numerical correctness of the solver framework.

Key Insights and Ideas

  • Frequency Domain over Matrix Inversion: Shifting polynomial interpolation to the frequency domain via FFT/IFFT completely bypasses the need to invert fragile, ill-conditioned matrices online.
  • Unit Circle for Numerical Sanity: Sampling determinants strictly on the complex unit circle ensures all sample points have a modulus of one. This prevents the exponential growth or decay of monomial terms that typically plagues floating-point polynomial solvers.
  • Randomized Specialization for Submatrix Selection: Finding a valid rank-deficient submatrix under noise is notoriously difficult. By substituting random prime numbers for symbolic coefficients offline, the authors can cheaply compute exact symbolic GCDs to guarantee stable submatrix selection online.

Key Results

The proposed method was compared against two state-of-the-art frameworks: SparseR (resultant-based) and GAPS (Gröbner-basis-based).

  • Zero Failures: Across all 5,000 trials for all 14 minimal problems, the proposed solver achieved a 0% failure rate. In contrast, SparseR and GAPS suffered from occasional numerical breakdowns, yielding failure rates up to 1.24% on difficult problems like 9-point relative pose.
  • Speedups on Small-Scale Problems: For smaller problems (the first 5 tested, such as 6-point and 8-point relative pose), the proposed solver cut execution times by approximately 30% on average compared to competitors.
  • Precision: The solver maintained highly competitive numerical accuracy, often matching or slightly exceeding the log-residual precision of state-of-the-art methods.

Limitations and Future Work

  • Linear Scaling with Root Count: The solver's runtime increases linearly with the number of computed roots. This happens because variable recovery (Cramer's rule and back-substitution) must be repeated individually for every candidate root of the hidden variable. For large-scale problems with many roots, this makes the solver slower than Gröbner-basis alternatives.
  • GPU Parallelization: Because the tensor-wise evaluations and root-dependent variable recoveries are highly independent, the authors note that the pipeline is an ideal candidate for GPU acceleration, which they leave for future work.

Summary updated

BibTeX
@inproceedings{wu2026solving,
  author = {Haidong Wu and Snehal Bhayani and Janne Heikkila},
  title = {{Solving Minimal Problems Without Matrix Inversion Using FFT-Based Interpolation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ROE9bjb37m},
}
Figure