Multi-output Learning for Camera Relocalization

Abner Guzmán-Rivera, Pushmeet Kohli, Ben Glocker, Jamie Shotton, Toby Sharp, Andrew W. Fitzgibbon, Shahram Izadi

Abstract

Camera relocalization—estimating the 6D pose of a camera from a single RGB-D image—is a fundamental task in computer vision with applications in robotics and augmented reality. Traditional direct regression methods often struggle with visual ambiguities where multiple distinct locations appear identical. We propose a hybrid framework that trains a "portfolio" of predictors to generate diverse pose hypotheses. By combining a discriminative multi-output predictor with a generative selector based on 3D surface alignment, our approach effectively resolves scene ambiguities. Experimental results on the 7 Scenes benchmark demonstrate a significant performance increase over single-output state-of-the-art methods, particularly in challenging environments like staircases.

Introduction

The goal of camera relocalization is to determine the exact position and orientation of a camera within a known 3D environment given a single RGB-D snapshot. This problem is typically approached via inverse optimization or direct regression. Inverse optimization is accurate but prone to local optima, while direct regression (e.g., using Random Forests) maps image pixels to 3D coordinates. However, direct regression suffers from the "many-to-one mapping" problem: in scenes with repetitive structures like identical hallways or stairs, a single-output model may produce an averaged, incorrect pose or fail entirely.

Methodology

Our proposed architecture consists of two main stages: a multi-output discriminative predictor and a generative selector.

Multi-Output Predictor

Instead of a single model, we train a set of $M$ predictors. To ensure these predictors are complementary rather than redundant, we employ an iterative training process inspired by boosting. If the current ensemble fails to localize a specific training sample, that sample's weight is increased for the next predictor's training phase. This "marginally relevant learning" forces individual predictors to specialize in different parts of the scene or different types of visual features.

System architecture showing the pipeline from input frame to multi-output prediction and final selection.

Generative Selector and 3DDT

The $M$ predictors generate a set of camera pose hypotheses. To identify the best candidate, we use a generative approach that compares the observed depth data against the known 3D model. We introduce the 3D Distance Transform (3DDT) as a robust similarity measure. Unlike pixel-wise L1 comparisons, 3DDT measures the distance between observed 3D points and the nearest surfaces in the model, making it resilient to model incompleteness and sensor noise.

Experimental Evaluation

We evaluated our framework on the 7 Scenes dataset, a standard benchmark featuring indoor environments with significant challenges, including motion blur, reflective surfaces, and repetitive geometry.

Handling Ambiguity

The "Stairs" scene is particularly difficult due to the visual similarity of different steps. Our multi-output approach excels here by generating hypotheses for various possible steps and then using the global 3D context to select the correct one.

Visualization of multiple pose hypotheses (left/middle) and the final selected pose (right) in the ambiguous "Stairs" scene.

Results and Discussion

Our method achieved a ~5% average accuracy improvement over the previous state-of-the-art (Shotton et al., 2013). In the most ambiguous scenes, such as "Stairs," the improvement reached approximately 20%.

A key insight is that diversity is more valuable than redundancy. By ensuring hypotheses are spread across different modes of the probability distribution, we avoid the "averaging" trap of single-output models. Furthermore, the hybrid nature of the system leverages the speed of discriminative models for search space reduction and the precision of generative models for final verification.

Conclusion

We have presented a multi-output learning framework for camera relocalization that addresses the limitations of single-output regression in ambiguous environments. By training a diverse portfolio of predictors and employing a robust 3D-based selection mechanism, we achieve superior accuracy on standard benchmarks. Future work will focus on scaling this approach to larger, more complex environments and integrating pose refinement directly into the training loop.

Summary updated

BibTeX
@inproceedings{guzmanrivera2014multi,
  author = {Abner Guzmán-Rivera and Pushmeet Kohli and Ben Glocker and Jamie Shotton and Toby Sharp and Andrew W. Fitzgibbon and Shahram Izadi},
  title = {{Multi-output Learning for Camera Relocalization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.146},
}
Figure