Distillation Improves Visual Place Recognition for Low-Quality Queries

Anbang Yang, Yao Wang, John-Ross Rizzo, Chen FengarXiv 2023 · DOI

Introduction

Visual Place Recognition (VPR) is a critical component for autonomous navigation and augmented reality, enabling systems to determine their location based on visual input. However, deploying VPR on resource-constrained devices like AR glasses or small drones often requires offloading computation to the cloud. This introduces a significant bottleneck: network bandwidth. To mitigate this, images are frequently subjected to heavy JPEG compression or resolution reduction. Such degradation typically destroys the fine-grained visual details that standard VPR models rely on to generate unique descriptors, leading to a sharp decline in recognition accuracy. This paper addresses this "quality-accuracy trade-off" by proposing a framework to make VPR models robust against low-quality query images.

Methodology: Teacher-Student Distillation

The authors introduce a model-agnostic Teacher-Student distillation framework. In this setup, a "Teacher" network—a pre-trained VPR model—processes high-quality images ($I^h$). A "Student" network, which shares the same architecture, is trained to process low-quality versions ($I^l$) of the same scenes.

The student is optimized using a multi-faceted loss function:

  1. Inter-channel Correlation Knowledge Distillation (ICKD): This loss encourages the student to replicate the relationships between feature channels in the teacher's latent layers. This preserves structural landmarks (e.g., building silhouettes) even when textures are blurred.
  2. Mean Squared Error (MSE) Loss: This provides direct supervision, forcing the student's global descriptor to match the teacher's high-quality descriptor.
  3. Weakly Supervised Triplet Loss: This uses geographic metadata to ensure the student learns a discriminative embedding space where images from the same location are clustered together.

Experimental Results

The framework was evaluated across diverse benchmarks, including Mapillary SLS, Nordland (seasonal changes), Tokyo 24/7 (day/night), and several indoor datasets. Training was conducted on the GSV-Cities dataset.

Performance Gains

The distilled models demonstrated substantial improvements under 90% JPEG compression. For instance, on the Nordland dataset, the Recall@1 for a MixVPR model increased from 31.05% to 46.05% after distillation. Similarly, NetVLAD saw an 8% improvement on the Tokyo 24/7 dataset.

Qualitative Analysis

Qualitative results highlight how distillation shifts the model's attention. While standard models often focus on "noisy" or transient features like the sky or road textures in low-quality images, distilled students learn to prioritize structurally robust features such as tree lines and building contours.

Qualitative comparison of VPR models on low-quality queries. The top row shows the query image. The "Distilled" row (green) shows correct retrievals, while the "Pretrained" row (red) shows failures.

Conclusion and Future Work

This research demonstrates that knowledge distillation is a powerful tool for maintaining VPR performance in bandwidth-limited scenarios. By leveraging a high-quality teacher, student models can be trained to ignore compression artifacts and focus on invariant environmental features. Future work will explore the specific affinities between different VPR architectures and distillation losses, as well as extending the framework to handle video-specific artifacts like motion blur and temporal compression.

Summary updated

BibTeX
@misc{yang2023distillation,
  author = {Anbang Yang and Yao Wang and John-Ross Rizzo and Chen Feng},
  title = {{Distillation Improves Visual Place Recognition for Low-Quality Queries}},
  year = {2023},
  eprint = {2310.06906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.06906},
}
Figure