A Dual Path ModelWith Adaptive Attention For Vehicle Re-Identification

Pirazh Khorramshahi, Amit Kumar, Neehar Peri, Sai Saketh Rambhatla, Jun-Cheng Chen, Rama Chellappa

Abstract

In recent years, attention models have been extensively used for person and vehicle re-identification. Most re-identification methods are designed to focus attention on key-point locations. However, depending on the orientation, the contribution of each key-point varies. In this paper, we present a novel dual-path adaptive attention model for vehicle re-identification (AAVER). The global appearance path captures macroscopic vehicle features while the orientation conditioned part appearance path learns to capture localized discriminative features by focusing attention on the most informative key-points. Through extensive experimentation, we show that the proposed AAVER method is able to accurately re-identify vehicles in unconstrained scenarios, yielding state of the art results on the challenging dataset VeRi-776. As a byproduct, the proposed system is also able to accurately predict vehicle key-points and shows an improvement of more than 7% over state of the art.

Introduction: The Challenge of Vehicle Re-ID

Vehicle re-identification (re-id) is the task of matching specific vehicle instances across different cameras, locations, and viewpoints. Unlike person re-id—where clothing and accessories provide highly discriminative visual cues—vehicle re-id suffers from a lack of macroscopic variance. Two different vehicles from the same manufacturer with the same trim and color are virtually indistinguishable from a distance.

To tell them apart, models must focus on subtle, localized cues like custom logos, window stickers, or specific wheel patterns. While previous methods have used attention mechanisms to focus on vehicle key-points (e.g., headlights, side mirrors), they often force the model to look at all predefined key-points. This leads to "false attention" when certain key-points are occluded by the vehicle's orientation (e.g., frontal headlights are not visible from the rear).

The AAVER Framework

The authors propose the Adaptive Attention Model for Vehicle Re-identification (AAVER), a dual-path deep learning architecture designed to mitigate false attention by conditioning localized feature extraction on the vehicle's viewpoint.

Overview of the AAVER dual-path architecture showing global and adaptive key-point paths.

The architecture consists of two primary paths:

  1. Global Feature Extraction Path: A standard CNN (ResNet-50 or ResNet-101) processes the entire image to extract macroscopic, global appearance features.
  2. Adaptive Key-Point and Feature Extraction Path: This path uses a two-stage network to predict the vehicle's orientation and key-points.
  3. Stage 1: A VGG-16 network generates coarse heatmaps for 20 predefined vehicle key-points.
  4. Stage 2: A two-stack Hourglass network refines these heatmaps and simultaneously predicts the vehicle's orientation (e.g., "front-left" or "rear").
  5. Adaptive Selection: Based on the predicted orientation, the model selects a subset of 7 key-points that are guaranteed to be visible. It creates dilated heatmaps around these specific points and pools localized features from the intermediate layers of the global network.

Key Insights: Orientation-Conditioned Attention

The core innovation of AAVER is that orientation dictates attention. By explicitly conditioning the attention mechanism on the vehicle's orientation, the network is prevented from hallucinating features from occluded parts.

Adaptive attention heatmaps conditioned on vehicle orientation (Front, Left, Right, Rear).

Ablation studies revealed that explicitly separating global macroscopic feature extraction from localized, key-point-driven feature extraction outperforms single-path models. Furthermore, the two-stage key-point detection (VGG-16 followed by Hourglass) reduces localization errors by 20% compared to single-stage approaches.

Experimental Results

The model was evaluated on several major benchmarks:

  • VeRi-776: AAVER (ResNet-101) achieved 61.18% mAP and 88.97% CMC@1. With re-ranking, performance reached 66.35% mAP and 90.17% CMC@1.
  • VehicleID: The model achieved state-of-the-art results across all test splits, reaching 74.69% CMC@1 on the 800-image gallery split.
  • Key-point Estimation: The proposed two-stage estimator achieved 97.11% precision, a 7% improvement over the previous state-of-the-art.

Conclusion and Future Work

AAVER demonstrates that adaptive, orientation-conditioned attention significantly improves vehicle re-identification by focusing on visible, discriminative features. While the model is highly effective, it remains dependent on the accuracy of the orientation estimator. Future work involves using the high-accuracy key-point module to align vehicle images to a canonical 2D coordinate system and exploring 3D representations for tasks like speed estimation.

Summary updated

BibTeX
@inproceedings{khorramshahi2019dual,
  author = {Pirazh Khorramshahi and Amit Kumar and Neehar Peri and Sai Saketh Rambhatla and Jun-Cheng Chen and Rama Chellappa},
  title = {{A Dual Path ModelWith Adaptive Attention For Vehicle Re-Identification}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00623},
}
Figure