NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cascaded Parallel Filtering for Memory-Efficient Image-Based Localization

Wentao Cheng, Weisi Lin, Kan Chen, Xinfeng Zhang

Introduction

Image-based localization (IBL) is a fundamental task in robotics and autonomous navigation, involving the estimation of a camera's 6-degree-of-freedom (6DOF) pose by matching 2D features from a query image to a 3D Structure-from-Motion (SfM) model. However, scaling IBL to city-wide environments presents a significant challenge: the trade-off between memory consumption and matching accuracy. Large-scale models require massive amounts of RAM to store high-dimensional descriptors. While compact binary descriptors can reduce memory usage, they often introduce match ambiguity, making it difficult to distinguish correct matches from noise.

Cascaded Parallel Filtering Framework

To address these challenges, this research introduces a Cascaded Parallel Filtering framework. This approach decomposes the localization problem into three sequential stages, each employing a "parallel" logic that maintains both a strict path for high-confidence "seed" matches and a relaxed path to preserve a broader pool of potential candidates.

The proposed cascaded parallel filtering framework, illustrating the multi-stage process from feature-wise to geometry-wise filtering.

1. Feature-wise Filtering

The process begins with Hamming Embedding, which compresses descriptors into compact binary strings. To mitigate ambiguity, a Bilateral Hamming ratio test is applied. Unlike conventional tests that only evaluate distinctiveness from the model's perspective, this bilateral approach ensures matches are distinctive from both the query image and the 3D model, effectively pruning outliers at an early stage.

2. Visibility-wise Filtering

The SfM model is treated as a bipartite graph of points and images. High-confidence matches from the first stage "vote" for relevant database images. Using co-visibility logic, the system identifies additional matches that are spatially consistent with these high-confidence seeds in the 3D world, further refining the match pool.

3. Geometry-wise Filtering

The final stage focuses on geometric consistency through two key techniques:

  • Quality-aware Spatial Reconfiguration (QSR): This ensures that matches are distributed across the image rather than being clustered in high-texture regions. A balanced spatial distribution is critical for avoiding degenerate geometric solutions.
  • Principal Focal Length (PFL): For cameras with unknown focal lengths, the system executes multiple RANSAC loops. It selects the pose corresponding to the median focal length among the top hypotheses, providing greater robustness than standard inlier-counting methods.

Key Insights

  • Bilateral Distinctiveness: Checking for mutual best-matches between 2D and 3D features significantly improves the signal-to-noise ratio in the initial matching phase.
  • Spatial Distribution over Density: The research highlights that the spatial arrangement of matches is often more important for accurate pose estimation than the sheer number of matches.
  • Focal Length as a Geometric Filter: Inaccurate camera poses often result in unrealistic focal length estimates. Using the median focal length acts as a powerful filter for geometrically inconsistent hypotheses.

Experimental Results

The framework was evaluated on several benchmark datasets, including Dubrovnik, RobotCar Seasons, Aachen Day-Night, and the large-scale SF-0 (San Francisco).

Comparison of match sets and the resulting localization error distribution, demonstrating the effectiveness of the filtering stages.
  • Memory Efficiency: On the Dubrovnik dataset, the method required only 0.14 GB of memory, a 5x reduction compared to the 0.75 GB required by the Active Search (AS) method.
  • Localization Accuracy: Despite the use of compressed features, the system achieved state-of-the-art performance. On the Aachen Day-Night dataset, it reached 76.7% high-precision localization for daytime queries.
  • Robustness: The method demonstrated exceptional performance in challenging "All Night" scenarios within the RobotCar dataset, even without relying on gravity-direction priors.

Conclusion and Future Directions

The Cascaded Parallel Filtering framework provides a highly efficient solution for large-scale IBL on memory-constrained hardware. While it performs competitively on massive datasets like SF-0, future improvements could involve integrating GPS data for better coarse-level localization. Additionally, the authors suggest that replacing SIFT features with CNN-based descriptors or incorporating this logic into hierarchical localization schemes could further enhance performance in extreme environments.

Summary updated

BibTeX
@inproceedings{cheng2019cascaded,
  author = {Wentao Cheng and Weisi Lin and Kan Chen and Xinfeng Zhang},
  title = {{Cascaded Parallel Filtering for Memory-Efficient Image-Based Localization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00112},
}
Figure