Abstract
Camera localization is a fundamental task in robotics and computer vision, traditionally relying on explicit geometric maps. While recent deep learning approaches have explored regressing camera poses directly from images, these models often fail to incorporate fundamental geometric constraints. This paper introduces MapNet, a geometry-aware framework that represents a map through the weights of a deep neural network. By integrating relative pose constraints and self-supervision from unlabeled video, MapNet achieves state-of-the-art performance on both indoor and outdoor benchmarks.
Introduction
Determining a camera's 3D position and orientation is critical for applications ranging from autonomous driving to augmented reality. Traditional localization pipelines typically rely on hand-crafted geometric features, such as 3D point clouds, which can be brittle in dynamic environments and computationally expensive to maintain.
Deep learning alternatives, like PoseNet, treat localization as a regression problem, mapping a single image to a pose. While promising, these "black box" models often ignore the underlying geometry of the scene and treat video frames as independent observations. This leads to temporal inconsistency and high prediction noise. MapNet addresses these issues by bridging the gap between data-driven learning and classical geometric principles.
Methods: The Map as a Neural Network
MapNet redefines the "map" as the weights of a ResNet-34 architecture. Instead of storing billions of points in a database, the environment's spatial structure is implicitly learned and stored within the neurons of the network.
The framework introduces several key technical innovations:
- Geometry-Aware Loss: The training objective includes a term for the relative pose between image pairs, forcing the network to maintain global consistency across the scene.
- Log-Quaternion Parameterization: Rotations are represented using the logarithm of unit quaternions. This 3D representation avoids the over-parameterization of 4D quaternions and the discontinuities associated with Euler angles.
- Self-Supervised Learning (MapNet+): The model can leverage unlabeled video sequences. By using off-the-shelf Visual Odometry (VO) to provide relative movement constraints, the network fine-tunes its weights on new data without requiring ground-truth labels.
- Pose Graph Optimization (MapNet+PGO): During inference, absolute pose predictions from the network are fused with local VO measurements via PGO to produce smooth, accurate trajectories, effectively filtering out "jumpy" predictions.
Key Insights: Smoothing the Latent Space
A significant finding of this work is how geometric constraints affect the network's internal representation. By visualizing the latent space using Multi-Dimensional Scaling (MDS), the authors demonstrated that MapNet's features are more spatially organized than those of previous models.
As shown in the visualization, PoseNet's latent space appears chaotic, whereas MapNet's representation begins to mirror the actual physical trajectory. This "smoothing" of the latent space is a direct result of the geometry-aware loss, which forces the network to respect the spatial relationships between images. This demonstrates that sensors like GPS and IMUs can be used as "teachers" during training to help the network understand the geometry of the world.
Experimental Evaluation
The authors evaluated MapNet on two major benchmarks:
- 7-Scenes (Indoor): A standard dataset of RGB-D sequences in various indoor environments. MapNet+PGO achieved a mean translation error of 0.18m, significantly outperforming PoseNet (0.23m) and traditional DSO-based VO (0.26m).
- Oxford RobotCar (Outdoor): A large-scale dataset covering a 10km urban route. On the challenging 9.5km "FULL" route, MapNet reduced the mean translation error from PoseNet's 125.6m to 41.4m. The addition of PGO further refined this to 29.5m.
These results highlight the effectiveness of combining deep learning with geometric priors, especially in large-scale outdoor settings where traditional methods often struggle with drift and deep learning baselines suffer from high variance.
Conclusion and Future Work
MapNet demonstrates that neural networks can serve as robust, geometry-aware map representations. By utilizing relative constraints as "free" supervision, the model can continuously improve from unlabeled data. While the current model assumes a relatively static world, future research will focus on incorporating semantic information to enhance robustness against dynamic changes, such as construction or seasonal shifts.
Summary updated