[Paper Review] Adversarial Metric Attack and Defense for Person Re-identification
This paper introduces Adversarial Metric Attack, a novel method to generate adversarial examples that specifically target distance metrics in person re-identification (re-ID) systems by applying imperceptible perturbations to gallery images. The attack severely degrades re-ID performance—reducing mAP from 77.52 to as low as 51.03%—and proposes a metric-preserving defense that improves robustness by up to 185% on adversarial gallery sets.
Person re-identification (re-ID) has attracted much attention recently due to its great importance in video surveillance. In general, distance metrics used to identify two person images are expected to be robust under various appearance changes. However, our work observes the extreme vulnerability of existing distance metrics to adversarial examples, generated by simply adding human-imperceptible perturbations to person images. Hence, the security danger is dramatically increased when deploying commercial re-ID systems in video surveillance. Although adversarial examples have been extensively applied for classification analysis, it is rarely studied in metric analysis like person re-identification. The most likely reason is the natural gap between the training and testing of re-ID networks, that is, the predictions of a re-ID network cannot be directly used during testing without an effective metric. In this work, we bridge the gap by proposing Adversarial Metric Attack, a parallel methodology to adversarial classification attacks. Comprehensive experiments clearly reveal the adversarial effects in re-ID systems. Meanwhile, we also present an early attempt of training a metric-preserving network, thereby defending the metric against adversarial attacks. At last, by benchmarking various adversarial settings, we expect that our work can facilitate the development of adversarial attack and defense in metric-based applications.
Motivation & Objective
- To investigate the vulnerability of metric-based person re-identification systems to adversarial attacks, which remain underexplored despite extensive research in classification-based adversarial attacks.
- To address the natural gap between training (classification loss) and testing (metric-based inference) in re-ID, where traditional classification attacks fail to corrupt pairwise distance metrics.
- To propose a new attack paradigm—Adversarial Metric Attack—specifically designed to manipulate distance metrics rather than class boundaries.
- To develop and evaluate a defense strategy using adversarial examples to train a metric-preserving network that maintains robustness under attack.
- To benchmark various adversarial settings (white-box, black-box, targeted, non-targeted, single/multi-model) and release code for reproducibility and future research.
Proposed method
- Propose Adversarial Metric Attack as a parallel framework to classification attacks, targeting the metric function used in re-ID rather than the model’s classification output.
- Use iterative gradient-based methods (e.g., I-FGSM, MI-FGSM) to generate adversarial perturbations that minimize the similarity between a probe and its true positive gallery image while maximizing it with a false positive.
- Apply the attack in both white-box and black-box settings, including single-model and multi-model attacks, to evaluate transferability and robustness.
- Train a metric-preserving network using adversarial examples generated via the proposed attack, aiming to learn features invariant to small perturbations.
- Use multiple distance metrics (Euclidean, Mahalanobis via XQDA) in both attack and evaluation phases to study metric compatibility and transfer effects.
- Benchmark performance on Market-1501 and DukeMTMC-reID using mAP and rank-1 accuracy under various adversarial settings and perturbation magnitudes.
Experimental results
Research questions
- RQ1How vulnerable are state-of-the-art person re-identification systems to adversarial attacks that specifically target the distance metric rather than classification boundaries?
- RQ2Can adversarial examples be effectively generated to manipulate pairwise similarity scores in re-ID, even when the perturbations are imperceptible to humans?
- RQ3Does using different distance metrics for attack and evaluation improve adversarial robustness, and if so, why?
- RQ4Can adversarial examples be used to train a metric-preserving network that maintains performance under attack?
- RQ5What are the performance degradation patterns of re-ID models under various adversarial settings (e.g., white-box vs. black-box, targeted vs. non-targeted) with varying perturbation magnitudes?
Key findings
- Adversarial Metric Attack causes a dramatic performance drop in re-ID systems, reducing mAP from 77.52% (clean) to as low as 51.03% under adversarial perturbations on the Market-1501 dataset.
- The attack is highly effective even with small perturbations—e.g., 5-pixel magnitude I-FGSM attacks cause significant metric corruption, with mAP dropping to 59.87% under B1 setting.
- Using different metrics for attack and evaluation (e.g., attacking with Euclidean and testing with XQDA) improves robustness, suggesting a form of black-box transfer advantage.
- The metric-preserving defense strategy improves performance on adversarial gallery sets by up to 185% relative improvement (e.g., from 24.72% to 70.46% mAP when attacking B3 and testing on B1).
- Training with adversarial examples leads to a slight drop in clean-set performance (generally <10%), but a substantial gain on adversarial sets, demonstrating effective robustness learning.
- The proposed attack framework is generic and applicable to other metric-based systems such as face verification and tracking, highlighting broader implications for safety-critical applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.