Fast and Incremental Loop Closure Detection with Deep Features and Proximity Graphs

Shan An, Haogang Zhu, Dong Wei, Konstantinos A. Tsintotas

TL;DR

FILD++ is an ultra-fast, incremental loop closure detection pipeline for visual SLAM that eliminates the need for pre-trained environment vocabularies. By passing an image twice through a single convolutional neural network (CNN) at different scales, it extracts both global and local deep features, indexes them using a proximity graph for rapid retrieval, and performs efficient geometric verification. The system achieves state-of-the-art recall rates with an average execution time of just 22.05 ms on large-scale datasets.

What Problem Does This Paper Address?

As autonomous robots explore unknown environments, they build maps and track their own positions using Simultaneous Localization and Mapping (SLAM). Over time, small sensor errors accumulate, causing the robot’s estimated trajectory to drift. To fix this, robots rely on loop closure detection (or visual place recognition)—the ability to recognize a previously visited location and snap the map back into alignment.

Traditional approaches typically rely on Bag-of-Words (BoW) models built from hand-crafted features (like SIFT or ORB). However, these methods require a pre-trained visual vocabulary, making them brittle when the robot enters an environment drastically different from its training data. Newer deep learning methods offer better generalization but often suffer from high computational overhead, either because they use separate networks for global and local feature extraction or because matching dense local features is too slow for real-time robotics.

FILD++ addresses this gap by providing an environment-agnostic, real-time pipeline that extracts both global and local deep features from a single network and indexes them incrementally.

Methods

The FILD++ pipeline is divided into three main modules: feature extraction, global filtering, and local re-ranking.

The modified DELF architecture for extracting global and local features via a double-pass process.

1. Dual-Scale Feature Extraction

Instead of using separate frameworks for global and local features, FILD++ modifies the DEep Local Feature (DELF) architecture using a ResNet50 backbone. The system processes each incoming image frame twice through the same network at two distinct scales:

  • Scale 0.5 (Global): The feature map is passed through a Global Average Pooling (GAP) layer to generate a compact global descriptor vector.
  • Scale 1.4 (Local): An attention module scores the relevance of dense feature pixels, selecting the most salient keypoints. These local descriptors are then reduced via PCA to a highly compact 40-dimensional space.

2. Incremental Proximity Graph Indexing

To avoid the need for an offline vocabulary, global features are fed incrementally into a Hierarchical Navigable Small World (HNSW) graph database. This graph structure allows the system to search for the top $n$ nearest neighbor places with logarithmic time complexity. A First-In-First-Out (FIFO) queue acts as a temporal buffer, preventing the system from matching immediately preceding frames (the "non-search area").

3. Exhaustive Local Re-ranking

Once the top candidate matches are retrieved via global features, FILD++ performs an image-to-image spatial verification. Because the deep local features are compressed to just 40 dimensions, the authors can bypass complex approximate matching or hashing schemes. Instead, they employ a fast, exhaustive brute-force matcher with Lowe's ratio test, followed by a standard RANSAC-based fundamental matrix estimation and a temporal consistency check to confirm the loop closure.

Overview of the complete FILD++ pipeline, spanning feature extraction, HNSW-based global filtering, and local re-ranking.

Datasets

The authors evaluated FILD++ across eleven public benchmarks representing diverse challenges like dynamic occlusions, changing illumination, and structural repetition:

  • KITTI Odometry Suite (Sequences 00, 02, 05, and 06)
  • Oxford New College and City Center
  • Malaga 2009 (Parking 6L)
  • St. Lucia (Four separate sequences captured at different times of day)

Note on Ground Truth: The authors discovered that standard GPS-derived ground truth labels in these datasets contained significant errors due to threshold mismatches and viewpoint changes. To ensure rigorous evaluation, they manually corrected and re-labeled the ground truth data using human crowdsourcing and expert verification, making these corrected benchmarks publicly available.

Key Insights and Ideas

  • Scale-Driven Multi-Tasking: FILD++ proves that a single CNN backbone can pull double duty as both a global place recognizer and a local keypoint extractor simply by varying the input image scale. This drastically simplifies the deployment pipeline.
  • The Power of 40 Dimensions: Compressing deep local features down to 40 dimensions strikes a perfect sweet spot. It retains enough discriminative spatial information for RANSAC verification while making brute-force matching faster than approximate methods like FLANN.
  • True Online Autonomy: By pairing deep features with an HNSW graph, the system builds its database entirely on the fly. It requires zero prior knowledge of the environment, making it truly plug-and-play for robotic exploration.

Key Results

  • Accuracy: FILD++ achieved the highest recall score at 100% precision on 8 out of the 11 evaluated datasets, outperforming prominent baselines like DLoopDetector, iBoW-LCD, and its own predecessor, FILD.
  • Speed: On the massive New College dataset (52,480 images), FILD++ achieved an average execution time of 22.05 ms per query, comfortably clearing the bar for real-time operation (typically 30-50 ms in robotics).
  • Embedded Efficiency: When deployed on resource-constrained hardware (an NVIDIA Jetson TX2), the entire pipeline maintained steady performance, processing frames in 200 to 388 ms depending on image resolution.

Limitations and Future Work

While FILD++ demonstrates exceptional speed and accuracy, the authors note a few areas for improvement:

  1. Purely Topological Filtering: The global filtering stage relies strictly on retrieving the top-$n$ nearest neighbors without utilizing the actual similarity scores. Implementing an adaptive similarity threshold could help eliminate false positives earlier in the pipeline.
  2. Backbone Scaling: The current implementation relies on a standard ResNet50 backbone. The authors suggest that swapping this out for more modern, powerful architectures like ResNeXt or ResNeSt could yield even higher classification accuracy and recall rates.

The team plans to integrate FILD++ directly into a full, end-to-end visual SLAM framework next.

Summary updated

BibTeX
@article{an2022fast,
  author = {Shan An and Haogang Zhu and Dong Wei and Konstantinos A. Tsintotas},
  title = {{Fast and Incremental Loop Closure Detection with Deep Features and Proximity Graphs}},
  journal = {J. Field Robotics},
  year = {2022},
  doi = {10.1002/rob.22060},
}
Figure