Deep Co-attention based Comparators For Relative Representation Learning in Person Re-identification

Lin Wu, Yang Wang, Junbin Gao, Dacheng TaoarXiv 2018 · OpenReview

TL;DR

This paper introduces Deep Co-attention based Comparators (DCCs), a novel deep learning architecture for person re-identification (re-ID). DCCs learn "relative representations" by mimicking human visual attention to dynamically focus on and fuse co-dependent features from paired images, achieving state-of-the-art results on benchmark datasets.

What Problem Does This Paper Address?

Person re-identification (re-ID) is the challenging task of matching individuals across different camera views, often with significant variations in lighting, pose, and viewpoint. Existing methods typically rely on extracting features from predefined regions of an image and then comparing these features. However, these approaches often detect regions independently without considering how they relate to each other within a pair of images. This can lead to limitations, as the most discriminative parts for comparison might not be consistently identified. Furthermore, these methods often require explicit spatial manipulation to align features for comparison, which can be cumbersome and less effective for real-time applications. The paper aims to address these limitations by developing a more flexible and human-like approach to feature learning and similarity comparison.

Methods

The core of the proposed method is the Deep Co-attention based Comparators (DCCs). The architecture consists of two main components:

  • Deep Co-attention Encoder: This component takes two input pedestrian images and extracts their initial feature maps using a pre-trained ResNet-50 backbone. It then computes an affinity matrix between these feature maps to understand the relationships between different regions across the two images. This matrix is normalized to produce attention weights, which are used to generate co-dependent features. These features represent information from one image conditioned on the other, capturing inter-image dependencies.
  • Iterative Recurrence based Similarity Comparator: This component mimics human visual perception by iteratively attending to the co-dependent features. It uses a recurrent neural network (specifically an LSTM) and an attention mechanism. At each step, the comparator selectively "glimpses" at specific regions of the paired images, alternating between them. These glimpses are fused into a hidden state, which gradually builds up a relative representation of the pair. This iterative fusion process allows the model to dynamically focus on the most relevant parts for similarity judgment without relying on fixed spatial alignments. The final hidden state of the RNN serves as the learned representation for similarity comparison.

The model is trained with a classification objective, where the learned representations are used to predict the identity of the person.

Datasets

The paper evaluates the proposed DCCs on three widely used benchmark datasets for person re-identification:

  • DukeMTMC-reID: A large-scale dataset derived from high-resolution videos, featuring images cropped by hand-drawn bounding boxes.
  • CUHK03: A dataset captured by six surveillance cameras, with an average of 4.8 images per identity per view.
  • Market-1501: The largest dataset among the three, with fully annotated bounding boxes for 1501 pedestrians.

Key Insights and Ideas

  • Human-like Foveation: The DCCs are inspired by the human visual system's foveation, which involves focusing on specific regions of interest and integrating information over time. This approach allows for more dynamic and context-aware feature extraction.
  • Co-dependent Features: Instead of processing images independently, the model explicitly learns features that are conditioned on each other within a pair. This is crucial for capturing subtle differences and similarities that distinguish identities.
  • Relative Representations: The model learns representations that are relative to the specific pair of images being compared, rather than absolute representations. This makes it more adaptable to unseen data and variations.
  • Eliminating Spatial Manipulation: By iteratively attending to relevant regions, the DCCs reduce the need for explicit spatial alignment of features, making the model more robust to pose and viewpoint variations.
  • Early Fusion of Feature Learning and Similarity: The proposed architecture integrates feature learning and similarity estimation within a single end-to-end framework, which is argued to lead to more optimal representations.

Key Results

The proposed DCCs achieved state-of-the-art performance on the evaluated datasets. Specifically:

  • On DukeMTMC-reID, the DCCs achieved a Rank-1 accuracy of 80.3% and an mAP of 59.2%.
  • On CUHK03, the DCCs achieved a Rank-1 accuracy of 89.7% and a Rank-20 accuracy of 99.4%.
  • On Market-1501, the DCCs achieved a Rank-1 accuracy of 86.7% and an mAP of 69.4%.

The paper also includes ablation studies demonstrating the effectiveness of the iterative fusion mechanism compared to other spatial pooling strategies (IRNNs, SPP, GP). Visualizations show the model effectively attending to concurrent regions across images.

Limitations and Future Work

  • Computational Cost: The paper acknowledges that the iterative recurrence comparator, while effective, can be computationally expensive.
  • Future Work: The authors suggest extending the model to address the sequential scanning of the recurrence comparator. They also propose that the DCCs' ability to produce relative representations makes them well-suited for person verification tasks.

Summary updated

Abstract

Person re-identification (re-ID) requires rapid, flexible yet discriminant representations to quickly generalize to unseen observations on-the-fly and recognize the same identity across disjoint camera views. Recent effective methods are developed in a pair-wise similarity learning system to detect a fixed set of features from distinct regions which are mapped to their vector embeddings for the distance measuring. However, the most relevant and crucial parts of each image are detected independently without referring to the dependency conditioned on one and another. Also, these region based methods rely on spatial manipulation to position the local features in comparable similarity measuring. To combat these limitations, in this paper we introduce the Deep Co-attention based Comparators (DCCs) that fuse the co-dependent representations of the paired images so as to focus on the relevant parts of both images and produce their \textit{relative representations}. Given a pair of pedestrian images to be compared, the proposed model mimics the foveation of human eyes to detect distinct regions concurrent on both images, namely co-dependent features, and alternatively attend to relevant regions to fuse them into the similarity learning. Our comparator is capable of producing dynamic representations relative to a particular sample every time, and thus well-suited to the case of re-identifying pedestrians on-the-fly. We perform extensive experiments to provide the insights and demonstrate the effectiveness of the proposed DCCs in person re-ID. Moreover, our approach has achieved the state-of-the-art performance on three benchmark data sets: DukeMTMC-reID \cite{DukeMTMC}, CUHK03 \cite{FPNN}, and Market-1501 \cite{Market1501}.
BibTeX
@misc{wu2018deep,
  author = {Lin Wu and Yang Wang and Junbin Gao and Dacheng Tao},
  title = {{Deep Co-attention based Comparators For Relative Representation Learning in Person Re-identification}},
  year = {2018},
  eprint = {1804.11027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.11027},
}
Figure