Abstract
In computer vision, the performance of detectors trained under optimal lighting conditions is significantly impaired when applied to infrared domains due to the scarcity of labeled infrared target domain data and the inherent degradation in infrared image quality. Progress in cross-domain pedestrian re-identification is hindered by the lack of labeled infrared image data. To address the degradation of pedestrian recognition in infrared environments, we propose a framework for zero-shot infrared domain adaptation. This integrated approach is designed to mitigate the challenges of pedestrian recognition in infrared domains while enabling zero-shot domain adaptation. Specifically, an advanced reflectance representation learning module and an exchange–re-decomposition–coherence process are employed to learn illumination invariance and to enhance the model’s effectiveness, respectively. Additionally, the CLIP (Contrastive Language–Image Pretraining) image encoder and DINO (Distillation with No Labels) are fused for feature extraction, improving model performance under infrared conditions and enhancing its generalization capability. To further improve model performance, we introduce the Non-Local Attention (NLA) module, the Instance-based Weighted Part Attention (IWPA) module, and the Multi-head Self-Attention module. The NLA module captures global feature dependencies, particularly long-range feature relationships, effectively mitigating issues such as blurred or missing image information in feature degradation scenarios. The IWPA module focuses on localized regions to enhance model accuracy in complex backgrounds and unevenly lit scenes. Meanwhile, the Multi-head Self-Attention module captures long-range dependencies between cross-modal features, further strengthening environmental understanding and scene modeling. The key innovation of this work lies in the skillful combination and application of existing technologies to new domains, overcoming the challenges posed by vision in infrared environments. Experimental results on the SYSU-MM01 dataset show that, under the single-shot setting, Rank-1 Accuracy (Rank-1) andmean Average Precision (mAP) values of 37.97% and 37.25%, respectively, were achieved, while in the multi-shot setting, values of 34.96% and 34.14% were attained.
1. Introduction
In practice, a degradation in the model’s test performance on non-independent and identically distributed (non-IID) data has been observed [1], which has limited its application. In infrared environments, infrared sensors are influenced by ambient temperature fluctuations, variations in the thermal radiation properties of objects (e.g., inconsistent body temperature distributions due to differing clothing materials), and interference from complex background thermal noise. The instability of the pedestrian’s apparent features is thus exacerbated, exposing problems such as blurred texture details, missing color information, and significant discrepancies in cross-modal feature distributions. At the same time, the detection performance is degraded, and the accuracy of the detector is significantly hindered. Thus, visible–infrared cross-modal pedestrian re-identification (ReID) has become an urgent research challenge.
Despite the IR modality’s advantage of stable imaging at night and in low-light conditions, the training process of current mainstream methods still largely relies on heavily labeled IR data, primarily depending on supervised learning or target domain fine-tuning (e.g., AlignGAN [2], Hi-CMD [3]). However, the acquisition and annotation costs of infrared images are high, making large-scale data-driven training difficult to support. At the same time, infrared images inherently lack color texture information and are subject to thermal radiation noise interference, resulting in a significant gap between their feature distribution and that of the visible domain [4]. The consistency of identity characterization is also dynamically altered by changes in ambient temperature and variations in clothing materials, further weakening the pedestrian’s thermal radiation pattern.
Cross-domain learning between visible and infrared modalities faces several inherent challenges. First, there exists a large modality gap, as RGB and IR images are captured under different imaging mechanisms. Second, label scarcity in the IR domain makes supervised learning impractical for deployment in new scenarios. Third, feature misalignment and distribution shift across modalities degrade the transferability of identity representations. Fourth, external factors such as clothing variation and environmental temperature may further affect semantic consistency, exacerbating domain shift. These issues highlight the need for more effective and annotation-free cross-domain learning strategies.
In recent years, although supervised or semi-supervised cross-modal adaptation methods (e.g., CM-NAS [5], Dual Mutual Learning [6]) have alleviated the domain bias problem to some extent, target domain infrared samples are still required for training, making it difficult to meet the demand for practical ‘zero-shot’ cross-domain deployments. Therefore, how to achieve effective adaptation to the unknown infrared target domain using only visible source domain data has become a core issue in the field.
The SYSU-MM01 dataset and the RegDB dataset were used as common pedestrian re-identification task datasets. Among them, the SYSU-MM01 dataset, proposed by Wu et al. [7], is the first large-scale dataset specifically used for cross-modal pedestrian re-identification and is also recognized as one of the largest datasets in the field. This dataset includes 491 pedestrians and a total of 303,420 images. The RegDB dataset consists of 412 pedestrian identities, with each identity represented by 10 pairs of RGB-infrared (thermal) images [8], captured under strictly aligned viewing angles and consistent environmental conditions. This results in a total of 8240 images, with 4120 RGB images and 4120 infrared images.
In this study, a zero-shot infrared domain adaptation strategy is proposed to address the challenge of pedestrian re-identification in infrared domain scenarios. In the framework proposed in this study, the pedestrian re-identification model was trained using only visible source domain images and then directly evaluated on the infrared target domain, without any exposure to infrared samples during training. The strategy targets the natural spectral differences between visible and infrared imaging, systematically analyzing the impact of cross-modal distribution shifts on identity discrimination features. By observing the performance of models trained solely on visible light in the infrared domain, the main bottleneck caused by the modal gap is revealed, leading to the introduction of feature decoupling and alignment mechanisms.
Without the need for any infrared annotated data, the model’s robustness and generalization in nighttime surveillance scenarios can be enhanced. This zero-shot adaptive approach greatly lowers the cost of acquiring and annotating infrared data, providing a practical solution for real-world deployments in environments with drastic lighting fluctuations. The schematic of the framework for the proposed strategy is shown in Figure 1.
Figure 1.
Model structural framework.
To obtain illumination-invariant cues, we integrate a Retinex-based reflectance-decoupling module [9] into the framework; detailed implementation is deferred to Section 3.2.
Furthermore, to narrow the semantic gap between spectra, we fuse CLIP [10] image embeddings with DINO [11] self-supervised features—see Section 3.4 and Section 3.5 for the complete fusion scheme.
The non-local attention module, an instance-based weighted part attention (IWPA) module, and a multi-head self-attention mechanism are introduced to further enhance the overall performance. The non-local attention module models global feature dependencies—particularly long-range relationships—thereby alleviating issues such as blurred or missing image details caused by feature degradation. The weighted partial attention module focuses on locally discriminative regions, thereby enhancing recognition accuracy in complex backgrounds and unevenly illuminated scenes. The multi-head self-attention module captures long-range dependencies between cross-modal features, thereby deepening environmental understanding and enhancing scene modeling capabilities. Infrared domain images are more accurately processed by this fusion method, which improves the accuracy and reliability of pedestrian re-identification.
The main contributions of this paper are summarized as follows: By fusing the feature extraction techniques of the DAINet network [12] with CLIP and DINO, along with a multi-level attention mechanism, the proposed method efficiently recognizes and processes subtle features in the infrared domain, significantly improving the accuracy and robustness of the model when handling infrared images.
2. Related Work
2.1. Cross-Modal Pedestrian Re-Identification
The core challenge of cross-modal pedestrian re-identification (RGB-IR Re-ID) lies in mitigating feature distribution shifts caused by spectral response differences between visible and infrared imaging modalities. A typical category of approaches studied involves alignment methods that employ adversarial mechanisms or modality transformations. These methods introduce an image generation module to model modality styles on RGB images, thereby enhancing the model’s ability to adapt to infrared images.
Among existing research, a common approach is the alignment paradigm based on generative adversarial mechanisms or modality shifts. This approach models the modality style of RGB images by introducing an image generation module, thereby enhancing the model’s ability to adapt to infrared images. In AlignGAN [2], an RGB→IR image transformation framework is constructed using a pixel-level generative adversarial network. L1 reconstruction loss and feature-domain identity supervision are jointly employed to achieve dual alignment of image style and semantic features. In TSGAN [13], the teacher–student adversarial structure is further designed. In the training phase, IR images are generated and used to guide the teacher model to learn discriminative features; the student model accomplishes modal invariance learning through feature consistency constraints; and in the inference phase, only the student model is retained, and the computational cost is thus reduced. In DF2AM [14], a two-branch architecture is designed to fuse stylistic transformations and domain adaptation. Visual transformation pathways and shared semantic spaces are explicitly modeled, thereby enhancing the capability to capture modal variations.
Recent work such as TMPA [15] introduces perceptual compensation modules to strengthen modal correspondence, while PMCM [16] proposes a patch-mixed contrastive learning strategy to enhance semantic alignment across modalities and improve discriminative feature representation.
Although these methods can reduce the input modality gap to some extent, they generally rely on paired or pseudo-paired samples. Moreover, the generated images often contain artifacts and structural distortions, which can negatively impact the model’s stability and generalization ability. Although the input modal gap is somewhat reduced by such methods, paired or pseudo-paired samples are still commonly relied upon, and artifacts and structural distortions often accompany the generated images, resulting in compromised model stability and generalization ability.
Another class of mainstream approaches has been focused on feature-level decoupling and modality-invariant representation learning, where multi-branch modeling, attention mechanisms, or structural bootstrapping have been employed, resulting in the synergistic construction of identity-discriminative and modality-invariant properties. In DDAG [17], a two-stream dynamic aggregation network is proposed, and a modal attention gating module is introduced to modulate the fusion ratio of RGB and IR feature pathways. As a result, the discriminative ability across modally shared regions is adaptively enhanced. In both CAJ [18] and NFS [19], a multi-scale sub-regional attention structure is introduced, through which local alignment and global context modeling are implemented, and modal consistency is thereby enhanced, especially in scenes with weak textures and complex backgrounds in IR images. In MAUM [20], a multimodal fusion strategy is employed, in which cross-modal feature interactions are combined with discriminative attention weighting mechanisms, thereby realizing inter-modal semantic alignment and structural guidance.
More recently, Xue and Deng (2024) [21] proposed a position-based graph attention network (PGAN), which leverages positional dependencies to enhance local discriminative feature fusion across visible and infrared modalities. Zhao et al. (2022) [22] introduced a spatial-channel enhanced transformer to jointly capture spatial and channel-wise dependencies, thereby improving representation robustness under complex thermal imaging conditions.
Although stronger adaptability and robustness in feature space modeling are demonstrated by the above methods, the involvement of target-domain infrared images (even without labels) in training is still required by most approaches, and thus obstacles to application under strict zero-shot conditions remain. Therefore, how effective cross-modal alignment can be achieved without any access to infrared images is still regarded as a key issue in current research in this field.
2.2. Zero-Shot Domain Adaptation
Domain invariant representations are employed to enable knowledge transfer from the source domain to the target domain, particularly when annotation data in the target domain are limited or unavailable. At its core, domain invariant representations are constructed by employing multiple strategies to minimize differences in feature distributions across domains.
Unsupervised Domain Adaptation (UDA) methods have been widely adopted as mainstream techniques in domain adaptation research. The main methods are composed of adversarial learning [23], self-training [24], entropy minimization [25], and generation-based adaptation [26]. Effective knowledge migration is achieved by these methods through the reduction of domain differences at the input, feature, or output levels. Samples that match the distribution of the target domain are often generated by generative models, such as Coupled Generative Adversarial Networks (CoGAN) [27] and Variational Auto-Encoders (VAE) [28], in order to improve the adaptation of the source-domain model to the target domain. However, the effectiveness of these methods is limited under strict zero-shot settings, as reliance on labeled data or pseudo-labels in the target domain is still required to some extent.
To address these limitations, recent studies have explored more generalizable and label-free domain adaptation techniques that eliminate the need for target-domain supervision. For instance, Yang et al. [29] introduced a shallow–deep collaborative feature disentanglement framework that leverages cross-layer contrastive learning to improve domain-invariant representation learning. Lu et al. [30] proposed a progressive modality-shared transformer architecture that enables effective multi-modal fusion and alignment without access to target labels.
In the field of cross-domain learning, extensive studies have been conducted on domain transfer learning, which is mainly categorized into domain adaptation (DA) and domain generalization (DG). Domain Adaptation (DA) methods are typically trained on well-lit source domains, after which the models are adapted to the data distribution of the target domain through techniques such as feature alignment. Representative methods have been proposed, including the synthesis of target domain scene images [31,32], the application of self-supervised learning for aligning well-lit and target domain distributions [33], the combination of source and target domain features [23,24,25], and the adoption of multi-stage strategies [34,35,36]. In contrast, the domain generalization (DG) approach is designed to enable a model to generalize to unknown domains without any access to knowledge from the target domain [37].
A special type of domain adaptation problem has been addressed by zero-shot infrared domain adaptation, where the target domain is known to be an infrared scene despite the inaccessibility of its infrared data. The achievement of effective cross-modal adaptation without access to target domain data are regarded as a critical challenge in pedestrian re-identification tasks, owing to the significant illumination and environmental discrepancies between the source and target domains.
3. Methods
The modeling framework is proposed as a modular architecture, designed to efficiently address cross-modal data analysis tasks, particularly focusing on cross-modal feature alignment and transformation between the visible and infrared domains. The pseudo-image generation module is designed to generate images matching the features of the target modality, and feature learning and fusion are employed across modalities to enhance robustness and accuracy in cross-modal recognition tasks.
A number of modules are incorporated into the framework, as shown in Figure 1. The visible light image and its corresponding synthetic auxiliary light image are input into the framework. The pre-trained Retinex decomposition network was frozen during training and was used only to infer the reflectance pseudo-labels and illumination pseudo-labels , which were then employed to supervise the reflectance decoder. Specifically, the illumination pseudo-label and the first-round reflectance prediction are passed to the exchange–recomposition–consistency module on the right side to reconstruct and recompose the second-round reflectance prediction , and the re-decomposition consistency loss is computed.
The input image is first processed by physical methods to generate an auxiliary illumination image for enhancement. The detector backbone network is divided into two stages: the front stage is used to extract low-level illumination-invariant features shared by the reflectance decoder and the detection task; the full backbone is then used to further extract high-level features, thereby improving target detection performance. Meanwhile, the mutual feature alignment loss is used to align features. Specific types of features are extracted by the CLIP and DINO models. Reflectance features are fed into the reflectance decoder to reconstruct the reflectance image , and the reflectance loss as well as the re-decomposition consistency loss are calculated accordingly. The first round of predictions is used for exchange processing, and the second round of predictions is generated during the re-decomposition process, with the re-decomposition consistency loss also computed. Eventually, the task-specific prediction module is employed for the final task output.
To enhance the feature extraction and fusion capabilities of the model under light-constrained environments, multiple attention mechanism modules are introduced, including the nonlocal attention mechanism, the weighted partial attention mechanism, and the multi-head self-attention mechanism. Model performance is thus improved in three aspects: global dependency modeling, local feature enhancement, and cross-modal relationship modeling, respectively.
3.1. Image Generation Module
Although grayscale images and infrared images differ in visual appearance, certain similarities between them have been observed, enabling grayscale images to be employed as auxiliary data for infrared image testing in image processing and computer vision tasks. First, the grayscale image is generated through a weighted linear combination of the pixel values from the three RGB channels, whereby luminance information related to human visual perception—particularly edge and texture features—is preserved. Infrared images are primarily produced through thermal radiography, in which the temperature differences in objects are captured and subsequently converted into grayscale values. Despite the difference in imaging principles, a similar dependence on luminance information and image structural features has been recognized in both types of images, particularly in tasks such as target detection and pedestrian re-identification, where this structural similarity has been utilized in cross-modal learning. The structural information (e.g., edges and texture) in the grayscale image is mapped to the infrared image, allowing effective testing of the model to be supported in the absence of labeling data in the target domain. In addition, the generation of a grayscale image is accomplished by converting an RGB image into a single-channel representation. The representation of the image is simplified, and the computational burden is reduced, while important structural features relevant to the visual task are preserved. Since both grayscale and infrared images are usually in single-channel form, a consistency in data structure has been identified, which enables grayscale images to be used as simplified representations for testing infrared images, especially under zero-shot conditions. The model, having been trained on the source domain (grayscale images), is subsequently applied to the target domain (infrared images) for testing. Through the achievement of cross-modal feature sharing and mapping, the generalization capability and adaptability of the model are effectively enhanced. Overall, despite the differences in information source and presentation between grayscale and infrared images, the similarity in luminance features and structural features has been demonstrated. Grayscale images are thus effectively employed for testing infrared images, especially under zero-shot learning conditions.
The tasks of target detection and pedestrian re-identification in infrared images have been realized through cross-modal learning and feature sharing. Through cross-modal learning and feature sharing, the tasks of target detection and pedestrian re-identification in infrared images have been successfully realized. The generation of grayscale images in this study is designed using a classical method based on weighted averaging. The grayscale value of each pixel is obtained by applying a weighted average to the pixel values of the three RGB channels, where the weighting coefficients are those recommended by the International Telecommunication Union (ITU-R) standard BT.601. The weights of the red, green, and blue channels were set to 0.2989, 0.5870, and 0.1140, respectively, based on the sensitivity of the human eye to different color spectra, since the human eye is most sensitive to green light, which is why the green channel was assigned the highest weight, whereas the red and blue channels were assigned smaller weights. The luminance information in the image is effectively retained by this weighted averaging method, while the color information is ignored. From the input RGB image, the pixel values of each channel are extracted and weighted according to the corresponding weighting factors, so that a single-channel grayscale image is generated. The grayscale values are copied into the red, green, and blue channels so that a three-channel pseudo-RGB grayscale image is produced. The method not only allows the computational burden to be reduced and the processing speed to be increased, but also ensures that structural features such as edges and textures in the image are preserved. Therefore, the method is considered to be effective in image preprocessing tasks, especially for pedestrian re-identification tasks. Although the method performs well in most applications, particularly those relying on structural information, its limitations have been identified in certain tasks that depend heavily on color information (e.g., traffic sign recognition). Under extreme lighting conditions, the method may need to be combined with other strategies to further optimize performance.
3.2. Lighting Invariance Enhancement
The image is decomposed into reflectance and illuminance by the product relation, i.e.,
according to Retinex theory [9]. Illuminance is considered to have an effect on the visibility of the image, while reflectance is kept relatively constant and is not changed with variations in illumination.
In the Zero Sample Domain Adaptive (ZSDA) target detection task, reflectance is regarded as a light-invariant feature representation, which is considered to be essential for the construction of robust light-invariant detectors. In order to enhance the adaptability of the detector in infrared domain environments, a reflectance characterization learning module has been introduced into the model to extract light-invariant features and to enhance detection performance. At the front end of the detector’s backbone network, shallow information is encoded, and a branching structure is connected to a reflectance decoder to further optimize the reflectance representation. To ensure the stability of decoder training, a pre-trained Retinex network is employed to provide pseudo-truth information on reflectance and illuminance, whereby light-invariant features are efficiently learned by the model under changing conditions in the infrared domain. As a result, the robustness and generalization ability of the detector are considered to be enhanced by this method.
To enhance the illumination invariance of the detector, an illumination invariance enhancement scheme is employed, through which this objective is accomplished at the feature level. In order to learn illumination-invariant feature representations from , the output features , which are extracted and fed into the reflectance decoder, are required to remain consistent between well-illuminated and pseudo-infrared images. To this end, the Mutual Feature Alignment Loss (MFL) is adopted, by which the features of well-lit images and light-constrained images are explicitly aligned through bidirectional matching, formulated as:
where denotes the Kullback–Leibler divergence, and the features and , which are extracted from , are flattened and spatially averaged before being used to compute this loss. The Kullback–Leibler divergence, , is then calculated between the feature distributions from the visible and infrared domains. This divergence measures the difference between the two feature distributions and is minimized to ensure that the feature representations from both modalities are aligned. The loss term is designed to encourage consistency in feature representations between the visible and infrared images, despite potential differences in illumination and modality.
This loss term is considered to be effective in maintaining feature consistency across different lighting conditions, and the recognition ability of the model in infrared scenarios is thereby enhanced. In the infrared context, the effectiveness of feature extraction is significantly affected by illumination variations and modal differences. By enhancing the consistency of features across different lighting conditions, the model is endowed with better capabilities to cope with the challenges of cross-modal recognition tasks, thereby leading to improved performance in pedestrian re-identification applications.
3.3. Image Reconstruction Module
The reflectance learning of images is further enhanced by employing an image decomposition process suitable for multiple cross-modal tasks, including visible-to-dark and visible-to-infrared image processing. Given a pair of images from different lighting conditions or modalities—a visible image and a pseudo-infrared image—an image decomposition process based on Retinex theory [9] is employed to decompose them into reflectance and illumination components. Given a pair of pseudo-infrared images and visible light images , the images are decomposed into reflectance R and illuminance L components by an image decomposition method based on Retinex theory [9]. Pseudo-infrared images are decomposed into reflectance and illumination , while the visible image is decomposed into reflectance and illumination . Ideally, the reflectance of a pseudo-infrared image and the reflectance of a well-illuminated visible image are considered interchangeable. When combined with their corresponding illumination components and , the images and can be reconstructed separately.
Leveraging this interchangeability, a constraint is introduced to strengthen the learning of image decomposition and reflectance representation. In this process, the reflectance components between the well-lit image and the pseudo-infrared image are first interchanged, and image reconstruction is then performed, i.e.,
Subsequently, the reconstructed images are decomposed again to extract their respective reflectance and illumination components. To learn the illumination-invariant component (i.e., reflectance), the reflectance decoding branch from DAI-Net was applied to the reconstructed images and , from which the reflectance components and were obtained. To ensure consistency between the two decomposition processes, a Re-decomposition Consistency Loss (RCL) is introduced, which is defined as:
Compared to traditional penalized loss, the re-decomposition consistency loss is better able to exploit the reciprocal property of reflectance, thereby significantly improving the stability and accuracy of reflectance representation learning. With this method, reflectance learning in infrared scenes is effectively enhanced, and the overall model performance in cross-modal tasks is improved.
3.4. CLIP (VIT-Based Image Encoder) Framework
CLIP [10] (Contrastive Language–Image Pretraining) is a pre-trained model that pairs images with text through contrastive learning, where feature representations with strong generalization capabilities are learned in a high-dimensional space. The image encoder part of the pre-trained CLIP model, which is designed for extracting features, is integrated into this method to enhance the detector’s performance under different lighting conditions. CLIP’s image encoder, which is designed as a neural network, extracts deep visual features from images.
CLIP’s image encoders, which are pre-trained on large-scale visual datasets, are designed to capture a wide range of visual concepts and object features.
Depending on the specific version of the CLIP model, the backbone architecture of the image encoder is implemented as either a Convolutional Neural Network (CNN) or a Vision Transformer (ViT). In this study, ViT is employed as the main architecture for the image encoder. In the ViT model, a sequence of image patches with positional information is input to the transformer encoder for feature extraction. The significance of each image patch is captured by the self-attention mechanism, where the output is computed as follows. The query (Q), key (K), and value (V) are obtained from the input via linear transformations:
where denotes the dimension of the key (K). Meanwhile, a multi-head attention mechanism is incorporated into the ViT model. In this mechanism, the query (Q), key (K), and value (V) are each projected multiple times, with the dimensional relationship expressed as:
Each projection is computed in parallel across different attention heads, thereby enhancing computational efficiency. Recognition and understanding of image content are achieved through training on large-scale image datasets. Features ranging from simple textures and shapes to complex interactions between scenes and objects can be learned. Integrating the image encoder is employed to streamline the entire training process. Advanced visual features are leveraged to improve detection performance. Enhanced adaptability and detection accuracy are demonstrated in scenes with extreme lighting or significant visual variations. The robustness of the model and the generalization capability of the features are further strengthened.
CLIP (ViT-based image encoder) offers a strong cross-modal foundation for visible–infrared pedestrian re-identification: its large-scale pre-training aligns RGB and IR features and produces robust global representations that remain reliable under extreme lighting. The self-attention mechanism also captures both global context and local dependencies, improving overall feature quality. However, because CLIP (ViT-based image encoder) is optimized for high-level semantics, it is less sensitive to the fine-grained, region-level details needed to distinguish individual pedestrians in low-contrast infrared imagery. Consequently, CLIP (ViT-based image encoder) should be combined with specialized local-feature modules to capture subtle cues and achieve state-of-the-art performance in infrared pedestrian re-identification.
3.5. Feature Extraction Module Based on DINO Pre-Training
In this work, the ViT-Small/16 model, pre-trained using the DINO [11] self-supervised method, is adopted as the visual encoder, with weights sourced from the officially published pre-trained model.
DINO was trained using a teacher–student EMA framework on unlabeled data, in which the parameters of the teacher network were updated through an exponential moving average of those from the student network. Self-supervised feature alignment was achieved by minimizing the Kullback–Leibler (KL) divergence between the output distributions of the teacher and student networks. In our implementation, the DINO encoder was initialized with the officially released pre-trained weights, while the specific loss function used in the DINO method was not applied for further training. Instead, the encoder was solely used as a feature extractor during the training of downstream tasks. A brief review of the core principles and pre-training process of the DINO model will be provided to clarify its function as a feature extractor.
As depicted in Figure 1, the core principle of the DINO model is to employ self-supervised learning to train a student network whose output aligns with that of a teacher network. Teacher networks are generated by applying an exponential moving average (EMA) over the parameters of student networks. In the DINO model, the outputs of the teacher and student networks are represented as softmax normalized probability distributions.
The output probability distributions of the teacher network are given by:
The output probability distributions of the student network are given by:
where denotes the temperature parameter of the student network output, and denotes the temperature parameter of the teacher network output. The temperature parameter is defined as a hyperparameter that controls the distribution of the output of the softmax function, which is commonly used for tasks such as comparison learning and knowledge distillation. The degree of sharpening of the output probability distribution is moderated by it, affecting the smoothness of the distribution. A lower temperature parameter leads to increased sharpening of the distribution, whereas a higher temperature parameter results in increased smoothing. The loss function is defined as:
In this way, the output of the student network is progressively aligned with that of the teacher network. Thus, high-quality feature representations are learned. Specifically, the DINO model is trained using unlabeled image data. High-quality features exhibiting strong cross-domain consistency are obtained, and the model’s generalization ability is thus significantly enhanced.
In this work, DINO is employed to extract features from unlabeled images, yielding representations with strong cross-domain consistency that improve overall model generalization. DINO excels at capturing fine-grained, illumination-aware details, but—used in isolation—it lacks explicit global semantic alignment and does not perform domain-specific tuning for tasks such as infrared pedestrian re-identification. Consequently, the local features learned by DINO may remain partially misaligned across modalities (e.g., visible versus infrared), limiting its cross-modal effectiveness.
When combined with CLIP (ViT-based image encoder), the two modules complement each other: DINO supplies detailed, locally discriminative cues, while CLIP contributes robust global semantics and cross-modal alignment. Their synergy yields richer, more balanced representations, markedly enhancing performance on challenging tasks such as visible–infrared pedestrian re-identification.
In summary, although DINO’s self-supervised learning provides strong fine-grained features, its lack of global context and modality alignment underscores the value of integrating it with techniques like CLIP that focus on global semantics. Such integration significantly boosts overall accuracy in complex infrared re-identification scenarios.
3.6. Attention Mechanism Module
3.6.1. Non-Local Attention
The non-local attention module is defined as a mechanism that enhances feature expressiveness by leveraging global contextual information. Unlike conventional convolutional operations that are limited to local receptive fields, feature representations with a global field of view are generated by the non-local attention mechanism through computing the correlations between all positions in the input feature map, as shown in Figure 2. The mechanism was initially applied to tasks such as image recognition, object detection, and semantic segmentation. Subsequently, its application scope was extended to areas including multimodal feature fusion. The limitations of local operations are directly overcome by non-local attention mechanisms, and the network’s ability to model long-range dependencies is synchronized and enhanced. The core formulation is as follows:
where the input feature map is denoted as ; the output feature generated by the non-local operation is denoted as ; the function defines the relationship between position iii and position ; the representation of the feature at position is denoted as ; and the normalization factor ensures consistency in the output value range. The dot-product form of the relation function is adopted in the module implemented in this paper. Specifically, measures the similarity between the features at positions and by computing the dot product of their feature vectors. The output feature at position is computed as a weighted sum of the features at all positions , with weights determined by the similarity between positions and . The normalization factor ensures that the resulting feature values remain within a consistent range, preventing the output from becoming overly large or small due to the sum of all contributions. Through this formulation, the correlations between different positions in the input feature map are computed. The similarity between position and position is measured by the following equation:
Figure 2.
Non-local attention.
The dot product results are normalized by dividing them by the number of positions , as implemented in the module. The final computational form is expressed as:
In the zero-shot infrared domain adaptive pedestrian re-identification task, the shallow convolutional stage of the backbone network was selected as the insertion point. Similarly, the deeper convolutional stage was also inserted. This strengthens the long-range correlation of shallow localized features. This targeted arrangement effectively compensates for the limitations of local modeling in network architectures. A solid foundation is thereby established for subsequent feature fusion and the improvement of task performance.
3.6.2. Instance-Based Weighted Part Attention
The Instance-based Weighted Part Attention (IWPA) module is defined as a mechanism that enhances feature expressiveness by dynamically assigning weights within local regions. Unlike traditional uniform feature pooling approaches, adaptive weights are assigned to local regions based on individual instances. The model focuses on critical local features. The details and context of objects are captured with greater accuracy. This mechanism offers significant advantages in enhancing the expressiveness of local features. It was initially widely applied in fine-grained image recognition tasks, such as pedestrian re-identification and vehicle recognition. Subsequently, its application scope was extended to multimodal tasks and feature extraction in complex scenes.
After base feature extraction is completed, global average pooling is applied to the features. High-level semantic information is retained by the pooled features. The Instance-based Weighted Part Attention (IWPA) module is subsequently deployed after global pooling. The pooled features are dynamically adjusted through a weighting mechanism, whereby local critical regions are emphasized by the model, leading to improved feature discriminability. As shown in Figure 3, the input to the IWPA module is the globally pooled feature vector obtained after applying GAP to the last residual block’s feature map. This pooled feature vector, denoted as , contains the high-level semantic information that will be used to compute part-specific features, where is the batch size and is the number of feature channels.
Figure 3.
Instance-based weighted part attention.
To obtain part features, the pooled feature vector is partitioned into non-overlapping parts along the channel dimension (where is the number of equally divided local parts). Each part is denoted as , where and each represents the local descriptor of the i-th part for all samples in the batch. Each part feature is then passed through three separate 1 × 1 convolution layers to produce the query, key, and value representations:
where , , and are learnable projection matrices. These branches embed each part feature into distinct subspaces suitable for attention computation.
Subsequently, the pairwise relationships between parts are modeled via intra-modality non-local attention. The attention weight from part i to part j is computed as:
where is the normalized attention score indicating how much part attends to part , and is full attention matrix between all parts. The exponential function enhances strong associations, while softmax ensures .
Once the attention weights are obtained, the attention-enhanced part representation is calculated as:
here, is a context-aware representation for part i, formed by aggregating all other parts’ value vectors according to their attention scores. This step enables each part to gather information from related parts, enhancing local feature richness and suppressing irrelevant noise.
To produce the final fused representation, IWPA adopts a Residual Batch Normalization (RBN) mechanism. First, the original GAP feature is batch-normalized:
Then, the output of the IWPA module is computed as a weighted sum of all attention-enhanced part features and added to the normalized global feature:
where is the final output of the IWPA module, is the learnable weight for part i normalized via softmax (), and is the attention-enhanced part feature.
This residual formulation encourages stable gradient flow and better feature calibration. The RBN fusion strategy balances global semantic context (from GAP) and fine-grained local patterns (from attention), improving the model’s discriminability and robustness against irrelevant or noisy regions.
3.6.3. Multi-Head Self-Attention
Multi-headed Self-Attention (MHSA) is defined as a mechanism that enhances feature representation by performing self-attention computations concurrently across multiple subspaces, as shown in Figure 4. Unlike the traditional single self-attention mechanism, MHSA allows more information to be captured across different feature dimensions by introducing self-attention computations within multiple representation subspaces. Different aspects of the input features are attended to separately by each head. The information is ultimately fused to enhance the model’s capability in capturing complex features and relationships. The mechanism is widely employed in fields such as natural language processing and computer vision. Significant advantages are demonstrated by MHSA in multimodal tasks and feature extraction for complex scenes.
Figure 4.
Multi-head self-attention.
In MHSA, the input image features are first mapped into the query (Q), key (K), and value (V) matrices through linear transformations. These matrices are subsequently projected into different subspaces. Within each subspace, two-dimensional relative position encoding is incorporated to perform self-attention computations. The attention maps are generated by considering both the pixel content and its spatial relationships with neighboring pixels. Information from all subspaces is then integrated through the multi-head mechanism. Consequently, the feature representation capability of the model is significantly enhanced. The self-attention transformation and multi-attention computation process are as follows:
where P is denoted as the relative position matrix, is used as the scaling factor for similarity, and W0 represents the weights of the final fully connected layer.
In the modeling framework of this paper, the MHSA module is primarily applied during the cross-modal feature fusion phase. During the process of cross-modal feature alignment and fusion, self-attention computations are performed on features from different modalities (e.g., visual features, CLIP features, and DINO features) by the MHSA module. Different relative importance is assigned to features from each modality through dynamically adjusted weights. As a result, the feature alignment is improved, and the representation of the fused features is enhanced.
3.7. Loss Function Design
To optimize the model’s training process and enhance its generalization capability in the target domain, multiple loss terms are jointly optimized. This enables the model to more effectively learn illumination-invariant features in cross-modal tasks and improves its adaptability in zero-shot learning scenarios. The overall loss function is defined as follows:
where the image decomposition loss function can be expressed as:
The reflectance learning loss is composed of multiple image quality and structural similarity metrics, including the Mean Absolute Error (MAE) and the Structural Similarity Index Measure (SSIM).
The Mean Absolute Error (MAE) quantifies the pixel-wise bias in the reflectance estimation, whereas the Structural Similarity Index Measure (SSIM) evaluates the structural consistency between the predicted and reference reflectance maps. The loss function for reflectance learning is denoted as where MAE is the Mean Absolute Error and SSIM is the Structural Similarity Index Measure. In practice, is implemented in the form of or , depending on the specific training strategy. The image reconstruction loss is designed to ensure that the decomposed reflectance and illumination components can accurately reconstruct the input image, thereby preserving overall visual consistency. It is calculated as follows:
The lighting smoothing loss is employed to enforce smoothness in the illumination component, thereby reducing noise interference and ensuring a more homogeneous illumination representation. It is computed as follows:
Furthermore, the robustness of reflectance representation is enhanced by the invariant reflectance loss through enforcing consistency between the reflectance components of paired input images.
The cross-entropy loss is computed as the identity loss , which enables the model to learn class-specific features while reducing reliance on color information and increasing inter-class separability. The identity loss can be expressed as follows:
Here, denotes the batch size, i.e., the number of samples processed simultaneously in one iteration. denotes the number of divided local features, referring to how many parts the image is split into for feature extraction. The term represents the true label for the -th local feature of the -th visible image, corresponding to the ground-truth class (pedestrian identity) for that feature. Similarly, is the true label for the -th local feature of the -th auxiliary image (e.g., grayscale or infrared), where the class label represents the identity in the auxiliary modality. On the prediction side, and denote the softmax probabilities that the -th local feature of the -th image is correctly classified as the true pedestrian identity in the visible and auxiliary modalities, respectively. These terms together define the cross-entropy loss in Equation (27), which averages over all images and local parts to evaluate classification accuracy for both modalities at the local-feature level, thereby ensuring consistent and joint supervision.
The outlier loss function is computed using the local features corresponding to both the visible and grayscale images. The dissimilarity loss function improves cross-modal feature consistency within the same category by minimizing the distance between the feature centers of different modalities belonging to that category. The dissimilarity loss function is calculated as:
where denotes the number of pedestrian identities in each batch, denotes the visible image local feature center of class , and denotes the grayscale image local feature center of class . The calculation of the two modal feature centers can be expressed as:
where denotes the number of images in each batch for each class, denotes the number of divided local features, denotes the -th local feature of the visible image in class , and denotes the -th local feature of the grayscale image in class .
4. Experiment
The pedestrian re-identification task in infrared domain scenarios is focused on in this section, and the performance of the proposed method in zero-shot infrared domain adaptation scenarios is evaluated in detail.
4.1. Datasets and Evaluation Indicators
Datasets
The experiments presented in this paper were conducted on two publicly available datasets, SYSU-MM01 and RegDB, which are widely used in the field of visible–infrared cross-modal pedestrian re-identification.
- (1)
- The SYSU-MM01 dataset
The SYSU-MM01 dataset was proposed by Wu et al. [7]. It was established as the first large-scale dataset dedicated to cross-modal pedestrian re-identification. It is also recognized as one of the largest publicly available datasets in this field. A total of 491 pedestrians were included in the dataset. In total, 303,420 images were captured using two infrared cameras and four visible light cameras. Both indoor and outdoor lighting conditions were covered. The challenge of pedestrian re-identification in real-world application scenarios was more realistically simulated. The image acquisition process of SYSU-MM01 was influenced by multiple factors, including camera viewing angles, lighting variations, and object occlusion. Cameras 1 and 2 (visible light) and camera 3 (infrared) were deployed in indoor environments. Cameras 4 and 5 (visible light) and camera #6 (infrared) were placed in outdoor scenes. Data from different modalities were used for comparative analysis. Significant differences between visible and infrared images were observed in terms of color, clothing texture, and other visual characteristics. More diverse feature challenges for cross-modal pedestrian re-identification are provided by these differences. Sample pedestrian images from the SYSU-MM01 dataset are shown in Figure 5.
Figure 5.
Example of SYSU-MM01 dataset.
- (2)
- The RegDB dataset
The RegDB dataset [8] was constructed as a bispectrality benchmark library for cross-modal pedestrian re-identification tasks. Visible (RGB) and thermal (infrared) modality data were simultaneously acquired to ensure alignment between different modalities. This dataset provides experimental support for studies on cross-modal feature decoupling and alignment. A total of 412 pedestrian identities were included in the RegDB dataset. For each identity, 10 pairs of RGB and IR images were captured under strictly aligned viewpoints and identical environmental conditions, resulting in a total of 8240 images—comprising 4120 RGB images and 4120 IR images. Complete synchronization of spatial viewpoints, pedestrian poses, and environmental conditions between visible and infrared images is illustrated in Figure 5. Matching difficulties typically encountered in traditional cross-modal retrieval tasks, such as view angle shift and pose variation, were effectively reduced. Compared with the SYSU-MM01 dataset, RegDB adopted a synchronized acquisition mechanism to ensure a high degree of temporal and spatial consistency between cross-modal data. Potential alignment errors caused by changes in viewpoint, posture, or motion were avoided. However, coverage of diverse real-world conditions—such as varying illumination or complex occlusions—is relatively limited in this dataset. As a result, certain limitations exist in evaluating pedestrian recognition performance under highly complex environments. Nevertheless, the strengths of the RegDB dataset lie in its focused evaluation of pedestrian re-identification between infrared and visible light modalities. A robust benchmark for cross-modal pedestrian re-identification research is provided by it. Although diversity is limited, the dataset includes sufficient variation in illumination and background scenes to support robustness and generalization analysis under cross-modal conditions. Sample pedestrian images from the RegDB dataset are shown in Figure 6, where each infrared image (top) is strictly aligned with its RGB counterpart (bottom), illustrating the modality consistency guaranteed during data acquisition.
Figure 6.
Example of RegDB dataset.
4.2. Evaluation Indicators
In this study, mean Average Precision (mAP) was employed as the primary metric for evaluating the performance of the proposed model. In addition, the Cumulative Match Characteristic (CMC) metric was utilized to further assess retrieval effectiveness. The use of mAP was reaffirmed due to its effectiveness in capturing both precision and recall in retrieval tasks.
To address limitations of existing metrics, the newly proposed Mean Inverse Negative Penalty (mINP) was also introduced. These evaluation metrics collectively provided a comprehensive assessment of the model’s retrieval performance.
The CMC curve represents the recognition accuracy at different Rank-n levels. During cross-modal pedestrian re-identification testing, similarity scores were computed based on the feature distances between each query image and all images in the gallery set. The retrieval results were ranked in descending order of similarity scores.
Rank-n is defined as the average probability that the correct identity of the target pedestrian appears within the top-n retrieved results. This metric reflects the model’s capability to correctly match target pedestrians within the top-ranked candidates. Higher Rank-n values indicate stronger recognition performance in distinguishing among pedestrian identities.
However, existing metrics, such as CMC and mAP, have been identified as ineffective in evaluating the model’s ability to retrieve hard-to-match instances. To address this, He et al. [38]. proposed the Inverse Negative Penalty (INP) as a supplementary evaluation criterion. This metric quantifies the model’s retrieval performance specifically in the most challenging matching scenarios, thereby offering deeper insights into its robustness. The process of computing the Inverse Negative Penalty (INP) is defined by Equation (30):
where denotes the ranked position of the hardest correct match for a given query image.
The total number of correct matches for the query image in the gallery set is denoted as . A higher INP value indicates better performance of the model in retrieving the most challenging matches.
The INP is calculated for each image in the query set, and the mean inverse negative penalty (mINP) is subsequently obtained by averaging these values across all queries. The calculation of mINP is expressed by Equation:
where M represents the total number of query images, and IN denotes the inverse negative penalty associated with the j-th query.
4.3. Ablation Experiment
Experiments were conducted on the SYSU-MM01 dataset to evaluate the effectiveness of three key components of the proposed framework. Specifically, the CLIP (ViT-based image encoder) module, the pre-trained DINO feature extraction module, and the multi-level attention mechanism module were individually assessed. The goal of these experiments was to validate the contributions of each component to the overall performance of the proposed algorithm. The corresponding results are summarized in Table 1.
Table 1.
Results of ablation experiments on the SYSU-MM01 dataset.
Compared to using only the baseline network, significant performance improvements were observed when the CLIP (ViT-based image encoder) and pre-trained DINO modules were integrated into the feature extraction backbone. Under the single-shot setting, Rank-1 accuracy increased from 34.29% to 35.06%, and mAP improved from 32.97% to 34.13%, resulting in a gain of 1.16%. Under the multi-shot setting, Rank-1 increased from 30.98% to 32.54%, and mAP rose from 30.04% to 31.39%, representing gains of 1.56% and 1.35%, respectively. The performance difference can be attributed to the following factors:
In the single-shot setting (SS), the model relies solely on the features of a single image for identity verification. This enables the model to focus more effectively on feature extraction and fusion, particularly when the feature extraction quality is high. The CLIP (ViT-based image encoder) and DINO modules can more accurately capture both global semantics and local detail features, making the model more sensitive to the alignment and fusion of cross-modal features, which results in better performance in SS.
In contrast, in the multi-shot setting (MSS), the model uses multiple images for identity verification, introducing greater sample variability such as changes in pose, background, and environmental factors. This increased sample diversity makes it more challenging for the model to effectively fuse features across different images, potentially leading to less precise feature representations and decreased performance. While MSS theoretically provides more information, the increased variability and noise between samples add complexity, affecting the stability of the performance.
Additionally, feature fusion and domain shifts play an important role in MSS performance. In MSS, sample diversity introduces background interference and noise, especially when domain shifts occur (e.g., from visible to infrared images). Although MSS utilizes more data, the inclusion of irrelevant or noisy features can degrade performance. In contrast, SS, relying on a single image, is more focused on extracting high-quality, relevant features, thus making it more robust when facing these challenges.
Further improvements were achieved by incorporating the multi-level attention mechanism into the network. Compared to the version using only CLIP and DINO, the single-shot Rank-1 improved from 35.06% to 37.97%, and mAP increased from 34.13% to 37.25%. Under the multi-shot setting, Rank-1 increased from 32.54% to 34.96%, and mAP rose from 31.39% to 34.14%. These enhancements demonstrate the significant contribution of the multi-level attention module to model performance. By modeling long-range dependencies, employing parallel multi-head attention, and applying weighted emphasis to local key regions, this module enables deeper feature exploration and refinement from multiple perspectives. As a result, the model becomes more robust to local disturbances caused by domain shifts and is better equipped to preserve global semantic consistency and local discriminative details in complex scenarios such as frequent domain alternations or cluttered backgrounds.
4.4. Comparative Experiment
Under the all-search mode of the SYSU-MM01 dataset, comparative experiments were designed to evaluate the performance of the proposed zero-shot domain adaptation method when integrated with mainstream pedestrian re-identification frameworks. The experimental results are summarized in Table 2 to analyze the adaptability of the proposed method across different frameworks.
Table 2.
Comparative experimental results of the SYSU-MM01 dataset.
To further verify the effectiveness of the algorithm, additional comparative experiments were conducted on the RegDB dataset. The results of these experiments are presented in Table 3.
Table 3.
Comparative experimental results of the RegDB dataset.
In Table 2, the proposed zero-shot domain adaptation method was individually incorporated into several pedestrian re-identification frameworks and systematically evaluated on the SYSU-MM01 dataset. Under the single-shot setting, the proposed method achieved notable performance in key evaluation metrics, reaching 37.97% in Rank-1 accuracy and 37.25% in mean Average Precision (mAP). Under the multi-shot setting, the Rank-1 and mAP scores reached 46.78% and 46.13%, respectively. These results indicate that the proposed method consistently improves performance across various pedestrian re-identification frameworks. Compared to the CAJ framework, the Rank-1 accuracy under the single-shot setting increased from 34.89% to 37.97%, marking a 3.08% improvement. On the Rank-20 metric, the performance improved from 49.25% to 52.73%, with a gain of 3.48%.
Table 3 presents the comparative experimental results of various cross-modal pedestrian re-identification methods on the RegDB dataset. As shown in the table, the proposed method achieves high performance on key evaluation metrics such as Rank-1 and mAP. These results confirm the method’s strong adaptability in infrared–visible (IR-Vis) cross-modal retrieval tasks. Compared to the NFS framework, the proposed method improves the Rank-10 accuracy from 47.69% to 48.98%, reflecting an increase of 1.29%. These experimental findings indicate that the zero-shot domain adaptation method consistently maintains high retrieval performance across multiple pedestrian re-identification frameworks. The proposed approach demonstrates both robustness and broad transferability across different network architectures. It is worth noting that the objective of this experiment is not to prove the absolute superiority of a single method, but rather to validate the generalization capability of the proposed module through integration into different frameworks. The comprehensive results confirm that the zero-shot domain adaptation method proposed in this paper exhibits strong adaptability and stability across various pedestrian re-identification frameworks. Furthermore, it significantly enhances cross-modal pedestrian retrieval performance. These findings further demonstrate the wide applicability and generalization capability of the proposed method under diverse network architectures.
4.5. Visualize Results
Figure 7 presents the visualized retrieval results of the proposed framework on the SYSU-MM01 dataset. In the figure, incorrectly retrieved images are highlighted with red bounding boxes, while correctly retrieved ones are indicated with green bounding boxes. From the visualization, it can be observed that the model’s recognition performance is still influenced by several factors in real-world scenarios.
Figure 7.
Visualization of SYSU-MM01 dataset retrieval results.
Postural variations are also recognized as a significant factor affecting recognition accuracy. When a pedestrian’s angle, body posture, or facial expression changes, the corresponding features in infrared images may become less visible. The model is presented with greater challenges in accurately extracting discriminative features from infrared inputs due to this decreased visibility, thereby increasing the difficulty of the retrieval task.
These challenges highlight the necessity for future research to focus on enhancing cross-domain feature alignment, particularly between the infrared and visible modalities. Moreover, improving the model’s robustness to occlusion and pose variation is crucial for practical deployment.
To address these issues, more advanced image preprocessing techniques—such as domain adaptation—should be considered to mitigate modality gaps. In addition, architectural improvements should be explored to further boost the model’s cross-domain generalization capability. Enhancing recognition performance in complex environments is another important direction.
Incorporating training samples that feature occluded pedestrians or varying poses may also help improve the model’s robustness and generalization in real-world applications. Ultimately, the introduction of more diverse and challenging training data is expected to lead to more reliable and adaptable recognition systems.
5. Conclusions
In this chapter, a novel zero-shot infrared domain adaptation framework for pedestrian re-identification is proposed. Cross-domain adaptation is achieved without the need for labeled data in the target domain by leveraging multimodal feature fusion and physics-inspired degradation modeling. Building upon the general framework introduced in Chapter 3, significant improvements have been incorporated into both the image generation module and the loss functions. Specifically, an auxiliary image generation strategy based on weighted averaging is employed, while, for more effective adaptation to infrared pedestrian re-identification tasks, identity loss and heterogeneity loss functions are introduced.
To further verify the generalization capability of the proposed algorithm, it was integrated into three mainstream pedestrian re-identification frameworks (DDAG, CAJ, and NFS), and cross-framework comparison experiments were conducted. The experimental results demonstrate that, under the single-shot setting of the SYSU-MM01 dataset, the proposed algorithm achieves a Rank-1 accuracy of 37.97% and an mAP of 37.25%.
In contrast, the Rank-1 and mAP values for DDAG, CAJ, and NFS are (27.93%, 26.54%), (34.89%, 34.07%), and (29.45%, 26.93%), respectively. On the RegDB dataset, the proposed method achieves a Rank-1 of 44.53% and an mAP of 42.26%, while DDAG, CAJ, and NFS achieve (35.09%, 32.44%), (34.07%, 34.07%), and (40.35%, 36.10%), respectively. These results clearly demonstrate that the proposed zero-shot domain adaptation algorithm maintains strong generalization ability and performance stability across different pedestrian re-identification frameworks. The proposed zero-shot domain adaptation method performs well in pedestrian re-identification tasks without labeled infrared data, providing a practical solution for real-world applications, especially in cases where obtaining labeled infrared data is challenging. By combining various advanced techniques such as feature fusion and multi-level attention mechanisms, the model’s ability to align cross-modal features is enhanced, particularly in the absence of target domain labels. This cross-framework generalization capability demonstrates the scalability of the method, and its potential in various re-identification tasks is further validated, especially in security monitoring and surveillance applications.
Despite the significant progress made in this study, there are still some limitations that warrant further exploration in future research. Firstly, although the method does not require access to infrared data during training, its performance may still be affected when facing extreme domain shifts in real-world applications (e.g., weather changes, occlusion, or motion blur). These factors can significantly reduce the model’s robustness, and further research is needed to maintain high recognition accuracy in the face of these challenges. Secondly, the current framework relies on fixed fusion and loss weighting strategies, which may not be optimal for different datasets or camera conditions. Therefore, future work will focus on developing more flexible adaptive mechanisms that dynamically adjust the fusion and loss weighting strategies based on the characteristics of the target dataset or camera, thereby enhancing the model’s adaptability across various environments. Additionally, to further enhance the model’s generalization ability and scalability, future research will explore a wider range of pretraining modalities. These diverse pretraining modalities will help the model better adapt to different environments and application scenarios, improving its versatility across different domains.
In conclusion, the proposed zero-shot domain adaptation method consistently demonstrates significant performance improvements across multiple mainstream frameworks. Its robust generalization ability in cross-modal domain adaptation, coupled with its practical value, underscores its potential, providing both theoretical support and empirical evidence for future research in related fields.
Author Contributions
Conceptualization, X.Z., Y.L. and H.S.; methodology, X.Z. and H.S.; software, X.Z. and Y.L.; validation, X.Z. and Y.L.; formal analysis, X.Z. and Y.L.; investigation, X.Z.; resources, Y.L.; data curation, X.Z.; writing—original draft preparation, X.Z. and Y.L.; writing—review and editing, X.Z., Y.L. and L.G.; visualization, H.S. and Y.L.; supervision, X.Z.; project administration, X.Z.; funding acquisition, X.Z. and H.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Basic Scientific Research Business Expenses Project for Provincial Undergraduate Universities in Heilongjiang Province in 2024 grant number 2024-KYYWF-0975.
Data Availability Statement
The data supporting the results reported in this article are available from publicly accessible sources: RegDB dataset for training and testing, accessible at https://doi.org/10.57702/m7g81vfk (accessed on 6 June 2025), including annotations for the training and validation sets. SYSU-MM01 dataset for training and testing, accessible at https://doi.org/10.57702/d9r2qmwm (accessed on 6 June 2025).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Ovadia, Y.; Fertig, E.; Ren, J.; Nado, Z.; Sculley, D.; Nowozin, S.; Snoek, J. Can you trust your model’s uncertainty? evaluating predictive uncertainty under dataset shift. Adv. Neural Inf. Process. Syst. 2019, 32. [Google Scholar]
- Wang, G.A.; Zhang, T.; Cheng, J.; Liu, S.; Yang, Y.; Hou, Z. RGB-infrared cross-modality person re-identification via joint pixel and feature alignment. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 3623–3632. [Google Scholar]
- Choi, S.; Lee, S.; Kim, Y.; Kim, T.; Kim, C. Hi-CMD: Hierarchical cross-modality disentanglement for visible-infrared person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 10257–10266. [Google Scholar]
- Bustos, N.; Mashhadi, M.; Lai-Yuen, S.K.; Sarkar, S.; Das, T.K. A systematic literature review on object detection using near infrared and thermal images. Neurocomputing 2023, 560, 126804. [Google Scholar] [CrossRef] [Scilit]
- Fu, C.; Hu, Y.; Wu, X.; Shi, H.; Mei, T.; He, R. CM-NAS: Cross-modality neural architecture search for visible-infrared person re-identification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 11823–11832. [Google Scholar]
- Zhang, D.; Zhang, Z.; Ju, Y.; Wang, C.; Xie, Y.; Qu, Y. Dual mutual learning for cross-modality person re-identification. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 5361–5373. [Google Scholar] [CrossRef] [Scilit]
- Wu, A.; Zheng, W.S.; Yu, H.X.; Gong, S.; Lai, J. RGB-infrared cross-modality person re-identification. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 5380–5389. [Google Scholar]
- Nguyen, D.T.; Gil Hong, H.; Kim, K.W.; Park, K.R. Person recognition system based on a combination of body images from visible light and thermal cameras. Sensors 2017, 17, 605. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wei, C.; Wang, W.; Yang, W.; Liu, J. Deep retinex decomposition for low-light enhancement. arXiv 2018, arXiv:1808.04560. [Google Scholar]
- Radford, A.; Kim, J.W.; Hallacy, C.; Ramesh, A.; Goh, G.; Agarwal, S.; Sutskever, I. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on Machine Learning, Virtual, 18–24 July 2021; pp. 8748–8763. [Google Scholar]
- Caron, M.; Touvron, H.; Misra, I.; Jégou, H.; Mairal, J.; Bojanowski, P.; Joulin, A. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 9650–9660. [Google Scholar]
- Du, Z.; Shi, M.; Deng, J. Boosting object detection with zero-shot day-night domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 12666–12676. [Google Scholar]
- Zhang, Z.; Jiang, S.; Huang, C.; Li, Y.; Da Xu, R.Y. RGB-IR cross-modality person ReID based on teacher-student GAN model. Pattern Recognit. Lett. 2021, 150, 155–161. [Google Scholar] [CrossRef] [Scilit]
- Yin, J.; Ma, Z.; Xie, J.; Nie, S.; Liang, K.; Guo, J. DF^2AM: Dual-level feature fusion and affinity modeling for RGB-infrared cross-modality person re-identification. arXiv 2021, arXiv:2104.00226. [Google Scholar]
- Guo, Y.; Zhang, W.; Jiao, L.; Wang, S.; Wang, S.; Liu, F. Transferring Modality-Aware Pedestrian Attentive Learning for Visible-Infrared Person Re-identification. arXiv 2023, arXiv:2312.07021. [Google Scholar]
- Qian, Z.; Lin, Y.; Du, B. Visible–infrared person re-identification via patch-mixed cross-modality learning. Pattern Recognit. 2025, 157, 110873. [Google Scholar] [CrossRef] [Scilit]
- Ye, M.; Shen, J.J.; Crandall, D.; Shao, L.; Luo, J. Dynamic dual-attentive aggregation learning for visible-infrared person re-identification. In Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020; Springer International Publishing: Cham, Switzerland, 2020. Proceedings, Part XVII 16. pp. 229–247. [Google Scholar]
- Ye, M.; Ruan, W.; Du, B.; Shou, M.Z. Channel augmented joint learning for visible-infrared recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 11–17 October 2021; pp. 13567–13576. [Google Scholar]
- Chen, Y.; Wan, L.; Li, Z.; Jing, Q.; Sun, Z. Neural feature search for RGB-infrared person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 587–597. [Google Scholar]
- Liu, J.; Sun, Y.; Zhu, F.; Pei, H.; Yang, Y.; Li, W. Learning memory-augmented unidirectional metrics for cross-modality person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 19366–19375. [Google Scholar]
- Xue, C.; Deng, Z. PGAN: A Position-based Graph Attention Network for Visible-infrared Person Re-identification. In Proceedings of the 2024 3rd International Conference on Cloud Computing, Big Data Application and Software Engineering (CBASE), Hangzhou, China, 11–13 October 2024; IEEE: New York, NY, USA, 2024; pp. 605–609. [Google Scholar]
- Zhao, J.; Wang, H.; Zhou, Y.; Yao, R.; Chen, S.; El Saddik, A. Spatial-channel enhanced transformer for visible-infrared person re-identification. IEEE Trans. Multimed. 2022, 25, 3668–3680. [Google Scholar] [CrossRef] [Scilit]
- Guo, J.; Deng, J.; Lattas, A.; Zafeiriou, S. Sample and computation redistribution for efficient face detection. arXiv 2021, arXiv:2105.04714. [Google Scholar]
- Vankadari, M.; Garg, S.; Majumder, A.; Kumar, S.; Behera, A. Unsupervised monocular depth estimation for night-time images using adversarial domain feature adaptation. In Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020; Springer International Publishing: Cham, Switzerland, 2020. Proceedings, Part XVII 16. pp. 443–459. [Google Scholar]
- Liu, Y.; Wang, F.; Deng, J.; Zhou, Z.; Sun, B.; Li, H. Mogface: Towards a deeper appreciation on face detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 4093–4102. [Google Scholar]
- Hashmi, K.A.; Kallempudi, G.; Stricker, D.; Afzal, M.Z. Featenhancer: Enhancing hierarchical features for object detection and beyond under low-light vision. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–3 October 2023; pp. 6725–6735. [Google Scholar]
- Liu, M.Y.; Tuzel, O. Coupled generative adversarial networks. Adv. Neural Inf. Process. Syst. 2016, 29. [Google Scholar]
- Wang, Q.; Breckon, T.P. Generalized zero-shot domain adaptation via coupled conditional variational autoencoders. Neural Netw. 2023, 163, 40–52. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yang, B.; Chen, J.; Ye, M. Shallow-deep collaborative learning for unsupervised visible-infrared person re-identification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 16870–16879. [Google Scholar]
- Lu, H.; Zou, X.; Zhang, P. Learning progressive modality-shared transformers for effective visible-infrared person re-identification. In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 18–22 June 2023; Volume 37, pp. 1835–1843. [Google Scholar]
- Cui, Z.; Qi, G.J.; Gu, L.; You, S.; Zhang, Z.; Harada, T. Multitask aet with orthogonal tangent regularity for dark object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada, 10–17 October 2021; pp. 2553–2562. [Google Scholar]
- Gao, H.; Guo, J.; Wang, G.; Zhang, Q. Cross-domain correlation distillation for unsupervised domain adaptation in nighttime semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 9913–9923. [Google Scholar]
- Wang, W.; Yang, W.; Liu, J. Hla-face: Joint high-low adaptation for low light face detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 16195–16204. [Google Scholar]
- Dai, J.; Li, Y.; He, K.; Sun, J. R-fcn: Object detection via region-based fully convolutional networks. Adv. Neural Inf. Process. Syst. 2016, 29. [Google Scholar]
- Deng, X.; Wang, P.; Lian, X.; Newsam, S. NightLab: A dual-level architecture with hardness detection for segmentation at night. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 16938–16948. [Google Scholar]
- Sakaridis, C.; Dai, D.; Gool, L.V. Guided curriculum model adaptation and uncertainty-aware evaluation for semantic nighttime image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 7374–7383. [Google Scholar]
- Du, Z.; Deng, J.; Shi, M. Domain-general crowd counting in unseen scenarios. In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 18–22 June 2023; Volume 37, pp. 561–570. [Google Scholar]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).






