Large-scale Training Data Search for Object Re-identification

Yue Yao, Huan Lei, Tom Gedeon, Liang Zheng

Abstract

We consider a scenario where we have access to the target domain, but cannot afford on-the-fly training data annotation, and instead would like to construct an alternative training set from a large-scale data pool such that a competitive model can be obtained. We propose a search and pruning (SnP) solution to this training data search problem, tailored to object re-identification (re-ID), an application aiming to match the same object captured by different cameras. Specifically, the search stage identifies and merges clusters of source identities which exhibit similar distributions with the target domain. The second stage, subject to a budget, then selects identities and their images from the Stage I output, to control the size of the resulting training set for efficient training. The two steps provide us with training sets 80% smaller than the source pool while achieving a similar or even higher re-ID accuracy. These training sets are also shown to be superior to a few existing search methods such as random sampling and greedy sampling under the same budget on training data size.

The Challenge of Domain Gap in Re-ID

Object re-identification (re-ID) is the task of matching the same person or vehicle across non-overlapping camera views. A major hurdle in deploying re-ID systems is the "domain gap." A model trained on a specific dataset often fails when applied to a new environment due to variations in lighting, camera angles, backgrounds, and even the demographics or clothing styles of the subjects.

Figure 6: Visualizing domain bias in human re-ID datasets. Market-1501 and DukeMTMC-reID show distinct differences in clothing styles and human races.

Traditionally, researchers have addressed this through unsupervised domain adaptation (UDA). However, this paper explores a different path: instead of adapting the model, can we curate a better training set from existing labeled data? Simply "training on everything" is often counterproductive, as irrelevant data introduces noise and significantly increases computational costs.

The Search and Pruning (SnP) Framework

The authors introduce Search and Pruning (SnP), a two-stage framework designed to "cherry-pick" the most relevant training samples from a massive source pool to match a specific target environment.

The first stage aims to find identities in the source pool that are most similar to the target domain.

  • Clustering: All identities in the source pool are clustered based on visual features.
  • FID-based Selection: The Fréchet Inception Distance (FID), commonly used to evaluate generative models, is employed here to measure the distribution distance between source clusters and the target domain.
  • Greedy Search: Clusters are added to the training set in a way that minimizes the overall FID to the target, ensuring the resulting dataset "looks" like the deployment environment.

2. Budget-constrained Pruning

Once a relevant subset is identified, the second stage reduces the number of images to meet specific computational budgets (e.g., limited GPU time).

  • Furthest Point Sampling (FPS): Instead of random selection, SnP uses FPS to select the most diverse and representative images for each identity. This ensures the model learns robust features from a wide variety of viewpoints and conditions within the curated subset.

Experimental Setup

The framework was tested using two massive source pools:

  • Person re-ID Pool: ~15,000 identities and ~400,000 images from 10 public datasets (e.g., Market-1501, MSMT17, PersonX).
  • Vehicle re-ID Pool: ~156,000 identities and >1.2 million images from 8 datasets (e.g., VeRi, CityFlow).

Evaluation targets included real-world datasets like AlicePerson and AliceVehicle.

Key Results and Discussion

The SnP framework demonstrates that "less is more" in the context of training data. By selecting only the most relevant 20% of the source pool, SnP achieved a Rank-1 accuracy of 47.20% on the AlicePerson target—nearly matching the performance of using the entire searched set while being significantly more efficient.

Figure 1: Performance comparison of SnP against individual datasets and the full source pool. SnP achieves superior accuracy with a fraction of the training samples.

Key Insights:

  • Noise Reduction: Curated subsets often outperform the full source pool because they exclude irrelevant data that acts as noise during training.
  • FID as a Metric: The study confirms a strong negative correlation between FID and Rank-1 accuracy, validating FID as a reliable proxy for domain gap in re-ID.
  • Synthetic Data Utility: Synthetic datasets like PersonX were frequently selected by the search stage, proving their value in bridging distribution gaps that real-world data might miss.

Conclusion

The Search and Pruning (SnP) framework offers a practical and efficient solution for building high-performance re-ID models without the need for new target-domain annotations. By leveraging FID for search and FPS for pruning, SnP creates compact, high-quality training sets that effectively bridge the domain gap. Future work may extend this philosophy to other computer vision tasks like object detection and segmentation.

Summary updated

BibTeX
@inproceedings{yao2023large,
  author = {Yue Yao and Huan Lei and Tom Gedeon and Liang Zheng},
  title = {{Large-scale Training Data Search for Object Re-identification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=YgwGaxPaOH},
}
Figure