Skip to main content
QUICK REVIEW

[Paper Review] Learning Semantic-Aligned Feature Representation for Text-based Person Search

Shiping Li, Min Cao|arXiv (Cornell University)|Dec 13, 2021
Video Surveillance and Tracking MethodsComputer Science5 citations
TL;DR

This paper proposes a semantic-aligned feature aggregation network that leverages Vision Transformer (ViT) and BERT backbones to learn part-aware, cross-modality aligned features for text-based person search. By using multi-head attention with a cross-modality part alignment loss and diversity loss, the method achieves state-of-the-art performance on CUHK-PEDES (64.13% Rank-1) and Flickr30K (50.74% Rank-1) without external models or complex attention mechanisms.

ABSTRACT

Text-based person search aims to retrieve images of a certain pedestrian by a textual description. The key challenge of this task is to eliminate the inter-modality gap and achieve the feature alignment across modalities. In this paper, we propose a semantic-aligned embedding method for text-based person search, in which the feature alignment across modalities is achieved by automatically learning the semantic-aligned visual features and textual features. First, we introduce two Transformer-based backbones to encode robust feature representations of the images and texts. Second, we design a semantic-aligned feature aggregation network to adaptively select and aggregate features with the same semantics into part-aware features, which is achieved by a multi-head attention module constrained by a cross-modality part alignment loss and a diversity loss. Experimental results on the CUHK-PEDES and Flickr30K datasets show that our method achieves state-of-the-art performances.

Motivation & Objective

  • Address the challenge of cross-modal gap in text-based person search by enabling fine-grained, semantic-aligned feature learning between images and text.
  • Overcome limitations of existing global-matching and local-matching methods that rely on predefined regions or complex attention mechanisms.
  • Develop an end-to-end trainable architecture that automatically learns part-aware features without additional models or heavy inference costs.
  • Improve retrieval performance by integrating both global and local matching signals through a unified, lightweight framework.

Proposed method

  • Utilizes Vision Transformer (ViT) and BERT as modality-specific feature encoders to extract robust, high-dimensional representations from images and text.
  • Introduces a semantic-aligned feature aggregation network (SAFA) that uses multi-head attention to adaptively aggregate features with shared semantics across modalities.
  • Imposes a cross-modality part alignment loss to ensure that attended visual patches and textual words correspond semantically.
  • Applies a diversity loss to encourage the attention heads to focus on different semantic parts, preventing redundancy and improving feature coverage.
  • Combines global features from [CLS] tokens and patch/word features to enable joint global and local matching in a unified framework.
  • Trains the entire model end-to-end with a contrastive learning objective to optimize the final retrieval performance.

Experimental results

Research questions

  • RQ1Can a lightweight, end-to-end trainable network learn semantic-aligned, part-aware features across image and text modalities without external models?
  • RQ2How does the proposed semantic-aligned feature aggregation network compare to existing attention-based or rule-based local matching methods in performance and efficiency?
  • RQ3To what extent do the cross-modality part alignment loss and diversity loss contribute to improving retrieval accuracy?
  • RQ4Can the proposed method generalize across different benchmarks such as CUHK-PEDES and Flickr30K with consistent SOTA performance?
  • RQ5What is the optimal configuration of hyperparameters K (number of parts) and λ (diversity loss weight) for best retrieval performance?

Key findings

  • The proposed method achieves 64.13% Rank-1 accuracy on the CUHK-PEDES dataset, surpassing all prior state-of-the-art methods.
  • On the Flickr30K dataset, the method achieves 50.74% Rank-1 accuracy, significantly outperforming previous SOTA methods by over 8 percentage points.
  • Abllation studies show that the SAFA module contributes a 4.34% gain in Rank-1 accuracy over the global-only baseline, demonstrating the effectiveness of local matching.
  • The combination of global and part-aware features yields the best performance, with the global encoder providing a strong auxiliary signal.
  • Hyperparameter analysis confirms that K=10 and λ=0.2 yield optimal performance, with higher or lower values degrading results.
  • Visualization of attention maps confirms that each head attends to different semantic parts across image and text, validating effective cross-modal alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.