Image making · Research feature

AI Framework Identifies and Corrects Noisy Text-Image Links in Person Re-Identification

A new AI method detects misaligned text-image pairs and uses generated text to improve accuracy in identifying people from descriptions.

Adapted from research by Lian Xiong, Wangdong Li, Huaixin Chen and colleagues.

Journal publication · 2025-11-24 · Attribution & reuse
In this article
Editorial illustration of a color study.

Editor’s introduction

The study focuses on text-to-image person re-identification, where image-text pairs often contain noise due to imprecise or mismatched descriptions. Researchers used a Gaussian mixture model to detect noisy correspondences by analyzing loss distributions from image-text feature embeddings. When noise was identified, a multimodal large language model generated pseudo-texts to replace flawed descriptions, improving cross-modal alignment. The method achieved strong performance on CUHK-PEDES, ICFG-PEDES, and RSTPReid datasets using standard rank-k, mAP, and mINP metrics. Findings indicate that noise-aware training enhances model reliability in real-world scenarios with imperfect annotations.

Introduction

Text-to-image person re-identification (T2I-ReID) aims to retrieve pedestrian images from large galleries based on natural language descriptions. This task plays a vital role in intelligent video surveillance and public security, where a witness or operator may only provide a textual description instead of an image. Despite the growing attention to this field, accurate cross-modal alignment between vision and language remains a challenging problem.

Existing T2I-ReID approaches primarily focus on designing better encoders or cross-modal alignment losses, while the issue of label noise has been largely overlooked. When trained on noisy data, these models tend to overfit spurious correlations and fail to learn robust semantic associations. Therefore, effectively identifying and correcting noisy image–text correspondence is crucial for achieving reliable retrieval performance.

To address this problem, we propose a model for text-to-image person re-identification under noisy environments using pseudo-text generation. Instead of discarding uncertain samples, our model first identifies potential noisy image–text correspondences through a probabilistic model and then regenerates reliable textual descriptions using an MLLM. The refined pseudo-texts preserve valuable training data while improving cross-modal consistency. Finally, we train the model jointly on both clean and pseudo-augmented pairs to achieve robust alignment under noisy supervision. The main contributions can be summarized as follows: We present a novel noise-robust T2I-ReID framework that adaptively identifies and repairs noisy image–text correspondences instead of removing them.We design a Gaussian mixture model (GMM)-based noise identification mechanism combined with a pseudo-text generation module powered by a multimodal large language model, effectively recovering usable samples from noisy data.Extensive experiments on three public benchmark datasets, i.e., CUHK-PEDES, ICFG-PEDES, and RSTPReid, demonstrate the superiority of our method. Additionally, ablation experiments further confirm the effectiveness of each module in our method.

Text-to-Image Person Re-Identification

The main challenge of T2I-ReID is to learn the mapping of visual and textual modalities into a common latent space. Early research usually uses unimodal pre-trained models and attention mechanisms. For example, ResNet-50 or ViT is used as the image encoder and LSTM or BERT is used as the text encoder, and textual and visual features are fed into separate transformer blocks with self-attn and cross-attn independently to enable cross-modal interaction, with various loss functions designed to achieve cross-modal alignment. However, above methods initialize the network through single-modality pre-trained model parameters, ignoring the multi-modal correspondence information. In addition, the image and text embeddings extracted from the above-initialized network over-mine the information within a single modality, which increases the difficulty of cross-modal alignment and network optimization.

In recent years, vision-language pre-training (VLP) has emerged as the prevailing paradigm in learning multimodal representations, demonstrating strong results on downstream tasks such as image captioning, visual question answering, and image–text retrieval. Han et al. pioneered the application of a CLIP model for text-to-image person retrieval, leveraging a momentum contrastive learning framework to transfer knowledge acquired from large-scale generic image–text pairs. CFine adopts the image encoder from CLIP to enhance cross-modal correspondence information, while replacing the text encoder with BERT to mitigate intra-modal information distortion. TP-TPS explores the textual potential of CLIP in text-to-image person re-identification (T2I-ReID) by aligning images with constructed multi-integrity descriptions and attribute prompts. IRRA incorporates an implicit relation reasoning module and introduces a masked language modeling (MLM) mechanism to align fine-grained information across modalities. RaSa introduces two novel loss functions under the ALBEF framework, specifically designed to improve performance in T2I-ReID tasks. Although these methods achieve promising performance, almost all of them implicitly assume that the training image–text pairs are correctly aligned, which is hard to meet in practice due to the ubiquitous noise.

Learning in Noisy Environments

Researchers have also paid attention to the noise problem and proposed relevant solutions. It can be mainly summarized into two approaches. (1) Sample selection: This class of methods usually utilizes the memory effect of the deep neural networks (DNNSs) to progressively differentiate and filter noisy data, but this may require additional computational resources and carry the risk of mistakenly deleting valid data. However, if the proportion of noisy samples is high then the model may not be able to learn effectively, resulting in overfitting the clean data, and the sample selection policy may cause selection bias, which affects the generalization ability of the model. (2) Robust loss functions: This type of approach aims to develop noise-tolerance loss functions to improve the robustness of model training against noisy image–text correspondences. However, the computational overhead of this method increases dramatically when dealing with complex loss functions, affecting the training efficiency, and the loss function is so robust that the model may ignore the useful signals in the data, affecting the performance.

Recently, RDE employs both sample selection and robust loss function to recognize and process noise, and achieves good results in noisy environments. However, for identified noisy image–text pairs, directly discarding them during network parameter updates means that only a subset of clean data is used for training in each epoch, leading to wasted data resources and limiting further improvements in model performance.

Multi-Modal Large Language Models

With the rapid advancement of multi-modal learning, multi-modal large language models (MLLMs) have emerged as powerful tools for bridging vision and language modalities. These models integrate visual understanding and natural language generation capabilities, enabling automatic generation of high-quality textual descriptions for images. In the context of T2I-ReID, MLLMs offer a promising solution to address the problem of noisy image–text correspondence. Traditional manual annotations are prone to coarseness, inaccuracy, or semantic mismatch, while MLLMs can generate semantically aligned textual descriptions by directly understanding visual content. However, existing applications of MLLMs in T2I-ReID face key challenges, notably that simple static prompts often lead to homogeneous sentence patterns, causing the downstream T2I-ReID model to overfit to specific expression styles and reducing its generalization to real-world human descriptions.

To mitigate this limitation, Tan et al. proposed a diverse text generation method based on dynamic template prompts, which extracts sentence patterns from existing dataset annotations to guide MLLM generation. This approach effectively improves the diversity of generated texts while maintaining consistency with real annotation styles. Building on this insight, recent works (e.g., Shao et al. ) have started to leverage MLLMs for pseudo-text generation to replace noisy annotations, but they often lack adaptive selection mechanisms to ensure semantic alignment between generated texts and images.

In our framework, different multimodal large language models play distinct roles. ChatGPT 4.0 is employed exclusively for template mining; by interacting with the model through multiple rounds of dialog, we extract and generalize common sentence structures from the original annotations. Qwen-VL-Chat-7B is selected for pseudo-text generation due to its strong multimodal understanding capability, efficient local deployment, and stable performance on large-scale batch generation without relying on cloud APIs. This choice avoids potential privacy concerns and reduces cost, while maintaining high semantic alignment between generated descriptions and the associated images. We note that other models, such as MiniGPT-4, BLIP, or LLaVA, may also be viable alternatives, each with trade-offs in generation quality, inference speed, and deployment requirements. To minimize hallucinations, dynamic prompts explicitly instruct the model not to invent any content absent from the image, and a randomly chosen template is integrated into each prompt to improve stylistic diversity.

Feature Representations

Image encoder: The pre-trained ViT model of the CLIP is adopted to obtain the image embedding. Due to the mismatch between the image resolution of the dataset used for the text-to-image pedestrian re-identification task and the resolution of the original image on the WIT dataset, the positional embeddings in the pre-trained ViT model of the CLIP cannot be directly imported. In this paper, the linear 2D interpolation method used in TransReID is employed to resize the positional embeddings for different image resolutions.

Noise Identification

To capture fine-grained correspondences between local visual patches and textual tokens, we propose token fusion embedding (TFE). TFE selects the top-K informative tokens from image and text token sequences according to the last-layer self-attention correlation scores, applies a residual embedding block to each selected token, and aggregates them via L2-normalized fusion. Deep neural networks tend to learn from clean samples faster than from noisy ones, because clean data generally results in lower loss values compared to noisy data. Therefore, we utilize two two-component Gaussian mixture models, GMM to fit the per-sample loss computed by BFE and TFE to model the similarity of image–text pairs as clean distribution and noisy distribution, i.e., the Gaussian component with the lower mean value was assigned as the clean set and the other as the noisy set, respectively.

Pseudo-Text Generation

“Generate a description about the overall appearance of the person, including clothing, shoes, hairstyle, gender, and belongings, in a style similar to the template: ‘{template}’. If some requirements in the template are not visible, you can ignore them. Do not imagine any contents that are not in the image.”

Once the model training process approaches a state of convergence, images derived from the noisy image–text pairs that were classified in the preceding training epoch are autonomously inputted into the MLLM. By leveraging dynamic prompting techniques, image captions are generated. These newly produced captions subsequently substitute the originally noisy text within the dataset. The model training then proceeds, utilizing this refined dataset for subsequent iterations of the training process.

Decoding and hyperparameters: We used the following decoding hyperparameters unless otherwise noted: temperature = 0.3, top_p = 0.95, max_length = 64 tokens, and num_return_sequences = 5 (i.e., generate 5 candidate captions per image). The random seed for generation was fixed at 42 to improve reproducibility.

Post-generation filtering and selection: To reduce hallucination and improve semantic alignment, we apply a two-stage selection procedure: (1) Heuristic filtering removes candidates that contain tokens that strongly contradict the image (e.g., explicit object labels known absent from dataset, or uses phrases like “not visible” that indicate model uncertainty). (2) CLIP reranking—for all remaining candidates we compute CLIP cosine similarity between the image and each candidate text; we select the caption with the highest CLIP similarity as the pseudo-text replacement. If all candidates are filtered, the top CLIP-scored candidate is selected (fallback). This selection strategy ensures the chosen pseudo-text both matches the image semantically and follows dataset-style templates.

When generation occurs we generate pseudo-texts after the noise-identification step stabilizes; in our experiments, stabilization of noise identification is observed around the 40th training epoch thus pseudo-text generation is executed at epoch 41. Generated pseudo-texts replace the noisy captions for subsequent training epochs.

Cross-Modal Alignment

The commonly used loss functions in text-to-image matching systems that exhibit good performance include InfoNCE loss, Triplet Ranking loss (TRL) and image–text similarity distribution matching (SDM) loss. However, these loss functions face challenges such as handling the hardest negative samples and selecting appropriate similarity margins, particularly when dealing with the re-recognition of pedestrian text in noisy environments. Over-concern about the hardest negative samples may lead to local minima or even model collapse in such scenarios. In contrast, the novel triplet alignment loss (TAL) proposed by RDE reduces the risk of the optimization being dominated by the hardest negatives.

Dataset

CUHK-PEDES contains 40,206 images and 80,412 text descriptions for 13,003 identities. Each image is manually annotated with two text descriptions, and the sentences contain rich details about the person’s appearance, movement, and pose. According to the official data split, the training set consists of 11,003 identities, 34,054 images, and 68,108 text descriptions.

ICFG-PEDES includes 54,522 images from 4102 identities. Each image has a text description. The training set consists of 34,674 image–text pairs corresponding to 3102 identities, while the testing set contains 19,848 image–text pairs from the remaining 1000 identities. Second, the images contained in this dataset are more challenging due to their complex backgrounds and varied lighting changes, resulting in greater appearance variability.

RSTPReid contains 20,505 images of 4101 identities from 15 cameras. Each person has five corresponding images taken by different cameras, and each image is annotated with two text descriptions. These images have complex indoor and outdoor scene transformations as well as backgrounds, making RSTPReid more challenging and better adapted to real scenarios.

Evaluation Metrics

We employ the commonly adopted rank-k metrics (with k = 1, 5, and 10) as the main evaluation criteria. Rank-k measures the likelihood of identifying at least one correctly matched person image within the top-k ranked candidates when a textual description is used as the query. Additionally, for a more thorough evaluation, we also incorporate mean Average Precision (mAP) and mean Inverse Negative Penalty (mINP) as alternative retrieval measures. Higher values of rank-k, mAP, and mINP indicate superior model performance.

Effectiveness of Token Fusion Embedding

When using a combination of TFE and BFE, the performance increase is even more pronounced in noisy datasets. This confirms that our model mitigates the negative influence of incomplete or inaccurate annotations by enriching textual representations with auxiliary, semantically aligned descriptions. Notably, pseudo-text augmentation provides greater benefit to short or coarse captions, as it compensates for missing visual attributes that are often omitted in noisy text annotations.

Sensitivity Analysis of the Model

To further interpret the effectiveness of our approach, we conducted multi-seed and sensitivity analyses. The multi-seed results show stable performance variations (±0.3% R-1 and ±0.4% mAP), confirming that our model maintains consistent alignment accuracy under different random initializations.

Conclusions

The quality of training data, particularly the issues of noisy image–text correspondence, is a critical concern in text-to-image person re-identification (T2I-ReID). These issues can lead models to learn erroneous image–text associations, ultimately resulting in overfitting. In this paper, we investigate the noisy image–text correspondence in T2I-ReID, which challenges the common assumption in existing methods that image–text data is perfectly aligned. Therefore, we propose a T2I-ReID method based on noise recognition and adaptive pseudo-text generation. The method leverages CLIP for extracting image–text features and employs the Gaussian mixture model (GMM) for identifying noisy image–text pairs. Subsequently, we utilize ChatGPT to capture textual description templates from the dataset, generating dynamic prompts in the process. These dynamic prompts, along with the identified noisy images, are fed into a multimodal large language model to produce diverse and accurate pseudo-text descriptions. The generated pseudo-texts are subsequently used to replace the noisy texts, forming clean image–text pairs that are utilized for model training with the TAL function to achieve cross-modal alignment. Experimental results demonstrate that our proposed method achieves competitive or state-of-the-art performance on the CUHK-PEDES, ICFG-PEDES, and RSTPReid benchmark datasets for text-to-image person re-identification, particularly in mitigating the effects of label noise.

Although the proposed framework demonstrates strong robustness against noisy annotations, its effectiveness still depends on the pseudo-text generation quality. In cases where the multimodal language model produces incomplete or contextually inconsistent descriptions, slight performance degradation may occur. Future work will explore integrating feedback-based refinement mechanisms and contrastive self-correction strategies to further enhance text reliability. Additionally, we plan to extend our method to open-domain vision–language datasets beyond person re-identification.