AirLoop: Lifelong Loop Closure Detection

Dasong Gao, Chen Wang, Sebastian A. SchererICRA 2021 · DOI

TL;DR

This paper introduces AirLoop, a novel method for lifelong loop closure detection (LCD) in SLAM systems. AirLoop addresses the critical challenge of catastrophic forgetting by enabling CNN-based LCD models to continuously learn from new environments without degrading performance on previously learned data, using techniques from lifelong learning.

What Problem Does This Paper Address?

Simultaneous Localization and Mapping (SLAM) systems rely on loop closure detection (LCD) to correct accumulated errors by recognizing previously visited locations. While Convolutional Neural Networks (CNNs) have significantly improved LCD accuracy and robustness, they are data-hungry and typically trained on large, diverse datasets. The real world, however, is dynamic; robots encounter new environments after deployment. Simply retraining a CNN on new data leads to "catastrophic forgetting," where the model loses its ability to recognize old places. Storing all past data for retraining is computationally and storage-prohibitive for resource-constrained robots. This paper tackles the problem of incrementally learning new environments for LCD without forgetting past knowledge, a scenario known as lifelong learning.

Methods

AirLoop combines several techniques to achieve lifelong LCD:

  • Buffered Triplet Sampling: To address the sequential nature of data arrival in lifelong learning, AirLoop uses a similarity-aware memory buffer. This buffer stores a limited number of recently observed frames and their pairwise relationships, allowing for efficient sampling of triplets (anchor, positive, negative) for contrastive learning.
  • Relational Memory Aware Synapses (RMAS): This is a novel adaptation of the Memory Aware Synapses (MAS) technique for lifelong learning. Instead of regularizing changes to individual parameters based on their importance for classification, RMAS penalizes changes to parameters that affect the pairwise similarity of descriptors. This is crucial for LCD, where relative descriptor relationships are more important than absolute values.
  • Relational Knowledge Distillation (RKD): This technique helps preserve knowledge from previous environments by forcing the current model to mimic the descriptor relationships learned by older models. It's a form of "distilling" knowledge without needing to store old data.
  • Combined Loss: AirLoop uses a combined loss function that includes the triplet loss for learning new environments, the RMAS loss for parameter regularization, and the RKD loss for knowledge preservation.

Datasets

The authors evaluate AirLoop on three datasets:

  • TartanAir: A large-scale synthetic dataset with diverse environments (urban, rural, natural, etc.) and rich per-frame information.
  • Nordland: A real-world dataset featuring four seasonal variations (spring, summer, fall, winter).
  • RobotCar: A real-world dataset with variations in lighting conditions (sun, overcast, night).

The paper also defines loop closure based on "visual overlap" for TartanAir, using surface intersection-over-union (sIoU) to determine if two frames capture the same scene, which is more robust than simple Euclidean or timestamp distances.

Key Insights and Ideas

  • Relational Regularization is Key for LCD: The paper highlights that for LCD, preserving the relationships between descriptors (i.e., similar places have similar descriptors, dissimilar places have dissimilar descriptors) is more critical than preserving the exact descriptor values. This insight drives the development of RMAS and RKD.
  • Memory Buffer for Efficiency: A small, fixed-size memory buffer is sufficient to maintain good performance, demonstrating that lifelong learning for LCD doesn't require storing vast amounts of historical data.
  • Lifelong Learning is Feasible for Deep LCD: AirLoop shows that it's possible to train deep CNNs for LCD incrementally without suffering significant performance degradation, a problem previously considered a major hurdle.

Key Results

  • AirLoop consistently outperforms baseline methods like "Finetune," EWC, and SI in terms of average performance (AP) and backward transfer (BWT), indicating its effectiveness in preventing catastrophic forgetting and retaining learned knowledge.
  • The method achieves positive BWT on TartanAir and Nordland, meaning it not only retains but also improves performance on previously learned environments.
  • AirLoop demonstrates strong generalization capabilities, achieving competitive or superior forward transfer (FWT) compared to other methods.
  • The combined loss of RMAS and RKD yields better results than using either regularization technique alone.
  • The computational overhead of the memory buffer is minimal, making the approach practical for real-time applications.

Limitations and Future Work

  • Memory Size Sensitivity: While a manageable memory size (e.g., 1000 frames) is effective, the paper notes that performance can be sensitive to this size, especially for more complex datasets.
  • Future Work: The authors suggest exploring more complex backbone networks and incorporating memory replay methods for further improvements. They also mention that future work could consider more complicated backbone networks or incorporate memory replay methods.

Summary updated

BibTeX
@inproceedings{gao2021airloop,
  author = {Dasong Gao and Chen Wang and Sebastian A. Scherer},
  title = {{AirLoop: Lifelong Loop Closure Detection}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra46639.2022.9811658},
}
Figure