[Paper Review] CMTR: Cross-modality Transformer for Visible-infrared Person Re-identification
This paper proposes CMTR, a cross-modality transformer for visible-infrared person re-identification that explicitly models modality-specific features using learnable modality embeddings and a novel modality-aware enhancement (MAE) loss. By integrating modality embeddings into the transformer input and optimizing feature distribution via MAE loss, CMTR achieves state-of-the-art performance on SYSU-MM01 and RegDB, surpassing prior CNN-based methods with a Rank-1 accuracy of 80.62% and mAP of 73.75% on SYSU-MM01 under the most challenging single-shot setting.
Visible-infrared cross-modality person re-identification is a challenging ReID task, which aims to retrieve and match the same identity's images between the heterogeneous visible and infrared modalities. Thus, the core of this task is to bridge the huge gap between these two modalities. The existing convolutional neural network-based methods mainly face the problem of insufficient perception of modalities' information, and can not learn good discriminative modality-invariant embeddings for identities, which limits their performance. To solve these problems, we propose a cross-modality transformer-based method (CMTR) for the visible-infrared person re-identification task, which can explicitly mine the information of each modality and generate better discriminative features based on it. Specifically, to capture modalities' characteristics, we design the novel modality embeddings, which are fused with token embeddings to encode modalities' information. Furthermore, to enhance representation of modality embeddings and adjust matching embeddings' distribution, we propose a modality-aware enhancement loss based on the learned modalities' information, reducing intra-class distance and enlarging inter-class distance. To our knowledge, this is the first work of applying transformer network to the cross-modality re-identification task. We implement extensive experiments on the public SYSU-MM01 and RegDB datasets, and our proposed CMTR model's performance significantly surpasses existing outstanding CNN-based methods.
Motivation & Objective
- To address the large modality gap between visible and infrared images in person re-identification, which hinders effective feature learning.
- To overcome the limitations of CNN-based methods that fail to adequately perceive modality-specific characteristics and learn discriminative, modality-invariant features.
- To explore the potential of transformer architectures in cross-modality ReID by explicitly modeling modality information during feature learning.
- To design a novel loss function that enhances modality embedding learning and improves intra-class compactness and inter-class separability.
Proposed method
- Introduces learnable modality embeddings (ME) that are added to patch token embeddings in the transformer input to explicitly encode visible and infrared modality characteristics.
- Fuses modality embeddings with patch tokens to allow the transformer to attend to modality-specific features during self-attention computation.
- Proposes a modality-aware enhancement (MAE) loss composed of modality-aware center loss (MAC) and modality-aware ID loss (MAID), which refine embeddings by removing modality-specific knowledge from ME.
- Uses a modality removal process in the MAE loss to distill modality-invariant representations by subtracting learned modality information from the embeddings.
- Applies the MAE loss during training to minimize intra-class distances and maximize inter-class distances in the embedding space.
- Employs a two-stream transformer backbone with shared weights in deep layers and unshared in shallow layers to preserve modality-specific and shared features.
Experimental results
Research questions
- RQ1Can a transformer-based architecture effectively learn modality-invariant representations in visible-infrared person re-identification by explicitly modeling modality characteristics?
- RQ2How does the integration of learnable modality embeddings improve feature representation compared to standard ViT or CNN-based methods?
- RQ3To what extent does the modality-aware enhancement (MAE) loss improve intra-class compactness and inter-class separability in the embedding space?
- RQ4Does the proposed method outperform existing state-of-the-art CNN-based models on benchmark datasets such as SYSU-MM01 and RegDB?
- RQ5Can the modality embeddings and MAE loss help the model attend to identity-invariant features despite large modality gaps?
Key findings
- CMTR achieves a Rank-1 accuracy of 80.62% and mAP of 73.75% on the SYSU-MM01 dataset under the most challenging single-shot all-search setting, significantly outperforming previous state-of-the-art CNN-based methods.
- The ablation study shows that adding modality embeddings (ME) alone improves Rank-1 by 3.12% and mAP by 2.19% over the baseline ViT.
- The modality-aware center loss (MAC) contributes +2.13% to Rank-1 and +3.24% to mAP, while the modality-aware ID loss (MAID) adds +3.13% to Rank-1 and +2.57% to mAP, demonstrating their complementary effects.
- Joint optimization using the full MAE loss yields a +5.18% Rank-1 and +5.17% mAP improvement over the baseline, confirming its effectiveness in enhancing feature discrimination.
- t-SNE visualization confirms that the MAE loss leads to more compact intra-class clusters and larger inter-class margins, improving generalization.
- Grad-CAM visualization shows that CMTR with ME better captures identity-invariant features (e.g., shirt patterns) across modalities, even when such details are invisible in infrared images.
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.