Introduction
Person Re-identification (ReID) is a critical component of modern surveillance systems, aimed at matching the identity of an individual across non-overlapping camera views. While significant progress has been made in visible-light (RGB) ReID, real-world security requirements often necessitate 24/7 operation. In low-light conditions, cameras typically switch to infrared (IR) mode. This transition introduces a significant "modality gap" between RGB and IR images. RGB images provide rich three-channel color information, whereas IR images capture thermal radiation in a single channel, leading to drastic variations in appearance for the same individual.
Traditional approaches have largely relied on Convolutional Neural Networks (CNNs). These methods often attempt to bridge the modality gap through Generative Adversarial Networks (GANs) to "translate" images between modalities or via two-stream architectures. However, CNNs are inherently limited by their local receptive fields, which can fail to capture the global spatial relationships necessary to distinguish between different individuals with similar local features.
The CMTR Framework
To address these challenges, the authors introduce the Cross-modality Transformer (CMTR), the first architecture to leverage the Vision Transformer (ViT) for visible-infrared ReID. Unlike CNNs, Transformers utilize a self-attention mechanism that allows the model to perceive global features—such as body shape and proportions—across the entire image from the earliest layers.
Modality Embeddings (ME)
A core innovation of CMTR is the introduction of learnable Modality Embeddings. In standard ViT, position embeddings are added to input patches to provide spatial context. CMTR extends this concept by adding modality-specific embeddings to the input tokens. These embeddings explicitly signal to the network whether a patch originates from a visible or an infrared sensor, allowing the Transformer to learn modality-specific nuances more effectively.
Modality-aware Enhancement (MAE) Loss
To ensure the model focuses on identity-specific features rather than sensor-specific noise, the authors proposed the Modality-aware Enhancement (MAE) Loss. This loss function is designed to "subtract" modality information during the feature learning process. It consists of two components:
- Modality-aware Center Loss ($L_{MAC}$): This component calculates a feature center for each identity after removing the learned modality information, effectively pulling features of the same person together regardless of the camera type.
- Modality-aware ID Loss ($L_{MAID}$): This forces the model to maintain correct identity classification even after modality-specific features have been suppressed, ensuring the learned embeddings are invariant to the sensor type.
Additionally, the model employs a "soft split" strategy for image tokenization. By using overlapping patches, CMTR preserves spatial correlations that are often lost in the standard "hard" patch splitting used in vanilla ViT implementations.
Experimental Evaluation
The CMTR model was rigorously evaluated on two primary benchmarks for Visible-Infrared ReID:
- SYSU-MM01: A large-scale dataset featuring over 29,000 visible and 15,000 infrared images of 491 identities.
- RegDB: A dataset collected using dual-aligned cameras, containing 412 identities.
Key Results
CMTR established a new state-of-the-art on both datasets, significantly outperforming previous CNN-based models. On the challenging SYSU-MM01 dataset, CMTR achieved a 62.58% Rank-1 accuracy and 61.33% mAP, representing a substantial +5.62% improvement in Rank-1 accuracy over the previous leading model, TSLFN+HC. On RegDB, the model reached 80.62% Rank-1 accuracy, a remarkable +8.79% leap over the HAT model.
Ablation studies confirmed that both the Modality Embeddings and the MAE loss are critical to this performance. Removing either component resulted in a significant drop in accuracy, validating the strategy of explicit modality modeling and removal.
Conclusion and Future Work
CMTR demonstrates that Transformers are highly effective for cross-modality ReID tasks, primarily due to their ability to capture global context and the flexibility to incorporate explicit modality information. While the computational demands of Transformers are higher than those of lightweight CNNs, the performance gains are decisive. Future research may explore applying these explicit modality-handling strategies to other heterogeneous vision tasks, such as sketch-to-photo matching or cross-resolution identification.
Summary updated