A Person Re-identification Data Augmentation Method with Adversarial Defense Effect

Yunpeng Gong, Zhiyong Zeng, Liwen Chen, Yifan Luo, Bin Weng, Feng Ye · DOI

Abstract

The security of Person Re-identification (ReID) models is paramount for their real-world application. However, deep neural networks are vulnerable to adversarial perturbations that can deceive models performing well on clean data. We propose a multi-modal data augmentation method with an adversarial defense effect. Our approach includes: 1) Grayscale Patch Replacement (GPR), consisting of Local (LGPR) and Global (GGPR) variants, which improves model accuracy and defense capabilities; and 2) Multi-Modal Defense, which integrates visible, grayscale, and sketch modalities. By fusing these homogeneous images, we enrich input variety, reducing overfitting to color variations and making the adversarial space harder for attackers to align with. Our method successfully defends against the MS-SSIM attack, restoring accuracy from 0.2% to 93.3% on multiple datasets.

Introduction

Person Re-identification (ReID) involves matching individuals across non-overlapping camera views. While deep learning has significantly advanced this field, models remain fragile due to two primary issues: overfitting to color and vulnerability to adversarial attacks. ReID models often rely excessively on clothing color, making them susceptible to lighting changes or targeted perturbations. Existing defenses are often computationally heavy; this research proposes a lightweight data augmentation strategy to address both performance and security simultaneously.

Proposed Methodology

The core of the proposed method is Multi-Modal Data Augmentation, which forces the network to learn color-invariant spatial structures.

Grayscale Patch Replacement (GPR)

This technique introduces structural homogeneity by replacing portions of the RGB image with grayscale information:

  • Local Grayscale Patch Replacement (LGPR): A random rectangular region is selected and converted to grayscale. This preserves structural details while removing color cues, similar to random erasing but without losing identity-defining shapes.
  • Global Grayscale Patch Replacement (GGPR): A percentage of the entire training batch is converted to grayscale to ensure the model does not become overly dependent on color channels.
The proposed ReID data augmentation pipeline featuring Grayscale Patch Replacement.

Multi-Modal Defense

This advanced fusion technique generates homogeneous versions of input images (grayscale and sketch). During training, these modalities are randomly overlaid onto the original RGB channels. This "perturbation" of the input space makes it difficult for attack algorithms to find a consistent gradient to exploit, effectively breaking the alignment required for successful adversarial attacks.

Visual samples of Local Grayscale Patch Replacement (LGPR) applied to training data.

Experimental Results

The method was evaluated on standard benchmarks including Market-1501, DukeMTMC-reID, and MSMT17.

  • Adversarial Robustness: Against the state-of-the-art MS-SSIM attack, a baseline model's accuracy dropped to 0.2%. The proposed defense restored this to 93.3%, a 467-fold increase in robustness.
  • General Performance: On the complex MSMT17 dataset, the method achieved a Rank-1 accuracy of 86.2%, outperforming several contemporary state-of-the-art methods even on clean data.
  • Cross-Domain Generalization: Significant gains were observed in cross-domain scenarios, confirming that the learned features are more generalized and less dataset-specific.

Conclusion and Future Work

By leveraging structural homogeneity through grayscale and sketch fusion, this method effectively shifts the ReID model's focus from volatile color features to robust spatial structures. This dual-purpose approach enhances both retrieval accuracy and security. Future research will focus on adaptive attacks where the adversary is aware of the multi-modal defense and further refining the combination of internal and external defense mechanisms.

Summary updated

BibTeX
@misc{gong2021person,
  author = {Yunpeng Gong and Zhiyong Zeng and Liwen Chen and Yifan Luo and Bin Weng and Feng Ye},
  title = {{A Person Re-identification Data Augmentation Method with Adversarial Defense Effect}},
  year = {2021},
  eprint = {2101.08783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.08783},
}
Figure