Structure from Motion (SfM) rebuilds a 3D scene and its cameras from a pile of photos. Most global pipelines start from pairwise relations. For each overlapping image pair they estimate a fundamental matrix, a 3×3 matrix that says where a point seen in one image must lie in the other. Some of these pairwise estimates are wrong. Repeated facades, small overlap, and bad matches all produce them, and one confidently wrong pair can corrupt the whole reconstruction. This proposal builds a local filter that tests small groups of four cameras for whether their six pairwise matrices could come from one real camera arrangement. It then discards the pairwise estimates that keep failing that test, before any global solver runs.
Theory already says why four is the right number. If all fundamental matrices of $n$ cameras are stacked into one $3n\times 3n$ block matrix and each is given the right unknown scale, the block matrix has rank exactly 6 with three positive and three negative eigenvalues. Moreover, for a complete viewing graph, the set is globally consistent if and only if every four-camera subset is consistent. Three-camera checks provably miss some failures. That four-camera result is stated for exact, noise-free matrices. Our contribution is to turn it into a calibrated statistical test that works on noisy estimates, on sparse photo-collection graphs, and at a cost far below solving the full problem. We then measure whether the fourth camera actually catches outliers that cheaper triplet and pairwise checks miss.
What exists and where the gap is
Three papers supply the algebra. A New Rank Constraint on Multi-view Fundamental Matrices introduced the rank-6 property and recovers camera locations with a global non-convex cost. That cost is solved by repeatedly re-weighted least squares, which down-weights suspect pairs, combined with an alternating split solver that enforces the rank constraint. The method needs a reasonable starting point, and it handles outliers only inside one large joint optimization. GPSfM completed the characterization: rank 6, the 3-positive/3-negative eigenvalue signature, and rank-3 block rows. It also observed that triplet constraints do not depend on the unknown scales, and it builds a projective reconstruction from overlapping triplets. Compatibility of Fundamental Matrices for Complete Viewing Graphs proved that checking every four-camera group is enough (Theorem 3.12) and built triplet-passing counterexamples. It also showed that for generic configurations the rank condition makes the eigenvalue check redundant. That paper constrains us too: it works in exact arithmetic, it covers only complete graphs, and it leaves the noisy case open.
The second direction, geometric consistency filtering, supplies the methodological stance rather than the domain. A Correct-and-Certify Approach accepts a pose hypothesis only after it passes observable "certificates," measurable checks that a correct answer must satisfy. Multi-Image Semantic Matching by Mining Consistent Features is the closest bridge. It prunes keypoint matches that violate a rank-4 constraint under an orthographic camera model. We do the analogous thing one level up. Our objects are projective pairwise geometries rather than point coordinates, and our test is local rather than one factorization over the whole collection.
We considered the more obvious pairing, using the rank-6 constraint to verify 3D object detections across driving camera rigs, and rejected it. Those rigs are calibrated, so their fundamental matrices are known and fixed. A detection cannot violate their rank structure, and plain triangulation already answers whether detections agree across cameras. The rank-6 constraint is informative only where the fundamental matrices themselves are uncertain, which is the SfM viewing graph.
Core Claim
A noise-calibrated four-camera residual, aggregated across the four-camera groups an edge belongs to, identifies corrupted pairwise geometries better than triplet or pairwise tests. Pruning those edges before global projective or calibrated SfM lowers final camera error and reduces how much the result depends on initialization.
For a four-camera group $Q$, let $\hat F_{ij}$ be the six estimated fundamental matrices, each normalized to unit norm. Let $\mathcal F_Q(\lambda)$ be the $12\times 12$ symmetric block matrix with zero diagonal blocks and off-diagonal blocks $\lambda_{ij}\hat F_{ij}$, where $\lambda\in\mathbb R^6$ is constrained to the unit sphere to remove the shared global scale. The residual is
$$r(Q)=\min_{\|\lambda\|=1}\ \frac{\big\|\mathcal F_Q(\lambda)-P_6\big(\mathcal F_Q(\lambda)\big)\big\|_F}{\|\mathcal F_Q(\lambda)\|_F}.$$
Here $P_6$ denotes the best approximation with rank 6 and signature (3,3), obtained by keeping the three largest positive and three most negative eigenvalues. The fixed-norm constraint rules out the trivial all-zero solution.
Each problem is tiny: five effective scale unknowns. We solve it by alternating eigen-projection and least-squares steps over the scales, from several starting points. Triplet scale-invariance gives a closed-form starting point for those scales.
Research Program
The first component is calibration, which is what makes "consistent" mean something on noisy data. For each image pair we resample its inlier correspondences, re-estimate the fundamental matrix, and propagate the perturbations into $r(Q)$. This gives a null distribution of the residual for groups with no outlier edge. A group fails when its residual exceeds a chosen false-alarm quantile. The certificate is therefore an explicit hypothesis test rather than a hand-tuned threshold.
The second component is edge scoring on sparse graphs. Internet viewing graphs are far from complete, but the theorem needs only that each tested group is internally complete. We therefore enumerate the four-camera fully connected subgroups (4-cliques) of the graph, subsampling where they are too many. A corrupted edge should make nearly every group containing it fail. A clean edge fails only when a corrupted neighbour shares its group. Each edge's score is the failure rate of its groups, discounted for failures already explained by higher-scoring neighbours. We remove the worst edge and update its neighbours' scores, then repeat until no edge scores high. Edges that lie in no 4-clique keep a triplet or pairwise score and are flagged as unverified.
The third component is a degeneracy analysis. When camera centres are nearly collinear, as in forward-moving sequences, the rank drops from 6 to 4 or less, and the test would falsely reject correct groups. We will detect this from the eigenvalue spectrum and switch to the collinear conditions of Compatibility of Fundamental Matrices for Complete Viewing Graphs. We will report how false-rejection rates change as cameras move toward collinearity.
Baselines
The naive reference point is no filtering. We feed all estimated pairwise geometries straight into the downstream solver, which is either GPSfM for projective data or the rank-constrained re-weighted solver for calibrated data. Every filter is judged by how much it improves on this, using identical downstream code, hyperparameters, and time limits.
The strongest existing competitor is the robust global solver of A New Rank Constraint on Multi-view Fundamental Matrices, run with its own outlier down-weighting. It reports, on 50-image 1DSfM subsets, a 17.69% lower median essential-matrix error and a 19.73% lower median translation error than LUD, and it wins in 84% to 90% of test cases. It is the strongest competitor because it already uses the full rank-6 structure, applied globally. We will run it on the same 50/100/150-image random subsets of the 14 scenes, with and without our pre-filter, using the same random seeds. Beating it means a statistically reliable reduction in median translation error on held-out subsets, plus fewer runs that fail to reach a good solution across random initializations.
For projective reconstruction the reference is GPSfM. It reports the lowest mean reprojection error on 22 of 25 datasets and about 110 seconds on the 85-image Dome dataset. With synthetic edge corruption injected, a win means lower reprojection error at equal or modestly higher total runtime.
The key ablation is an identical pipeline in which four-camera groups are replaced by triplets, using GPSfM's scale-invariant triplet residual with the same calibration and voting. This isolates the contribution of the fourth camera. A second ablation drops the eigenvalue-signature projection and keeps rank only, which tests the paper's claim that the signature check is generically redundant. We also include a pairwise inlier-count/Sampson threshold filter, and a random-removal control that drops the same number of edges as our filter.
Why not just…?
Why not just use triplet checks, which are cheaper and scale-free? This is the most serious threat. The counterexamples showing triplets are insufficient are synthetic and exact, and on real noisy graphs triplets might catch nearly every outlier that matters. We will measure this directly. On synthetic graphs with planted corruptions, including adversarial ones built to pass triplet checks, and on real 1DSfM graphs, we report the fraction of corrupted edges flagged by the four-camera test but not by the triplet test. If that fraction is negligible and downstream error is unchanged, the honest conclusion is that triplets suffice in practice. We would then reposition the four-camera test as a cheap second stage applied only to triplet-survivors.
Why not just rely on the robust re-weighted solver, which already down-weights bad blocks? Re-weighting inside one non-convex problem judges each block against a global estimate that the outliers have already biased. That is exactly the setting where the rank-6 paper notes sensitivity to the starting point. A local test judges each edge only against its neighbours. The with/without-filter comparison across many random initializations will show whether pre-pruning reduces failure cases or merely duplicates the solver's own weighting.
Why not just threshold pairwise inlier counts or epipolar distances? Pairwise statistics measure how well an estimate fits its own matches. A fundamental matrix fitted to a repeated structure can fit its matches well and still be geometrically wrong. Such an edge passes every pairwise test and can be exposed only by its disagreement with other pairs. The pairwise baseline will quantify how many planted and real outliers fall in this category.
Why not just run bundle adjustment and prune high-residual edges? Bundle adjustment jointly refines all 3D points and cameras by minimizing reprojection error, so it needs an initial reconstruction. Bundle adjustment from standard starting points was worse in the rank-6 paper than bundle adjustment after rank-constrained initialization. Our filter acts before any reconstruction exists, so the two are complementary. We report final error after a common bundle adjustment step for every pipeline.
Proposed Experiments
The first decisive check is synthetic. We generate random camera configurations with controlled correspondence noise and replace a fraction of edges with wrong but plausible fundamental matrices, including ones crafted to satisfy all triplet constraints. We plot precision-recall for outlier-edge detection by the pairwise, triplet, and four-camera tests, and we check whether the calibrated false-alarm rate holds at its nominal level. The second check is on the real 1DSfM subsets, using the downstream protocol above. The third uses the 25 projective datasets from GPSfM with injected corruption. The fourth is a stress test on near-collinear trajectories. No reported result was found on Lacuna for any rank-6 method on driving sequences, so that experiment documents degeneracy behaviour rather than chasing a reported baseline number.
The program succeeds if the four-camera test recovers outliers that triplet tests miss and keeps its calibrated false-alarm rate. It must also lower median translation error relative to the unfiltered robust solver on 1DSfM. It fails informatively if triplets match it, which would itself be a useful empirical answer to the open question about exact versus noisy compatibility.
References
- A New Rank Constraint on Multi-view Fundamental Matrices, and Its Application to Camera Location Recovery
- GPSfM: Global Projective SFM Using Algebraic Constraints on Multi-View Fundamental Matrices.
- Compatibility of Fundamental Matrices for Complete Viewing Graphs
- A Correct-and-Certify Approach to Self-Supervise Object Pose Estimators via Ensemble Self-Training
- Multi-Image Semantic Matching by Mining Consistent Features