Source-linked AI summary

Re-Identification with Consistent Attentive Siamese Networks

Meng Zheng, Srikrishna Karanam, Ziyan Wu, Richard J. Radke

arXiv:1811.07487v4cs.CVcs.LG

TL;DR

Person re-identification still struggles with spatial localization, viewpoint variation, and view-invariant representations for robust cross-view matching. CASN jointly learns identity-supervised attention, consistent attentive regions, and invariant Siamese representations, achieving competitive performance across three re-id datasets while providing attention-based explanations.

  • Problem

    Person re-identification remains challenged by viewpoint variation, illumination differences, occlusion, inconsistent attention regions, and limited view-invariant identity-aware representations.

  • Method

    CASN jointly learns identity-supervised spatial localization and consistent attention regions with Siamese representation learning, using an explicit attention-consistency loss.

  • Results

    CASN demonstrated competitive performance on the CUHK03-NP, DukeMTMC-ReID, and Market-1501 datasets.

  • Takeaways & Limitations

    Attention maps provide intuitive explanations for why the Siamese network predicts image pairs as similar or dissimilar.

  • Takeaways & Limitations

    The attention computation is specific to standing poses common in existing benchmarks, although the framework can be extended using data- or domain-specific consistency priors.

Abstract

from arXiv · show

We propose a new deep architecture for person re-identification (re-id). While re-id has seen much recent progress, spatial localization and view-invariant representation learning for robust cross-view matching remain key, unsolved problems. We address these questions by means of a new attention-driven Siamese learning architecture, called the Consistent Attentive Siamese Network. Our key innovations compared to existing, competing methods include (a) a flexible framework design that produces attention with only identity labels as supervision, (b) explicit mechanisms to enforce attention consistency among images of the same person, and (c) a new Siamese framework that integrates attention and attention consistency, producing principled supervisory signals as well as the first mechanism that can explain the reasoning behind the Siamese framework's predictions. We conduct extensive evaluations on the CUHK03-NP, DukeMTMC-ReID, and Market-1501 datasets and report competitive performance.

1. Introduction

Person re-identification must jointly address cross-view spatial misalignment and robust representation learning. CASN introduces end-to-end attention, explicit same-person attention consistency, and Siamese learning using identity labels.

  • Re-id retrieves a person from gallery images in another camera view using probe images.
  • Large viewpoint, illumination, occlusion, and clutter differences hinder reliable cross-view matching.
  • CASN jointly learns spatial localization and feature representation through an end-to-end objective.
  • The framework produces attentive regions using only person identity labels and automatically discovers complete regions end to end.
  • CASN explicitly enforces consistent attentive regions across images of the same person to support invariant representations for cross-view matching.
  • The Siamese attention mechanism provides an interpretable basis for explaining why image pairs are predicted to match.

2. Related Work

Related re-id work progressed from handcrafted features to deep and localized representations, but existing approaches separately address attention, consistency, or invariant matching. CASN combines these objectives by learning consistent spatial localization and invariant representations jointly.

  • Traditional re-id used handcrafted features followed by supervised distance metric learning.
  • Deep re-id improved performance, but naive training remains vulnerable to cross-view misalignment, occlusion, and clutter.
  • Attention-based methods learn localized or multi-granular representations to address localization and misalignment.
  • Siamese-like designs learn invariant features and distance metrics but typically do not directly address spatial localization.
  • CASN jointly exploits attention, consistent spatial localization, and invariant feature representations.

3. The Consistent Attentive Siamese Network

CASN is an attention-based deep architecture for person re-id that combines identification and Siamese modules. It uses identity-supervised attention guidance to localize people while learning representations for matching.

  • CASN contains identification and Siamese modules within an attention-based deep architecture.
  • The identification module uses attention guidance supervised only by identity labels to localize the person and predict identity.
  • CASN is organized as a two-branch architecture.

3.1. The Identification Module

The identification module extends an IDE baseline with Grad-CAM attention learning to improve spatial localization using only identity labels. It produces more complete foreground attention, but does not ensure consistent regions across images of the same person.

  • 3.1.1 The IDE Baseline Architecture: The IDE baseline uses ResNet50 features and a two-layer fully connected classifier to predict input-image identities.The feature-extraction block can also be replaced by another architecture that provides a feature vector, such as PCB.
  • 3.1.2 Identification Attention: Grad-CAM derives an attention map from the IDE classifier prediction for each labeled input image.The map is used as the localization signal for the identification module.
  • 3.1.2 Identification Attention: Attention learning masks high-response pixels and trains the model to discover more complete attentive regions without supervision beyond identity labels.The soft mask excludes the most discriminative regions so remaining useful foreground information can contribute to identification.
  • 3.1.2 Identification Attention: Figure 4 shows greater foreground-subject coverage when identification loss is combined with attention learning than with identification loss alone.The comparison illustrates why attention learning is added to the identification objective.
  • 3.1.3 Motivation for the Siamese Module: The identification module lacks a mechanism enforcing consistent attention regions for different images of the same person, motivating the Siamese module.Its localization guidance is therefore insufficient to guarantee cross-image attention consistency.

3.2. The Siamese Module

The Siamese module compares image-pair features with a binary classifier and derives attention from its predictions. It aligns and matches attention responses for same-identity pairs, adding an explicit consistency signal to invariant representation learning.

  • 3.2.1 Binary Classification: The Siamese module begins with a binary objective that predicts whether a pair of images belongs to the same identity.It subtracts the two feature vectors and feeds the difference to a BCE classifier.
  • 3.2.1 Binary Classification: The BCE classifier provides a classification objective from which Siamese attention can be computed in the spirit of Grad-CAM.Its two-dimensional output indicates same-identity versus different-identity predictions.
  • 3.2.2 The Siamese Attention Mechanism: The method introduces spatial attention constraints based on BCE-derived maps to guide consistent cross-view importance regions.This supplies an explicit attention-consistency-aware supervisory signal.
  • 3.2.2 The Siamese Attention Mechanism: Max-pooled row responses are aligned by thresholding their active vertical ranges and resizing them before being constrained to remain close.The alignment step addresses spatial misalignment between the two attention maps.
  • 3.2.2 The Siamese Attention Mechanism: The Siamese attention loss combines BCE classification with an attention-distance penalty weighted by α.α controls the importance of BCE relative to the spatial attention constraints.
  • 3.2.2 The Siamese Attention Mechanism: For same-identity pairs, the method retrieves attention maps from BCE predictions and max-pools them to obtain localization statistics for consistency enforcement.The attention maps are derived from feature contributions to the pairwise prediction.

3.3. Overall Design of the CASN

CASN is a flexible two-branch architecture that jointly learns identity-aware attention and Siamese attention consistency from paired person images. Its shared feature extraction, identification, and Siamese modules support attention-guided invariant representations across baseline architectures.

  • CASN uses a two-branch architecture that processes paired images from the same or different identities during training.Feature extraction precedes separate identification and Siamese modules.
  • The Siamese attention mechanism combines BCE loss with spatial constraints to enforce consistency between attention maps for same-identity image pairs.Attention maps are maxpooled to gather localization statistics for the spatial consistency objective.
  • The identification module classifies identities and retrieves Grad-CAM attention maps, while identification attention loss guides complete spatial attention regions.The attention map is retrieved from the classifier prediction using the input image’s identity label.
  • CASN jointly optimizes IDE classification, identification attention, and Siamese attention losses: L = Lide + λ1Lia + λ2Lsa.The feature extraction blocks in the two branches share weights.
  • The framework uses only identity labels for supervision, supports unseen identities during inference, and can accompany baseline architectures such as IDE or PCB.The design does not require specially designed attention submodules.

4. Experiments and Results

CASN is evaluated on CUHK03-NP, DukeMTMC-ReID, and Market-1501 against existing methods and through ablations. It substantially improves attention-based re-id performance while producing more consistent and interpretable attention maps.

  • Experiments and Results: CASN is evaluated on Market-1501, CUHK03-NP, and DukeMTMC-ReID using specified training protocols and single-query evaluation.Results are reported without re-ranking, with PCB used as the backend in the comparison tables.
  • Comparison to the State of the Art: +4.7% and +5.7% rank-1 gains over the state of the art are reported on CUHK03-NP detected and labeled sets, respectively.On detected sets, CASN also improves rank-1 by 29.8% and mAP by 25.8% over HA-CNN.
  • Comparison to the State of the Art: +7.2% and +5.9% rank-1 improvements, with +9.9% and +9.1% mAP improvements, are reported over HA-CNN and DuATM on DukeMTMC-ReID.The paper reports higher rank-1 and mAP results than several attention-based methods on Market-1501.
  • Comparison to the State of the Art: CASN outperforms existing attention-based methods while remaining compatible with flexible baseline CNN architectures and requiring only identity-label supervision.The paper cites compatibility with architectures including VGGNet, DenseNet, and SqueezeNet.
  • Ablation Study and Discussion: 9.0% and 9.2% rank-1 and mAP gains are obtained by IDE+IA over IDE on CUHK03-NP, while IDE+SA improves rank-1 by 9.4% and mAP by 10.2%.Adding both attention modules further improves both rank-1 accuracy and mAP.
  • Ablation Study and Discussion: Siamese attention produces more consistent same-person attention maps for training and testing pairs than BCE loss alone.These maps are presented as an interpretability tool for explaining similar or dissimilar Siamese predictions.

5. Conclusions

CASN integrates attention consistency modeling with Siamese representation learning to discover consistent attentive regions and invariant representations for cross-view person re-identification. The framework achieves competitive performance, while its attention computation is specific to standing poses in existing benchmarks.

  • CASN jointly models attention consistency and Siamese representation learning for person re-identification.It provides supervisory signals for consistent attentive regions and identity-aware invariant representations.
  • The framework was evaluated on three popular person re-identification datasets and demonstrated competitive performance.
  • Attention maps explain both incorrect high-ranked matches and ground-truth matches, while Siamese attention improves ranking.Figure 8 gives rank 1 as an example of a wrong match and rank 3 as an example of a ground-truth match.
  • Attention computation is specific to standing poses common in existing benchmarks, although the framework can enforce other consistency types using data- or domain-specific priors.
Loading 1811.07487v4…