Coarse-to-Fine: A RNN-Based Hierarchical Attention Model for Vehicle Re-identification

Xiu-Shen Wei, Chen-Lin Zhang, Lingqiao Liu, Chunhua Shen, Jianxin Wu

Abstract

Vehicle re-identification (Re-ID) is a challenging task due to high intra-class similarity and inter-class variance. This paper introduces a novel RNN-based Hierarchical Attention (RNN-HA) model that mimics the human "coarse-to-fine" cognitive process. By first identifying a vehicle's model and then using that information to guide the search for unique instance-level details, the model achieves superior performance. Evaluated on the VeRi and VehicleID datasets, RNN-HA significantly outperforms existing state-of-the-art methods by leveraging the logical dependency between category and identity.

1. Introduction

Vehicle Re-ID involves identifying the same vehicle across different camera views. Unlike general object classification, it requires distinguishing between nearly identical cars of the same make and model. Humans typically solve this by first recognizing the car's general type and then focusing on specific, subtle cues like a unique sticker or dashboard ornament.

The coarse-to-fine identification process: first identifying the car model, then the specific vehicle instance.

Existing methods often treat these hierarchical levels as independent. In contrast, the proposed RNN-HA model explicitly models this dependency, using a coarse-grained classification to "prime" a fine-grained attention mechanism.

2. Methodology

The RNN-HA framework consists of three interconnected modules designed to extract and refine visual features.

2.1 Representation Learning Module

A standard CNN backbone (e.g., ResNet-50) is used to extract feature maps. To preserve spatial information necessary for localizing small details, the authors utilize raw convolutional activation tensors rather than flattened global vectors.

2.2 RNN-based Hierarchical Module

This module uses Gated Recurrent Units (GRUs) to model the hierarchical dependency. In Step 1, the model predicts the car's general model/type. In Step 2, the hidden state from the first step—containing categorical context—is passed forward to assist in identifying the specific vehicle instance.

2.3 Attention Module

The attention module acts as a filter, guided by the "guidance signal" from the RNN. It applies spatial attention to the activation tensors, allowing the model to focus on discriminative regions (like the grille or windshield) while ignoring common features (like tires) that do not help distinguish between cars of the same model.

Architecture of the RNN-HA model, featuring the representation learning, attention, and RNN-based hierarchical modules.

3. Experiments and Results

The model was rigorously tested on two major benchmarks: VeRi and VehicleID.

3.1 Performance on VeRi

On the VeRi dataset (50,000+ images), the RNN-HA model achieved a Mean Average Precision (mAP) of 56.80% and a Top-1 accuracy of 80.79%. This represents a significant improvement over previous methods like FACT and VAMI.

3.2 Performance on VehicleID

On the larger VehicleID dataset, the model demonstrated exceptional scalability. In the largest test setting (2,400 vehicles), it reached 81.1% Top-1 accuracy, outperforming the previous state-of-the-art by nearly 34 percentage points.

3.3 Ablation Study

Ablation experiments confirmed that the RNN structure is vital for performance. A baseline using simple fully connected layers (FC-HA) instead of the RNN performed significantly worse, validating the importance of the hierarchical "memory" provided by the GRU.

4. Conclusion

The RNN-HA model effectively bridges the gap between coarse-grained category recognition and fine-grained instance identification. By mimicking the human "coarse-to-fine" approach, the model learns to ignore irrelevant global patterns and focus on the "needle in the haystack" features that define a specific vehicle. Future work will explore the integration of additional attributes and improving robustness to extreme viewpoint changes.

Summary updated

BibTeX
@inproceedings{wei2018coarse,
  author = {Xiu-Shen Wei and Chen-Lin Zhang and Lingqiao Liu and Chunhua Shen and Jianxin Wu},
  title = {{Coarse-to-Fine: A RNN-Based Hierarchical Attention Model for Vehicle Re-identification}},
  booktitle = {ACCV},
  year = {2018},
  doi = {10.1007/978-3-030-20890-5\_37},
}
Figure