Learning Multi-View Camera Relocalization With Graph Neural Networks

Fei Xue, Xin Wu, Shaojun Cai, Junqiu WangCVPR 2020

Introduction

Visual relocalization—the task of estimating the precise 6-DoF pose (position and orientation) of a camera within a known environment—is a fundamental component for autonomous robotics, augmented reality, and navigation systems. While deep learning has revolutionized this field with absolute pose regression (APR) methods like PoseNet, these models often struggle in environments characterized by visual ambiguity, such as repetitive architectural features or textureless surfaces.

Traditional sequence-based approaches have attempted to mitigate these issues using Recurrent Neural Networks (RNNs) or LSTMs to capture temporal context. However, these methods are constrained by a linear processing paradigm and "short-term memory," failing to exploit relationships between non-consecutive frames that may observe the same landmarks from different viewpoints. This paper introduces GRNet (Graph Relocalization Network), a novel framework that models image sequences as a view graph, enabling sophisticated information exchange across both temporal and spatial dimensions.

Methodology: The GRNet Framework

The core innovation of GRNet is its departure from linear sequence modeling in favor of a graph-based representation. By treating a set of images as nodes in a graph, the network can perform message passing between any two relevant views, regardless of their temporal distance.

Overview of the GRNet pipeline, showing the transition from image sequences to a view graph and finally to estimated poses.

3D Tensor Nodes and Spatial Awareness

Unlike standard Graph Neural Networks (GNNs) that represent nodes as flat vectors, GRNet maintains each image node as a 3D feature tensor. This design choice is critical for geometric tasks; flattening features into vectors destroys the spatial structure necessary for accurate pose estimation. By using convolutional message passing, the network preserves and shares spatial cues across the graph.

Multi-level Iterative Processing

GRNet integrates a ResNet34 backbone with GNN blocks in a multi-scale architecture. Feature extraction and graph-based communication occur iteratively across four different resolutions. This allows the model to aggregate both fine-grained visual details and high-level semantic context, which is essential for resolving local ambiguities.

Adaptive Edge Pooling

To maintain computational efficiency, the system employs an "Edge Pooling" mechanism. Starting from a densely connected graph, the network dynamically prunes edges, retaining only the $k$ most relevant neighbors for each node based on feature similarity. This ensures that information exchange is focused on the most informative view pairs.

Experimental Evaluation

The authors evaluated GRNet on three diverse benchmarks representing different scales and challenges:

  1. 7Scenes: A small-scale indoor dataset featuring significant visual ambiguity, such as identical stairs and textureless objects.
  2. Cambridge Landmarks: A large-scale outdoor urban dataset.
  3. Oxford RobotCar: A massive outdoor dataset covering trajectories up to 10km under varying seasonal and weather conditions.

Key Results and Discussion

GRNet consistently outperformed state-of-the-art sequence-based models, including MapNet and LsG, across all datasets. The performance gap was particularly pronounced in large-scale and challenging scenarios.

Visual comparison of estimated trajectories on the Oxford RobotCar dataset. GRNet (Ours) shows significantly higher fidelity to the ground truth compared to PoseNet, MapNet, and LsG.

Performance on Oxford RobotCar

On the "FULL" scenes of the Oxford RobotCar dataset, which cover an area of approximately 1.2 million $m^2$, GRNet achieved a median translation error of 17.77m. This is a substantial improvement over MapNet (29.83m) and the single-image PoseNet (77.85m). The results demonstrate that the graph-based approach scales effectively to vast outdoor environments where linear models lose track.

Robustness to Ambiguity

In the "Pumpkin" scene of the 7Scenes dataset, known for its lack of distinctive textures, GRNet reduced the orientation error to 2.77°. This is nearly half the error reported by previous sequence-based methods (which typically range between 4° and 5°), highlighting the power of non-consecutive frame communication in resolving local visual confusion.

Conclusion and Future Work

By reimagining camera relocalization as a graph inference problem, GRNet overcomes the limitations of linear sequence models. The use of 3D tensor nodes and adaptive edge pooling allows for efficient, spatially-aware information sharing that significantly boosts pose estimation accuracy.

While GRNet currently requires a sequence of images to build its graph, future work could explore hybrid approaches that integrate classical geometric constraints from SLAM to achieve sub-meter precision in large-scale outdoor settings. Additionally, optimizing the graph construction process for extremely long sequences remains an area for further research.

Summary updated

BibTeX
@inproceedings{xue2020learning,
  author = {Fei Xue and Xin Wu and Shaojun Cai and Junqiu Wang},
  title = {{Learning Multi-View Camera Relocalization With Graph Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01139},
}
Figure