Introduction
Text-based Person Retrieval (TPR) is a critical task in computer vision and security, focused on identifying specific individuals in large image databases based on natural language descriptions (e.g., "a woman in a blue jacket carrying a white tote bag"). While recent advancements have leveraged large-scale vision-language models like CLIP, the standard approach involves full fine-tuning of these models. This brute-force method presents three significant challenges:
- Overfitting: Large models tend to memorize the relatively small, task-specific datasets used in TPR, which degrades their ability to generalize to unseen environments.
- Computational Cost: Updating over 150 million parameters requires substantial GPU memory and compute time.
- Storage Bloat: Deploying models across various environments necessitates storing a distinct, massive model file for every specific scenario.
To address these issues, researchers have explored Parameter-Efficient Transfer Learning (PETL). However, simply combining multiple PETL modules (like LoRA and Adapters) often leads to "component conflict," where modules disrupt each other's optimization paths. UP-Person is a unified PETL framework designed to harmonize these methods, achieving state-of-the-art performance while training only 4.7% of the model's parameters.
The UP-Person Framework
UP-Person freezes the backbone CLIP model (both vision and text encoders) and introduces three specialized, lightweight submodules into the transformer blocks. The core innovation lies in the strategic placement and optimization of these components to ensure they work synergistically.
1. Scalable Prefix (S-Prefix)
Standard prefix tuning prepends learnable tokens to the keys and values in the attention mechanism to inject task-specific prompts. However, the authors identified a mathematical bottleneck: in the TPR context, gradients for these tokens are often "squashed" during training, leading to slow convergence. UP-Person introduces a learnable scalar factor ($S_p$) to boost the attention weights of the prefix tokens, effectively unlocking the efficiency of prefix tuning for this domain.
2. Low-Rank Adaptation (LoRA)
LoRA matrices are applied to the attention weights to capture fine-grained, local pedestrian features. While the base CLIP model provides strong general representations, LoRA allows the model to adapt to the specific nuances of human appearance and clothing details essential for retrieval.
3. Layernorm Adapter (L-Adapter)
To solve the "component conflict" issue, the authors designed the L-Adapter to run in parallel with the Layer Normalization (Layernorm) step. While the attention-based modules (LoRA and S-Prefix) focus on local feature extraction, the L-Adapter adjusts global feature distributions (scaling and shifting) non-linearly. By isolating these functions, the model learns global and local representations simultaneously without optimization interference.
Experimental Results
UP-Person was evaluated on three standard TPR benchmarks: CUHK-PEDES, ICFG-PEDES, and RSTPReid.
State-of-the-Art Accuracy
On the CUHK-PEDES dataset, UP-Person achieved a 74.17% Rank@1 accuracy using a ViT-B/16 backbone, outperforming the fully fine-tuned IRRA baseline (73.38%). When scaled to a ViT-L/14 backbone, the performance reached 76.04%.
Efficiency and Generalization
- Parameter Efficiency: The model trains only 7.4M parameters (4.7% of the total model).
- Resource Savings: The training memory footprint was reduced to approximately 3.2 GB, compared to 7 GB for full fine-tuning, making the framework accessible for researchers with limited hardware.
- Robustness to Overfitting: On the small RSTPReid dataset, which is highly prone to overfitting, UP-Person significantly outperformed full-tuning baselines by retaining CLIP's pre-trained knowledge.
- Cross-Domain Performance: In zero-shot transfer tests (e.g., training on RSTPReid and testing on CUHK-PEDES), UP-Person outperformed fully fine-tuned models by as much as 6.2% Rank@1, demonstrating superior generalization.
Key Insights
The success of UP-Person highlights two major takeaways for PETL in vision-language tasks. First, location is everything: by separating global representation adjustments (L-Adapter) from local feature extraction (LoRA/Prefix), the framework avoids the performance degradation typically seen when stacking multiple adapters. Second, constrained parameters act as a powerful regularizer: by limiting the update space, the model is forced to leverage its foundational knowledge, preventing the "forgetting" and overfitting common in small-scale retrieval datasets.
Future Directions
While UP-Person sets a new standard for efficient TPR, the authors suggest several avenues for future work. These include incorporating additional modalities such as audio or witness sketches to resolve text ambiguity, exploring finer-grained cross-modal fusion, and investigating model compression for real-time deployment on edge devices like smart cameras. Additionally, expanding the framework to support cross-lingual retrieval remains a key goal for global applicability.
Summary updated