Source-linked AI summary

VehicleNet: Learning Robust Visual Representation for Vehicle Re-identification

Zhedong Zheng, Tao Ruan, Yunchao Wei, Yi Yang, Tao Mei

arXiv:2004.06305v2cs.CV

TL;DR

Vehicle re-identification needs robust representations despite limited training data and substantial cross-view variation, while multi-source datasets introduce distribution differences. The paper builds VehicleNet from four public datasets and uses two-stage progressive learning to first learn generic representations and then adapt them to target data. It reports 86.07% mAP on the private AICity Challenge test set and competitive results on VeRi-776 and VehicleID.

  • Problem

    Vehicle re-identification lacks sufficient training data for robust representation learning, and multi-source datasets have differing distributions that complicate their use.

  • Method

    VehicleNet combines four public vehicle datasets, while two-stage progressive learning first learns generic representations and then fine-tunes them toward the target data distribution.

  • Results

    86.07% mAP was achieved on the private AICity Challenge test set, with competitive performance also reported on VeRi-776 and VehicleID.

  • Takeaways & Limitations

    The experiments support the feasibility and effectiveness of learning robust vehicle representations from a multi-source dataset through two-stage progressive learning.

Abstract

from arXiv · show

One fundamental challenge of vehicle re-identification (re-id) is to learn robust and discriminative visual representation, given the significant intra-class vehicle variations across different camera views. As the existing vehicle datasets are limited in terms of training images and viewpoints, we propose to build a unique large-scale vehicle dataset (called VehicleNet) by harnessing four public vehicle datasets, and design a simple yet effective two-stage progressive approach to learning more robust visual representation from VehicleNet. The first stage of our approach is to learn the generic representation for all domains (i.e., source vehicle datasets) by training with the conventional classification loss. This stage relaxes the full alignment between the training and testing domains, as it is agnostic to the target vehicle domain. The second stage is to fine-tune the trained model purely based on the target vehicle set, by minimizing the distribution discrepancy between our VehicleNet and any target domain. We discuss our proposed multi-source dataset VehicleNet and evaluate the effectiveness of the two-stage progressive representation learning through extensive experiments. We achieve the state-of-art accuracy of 86.07% mAP on the private test set of AICity Challenge, and competitive results on two other public vehicle re-id datasets, i.e., VeRi-776 and VehicleID. We hope this new VehicleNet dataset and the learned robust representations can pave the way for vehicle re-id in the real-world environments.

I. INTRODUCTION

Vehicle re-identification requires robust, discriminative representations despite viewpoint, illumination, occlusion, and limited training data. The paper addresses these constraints by building VehicleNet from public datasets and applying two-stage progressive learning.

  • Vehicle re-identification is challenging because vehicles vary across viewpoints, illumination conditions, and occlusions, while small datasets limit robust feature learning.
  • Public vehicle datasets offer related images that can provide common vehicle knowledge, but their differing collection environments and visual biases complicate multi-source learning.
  • VehicleNet combines public datasets and expands CityFlow-scale training data from 26,803 to 434,440 images for learning robust vehicle representations.
  • Two-stage progressive learning first learns generic vehicle representations from VehicleNet, then fine-tunes them toward the target data distribution.
  • 86.07% mAP was achieved on the private AICity Challenge test set using temporal and spatial annotation, while the method also reached 75.60% mAP without extra information.
  • The study reports competitive performance on CityFlow, VeRi-776, and VehicleID while verifying the feasibility of learning from VehicleNet.

A. Vehicle Re-identification

Prior vehicle re-identification research improves representations through new datasets, deep models, synthesized samples, transfer learning, and pseudo-label adaptation. VehicleNet extends this direction by combining four public datasets containing diverse collection conditions and visual biases.

  • Vehicle re-identification research has advanced through new datasets and deeply learned discriminative vehicle features.
  • Existing methods enrich representations with multi-level, part-based, temporal-spatial, and metric-learning strategies.
  • Generative models synthesize additional samples or styles to increase training diversity and improve robust feature learning.
  • Transfer-learning methods either align source and target domains through style transfer or adapt predictions through pseudo-label learning.
  • VehicleNet combines CityFlow, VeRi-776, CompCar, and VehicleID into 434,440 training images spanning 31,805 classes, without overlap with validation or private test images.
  • The four source datasets differ in collection places and visual biases, including illumination, viewpoints, and scene conditions.

B. Task Definition

Vehicle re-identification learns a projection from vehicle images to discriminative representations by optimizing a loss with classifier weights and regularization. The formulation targets representations that generalize across multiple augmented datasets with different distributions.

  • Vehicle re-identification learns a projection function F that maps each input image x_i to a discriminative representation f_i.
  • The optimization combines a loss term for classifier-based prediction with a regularization term weighted by α.W denotes classifier weights, Ω(F) the regularization term, and α its weight.
  • The learned representation should apply across augmented datasets while fitting their different data distributions.
  • Weight decay regularization limits weight growth and reduces overfitting to the dataset.
  • The model structure replaces average pooling with adaptive average pooling that squeezes outputs to a predefined 1 × 1 shape.

IV. METHODOLOGY

The method uses an ImageNet-pretrained CNN backbone as a scalable feature extractor, replacing its classifier and pooling while adding bottleneck and classification layers for vehicle prediction.

  • The method uses an ImageNet-pretrained CNN backbone and can scale across ResNet-50, DenseNet121, SE-ResNeXt101, and SENet-154.
  • It removes the original ImageNet classification layer and replaces average pooling with adaptive average pooling over feature-map height and width.
  • A 512-dimensional fc1 layer, batch normalization, and fc2 produce the final prediction over the dataset’s vehicle categories.

B. Two-stage Progressive Learning

The method learns a shared vehicle representation on multi-source VehicleNet, then fine-tunes it on the target dataset with a replacement classifier. Stage I supplies initialization that keeps samples far from the subsequent target-domain decision boundary.

  • Stage I: The multi-source cross-entropy objective uses one-hot labels and predicted category probabilities for vehicle classification.The dataset index identifies the public source dataset associated with each sample.
  • Stage I: Stage I trains a CNN on all VehicleNet data with cross-entropy to learn a shared representation across four public datasets.The datasets are CityFlow, VehicleID, CompCar, and VeRi-776, treated equally during training.
  • Progressive learning: The two-stage procedure first learns a target-agnostic representation and then further optimizes it for the target environment.The first stage is not fully aligned with the target domain, while the second stage uses only the target dataset.
  • Stage II: Stage II fine-tunes the trained model only on the target dataset, replacing the classifier because the target has fewer vehicle categories.For CityFlow, the target dataset is treated as the first dataset and the feature parameters are updated using target-domain cross-entropy.
  • Progressive learning: Stage I provides weight initialization with a larger margin from the new decision boundary after auxiliary classes are removed.The auxiliary classes expand the decision space and help yield discriminative features for subsequent target fine-tuning.

C. Post-processing

Inference combines features from original and cropped vehicle images with camera-aware predictions, query expansion, camera verification, and re-ranking. These post-processing steps are applied sequentially to improve retrieval robustness and remove hard negatives.

  • Feature processing: The inference pipeline extracts features from eight SE-ResNeXt101 models for both an input image and its MaskRCNN crop, then normalizes and concatenates them.The final vehicle representation averages original-image and cropped-image representations to reduce background noise.
  • Camera verification: A fine-tuned DenseNet121 produces camera predictions that support camera-aware verification during retrieval.Camera verification is intended to remove hard-negative samples using camera-related clustering and the assumption that true matches come from different cameras.
  • Query expansion & re-ranking: Query expansion updates the query feature with the mean feature of similar queries found by DBSCAN clustering.The method then applies re-ranking using high-confidence candidate images without modifying the re-ranking procedure itself.
  • Temporal annotation: Temporal filtering retains gallery candidates within [t − τ, t + τ] around the query timestamp and filters out many hard negatives.This step relies on the assumption that vehicles usually appear once across the camera network.

A. Implementation Details

Experiments use different backbone, image-size, optimization, and training-duration settings for public datasets and the CityFlow competition dataset. CityFlow receives a stronger backbone and longer target-stage fine-tuning configuration.

  • VeRi-776 and VehicleID: VeRi-776 and VehicleID use ResNet-50 with 256 × 256 inputs, SGD momentum 0.9, batch size 36, and weight decay 0.0001.The initial learning rate is 0.02 and is reduced by a factor of 10 at specified first- and second-stage epochs.
  • VeRi-776 and VehicleID: VeRi-776 and VehicleID training lasts 60 epochs in Stage I, with learning-rate reductions at the 40th first-stage and 8th second-stage epochs.These settings follow the cited comparison protocol for the two public datasets.
  • CityFlow: CityFlow uses SE-ResNeXt101 with 384 × 384 inputs, 60 first-stage epochs, and 12 second-stage epochs.Validation inference uses horizontally flipped mean features, whereas the private test applies all described post-processing methods.

B. Qualitative Results

VehicleNet improves vehicle re-identification across public benchmarks by combining multi-source training data with the proposed representation-learning approach. Qualitative retrieval and activation visualizations further indicate that the learned model captures discriminative vehicle details.

  • VehicleNet improved performance when training data from individual additional vehicle datasets were incorporated, including CityFlow + CompCar.
  • 83.41% mAP and 96.78% Rank@1 were achieved on VeRi-776, exceeding the reported Part-based model results of 74.3% mAP and 94.3% Rank@1.
  • The comparison covers Rank@1 and mAP on VeRi-776 and VehicleID, with conventional handcrafted features and self-designed networks marked separately.
  • Query images from front, overhead, rear, and side viewpoints retrieved relevant matches within the top five results.
  • Activation heatmaps showed strong responses around discriminative details such as headlights and tire types for images of the same vehicle ID.

C. Further Evaluations and Discussion

Further evaluations show that target-domain fine-tuning substantially improves the generic VehicleNet representation, while complementary techniques provide additional but distinct gains. The two training stages also differ in convergence behavior.

  • 75.60% mAP and 87.45% Rank@1 were achieved after Stage II, improving over Stage I by 7.39% mAP and 4.75% Rank@1 on CityFlow.
  • +2.50% mAP and +0.83% Rank@1 were obtained on VeRi-776 through Stage-II fine-tuning.
  • The two-stage strategy outperformed CycleGAN-based style transfer, which introduced unrealistic noise and required extra training time.
  • Combining the proposed method with PCB reached 97.26% Rank@1 and 83.54% mAP on VeRi-776.
  • Stage I required more epochs to converge, whereas Stage II converged early using the Stage-I trained weights.

VI. CONCLUSION

The paper addresses limited training data and the challenge of harnessing multiple public vehicle datasets through VehicleNet and two-stage progressive learning. It reports strong CityFlow performance and competitive results on two public benchmarks, while identifying broader data expansion and weak supervision as future directions.

  • VehicleNet and two-stage progressive learning address the lack of training data and the use of multiple public datasets in vehicle re-identification.
  • 86.07% mAP was achieved in the AICity19 Challenge, alongside competitive performance on VeRi-776 and VehicleID.
  • Future work includes enlarging the dataset through search-engine collection, generating synthetic data with GANs or 3D models, and exploring weakly supervised learning.
Loading 2004.06305v2…