Papers › Generalized Contrastive Optimization of Siamese Networks for Place Recognition

Generalized Contrastive Optimization of Siamese Networks for Place Recognition

11 Mar 2021arXiv:2103.06638archive 2025-07-28

María Leyva-Vallina, Nicola Strisciuglio, Nicolai Petkov

Visual place recognition is a challenging task in computer vision and a key component of camera-based localization and navigation systems. Recently, Convolutional Neural Networks (CNNs) achieved high results and good generalization capabilities. They are usually trained using pairs or triplets of images labeled as either similar or dissimilar, in a binary fashion. In practice, the similarity between two images is not binary, but continuous. Furthermore, training these CNNs is computationally complex and involves costly pair and triplet mining strategies. We propose a Generalized Contrastive loss (GCL) function that relies on image similarity as a continuous measure, and use it to train a siamese CNN. Furthermore, we present three techniques for automatic annotation of image pairs with labels indicating their degree of similarity, and deploy them to re-annotate the MSLS, TB-Places, and 7Scenes datasets. We demonstrate that siamese CNNs trained using the GCL function and the improved annotations consistently outperform their binary counterparts. Our models trained on MSLS outperform the state-of-the-art methods, including NetVLAD, NetVLAD-SARE, AP-GeM and Patch-NetVLAD, and generalize well on the Pittsburgh30k, Tokyo 24/7, RobotCar Seasons v2 and Extended CMU Seasons datasets. Furthermore, training a siamese network using the GCL function does not require complex pair mining. We release the source code at https://github.com/marialeyvallina/generalized_contrastive_loss.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

marialeyvallina/generalized_contrastive_loss officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Image RetrievalRepresentation LearningVisual Place Recognition

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Visual Place Recognition Mapillary test ResNeXt-GCL-PCA Recall@1 62.3 #11 of 12 Archive leaderboard report
Visual Place Recognition Mapillary test ResNeXt-GCL-PCA Recall@10 81.1 #11 of 12 Archive leaderboard report
Visual Place Recognition Mapillary test ResNeXt-GCL-PCA Recall@5 76.2 #11 of 12 Archive leaderboard report
Visual Place Recognition Mapillary test RexNeXt-GCL Recall@1 56.0 #12 of 12 Archive leaderboard report
Visual Place Recognition Mapillary test RexNeXt-GCL Recall@10 75.1 #12 of 12 Archive leaderboard report
Visual Place Recognition Mapillary test RexNeXt-GCL Recall@5 70.8 #12 of 12 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL + PCA Recall@1 80.9 #15 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL + PCA Recall@10 92.6 #15 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL + PCA Recall@5 90.7 #15 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL Recall@1 75.5 #17 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL Recall@10 88.5 #17 of 18 Archive leaderboard report
Visual Place Recognition Mapillary val ResNeXt GCL Recall@5 86.1 #17 of 18 Archive leaderboard report
Visual Place Recognition Pittsburgh-30k-test GCL [trained only on MSLS] Recall@1 81.94 #19 of 22 Archive leaderboard report
Visual Place Recognition Pittsburgh-30k-test GCL [trained only on MSLS] Recall@5 94.56 #19 of 22 Archive leaderboard report
Visual Place Recognition Tokyo247 GCL [trained only on MSLS] Recall@1 69.84 #13 of 14 Archive leaderboard report
Visual Place Recognition Tokyo247 GCL [trained only on MSLS] Recall@10 80.63 #13 of 14 Archive leaderboard report
Visual Place Recognition Tokyo247 GCL [trained only on MSLS] Recall@5 84.76 #13 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Siamese Network

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections