RAGO: Recurrent Graph Optimizer For Multiple Rotation Averaging

Heng Li, Zhaopeng Cui, Shuaicheng Liu, Ping Tan · DOI

TL;DR

RAGO (Recurrent Graph Optimizer) is a deep learning framework that solves the Multiple Rotation Averaging (MRA) problem by decoupling it into simpler, gauge-invariant local optimization tasks. By combining Message Passing Neural Networks (MPNNs) with Gated Recurrent Units (GRUs), it iteratively refines both camera orientations and relative measurements, achieving state-of-the-art accuracy and robustness even when starting from random initializations.

What Problem Does This Paper Address?

In 3D computer vision tasks like Structure from Motion (SfM) or SLAM, we often need to determine the absolute global orientations of multiple cameras based on noisy relative rotations between them. This is Multiple Rotation Averaging (MRA).

MRA is notoriously difficult for three reasons:

  1. Non-linearity: Rotations live on the $SO(3)$ manifold, making standard Euclidean optimization techniques inapplicable.
  2. Noise and Outliers: Relative rotations derived from image correspondences are often corrupted by significant noise or complete outliers.
  3. Gauge Freedom: The solution is only unique up to a global rotation. If you rotate the entire camera rig, the relative rotations stay the same. This "one-to-many" mapping makes it very hard for standard deep learning models to learn a direct regression.

Traditional methods often get stuck in local minima, while previous deep learning approaches are highly sensitive to initialization because they struggle with gauge ambiguity.

Methods

RAGO introduces a "learning-to-optimize" approach that mimics iterative solvers but uses neural networks to handle the complex parts.

  • Decoupling MRA to SRA: Instead of solving for all rotations at once, RAGO breaks the problem down into Single Rotation Averaging (SRA). For each camera, it looks at its neighbors and tries to find a rotation that best fits the relative measurements. This local formulation is naturally gauge-invariant.
  • Recurrent Graph Optimization: The core architecture uses an MPNN to extract graph features and a GRU to maintain a "hidden state" across iterations. This allows the model to use historical information to guide the current optimization step, much like momentum in classical optimization.
  • Edge Rectification: Rather than just reweighting edges to ignore outliers, RAGO learns to rectify the relative rotations themselves. It introduces a relaxing parameter for each edge that is updated iteratively to become more consistent with the global orientations.
  • Alternative Optimization: The authors found that updating edges and nodes simultaneously can be unstable. Instead, they use an "alternative optimization" strategy: refining relative orientations for several steps, then optimizing global camera orientations, and repeating this cycle (see Figure 3).
Figure 2. The pipeline of our Rotation Averaging Graph Optimizer (RAGO). (a) We assign a random rotation to each camera. In (b), Two Message Passing Neural Network, Θfeat and Θstate, extract the feature and initialize the hidden state. (c) During iterative optimization, we first build a cost graph based on the SRA objective function. Then, we employ a GRU to update the camera orientations to minimize the cost graph. (d) The camera orientations eventually converge to an optimized solution. Please refer to the main text for more details.

Datasets

The authors evaluated RAGO on both synthetic and large-scale real-world benchmarks:

  • Synthetic Dataset: 1,000 view-graphs with varying camera counts (250–1000), edge densities, and noise levels (up to 30% outliers).
  • 1DSfM: A standard benchmark containing 14 outdoor scenes (e.g., Alamo, Roman Forum) with ground-truth poses.
  • YFCC100: A massive dataset of internet images across 72 city-scale scenes, providing a rigorous test for real-world generalization.

Key Insights and Ideas

  • Gauge Invariance via Locality: By focusing on SRA (local consistency) rather than global regression, the model avoids the "gauge freedom" trap that plagues other deep learning methods. It doesn't need to pick a "root" node to fix the coordinate system.
  • Temporal Memory is Crucial: The ablation study (Table 1) shows that replacing the GRU with a standard MLP causes the optimization to diverge. The GRU's ability to track the "trajectory" of the cost graph is essential for convergence.
  • Receptive Field Matters: Using multiple "Edge Convolution" layers allows each node to sense information from distant parts of the graph (3-order neighbors), leading to better global consistency than traditional methods that only look at direct neighbors.

Key Results

RAGO demonstrates significant improvements in both speed and accuracy:

  • Fast Convergence: As shown in Figure 1, RAGO outperforms all baseline methods (both traditional and deep) after just two iterations.
  • Superior Accuracy: On synthetic data, RAGO achieved a mean angular error of 0.24°, compared to 1.35° for the previous state-of-the-art deep method, NeuRoRA.
  • Real-World Performance: In the 1DSfM and YFCC100 datasets, RAGO consistently produced the lowest median angular errors across most scenes, proving its robustness to real-world noise.
  • Efficiency: The model is tiny (only ~0.4M parameters) and extremely fast. One iteration on a graph with 600 nodes takes only 0.007 seconds on an NVIDIA V100 GPU.
RAGO converges much faster and to a lower error than existing MRA methods.

Limitations and Future Work

  • Cross-Domain Generalization: Like many supervised learning models, RAGO may struggle if trained on one type of scene (e.g., outdoor) and tested on another (e.g., indoor) due to different graph topologies and noise distributions.
  • Supervision Requirements: The current version requires ground-truth rotations for training, which can be hard to obtain for new datasets. The authors suggest exploring unsupervised training as a future direction.
  • Initialization: While RAGO works well with random initialization on synthetic data, the authors noted that for complex real-world datasets, a basic initialization (like a spanning tree) is still beneficial to speed up convergence.

Summary updated

BibTeX
@inproceedings{li2022rago,
  author = {Heng Li and Zhaopeng Cui and Shuaicheng Liu and Ping Tan},
  title = {{RAGO: Recurrent Graph Optimizer For Multiple Rotation Averaging}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure