GAIA: A Transfer Learning System of Object Detection that Fits Your Needs

Xingyuan Bu, Junran Peng, Junjie Yan, Tieniu Tan, Zhaoxiang Zhang

TL;DR

GAIA is a comprehensive transfer learning system for object detection that efficiently "gives birth" to customized models tailored to specific latency constraints and data domains. By combining a unified large-scale data pool with a weight-sharing supernet and intelligent architecture selection, GAIA outperforms traditional ImageNet pre-training and training-from-scratch across a wide variety of downstream tasks.

What Problem Does This Paper Address?

While large-scale pre-training (like BERT in NLP or BiT in CV) has revolutionized deep learning, it remains remarkably inflexible. In the real world, object detection tasks have diverse requirements: a model might need to run on a low-power mobile device (strict latency) or detect specialized objects like medical anomalies or aerial views (unique data distributions).

Currently, if you need a specific architecture for a specific latency, you usually have to pre-train it from scratch on a massive dataset—a process that is prohibitively expensive for most. Furthermore, practitioners with very little data for their specific task often struggle to leverage these giant pre-trained models effectively. GAIA addresses this "gap between generalist and specialist models" by providing a system that automates architecture selection and data augmentation from a massive upstream pool.

Methods

GAIA consists of two main phases: Task-agnostic Unification and Task-specific Adaptation.

1. Task-agnostic Unification

  • Unified Data & Label Space: The authors merged multiple major datasets (like COCO and Open Images) into a single pool. To handle conflicting or overlapping categories (e.g., "man" vs. "person"), they used word2vec similarity to map labels into a unified space of 700 categories.
  • Unified Architecture Training: Instead of training one model, they trained a supernet using weight-sharing. This single training run produces a model from which thousands of sub-networks (varying in depth, width, and input scale) can be extracted.
  • Anchor-based Progressive Shrinking (ABPS): Standard progressive shrinking often fails in detection because the relationship between network depth and input scale (receptive field) is delicate. ABPS trains around specific "model anchors" to ensure sub-networks remain compatible and performant across a wide latency range.

2. Task-specific Adaptation

  • Task-Specific Architecture Selection (TSAS): To find the best sub-network for a new task without evaluating 300k+ candidates, GAIA uses a two-step search. A crucial finding here was that "direct evaluation" of sub-networks is unreliable. Instead, they use a "fast-finetuning" proxy (training for just 0.2x of a standard schedule), which dramatically improves the correlation between predicted and actual performance.
  • Task-Specific Data Selection (TSDS): For data-scarce scenarios, GAIA can "crawl" its own upstream data pool to find images similar to the downstream task using feature embeddings from the network's internal layers.

Datasets

  • Upstream (Pre-training): A massive union of Open Images, Objects365, MS-COCO, Caltech, and CityPersons.
  • Downstream (Evaluation): The Universal Object Detection Benchmark (UODB), which includes 10 diverse datasets: Pascal VOC, WiderFace, KITTI, LISA, DOTA, Watercolor, Clipart, Comic, Kitchen, and DeepLesions.

Key Insights and Ideas

  • The "Direct Eval" Trap: The authors discovered that simply running a sub-network from a supernet on a validation set (direct evaluation) is a poor predictor of how that model will perform after finetuning. As shown in Figure 2, the Kendall Tau (a measure of ranking correlation) jumped from a weak 0.18 to a robust 0.85 when using "fast-finetuning." Model ranking correlations
  • Implicit Domain Knowledge: Large-scale pre-training allows the model to learn domain representations implicitly. Visualizing these features via t-SNE (Figure 3) shows that common datasets occupy broad spaces, while specialized ones (like Comic or Caltech) form tight, distinct clusters. t-SNE visualization of domain features
  • Receptive Field Matters: Unlike image classification, object detection is highly sensitive to the match between input resolution and network depth. ABPS is essential to maintain this balance during supernet training.
Figure 2: Model ranking in different settings. (a) and (b) show the ranking of models with different and similar FLOPs respectively. (c) shows the ranking of “fast-finetuned” models with similar FLOPs but different input scales and depths.
Figure 3: Visualization of output features in fc7 layer from GAIA using t-SNE. We take person category as an example and sample 1000 images for each dataset. The color repre- sents the dataset for each image.

Key Results

GAIA demonstrates superior flexibility and performance compared to standard baselines:

  • Efficiency: On COCO, GAIA produced models covering a latency range of 16ms to 53ms, with AP scores ranging from 38.2 to 46.5.
  • Superiority over Scratch: Models adapted from GAIA outperformed those trained from scratch by an average of 12.67% within the same training time.
  • Generalization: On the UODB benchmark, GAIA improved average mAP by 4.4% over COCO pre-training, with the TSAS architecture selection adding another 2.5% boost.
  • Latency vs. Accuracy: As seen in Figure 1, GAIA models (orange line) consistently provide a better accuracy-to-latency trade-off than models trained from scratch or standard ImageNet-initialized ResNets. Transfer performance and latency constraints
Figure 1: Transfer performance of GAIA models that adapt to various downstream needs including specified domains and latency constraints. No whistles and bells are used.

Limitations and Future Work

  • Computational Cost of Training: While using GAIA is efficient, the initial construction and training of the supernet on massive data is a "heavy workload."
  • Architecture Scope: The current implementation focuses on ResNet-based architectures. The authors suggest extending this to more mobile-friendly backbones like MobileNetV3 or different frameworks like YOLO.
  • Task Expansion: Future iterations could expand beyond object detection to other vision tasks like semantic segmentation (GAIA-Seg).

The code and pre-trained weights are available at https://github.com/GAIA-vision.

Summary updated

Abstract

Transfer learning with pre-training on large-scale datasets has played an increasingly significant role in computer vision and natural language processing recently. However, as there exist numerous application scenarios that have distinctive demands such as certain latency constraints and specialized data distributions, it is prohibitively expensive to take advantage of large-scale pre-training for per-task requirements. In this paper, we focus on the area of object detection and present a transfer learning system named GAIA, which could automatically and efficiently give birth to customized solutions according to heterogeneous downstream needs. GAIA is capable of providing powerful pre-trained weights, selecting models that conform to downstream demands such as latency constraints and specified data domains, and collecting relevant data for practitioners who have very few datapoints for their tasks. With GAIA, we achieve promising results on COCO, Objects365, Open Images, Caltech, CityPersons, and UODB which is a collection of datasets including KITTI, VOC, WiderFace, DOTA, Clipart, Comic, and more. Taking COCO as an example, GAIA is able to efficiently produce models covering a wide range of latency from 16ms to 53ms, and yields AP from 38.2 to 46.5 without whistles and bells. To benefit every practitioner in the community of object detection, GAIA is released at https://github.com/GAIA-vision.
BibTeX
@inproceedings{bu2021gaia,
  author = {Xingyuan Bu and Junran Peng and Junjie Yan and Tieniu Tan and Zhaoxiang Zhang},
  title = {{GAIA: A Transfer Learning System of Object Detection that Fits Your Needs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=LiZGQXHxHN},
}
Figure