A Sparse Resultant Based Method for Efficient Minimal Solvers

Snehal Bhayani, Zuzana Kukelova, Janne Heikkilä

Abstract

Many computer vision applications require robust and efficient estimation of camera geometry. The robust estimation is usually based on solving camera geometry problems from a minimal number of input data measurements, i.e. solving minimal problems in a RANSAC framework. Minimal problems often result in complex systems of polynomial equations. Many state-of-the-art efficient polynomial solvers to these problems are based on Grobner basis and the action-matrix method that has been automatized and highly optimized in recent years. In this paper we study an alternative algebraic method for solving systems of polynomial equations, i.e., the sparse resultant-based method and propose a novel approach to convert the resultant constraint to an eigenvalue problem. This technique can significantly improve the efficiency and stability of existing resultant-based solvers. We applied our new resultant-based method to a large variety of computer vision problems and show that for most of the considered problems, the new method leads to solvers that are the same size as the the best available Grobner basis solvers and of similar accuracy. For some problems the new sparse-resultant based method leads to even smaller and more stable solvers than the state-of-the-art Grobner basis solvers. Our new method can be fully automatized and incorporated into existing tools for automatic generation of efficient polynomial solvers and as such it represents a competitive alternative to popular Grobner basis methods for minimal problems in computer vision.

Introduction

In computer vision, tasks like 3D reconstruction and visual navigation rely on RANSAC (Random Sample Consensus) to estimate camera geometry from minimal data samples. Because RANSAC requires thousands of iterations per second, the underlying "minimal solvers" must be extremely fast and numerically stable. Traditionally, these solvers are generated using Gröbner basis methods. While sparse resultant-based methods offer an alternative, they have historically been difficult to automate and often produced unstable solvers due to the introduction of "parasitic" solutions. This paper introduces a fully automated framework for creating efficient sparse resultant-based solvers that rival or exceed the performance of industry-standard Gröbner basis techniques.

Methodology

The proposed method overcomes the limitations of previous resultant-based approaches through a novel algebraic formulation:

  1. The "Extra Equation" Trick: The system is augmented with a simple linear equation, $f_{m+1} = x_i - \lambda$, where $x_i$ is a target variable and $\lambda$ is a new "hidden" variable.
  2. Sparse Resultant Construction: Utilizing the Newton Polytopes of the polynomials, a large, sparse matrix $M(\lambda)$ is constructed.
  3. Reduction to a Regular Eigenvalue Problem: Through block-partitioning and the Schur complement, the problem is transformed into a standard eigenvalue form ($Xb = \lambda b$). This targets Regular Eigenvalue Problems, which are the "gold standard" for speed and accuracy, avoiding the slower Generalized Eigenvalue Problems common in older methods.
  4. Automated Optimization: Redundant rows and columns are pruned automatically to minimize the final solver's computational footprint.

This approach focuses on structure rather than complexity. By linking a variable to $\lambda$, the authors create a matrix structure that collapses into a compact eigenvalue problem, effectively eliminating unwanted solutions.

Experimental Evaluation

The method was evaluated across a spectrum of classic and challenging minimal problems using both synthetic and real-world data. Synthetic tests involved 10,000 generated 3D scenes to assess numerical stability. Real-world validation was performed on the Rotunda Dataset, using a GoPro Hero4 to test absolute pose estimation (P4Pfr) in a practical 3D reconstruction pipeline.

Key Results: Efficiency and Stability

The new method consistently produces solvers with smaller or equivalent template sizes compared to state-of-the-art Gröbner basis solvers. For instance, in the "Rel. pose $F+\lambda$ 8pt" problem, the template size is reduced from $11 \times 19$ to $7 \times 16$.

Comparison of solver template sizes across various minimal problems.

Furthermore, the stability of these solvers is notably superior in several difficult cases. In the "Rel. pose $\lambda+E+\lambda$ 6pt" problem, the proposed method achieved a failure rate of 14.66%, nearly half that of the best Gröbner-based alternatives which ranged from 25.9% to 26.46%.

Numerical stability comparison (mean, median, and failure rate) for selected minimal problems.

Conclusion

This work demonstrates that sparse resultant-based methods, when properly formulated and automated, are a powerful alternative to Gröbner basis methods. While not a universal replacement—some specific problems still favor specialized Gröbner heuristics—the proposed method offers a significant leap in efficiency and stability for many core computer vision tasks. Future work includes integrating this framework into existing automatic solver generators to allow researchers to easily compare both algebraic approaches for any given problem.

Summary updated

BibTeX
@inproceedings{bhayani2020sparse,
  author = {Snehal Bhayani and Zuzana Kukelova and Janne Heikkilä},
  title = {{A Sparse Resultant Based Method for Efficient Minimal Solvers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=0Zr1fjDeso},
}
Figure