Introduction
Linear least-squares (LLS) problems are fundamental to computer vision, appearing in tasks such as essential matrix estimation, Perspective-n-Point (PnP) solvers, and geometric primitive fitting. These problems typically involve finding the eigenvector corresponding to the smallest eigenvalue of a data-dependent matrix. While deep learning has revolutionized many vision tasks, integrating these geometric solvers into end-to-end pipelines remains challenging due to the numerical instability of backpropagating through eigendecomposition (ED) or Singular Value Decomposition (SVD).
The Challenge: Eigenvector Switching
Standard approaches differentiate through SVD to penalize the difference between a predicted eigenvector and a ground-truth target. However, this process is prone to two major issues: gradient explosion when eigenvalues are nearly equal, and "eigenvector switching." The latter occurs when updates to network weights cause the order of eigenvalues to change, leading to discontinuous jumps in the gradient landscape that stall optimization.
Proposed Methodology
To circumvent these issues, this work introduces an eigendecomposition-free loss function. Instead of explicitly computing eigenvectors during the forward pass, the method directly penalizes the predicted matrix $A$ using the ground-truth eigenvector $\tilde{e}$.
The loss function comprises two primary terms:
- Algebraic Error: Minimizing $\tilde{e}^T A^T A \tilde{e}$ encourages the eigenvalue in the direction of the ground truth to approach zero.
- Non-triviality Regularizer: To prevent the network from outputting a trivial zero matrix, a regularizer maximizes the eigenvalues in directions orthogonal to $\tilde{e}$. This is achieved by maximizing the trace of the matrix projected onto the orthogonal hyperplane, stabilized by an exponential kernel.
This framework is versatile, supporting both outlier rejection (predicting weights for input points) and denoising (predicting coordinate corrections).
Experimental Results
The proposed method was evaluated across several geometric tasks, demonstrating superior stability and performance.
- Robust PnP: In Perspective-n-Point tasks, the method maintained high accuracy even with an outlier ratio as high as 65%, significantly outperforming traditional robust solvers and existing differentiable PnP methods.
- Wide-baseline Stereo: On the SUN3D and Strecha datasets, the approach achieved state-of-the-art mean Average Precision (mAP) for keypoint matching without requiring the complex multi-stage pre-training common in previous literature.
Conclusion
By eliminating the need for explicit ED/SVD during training, this research provides a robust and mathematically elegant way to incorporate geometric constraints into deep networks. The resulting models are easier to train, converge faster, and exhibit remarkable resilience to noise and outliers in real-world computer vision applications.
Summary updated