MinBackProp -- Backpropagating through Minimal Solvers
Diana Sungatullina, Tomas Pajdla
TL;DR
This work tackles the challenge of backpropagating through minimal solvers within end-to-end learning by leveraging the Implicit Function Theorem (IFT) to compute derivatives of solver outputs with respect to inputs. The authors provide a direct IFT-based backpropagation method and contrast it with a Deep Declarative Networks (DDN) approach, showing that IFT is simple, fast, and numerically stable, while DDN offers an easier but slower alternative. They validate the approach on a toy 3D point-registration task with outliers and a real epipolar geometry estimation pipeline, reporting 100% stability and about 10x speed improvements over autograd baselines. The work also details the theoretical underpinnings, including differentiation of polynomial systems and the use of DDN for backprop through algebraic solvers, highlighting its practical impact for robust, differentiable minimal solvers in computer vision tasks such as essential matrix estimation and RANSAC-based sampling.
Abstract
We present an approach to backpropagating through minimal problem solvers in end-to-end neural network training. Traditional methods relying on manually constructed formulas, finite differences, and autograd are laborious, approximate, and unstable for complex minimal problem solvers. We show that using the Implicit function theorem (IFT) to calculate derivatives to backpropagate through the solution of a minimal problem solver is simple, fast, and stable. We compare our approach to (i) using the standard autograd on minimal problem solvers and relate it to existing backpropagation formulas through SVD-based and Eig-based solvers and (ii) implementing the backprop with an existing PyTorch Deep Declarative Networks (DDN) framework. We demonstrate our technique on a toy example of training outlier-rejection weights for 3D point registration and on a real application of training an outlier-rejection and RANSAC sampling network in image matching. Our method provides $100\%$ stability and is 10 times faster compared to autograd, which is unstable and slow, and compared to DDN, which is stable but also slow.
