Abstract
Camera localization—the task of estimating a camera's 6D pose (3D position and 3D orientation) within a known environment—is a cornerstone of robotics and augmented reality. Traditional methods often rely on complex 3D models or deep neural networks that struggle to generalize to novel viewpoints. This paper introduces a "learning less" philosophy, demonstrating that a simplified pipeline focusing on 3D scene coordinate regression, paired with a robust, differentiable RANSAC-based optimization, achieves state-of-the-art accuracy. Notably, the system can recover environment geometry from scratch without requiring a pre-existing 3D model.
Introduction
The challenge of 6D camera localization lies in generalization. Since it is impossible to capture every possible viewpoint of a scene, a localization system must infer the pose from novel perspectives. Previous deep learning approaches typically fell into two categories: direct pose regression (e.g., PoseNet), which is easy to train but lacks precision, and scene coordinate regression (DSAC), which maps image pixels to 3D world points. While DSAC is more accurate, it often relies on a "Scoring CNN" that tends to memorize global image layouts rather than learning the underlying geometry, leading to failures on unseen views.
Methodology
The authors propose a streamlined, fully differentiable pipeline centered on a Fully Convolutional Network (FCN). This network performs a single task: regressing "scene coordinates" by predicting the 3D world location for every pixel in a 2D image.
To avoid the overfitting issues of previous methods, the authors replaced the learnable scoring component with "Soft Inlier Counting"—a differentiable version of the classic RANSAC algorithm. By using a fixed geometric consensus function instead of a black-box neural network, the model is forced to learn the actual 3D structure of the scene. This "lesser" learning approach is more robust because it relies on geometric consensus rather than pattern matching.
Furthermore, the authors developed a three-step training schema to enable localization in environments where no 3D model is available. The process begins with a "constant depth" heuristic, followed by optimization for reprojection error, and concludes with end-to-end training. This allows the network to "discover" the 3D geometry of a scene purely from 2D images.
Results and Discussion
The system was evaluated on the 7Scenes, 12Scenes, and Cambridge Landmarks datasets. It consistently outperformed existing state-of-the-art techniques. On the indoor 7Scenes dataset, the method achieved median errors as low as 2cm and 0.5°. In outdoor environments, such as the Cambridge Landmarks dataset, it improved accuracy by an order of magnitude compared to PoseNet variants and significantly outperformed the original DSAC.
The success of this approach highlights a key insight: learning too much can be detrimental. By restricting the learning process to local scene coordinates and relying on robust geometric principles for pose estimation, the system achieves superior generalization and accuracy. While the current model faces challenges at city-scale, its ability to perform high-precision localization at the building scale without a 3D model marks a significant advancement in the field.
Summary updated