We demonstrate Graph Representation Learning to address challenges that arise in visual odometry. In this context, the change in pose of a camera is typically estimated using matched correspondences in frames that satisfy the epipolar constraint; finding this unique set under different situations is not a simple task. Employing an existing detector-free model to find matching correspondences in a pair of images, a correspondence graph is constructed whose topology is guided by the epipolar constraint. Starting with a graph where every node is connected to $k$ closest neighbours (by distance), this graph is pruned based on an initial estimate of the Essential Matrix; this feature is in stark contrast with traditional graph formulations where graphs from local spatial neighborhoods defined by heuristics are constructed. The graph learning module is then trained to generate an aggregated representative vector that summarises the geometric context of the graph. This vector forms an input to a Multi-layer Perceptron (MLP), whose outputs are standard rotation and translation elements that define the change in pose. The end-to-end model is trained by minimising a weighted loss function that combines pose regression, scale consistency, heading consistency, and spectral properties of pose parameters. Experimental graph analyses show that epipolar-guided edge pruning reduces graph connectivity by over 90\% by removing edges between geometrically inconsistent inlier–outlier pairs, while retaining all correspondence nodes. Further spectral analyses characterize the effects of graph sparsification and injected outliers on learned graph representations. To investigate the effect of graph learning on this representation, four variations of Graph Neural Networks (GNNs): GCN, GAT, GIN, and Graph-based Cross Attention are evaluated under a unified learning framework. The application to monocular visual odometry is validated using outdoor benchmark datasets such as KiTTi, ETH3D, King's College, and Tartan Air. Experimental results demonstrate consistent improvements in trajectory and relative pose estimation across diverse metrics when compared with classical consensus-based estimators and learning-guided correspondence methods.
At the core of both SLAM and SfM lies the estimation of the camera’s 6 Degrees of Freedom (6-DoF) pose, which encodes its position and orientation relative to the world coordinate frame. Despite the advantages, vision-based localization remains challenging. Appearance variations, illumination changes, occlusions, texture-poor regions, dynamic objects, and camera motion instability all contribute to the difficulty of establishing reliable correspondences between images. Furthermore, practical systems must operate under computational and latency constraints, limiting the complexity of permissible algorithms.
The process of Epipolar Graph Construction is as follows:
For a sequence of $M$ images, $M-1$ image pairs generate a tensor of size $(M-1, N, 6)$.
Final Graph Representation: The resulting graph consists of a reduced set of nodes corresponding to epipolar-consistent matched keypoints $\mathbf{F}' \in \mathbb{R}^{N' \times 6}$ and a sparsified edge set. This graph is subsequently passed to graph-based learning architectures for feature aggregation and selection of regions that satisfy epipolar geometry, enabling robust relative pose regression.
When the matched and normalized keypoints, represented by patch region colors as shown in the plots, are passed through the GNN regression module, the layers of the GNN architecture cluster the keypoints before pooling them into a higher-dimensional feature vector that influences pose estimation.
Comparative analysis of pose regression modules with the developed GNN module:
If you find this work useful for your research, please consider citing it once published: