Attention driven person re-identification

Fan Yang, Ke Yan, Shijian Lu, Huizhu Jia, Xiaodong Xie, Wen Gao

TL;DR

This paper introduces a multi-branch deep network that uses a dual-attention mechanism—intra-attention to find discriminative regions within body parts and inter-attention to adaptively weight the importance of those parts. By combining precisely aligned local features with global context, the model achieves state-of-the-art results on major benchmarks like Market-1501 and DukeMTMC-ReID.

What Problem Does This Paper Address?

Person Re-identification (ReID) is the task of identifying the same individual across different, non-overlapping camera views. It sounds simple, but it’s a nightmare for computer vision. As shown in Figure 1, the "intra-class" variation (the same person looking different due to pose, lighting, or occlusion) is often much larger than the "inter-class" variation (different people looking very similar, like two people wearing blue shirts).

Challenges in Person ReID: pose variation, occlusion, and misalignment.

Existing methods usually fall into two camps: those that look at the whole body (global) and those that look at horizontal strips (local). However, global methods often miss fine-grained details (like a specific logo on a hat), and fixed-strip methods fail when the person isn't perfectly centered or is partially cut off by the camera frame.

Methods

The authors propose a novel multi-branch attention-driven network. The architecture consists of five branches: one for the global whole-body image and four for specific body parts (head, upper-body, upper-leg, and lower-leg).

The "secret sauce" of this paper lies in its two-tiered attention strategy:

  1. Intra-attention: Within each branch, the model uses an encoder-decoder structure to generate attention maps. Crucially, they decompose this into spatial-wise attention (where to look) and channel-wise attention (what features to prioritize). This decomposition significantly reduces the number of parameters while making the search for discriminative regions more efficient.
  2. Inter-attention: Not all body parts are equally useful for every image. If a person's legs are hidden behind a car, the leg branches shouldn't carry much weight. The inter-attention module learns to adaptively fuse the outputs of the five branches based on their relevance to the specific matching task.
The proposed multi-branch framework featuring intra-attention and inter-attention modules.

To handle misalignment, the model uses an off-the-shelf pose estimator to define the bounding boxes for the four body parts, ensuring the "local" branches are actually looking at the right things.

Datasets

The model was evaluated on three gold-standard ReID datasets:

  • Market-1501: 32,668 images of 1,501 identities.
  • DukeMTMC-ReID: A challenging subset of the DukeMTMC dataset with significant background variation.
  • CUHK03: Evaluated on both manually labeled and automatically detected (noisier) bounding boxes.

Key Insights and Ideas

  • Attention Decomposition is Efficient: By splitting attention into spatial ($H \times W \times 1$) and channel ($1 \times 1 \times C$) components, the authors avoid the computational bloat of traditional $H \times W \times C$ attention maps. This allows the model to be deeper and more precise without becoming untrainable.
  • Global and Local are Complementary: The intra-attention maps for global images tend to focus on coarse structures, while the part-based maps capture fine details. Figure 7 in the paper illustrates how these two levels of focus work together to create a more robust representation.
  • Adaptive Fusion Matters: The inter-attention module acts like a "quality control" layer. It prevents noisy or occluded body parts from degrading the final feature vector, which is a major step up from simple concatenation or average pooling.

Key Results

The proposed method set new state-of-the-art (SOTA) benchmarks at the time of publication:

  • Market-1501: Achieved 94.99% Rank-1 accuracy and 86.47% mAP, significantly outperforming previous leaders like DuATM and HA-CNN.
  • DukeMTMC-ReID: Reached 86.04% Rank-1, a nearly 5% jump over the previous best.
  • Robustness to Noise: On the CUHK03 "Detected" set (which uses imperfect automatic detectors), the model showed much smaller performance drops compared to other SOTA methods, proving the effectiveness of the pose-based alignment and attention filtering.

Qualitatively, Figure 6 shows how the "Intra+Inter" model correctly identifies people where the baseline model fails, particularly in cases of similar clothing or difficult angles.

Qualitative comparison showing the improvement of the proposed model over the baseline.

Limitations and Future Work

While the results are impressive, the system relies on an external, off-the-shelf pose estimator. If the pose estimation fails completely (e.g., in extremely low light or heavy crowds), the part-based branches might receive garbage input.

The authors suggest that future work could involve incorporating trainable pose estimation or semantic human part parsing directly into the network. This would allow the entire system to be optimized end-to-end, potentially making it even more resilient to the "messy" real-world conditions of surveillance footage.

Summary updated

BibTeX
@article{yang2019attention,
  author = {Fan Yang and Ke Yan and Shijian Lu and Huizhu Jia and Xiaodong Xie and Wen Gao},
  title = {{Attention driven person re-identification}},
  journal = {Pattern Recognition},
  year = {2019},
  doi = {10.1016/j.patcog.2018.08.015},
}
Figure