MSINet: Twins Contrastive Search of Multi-Scale Interaction for Object ReID

Jianyang Gu, Kai Wang, Hao Luo, Chen Chen, Wei Jiang, Yuqiang Fang, Shanghang Zhang, Yang You, Jian Zhao

TL;DR

MSINet introduces a specialized Neural Architecture Search (NAS) framework tailored for the unique "open-set" nature of object Re-Identification (ReID). By optimizing how multi-scale features interact and introducing a novel spatial alignment module, the authors discovered a remarkably lightweight model (2.3M parameters) that outperforms heavy-duty state-of-the-art architectures in both accuracy and cross-domain generalization.

What Problem Does This Paper Address?

Object Re-Identification (ReID) is the task of matching the same individual or vehicle across different non-overlapping camera views. Unlike standard image classification, ReID is an open-set problem: the specific identities (categories) seen during training are entirely different from those encountered during testing.

Most current ReID systems rely on backbones like ResNet50, which were designed for general classification. While some researchers have turned to Neural Architecture Search (NAS) to find better backbones, they often use standard search schemes that assume the training and validation sets share the same categories. This mismatch leads to sub-optimal architectures. Furthermore, while multi-scale features are known to be crucial for distinguishing fine-grained details (like a specific bumper sticker or a unique handbag), how these scales should interact at different depths of a network has remained largely hand-crafted and rigid.

Methods

The authors propose three core innovations to bridge these gaps:

  1. Twins Contrastive Mechanism (TCM): To fix the NAS mismatch, TCM unbinds the category labels of the training and validation sets during the search process. It uses two independent auxiliary memories to store features and applies a contrastive loss. This allows the search to simulate real-world ReID training, where the model must learn to generalize to unseen identities.
  2. Multi-Scale Interaction (MSI) Search Space: Instead of just summing features from different scales, the authors designed a search space that lets the NAS algorithm choose the best interaction operation for each layer. These options include:
  3. None: No interaction.
  4. Exchange: Swapping features between branches.
  5. Channel Gate: Using a shared MLP to highlight important channels.
  6. Cross Attention: Explicitly calculating correlations between different scale branches.
  7. Spatial Alignment Module (SAM): To handle variations in pose and viewpoint, SAM aligns spatial attention maps. It uses a learnable "Position Activation Module" to ensure the model focuses on consistent discriminative regions across different images of the same object.
Figure 2. The model structure of the proposed MSINet. The input can be either person or vehicle. Inside a cell, the input is separated to two branches, with different receptive field scales. The interaction module exchanges information between two branches. Architecture search automatically select the most appropriate interaction for each cell.

Datasets

The researchers evaluated their method on four major benchmarks covering both person and vehicle ReID:

  • Person ReID: Market-1501 (M) and MSMT17 (MS).
  • Vehicle ReID: VeRi-776 (VR) and VehicleID (VID).

They also conducted extensive cross-domain experiments (e.g., training on MSMT17 and testing on Market-1501) to test the model's ability to generalize to entirely new environments.

Key Insights and Ideas

  • Open-Set Search is Essential: The authors found that unbinding categories during NAS ("TCM Overlap") significantly improves performance compared to standard classification-based search. It forces the architecture to find features that are truly identity-discriminative rather than just memorizing training classes.
  • Dynamic Interaction Matters: The search revealed a clear pattern: Channel Gate operations are preferred in shallow layers to filter out background noise, while Cross Attention is favored in deeper layers to exchange high-level semantic information.
  • Efficiency vs. Power: MSINet proves that a tiny model (2.3M parameters) can beat models ten times its size (ResNet50, ~24M parameters) by being smarter about how it processes multi-scale information. As shown in Figure 1, MSINet focuses on much more specific, unique details compared to the broader, noisier activations of ResNet50.
Figure 1. The left panel shows the example activation maps of ResNet50 (1st row) and MSINet (2nd row). The right panel shows the average distances between the most similar 10 negative sam- ples and each query image at the inference. Best viewed in color.

Key Results

MSINet achieves state-of-the-art (SOTA) results across the board:

  • In-Domain: On MSMT17, MSINet outperformed ResNet50 by 9% mAP while using roughly 1/10th the parameters.
  • Cross-Domain: In the challenging MSMT17 $\rightarrow$ Market-1501 task, it surpassed ResNet50 by a staggering 16% mAP.
  • Vs. Transformers: Despite being a pure CNN, MSINet achieved comparable or better performance than heavy Transformer models like ViT-B on several datasets, but with significantly lower computational cost and faster inference.

Limitations and Future Work

The authors note that their current interaction operations (Exchange, Channel Gate, etc.) are relatively basic. They suggest that the search space could be expanded in the future to include more elaborate and complex interaction types. Additionally, while MSINet is highly efficient, there is still room to explore even more complex search schemes that could potentially yield even more robust architectures for extreme cross-domain scenarios.

Summary updated

Abstract

Neural Architecture Search (NAS) has been increasingly appealing to the society of object Re-Identification (ReID), for that task-specific architectures significantly improve the retrieval performance. Previous works explore new optimizing targets and search spaces for NAS ReID, yet they neglect the difference of training schemes between image classification and ReID. In this work, we propose a novel Twins Contrastive Mechanism (TCM) to provide more appropriate supervision for ReID architecture search. TCM reduces the category overlaps between the training and validation data, and assists NAS in simulating real-world ReID training schemes. We then design a Multi-Scale Interaction (MSI) search space to search for rational interaction operations between multi-scale features. In addition, we introduce a Spatial Alignment Module (SAM) to further enhance the attention consistency confronted with images from different sources. Under the proposed NAS scheme, a specific architecture is automatically searched, named as MSINet. Extensive experiments demonstrate that our method surpasses state-of-the-art ReID methods on both in-domain and cross-domain scenarios. Source code available in https://github.com/vimar-gu/MSINet.
BibTeX
@misc{gu2023msinet,
  author = {Jianyang Gu and Kai Wang and Hao Luo and Chen Chen and Wei Jiang and Yuqiang Fang and Shanghang Zhang and Yang You and Jian Zhao},
  title = {{MSINet: Twins Contrastive Search of Multi-Scale Interaction for Object ReID}},
  year = {2023},
  eprint = {2303.07065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.07065},
}
Figure