Modality-Aware Bias Mitigation and Invariance Learning for Unsupervised Visible-Infrared Person Re-Identification

Menglin Wang, Xiaojin Gong, Jiachen Li, Genlin JiarXiv 2025

TL;DR

Unsupervised visible-infrared person re-identification (USVI-ReID) is severely hindered by the "modality gap," which biases standard clustering algorithms toward grouping images by camera type rather than identity. This paper introduces a modality-aware neighbor rebalancing strategy to rectify distance metrics, paired with a "split-and-contrast" learning approach that explicitly aligns modality-specific cluster prototypes. The resulting framework achieves new state-of-the-art performance on major benchmarks without requiring any human annotations.

What Problem Does This Paper Address?

Imagine trying to match a suspect across a city's surveillance network where some cameras capture standard color video (visible spectrum) during the day, and others use thermal imaging (infrared) at night. This is the task of Visible-Infrared Person Re-Identification (VI-ReID). Doing this without any labeled data—Unsupervised VI-ReID—is incredibly challenging.

Most existing methods handle this using a two-stage pipeline: they cluster images within each modality separately, and then try to match these local clusters across modalities using optimal transport algorithms. However, this approach easily propagates errors from the initial clustering stage and completely ignores global, instance-level relationships.

Why not just run a global clustering algorithm across all images simultaneously? Because of modality bias. Due to the massive stylistic differences between color and thermal images, standard distance metrics (like Jaccard distance) get overwhelmed. As shown in the paper's analysis, a query image's nearest neighbors are almost entirely dominated by images from the same modality, causing standard global clustering to fail completely.

Intra- and inter-modality ratio in Top-30 nearest neighbors, demonstrating how standard metrics are heavily biased toward the same modality.

Methods

The authors propose a simple yet highly effective framework to mitigate modality bias and learn modality-invariant features.

Figure 2: An overview of the proposed modality-aware learning framework. For cross-modality learning, a bias-mitigating global association is proposed, featuring the modality-aware neighbor rebalancing strategy to rectify the pairwise distance and overcome the modality-induced bias. The rectified distance is utilized by global clustering to obtain modality-mixed clusters. A split-and-contrast design captures the variance of global clusters, then a multi-positive contrastive loss is designed to facilitate the learning of modality-invariant yet ID-discriminative representation.

1. Modality-Aware Neighbor Rebalancing

To fix the biased Jaccard distance, the authors alter how $K$-nearest neighbors ($K$-NN) are retrieved. Instead of searching globally, the algorithm independently retrieves an equal number of neighbors from the visible modality and the infrared modality. This 50/50 balance ensures that cross-modality relationships are fairly represented during the reciprocal neighbor search and local query expansion steps, effectively neutralizing the modality bias and enabling reliable global clustering.

2. Split-and-Contrast Strategy

Even when images are correctly grouped into a global cluster, visible and infrared features naturally form distinct sub-clusters (cliques) due to their structural differences. Rather than representing a mixed-modality cluster with a single, inadequate centroid prototype, the authors split each cluster into modality-specific sub-clusters (one for visible, one for infrared). They then apply a multi-positive contrastive loss that forces the network to pull the query feature equally close to both its visible and infrared prototypes, driving the model to learn truly modality-invariant representations.

3. Subset Clustering

Real-world datasets often contain significantly more visible images than infrared images. This imbalance causes standard clustering algorithms like DBSCAN to over-cluster the visible images (fragmenting single identities into multiple clusters). The authors introduce a simple subset sampling strategy during the initial intra-modality warm-up phase to artificially balance the data and stabilize cluster generation.

Datasets

The framework was evaluated on two widely used benchmark datasets:

  • SYSU-MM01: A large-scale dataset containing 491 identities captured by 6 cameras. The training set consists of 22,258 visible images and 11,909 infrared images.
  • RegDB: A smaller, dual-modality dataset containing 4,120 images from 412 identities, evenly distributed between one visible and one infrared camera.

Key Insights and Ideas

  • The $K$-NN Blindspot: The core bottleneck in cross-modality clustering isn't the clustering algorithm itself, but the initial nearest-neighbor retrieval step. Forcing a modality-balanced neighbor selection completely changes the downstream distance matrix.
  • Embracing Variance via Splitting: Trying to force a single feature prototype onto a cluster containing both RGB and IR images discards crucial fine-grained dynamics. Splitting the prototypes by modality and then explicitly minimizing the distance between them acts as an elegant regularizer for invariance learning.
  • Data Imbalance Destabilizes DBSCAN: The paper highlights that data volume asymmetry between modalities is a primary driver of over-clustering, a nuance often overlooked in unsupervised domain adaptation.

Key Results

The proposed method achieves state-of-the-art performance across both benchmarks, outperforming much more complex graph-matching and optimal transport methods:

  • SYSU-MM01 (All Search): Achieves 67.1% Rank-1 accuracy and 63.1% mAP, outperforming the previous best unsupervised method by 1.2% in Rank-1 accuracy.
  • SYSU-MM01 (Indoor Search): Delivers a massive 4.7% boost in Rank-1 accuracy, reaching 75.0%.
  • RegDB (Visible to Thermal): Reaches 94.3% Rank-1 accuracy and 89.1% mAP, outperforming the previous state-of-the-art by 3.4% Rank-1.

Remarkably, this fully unsupervised approach delivers performance competitive with several prominent fully supervised VI-ReID methods (such as CAJ and DART), demonstrating the power of well-calibrated pseudo-labeling.

Limitations and Future Work

  • Dataset Specificity of Subset Clustering: The authors acknowledge that the subset clustering strategy is specifically beneficial for highly imbalanced datasets like SYSU-MM01. On already balanced datasets like RegDB, it provides no performance gain and can slightly lower accuracy.
  • Camera Bias Confounder: While the method successfully mitigates modality-induced bias, real-world surveillance networks also suffer from camera-specific viewpoint and illumination biases. A natural next step would be integrating this method with camera-aware distance rectification techniques to jointly tackle both camera and modality confounders.

Summary updated

BibTeX
@misc{wang2025modality,
  author = {Menglin Wang and Xiaojin Gong and Jiachen Li and Genlin Ji},
  title = {{Modality-Aware Bias Mitigation and Invariance Learning for Unsupervised Visible-Infrared Person Re-Identification}},
  year = {2025},
  eprint = {2512.07760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.07760},
}
Figure