Viewing Graph Solvability via Cycle Consistency

Federica Arrigoni, Andrea Fusiello, Elisa Ricci, Tomás Pajdla

Abstract

In Structure-from-Motion (SfM), determining whether a set of image constraints (a viewing graph) uniquely determines camera positions is a fundamental challenge. This paper introduces an efficient method for solvability testing by leveraging cycle consistency on the line graph of the viewing configuration. This approach reduces computational complexity, allowing solvability analysis to scale from 9 to 90 nodes. Furthermore, the authors demonstrate that finite solvability is insufficient for uniqueness, identifying graphs with multiple valid solutions.

Introduction: The Solvability Problem

Structure-from-Motion (SfM) pipelines represent image collections as viewing graphs, where vertices correspond to cameras and edges represent geometric constraints (fundamental matrices) between image pairs. A critical question is whether a given graph is solvable—that is, whether these constraints uniquely determine camera positions up to a single coordinate transformation.

An example of a minimal viewing graph where nodes represent cameras and edges represent geometric constraints.

Historically, determining solvability was computationally prohibitive, requiring the solution of massive systems of polynomial equations. Theoretical conditions often left many cases "undecided," leading to potential ambiguities in 3D reconstructions.

Methodology: Line Graphs and Cycle Consistency

The authors propose a formulation that drastically reduces the number of unknowns in solvability equations through two key shifts:

  1. Line Graph Representation: Instead of the original viewing graph, the method operates on its line graph (where original edges become vertices). This focuses the analysis directly on transformations between camera pairs.
  2. Cycle Consistency: In a solvable graph, composing relative transformations along any closed loop must result in the identity transformation. By enforcing this consistency on a minimal cycle basis, the authors derive a simplified system of equations.

The system is solved using Gröbner basis methods to count real solutions. A graph is deemed solvable if and only if exactly one solution exists.

Experimental Evaluation

The algorithm was evaluated on both synthetic and real-world data:

  • Synthetic Minimal Graphs: The authors classified all previously "undecided" minimal graphs up to 9 nodes.
  • Real-World Datasets: Sub-graphs were sampled from community datasets such as Alcatraz Courtyard, Notre Dame, and Piazza del Popolo.
A sequence of minimal graphs used to classify solvability cases up to 9 nodes.

Key Insights and Results

The "Finite Solvability" Trap

A significant theoretical finding is that finite solvability does not guarantee unique solvability. The authors identified counter-examples—graphs with exactly two valid camera configurations—proving that having a finite number of solutions is insufficient for unambiguous reconstruction.

Scaling and Performance

By reducing variable counts, the method scales significantly better than previous approaches. While prior methods were limited to 9 nodes, this algorithm handles 40 nodes in approximately 3 minutes and 70 nodes in about an hour.

Real-World Impact

Analysis of the Pumpkin dataset revealed that unsolvable sub-graphs appear in real-world data (9 out of 200 sampled sub-graphs were unsolvable). This confirms that solvability is a practical concern for SfM reliability.

Limitations and Future Work

Despite improvements, Gröbner basis computation remains "doubly exponential," limiting the current approach to roughly 90 nodes. Future work may involve transitioning to numerical algebraic geometry to handle larger datasets and extending the analysis to the calibrated case involving essential matrices.

Summary updated

BibTeX
@inproceedings{arrigoni2021viewing,
  author = {Federica Arrigoni and Andrea Fusiello and Elisa Ricci and Tomás Pajdla},
  title = {{Viewing Graph Solvability via Cycle Consistency}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00549},
}
Figure