Achieving Text-based Person Retrieval with Any Granularity

Jialong Zuo, Hanyu Zhou, Dongyue Wu, Yongtai Deng, Mengdan Tan, Nong Sang, Changxin Gao, Xiang BaiarXiv 2026 · DOI

TL;DR

Real-world text-based person retrieval systems must handle everything from vague descriptions ("man in a red shirt") to ultra-detailed profiles. This paper formalizes this challenge as a new paradigm—Text-based Person Retrieval with Any Granularity—and introduces a balanced multi-grained dataset (UFine6926-MG), a realistic evaluation benchmark (MG-Eval), and a novel framework (CMAM) that uses orthogonal visual experts and probabilistic alignment to handle query uncertainty.

What Problem Does This Paper Address?

Text-based Person Retrieval (TPR) aims to find a specific individual in an image gallery based on a natural language description. While current models perform well when given a fixed type of text, they operate under an unrealistic assumption: that the query's level of detail (granularity) is always constant.

In real-world scenarios, a user might start with a vague description and progressively refine it based on search results. Existing models are brittle when faced with these granularity shifts. Furthermore, current evaluation metrics rely on a strict one-text-to-one-identity mapping. This means that if a user searches for a coarse description like "woman in blue jeans," the system penalizes the model for retrieving any identity other than the exact ground-truth image, even if the retrieved images perfectly match the text description.

To bridge this gap, the authors tackle the challenge of retrieving people using text queries of any granularity.

Fig. 1 – An overview of the proposed systematic paradigm for Text-based Person Retrieval with Any Granularity. Our contribution constitutes a holistic solution: 1) Data: The construction of the UFine6926-MG dataset via a Multi-grained Text Annotation Engine, establishing a comprehensive granularity spectrum. 2) Evaluation: The MG-Eval benchmark incorporating cross-identity semantics and progressive-granularity protocols to reflect real-world retrieval complexity. 3) Algorithm: The CMAM framework, which features orthogonal-expert perception, probabilistic cross-identity alignment, and granularity-consistent reasoning.

Methods

The authors introduce the Cross-modal Multi-grained Aligning and Matching (CMAM) framework to explicitly adapt to varying query specificities. CMAM consists of three core components:

  1. Orthogonal-Expert Multi-grained Visual Perception (OE-MVP): Traditional vision transformers use a uniform network for all inputs. OE-MVP replaces this with multiple granularity-specific experts alongside a shared expert. Coarser queries activate experts optimized for global features, while finer queries activate high-capacity experts specialized in local details. An orthogonality loss prevents these experts from learning redundant features.
  2. Probabilistic Cross-Identity Alignment (PCIA): To handle the inherent ambiguity of vague queries, PCIA abandons rigid one-to-one matching. It calculates an attribute overlap ratio between coarse queries and fine-grained texts of other identities to generate "soft labels." It also injects Gaussian noise to simulate real-world annotation uncertainty.
  3. Granularity-Consistent Reasoning (GCR): This module uses a dual-head structure to classify image-text granularity and verify cross-modal consistency, providing fine-grained signals that steer the feature learning process.

Datasets and Benchmarks

To support this new paradigm, the authors developed a comprehensive data and evaluation suite:

  • UFine6926-MG: The authors define a 5-level granularity spectrum based on a unified ontology of 18 semantic attributes (rather than simple word count). They built a Multi-grained Text Annotation Engine powered by LLMs and VLMs to automatically generate and verify balanced descriptions across all 5 levels, bootstrapping from an existing fine-grained dataset.
Fig. 2 – The hierarchical taxonomy of textual granularity. De- scriptions are systematically categorized into five levels (UC to UF) based on a unified ontology of 18 semantic attributes. This attribute-driven spectrum characterizes the informational density of person descriptions more accurately than text length.
  • MG-Eval: A new evaluation benchmark featuring 5,000 queries and 45,113 gallery images. Crucially, it incorporates cross-identity labels (linking coarse queries to all valid matching identities) and introduces two new evaluation protocols: Separate Granularity Assessment and Progressive Granularity Assessment (simulating an iterative search process).
  • mean Similarity Distribution (mSD): A new continuous metric designed to be more sensitive to fine-grained ranking differences than traditional discrete metrics like mAP.

Key Insights and Ideas

  • Granularity $\neq$ Text Length: Lengthy descriptions can be redundant, while short ones can be highly informative. True granularity is defined by semantic density—the number of distinct attribute types conveyed.
  • The Single-Granularity Bottleneck: Visual features naturally form tight, identity-centric clusters, whereas text descriptions for the same identity are highly scattered across different levels of detail. Forcing a direct, rigid alignment between them destabilizes cross-modal learning.
  • Embracing Fuzzy Matching: By treating cross-identity matches probabilistically rather than binarily, the model learns a more robust and calibrated similarity space that reflects real-world semantics.

Key Results

  • State-of-the-Art Performance: CMAM outperforms existing methods on standard benchmarks, achieving a 77.12% Rank-1 accuracy on CUHK-PEDES when trained on multi-grained data.
  • Superiority in Multi-Grained Scenarios: On the new MG-Eval benchmark (Separate Assessment), CMAM achieves 50.40% Rank-1 accuracy, outperforming the strongest baseline (FGCLIP) by 5.28%.
  • Training Stability: Unlike traditional models that suffer from performance degradation ("increase-then-decline" patterns) when exposed to mixed granularities, CMAM demonstrates stable, monotonic convergence.

Limitations and Future Work

The authors acknowledge that their 18-attribute ontology and 5-level granularity taxonomy are empirically motivated based on practical human descriptive behavior. They note that a rigorous, information-theoretic derivation of the mathematically optimal attribute set and level boundaries remains an open question for future research.

Summary updated

BibTeX
@misc{zuo2026achieving,
  author = {Jialong Zuo and Hanyu Zhou and Dongyue Wu and Yongtai Deng and Mengdan Tan and Nong Sang and Changxin Gao and Xiang Bai},
  title = {{Achieving Text-based Person Retrieval with Any Granularity}},
  year = {2026},
  eprint = {2607.21057},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.21057},
}
Figure