CM-NAS: Rethinking Cross-Modality Neural Architectures for Visible-Infrared Person Re-Identification

Chaoyou Fu, Yibo Hu, Xiang Wu, Hailin Shi, Tao Mei, Ran He

Abstract

Visible-Infrared person re-identification (VI-ReID) aims to match cross-modality pedestrian images, breaking through the limitation of single-modality person ReID in dark environments. To mitigate the impact of large modality discrepancy, existing works manually design various two-stream architectures to separately learn modality-specific and modality-sharable representations. Such manual design, however, is time-consuming and labor-intensive. In this paper, we systematically study manually designed architectures and identify that appropriately separating Batch Normalization (BN) layers is key to boosting cross-modality matching. Based on this, we propose Cross-Modality Neural Architecture Search (CM-NAS), featuring a BN-oriented search space. CM-NAS outperforms state-of-the-art counterparts on SYSU-MM01 and RegDB benchmarks, improving Rank-1/mAP by significant margins.

Introduction

Person Re-Identification (ReID) is critical for tracking individuals across non-overlapping cameras. While standard ReID is effective in daylight, performance drops sharply at night when cameras switch to infrared (IR) mode. Visible-Infrared Person Re-ID (VI-ReID) addresses this "modality gap" between visible (VIS) and IR images. The core challenge lies in the fundamental difference between modalities: VIS captures color and texture, while IR captures thermal radiation.

Historically, researchers have manually designed "two-stream" networks where specific layers are separated to learn modality-specific features and others are shared for identity-specific features. However, the optimal point of separation has remained elusive, relying on empirical trial-and-error.

Methodology: Automating the Bridge

The proposed Cross-Modality Neural Architecture Search (CM-NAS) automates the design of these two-stream architectures. Instead of manual tuning, it searches for the optimal configuration within a ResNet-50 backbone.

The standard ResNet50 backbone compared to a two-stream network architecture where the first block is separated.

CM-NAS is built on three pillars:

  1. BN-Oriented Search Space: The authors discovered that Batch Normalization (BN) layers are the most critical components for handling modality discrepancies. The search space focuses on whether each individual BN layer should have separate parameters for VIS and IR or share a single set.
  2. Differentiable Search: To manage computational costs, CM-NAS uses a differentiable search strategy. By relaxing discrete choices into continuous probabilities, the architecture can be optimized via gradient descent.
  3. C3MMD Loss: A novel Class-specific Maximum Mean Discrepancy (CMMD) combined with a Correlation Consistency (CC) loss guides the search, ensuring cross-modality distribution alignment while maintaining identity relationships.

Rethinking the Role of Batch Normalization

A key insight of this work is that separating only the BN layers within a residual block is consistently more effective than separating the entire block (including convolutions). This suggests that the modality gap is primarily a "style" or distribution shift rather than a fundamental difference in feature extraction.

Comparison of mAP performance when separating entire blocks versus only separating BN layers across different stages of the network.

As shown in the extensive manual tests (Figure 2), "only separate the BN in the block" (orange line) consistently outperforms "separate the entire block" (blue line) across various stages. This observation forms the basis for the BN-centric search space in CM-NAS.

Results and Discussion

CM-NAS achieves state-of-the-art (SOTA) performance on major benchmarks:

  • SYSU-MM01: Improved Rank-1 accuracy by 6.70% and mAP by 6.13%.
  • RegDB: Achieved a dramatic boost, improving Rank-1 by 12.17% and mAP by 11.23%.

The searched architectures are often non-intuitive, featuring complex patterns of sharing and separation that defy simple manual heuristics. Generally, deeper layers (Stage 5) tend to be shared, as they capture high-level semantic "personhood" that is modality-agnostic. Crucially, the searched model adds negligible parameters and zero extra FLOPs during inference, as separate branches are only active for their respective modalities.

Conclusion

CM-NAS demonstrates that the key to bridging the VIS-IR modality gap lies in the strategic separation of Batch Normalization layers. By automating this search, the method removes the need for labor-intensive manual design while achieving significant performance gains. This BN-centric approach offers a promising direction for other cross-modality tasks.

Summary updated

Abstract

Visible-Infrared person re-identification (VI-ReID) aims to match cross-modality pedestrian images, breaking through the limitation of single-modality person ReID in dark environment. In order to mitigate the impact of large modality discrepancy, existing works manually design various two-stream architectures to separately learn modality-specific and modality-sharable representations. Such a manual design routine, however, highly depends on massive experiments and empirical practice, which is time consuming and labor intensive. In this paper, we systematically study the manually designed architectures, and identify that appropriately separating Batch Normalization (BN) layers is the key to bring a great boost towards cross-modality matching. Based on this observation, the essential objective is to find the optimal separation scheme for each BN layer. To this end, we propose a novel method, named Cross-Modality Neural Architecture Search (CM-NAS). It consists of a BN-oriented search space in which the standard optimization can be fulfilled subject to the cross-modality task. Equipped with the searched architecture, our method outperforms state-of-the-art counterparts in both two benchmarks, improving the Rank-1/mAP by 6.70%/6.13% on SYSU-MM01 and by 12.17%/11.23% on RegDB. Code is released at https://github.com/JDAI-CV/CM-NAS.
BibTeX
@inproceedings{fu2021cm,
  author = {Chaoyou Fu and Yibo Hu and Xiang Wu and Hailin Shi and Tao Mei and Ran He},
  title = {{CM-NAS: Rethinking Cross-Modality Neural Architectures for Visible-Infrared Person Re-Identification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01161},
}
Figure