Skip to main content
QUICK REVIEW

[Paper Review] Contextual Non-Local Alignment over Full-Scale Representation for Text-Based Person Search

Chenyang Gao, Guanyu Cai|arXiv (Cornell University)|Jan 8, 2021
Video Surveillance and Tracking MethodsComputer Science24 references61 citations
TL;DR

NAFS introduces full-scale image and text representations with a contextual non-local attention to adaptively align across scales, achieving state-of-the-art results on CUHK-PEDES.

ABSTRACT

Text-based person search aims at retrieving target person in an image gallery using a descriptive sentence of that person. It is very challenging since modal gap makes effectively extracting discriminative features more difficult. Moreover, the inter-class variance of both pedestrian images and descriptions is small. So comprehensive information is needed to align visual and textual clues across all scales. Most existing methods merely consider the local alignment between images and texts within a single scale (e.g. only global scale or only partial scale) then simply construct alignment at each scale separately. To address this problem, we propose a method that is able to adaptively align image and textual features across all scales, called NAFS (i.e.Non-local Alignment over Full-Scale representations). Firstly, a novel staircase network structure is proposed to extract full-scale image features with better locality. Secondly, a BERT with locality-constrained attention is proposed to obtain representations of descriptions at different scales. Then, instead of separately aligning features at each scale, a novel contextual non-local attention mechanism is applied to simultaneously discover latent alignments across all scales. The experimental results show that our method outperforms the state-of-the-art methods by 5.53% in terms of top-1 and 5.35% in terms of top-5 on text-based person search dataset. The code is available at https://github.com/TencentYoutuResearch/PersonReID-NAFS

Motivation & Objective

  • Motivate text-based person search and address small inter-class variance between images and descriptions.
  • Learn image and textual representations at multiple scales to capture comprehensive cross-modal cues.
  • Develop an adaptive alignment mechanism that jointly aligns features across all scales.
  • Propose a re-ranking method to further refine search results.
  • Demonstrate effectiveness through extensive experiments on CUHK-PEDES.

Proposed method

  • Introduce staircase CNN backbone to extract full-scale visual representations with improved locality.
  • Use a locality-constrained BERT to obtain multi-scale textual representations.
  • Propose contextual non-local attention to jointly align image and text across all scales.
  • Employ a cross-scale alignment loss (CSAL) combining image-to-text and text-to-image similarities.
  • Incorporate a re-ranking by visual neighbors (RVN) to boost final rankings.

Experimental results

Research questions

  • RQ1How can full-scale multi-scale representations of images and texts be extracted for text-based person search?
  • RQ2Can adaptive cross-scale alignment improve matching beyond fixed-scale pairings?
  • RQ3What is the impact of contextual non-local attention on cross-modal alignment across scales?
  • RQ4Does re-ranking by visual neighbors further enhance retrieval performance?

Key findings

  • NAFS with full-scale representations achieves top-1 59.94% and top-5 79.86% on CUHK-PEDES, outperforming several baselines.
  • NAFS with RVN further improves top-1 to 61.50% and top-5 to 81.19%.
  • Joint alignment across scales outperforms separate alignment (Top-1: 59.94% vs 57.98%).
  • Incorporating staircase network, locality-constrained BERT, and contextual non-local attention yields substantial gains over baselines.
  • Ablation shows mid-scale information (scale 2) is beneficial in addition to global and finest-scale features.

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.