Anchored Rank-Adversarial Fine-Tuning Pretrained Visual Place Recognition Models
Organizations: Faculty of Computer Science and Engineering, Innopolis University, Innopolis, Russia.
Abstract
Visual place recognition (VPR) localises a camera by retrieving similar geo-tagged images, and current foundation-model VPR models are accurate across cities, seasons and illumination, but not robust to adversarial perturbations: under a white-box attack on the ranking at an imperceptible budget of 1/255, SuperVLAD and BoQ keep at most 0.2% top-1 recall (R@1) on four benchmarks. We propose anchored rank-adversarial fine-tuning (ARAFT), which fine-tunes a released model with a listwise rank loss on each adversarial query's hardest positive and an anchor to the clean descriptor of the frozen pretrained model. Checkpoints are selected under a clean-accuracy budget fixed in advance, and the full trade-off is reported. Within five validation R@1 points of clean cost, plain adversarial training has no admissible checkpoint, whereas ARAFT raises robust R@1 from zero to 47.3 on SuperVLAD and 55.3 on BoQ; plain adversarial training exceeds this only at about three times the clean cost. Against unbudgeted plain adversarial training on the test sets, ARAFT matches its robust R@1 at 2/255 with about ten more clean R@1 points. At 4/255, plain adversarial training is 6-9 robust R@1 points ahead, while ARAFT still keeps its ten-point clean advantage. Developed on SuperVLAD, ARAFT transfers to BoQ without re-tuning, and its robustness holds against stronger optimisers, with no sign of gradient masking.
Figures & tables
| Setting | Value |
|---|---|
| Training data | GSV-Cities, places images |
| Batches/epoch, max. epochs | / |
| Optimiser | Adam, lr , no weight decay |
| Trainable layers | all |
| Input size (train / test) | SuperVLAD / ; BoQ / |
| Training attack | rank-PGD , , |
| Dataset | Database | Queries | Attacked |
|---|---|---|---|
| MSLS-val (val.) | 18 871 | 11 084 | 2 000 |
| MSLS | 36 558 | 25 622 | 1 000 |
| Pitts30k | 10 000 | 6 816 | 1 000 |
| SPED | 607 | 607 | 607 |
| Nordland | 27 592 | 27 592 | 1 000 |
| Attack | Steps restarts | Budget | Purpose | Models |
|---|---|---|---|---|
| Rank-APGD | ( ), ( ) | headline | both | |
| Rank-PGD | (to ) | budget sweep | both | |
| Rank-APGD | ; | , MSLS | convergence | SuperVLAD |
| Rank-PGD | ( ) | large budget | SuperVLAD |
| MSLS | Pitts30k | SPED | Nordland | Mean | |||||||||||
| Method | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 |
| SuperVLAD | |||||||||||||||
| Plain AT | 68.9 | 0.0 | 0.0 | 92.3 | 0.0 | 0.0 | 90.0 | 0.0 | 0.0 | 85.7 | 0.0 | 0.0 | 84.2 | 0.0 | 0.0 |
| ARAFT (Ours) | 59.4 | 38.0 | 14.8 | 90.7 | 76.4 | 50.1 | 68.9 | 45.1 | 22.4 | 68.7 | 24.7 | 3.7 | 71.9 | 46.1 | 22.8 |
| BoQ | |||||||||||||||
| Plain AT | 74.5 | 0.0 | 0.0 | 93.7 | 0.0 | 0.0 | 92.6 | 0.0 | 0.0 | 90.7 | 0.0 | 0.0 | 87.9 | 0.0 | 0.0 |
| MSLS | Pitts30k | SPED | Nordland | Mean | |||||||||||
| Method | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 | Clean | 2 | 4 |
| SuperVLAD | |||||||||||||||
| Plain AT | 46.2 | 34.9 | 24.9 | 86.8 | 77.0 | 60.8 | 63.1 | 45.8 | 29.3 | 50.8 | 28.0 | 12.8 | 61.7 | 46.4 | 32.0 |
| ARAFT (Ours) | 59.4 | 38.0 | 14.8 | 90.7 | 76.4 | 50.1 | 68.9 | 45.1 | 22.4 | 68.7 | 24.7 | 3.7 | 71.9 | 46.1 | 22.8 |
| BoQ | |||||||||||||||
| Plain AT | 52.7 | 41.1 | 26.7 | 88.0 | 78.7 | 64.0 | 63.3 | 45.1 | 27.8 | 49.8 | 23.7 | 7.8 | 63.4 | 47.2 | 31.6 |
| Test, rank-APGD | |||||
|---|---|---|---|---|---|
| Variant | Positive | Rank loss | MSLS | Nordland | |
| ARAFT | hardest | listwise | 1 | 14.8 (59.4) | 3.7 (68.7) |
| Closest positive | closest | listwise | 1 | 10.3 (60.4) | 2.4 (70.4) |
| Closest positive, hinge | closest | hinge | 1 | 10.9 (59.7) | 2.6 (71.4) |
| No anchor | closest | listwise | 0 | 19.8 (50.0) | 8.0 (58.0) |
| Stronger anchor | hardest | listwise | 2 | 11.8 (60.4) | 3.4 (71.0) |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | Setting | Drop | Robust |
|---|---|---|---|
| Attack set | +perc., 8 frozen | 0.00 | |
| , 8 frozen | 0.50 | 0.00 | |
| Depth, lr | 8 frozen, | 3.00 | 0.03 |
| 4 frozen, | 1.05 | 0.15 | |
| 4 frozen, | 0.60 | 0.05 | |
| 0 frozen, | 4.25 | 35.38 |
| MSLS | Pitts30k | SPED | Nordland | |
| SuperVLAD | ||||
| Pretrained | 68.85 | 92.30 | 89.95 | 85.68 |
| Clean twin | 66.05 | 92.33 | 88.14 | 79.20 |
| ARAFT (seed 0) | 59.41 | 90.74 | 68.86 | 68.69 |
| drop vs. pretrained | 9.44 | 1.56 | 21.09 | 16.99 |
| drop vs. twin | 6.63 | 1.58 | 19.28 | 10.51 |
Visual Place Recognition
Visual Place Recognition matches camera observations to mapped places despite changes in viewpoint, lighting, weather, or time.
See all 88 papers