TL;DR
This paper systematically explores transfer learning across diverse image domains and complex computer vision tasks, revealing that the image domain of the source data is the most crucial factor for successful transfer, even more so than the task type or dataset size. The authors provide concrete recommendations for practitioners, suggesting that selecting a source dataset that closely matches the target domain is key to achieving significant performance gains beyond standard ImageNet pre-training.
What Problem Does This Paper Address?
In computer vision, a common practice is "transfer learning," where a model pre-trained on a large dataset like ImageNet (specifically, ILSVRC'12) is fine-tuned for a new, often smaller, target task. While this approach is widely used and effective, the underlying reasons for its success and the factors that influence its performance are not fully understood. Specifically, it's unclear how much the type of images (domain), the specific task the model was trained on (task type), and the size of the training data contribute to successful transfer. This paper aims to systematically investigate these factors by conducting a large-scale experimental study to provide practical guidance on how to choose the best source for transfer learning.
Methods
The authors employ a rigorous experimental setup to explore transfer learning. Their core methodology involves:
- Transfer Chains: They define a transfer chain as
ILSVRC'12 -> Source Task -> Target Task. They compare this to the standardILSVRC'12 -> Target Taskbaseline. - Extensive Experimentation: They conduct over 2000 transfer learning experiments, varying source and target datasets, task types, and dataset sizes.
- Diverse Datasets: They curate a collection of 20 datasets spanning seven distinct image domains (consumer, driving, aerial, underwater, indoor, synthetic, close-ups) and four complex structured prediction task types (semantic segmentation, object detection, depth estimation, keypoint detection).
- Systematic Analysis: They analyze the results by systematically varying three key factors: image domain difference, task type difference, and dataset size. They also introduce a continuous metric for domain similarity based on feature distances.
- Network Architecture: They use the HRNetV2 architecture as a backbone, known for its ability to preserve high-resolution spatial features, making it suitable for various structured prediction tasks.
Datasets
The study utilizes a diverse set of 20 publicly available datasets, carefully selected to cover a wide range of image domains and task types. These include:
- Consumer Domains: Pascal Context, Pascal VOC, MPII Human Pose, ADE20K, COCO Panoptic.
- Driving Domains: KITTI, CamVid, CityScapes, India Driving Dataset (IDD), Berkeley Deep Drive (BDD), Mapillary Vista Dataset.
- Aerial Domains: ISPRS, iSAID.
- Indoor Domains: SUN RGB-D, ScanNet.
- Underwater Domains: SUIM, Underwater Trash (UWT).
- Close-ups: Stanford Dogs.
- Synthetic Domains: VKITTI2, vGallery.
Additionally, the standard ILSVRC'12/ImageNet dataset is used for initial pre-training.
Key Insights and Ideas
- Domain Dominance: The most significant factor for successful transfer learning is the similarity between the source and target image domains. Transferring knowledge between datasets captured under similar visual conditions yields much better results than transferring across vastly different domains.
- Domain Inclusion is Key: For positive transfer, the source dataset should ideally include the image domain of the target dataset. This is supported by visualizations showing consumer datasets encompassing broader visual characteristics.
- Task Type is Secondary: While task type matters, its influence is less pronounced than domain similarity. Transferring across different task types can be beneficial, but it's highly dependent on the specific source and target tasks.
- Broad Sources are Okay (Mostly): When the source domain is much broader than the target domain, the negative effects are surprisingly small, suggesting that a diverse source can still be beneficial if it contains relevant subsets.
- ILSVRC'12 is a Solid Baseline, But Not Optimal: While ILSVRC'12 pre-training is a good starting point, the study demonstrates that for most target tasks, there exists a better source that significantly outperforms it.
- Smaller Datasets Benefit More: Transfer learning effects are more pronounced when the target dataset is small, as the model has less data to learn from scratch.
- Multi-Source Models are Good, But Not Always Best: Multi-source models, trained on a combination of datasets, consistently yield positive transfer. However, they are often outperformed by the largest single source model within the target domain.
Key Results
- 85% of target tasks benefit from a better source than ILSVRC'12 in the small target training set regime.
- Within-domain transfer (source and target from the same image domain) shows significantly higher positive transfer gains (69% of experiments) compared to cross-domain transfer (14% positive gains).
- The image domain difference is a more important factor for transfer gains than source dataset size, with a rank correlation of 0.40 vs 0.12.
- For semantic segmentation, within-domain, cross-task-type transfer yielded positive gains in 43% of experiments, while cross-domain, within-task-type transfer only yielded positive gains in 14% of experiments.
- Transfer learning effects are larger for small target training sets, with gains being more pronounced compared to using the full target dataset.
Limitations and Future Work
- Dataset Overlap: The authors acknowledge the risk of image overlap between datasets, though they argue it's unlikely to significantly alter results due to different annotation types or geographical acquisition.
- Computational Cost: While pre-training costs are higher than standard ILSVRC'12 pre-training, they are amortized as source models can be reused.
- Future Work: The authors suggest that future pre-training efforts should focus on structured prediction tasks, not just classification, to better leverage transfer learning for complex vision applications. They also highlight the importance of understanding how task types influence learned features.
Summary updated