Abstract
Person re-identification (re-ID) is a key problem in smart supervision of camera networks. Over the past years, models using deep learning have become state of the art. However, it has been shown that deep neural networks are flawed with adversarial examples, i.e. human-imperceptible perturbations. Extensively studied for the task of image closed-set classification, this problem can also appear in the case of open-set retrieval tasks. Indeed, recent work has shown that we can also generate adversarial examples for metric learning systems such as re-ID ones. These models remain vulnerable: when faced with adversarial examples, they fail to correctly recognize a person, which represents a security breach. These attacks are all the more dangerous as they are impossible to detect for a human operator. Attacking a metric consists in altering the distances between the feature of an attacked image and those of reference images, i.e. guides. In this article, we investigate different possible attacks depending on the number and type of guides available. From this metric attack family, two particularly effective attacks stand out. The first one, called Self Metric Attack, is a strong attack that does not need any image apart from the attacked image. The second one, called FurthestNegative Attack, makes full use of a set of images. Attacks are evaluated on commonly used datasets: Market1501 and DukeMTMC. Finally, we propose an efficient extension of adversarial training protocol adapted to metric learning as a defense that increases the robustness of re-ID models.
Introduction
Person re-identification (re-ID) is the task of matching a person's image across different non-overlapping camera views. Unlike standard image classification, which is a "closed-set" task with fixed categories, re-ID is an "open-set" retrieval task. At test time, the system encounters identities it has never seen during training. Because re-ID relies on the distance between feature embeddings rather than class probabilities, traditional adversarial attacks designed for classification are often ineffective. This paper addresses the vulnerability of distance-based metric learning systems to adversarial manipulation.
Methodology: Metric Adversarial Attacks
The authors propose a framework for Metric Attacks based on two concepts: pushing guides (moving a feature vector away from its true identity cluster) and pulling guides (moving it toward a different identity cluster). Two novel algorithms are introduced:
- Self Metric Attack (SMA): A "zero-knowledge" attack that uses a noisy version of the attacked image itself as a pushing guide. This is highly practical as it requires no external gallery images.
- Furthest-Negative Attack (FNA): A more powerful attack that pushes the feature away from its own identity and pulls it toward the "furthest" (least similar) identity cluster in the embedding space.
Experimental Results
The attacks were evaluated on the Market1501 and DukeMTMC-reID benchmarks. The effectiveness of these attacks is highly dependent on the perturbation budget ($\epsilon$).
As shown in the figure above, the mAP of re-ID models drops precipitously as $\epsilon$ increases. FNA consistently proves to be the most destructive method, followed by SMA. The quantitative impact is summarized in the table below.
On the Market1501 dataset, a standard Classification (C) model with 76.02% mAP plummeted to just 0.53% mAP when subjected to the FNA attack. Even the simpler SMA attack reduced performance to 2.34% mAP. These results underscore the severe security breach posed by metric attacks.
Defense: Guide-sampling Online Adversarial Training (GOAT)
To counter these threats, the authors propose Guide-sampling Online Adversarial Training (GOAT). Unlike static "offline" defenses, GOAT generates fresh adversarial examples during every training step by sampling pushing and pulling guides from the current mini-batch. While standard offline methods failed to protect models (dropping to 0.58% mAP under FNA), the GOAT-defended model maintained a significantly higher 16.76% mAP, demonstrating a substantial improvement in robustness.
Conclusion
This study highlights the critical vulnerability of person re-identification systems to metric adversarial attacks. The proposed SMA and FNA attacks demonstrate that even without external data, an attacker can effectively cripple state-of-the-art re-ID models. While the GOAT defense provides a path toward more robust systems, the remaining utility gap on clean data suggests that further innovation in adversarial defense for metric learning is required.
Summary updated