Collaborative Visual Place Recognition through Federated Learning

Mattia Dutto, Gabriele Moreno Berton, Debora Caldarola, Eros Fanì, Gabriele Trivigno, Carlo Masone

Introduction

Visual Place Recognition (VPR) is a fundamental task in computer vision, enabling autonomous systems to determine their location by matching query images against a geo-tagged database. Traditionally, VPR models are trained using a centralized approach, requiring the collection of massive datasets on a single server. However, this paradigm faces significant challenges regarding data privacy, the high cost of data transmission, and the inherent difficulty of performing contrastive learning in a decentralized environment.

FedVPR is the first framework to adapt VPR to a Federated Learning (FL) paradigm. It allows distributed devices—such as autonomous vehicles or smartphones—to collaboratively train a global localization model using local image collections without sharing raw data, thus preserving privacy and reducing infrastructure costs.

The FedVPR Framework

The core of FedVPR lies in its ability to handle the complexities of contrastive learning within the constraints of FL. Unlike standard classification tasks, VPR requires "mining" hard negatives—images that are visually similar but geographically distant.

Overview of the FedVPR framework showing local training on distributed clients and global model aggregation at a central server.

Key Methodological Components

  • Local Mining: Instead of a global search, each client performs hard-negative mining within its own local dataset. The researchers demonstrated that local data often contains sufficient visual variety to provide informative training signals.
  • Optimized Architecture: To suit resource-constrained edge devices, the framework utilizes a lightweight truncated ResNet18 backbone with Generalized Mean (GeM) pooling.
  • Aggregation Strategy: The system employs the FedAvg algorithm to aggregate local model weights into a robust global model.
  • Data Augmentation: Aggressive augmentation, including color jittering and random resizing, is used to prevent clients from overfitting to specific local conditions or hardware.

Experimental Evaluation

The study utilized the Mapillary Street-Level Sequences (MSLS) dataset, simulating a federated environment through three distinct data splits:

  1. Proximity Split: Groups images by geographical radius (1km to 4km), mimicking real-world data collection by local devices.
  2. Clustering Split: Groups images by visual similarity using K-means.
  3. Random Split: A standard uniform distribution used as a baseline.

Key Results and Insights

The experiments revealed that FedVPR can achieve performance parity with centralized training. Notably, the Proximity split with a 4000m radius reached a Recall@1 (R@1) of 66.1%, matching the 66.0% achieved by the centralized baseline.

Performance comparison of different federated data splits against a centralized baseline.

Critical Observations

  • The Importance of Local Structure: Surprisingly, the "Random" split performed poorly (40.2% R@1). In VPR, shuffling global data into individual clients makes negatives too easy to distinguish, preventing the model from learning fine-grained features. Local geographical structure is a vital feature for effective training.
  • Resolution Trade-offs: A resolution of 288x384 was identified as the optimal balance between localization accuracy and the computational constraints of edge devices.
  • Augmentation Impact: Synthetic variety through augmentation improved R@1 from 61.0% to 65.7%, compensating for the limited size of local datasets.

Limitations and Future Outlook

While FedVPR shows great promise, challenges remain. Hierarchical Federated Learning (H-FL), intended to create regional "specialist" models, actually led to a performance drop due to local overfitting. Additionally, future research is needed to address system heterogeneity, such as varying hardware capabilities and network stability among clients.

FedVPR establishes a viable path for privacy-preserving, large-scale image retrieval tasks, paving the way for more secure and efficient collaborative localization systems.

Summary updated

BibTeX
@inproceedings{dutto2024collaborative,
  author = {Mattia Dutto and Gabriele Moreno Berton and Debora Caldarola and Eros Fanì and Gabriele Trivigno and Carlo Masone},
  title = {{Collaborative Visual Place Recognition through Federated Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  url = {https://openreview.net/forum?id=PedHn6HB1J},
}
Figure