NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transferability prediction among classification and regression tasks using optimal transport

Tomoyuki Hatakeyama, Xueting Wang, Toshihiko YamasakiMultimedia Tools and Applications 2024 · DOI

Introduction

Transfer learning has become a cornerstone of modern deep learning, allowing practitioners to leverage pre-trained models for specialized tasks. However, selecting the optimal source model for a specific target task remains a significant challenge. Traditionally, this selection process relies on "greedy" trial-and-error, which is computationally expensive and inefficient. This paper presents a novel approach using Optimal Transport (OT) to predict transferability across diverse task types, including both classification and regression.

The Transfer Learning Bottleneck

The core difficulty lies in quantifying "transferability"—the degree to which knowledge from a source task benefits a target task. While existing metrics work well for discrete classification labels, they often fail when applied to regression tasks involving continuous values, such as image aesthetics or memorability scores. Currently, the only reliable way to determine if a source task is beneficial is to perform the actual training, a process that wastes massive amounts of compute.

The two-phase transfer learning process involves pre-training an encoder on a source task and transferring those weights to a target task.

Methodology: An Optimal Transport Framework

The authors propose a five-step pipeline based on Optimal Transport to calculate the "distance" between datasets, providing a proxy for transferability:

  1. Distillation: Large datasets are condensed into a smaller set of representative "prototypes" (e.g., 300 points) to drastically reduce computational overhead.
  2. Image Cost Matrix: The distance between images in the source and target sets is calculated using squared Euclidean distance.
  3. Conditional Probability Modeling: To bridge the gap between classification and regression, labels are represented as probability distributions. Regression labels are modeled as Gaussian distributions centered on the value, while classification labels use a relaxed uniform distribution. This puts both task types on a level playing field.
  4. Label Distance Matrix: Optimal Transport is employed to find the distance between these label distributions.
  5. Dataset Distance: A final distance metric is derived by combining image and label distances ($C' = C + \lambda D$). A smaller distance indicates higher predicted transferability.

Experimental Validation

To validate the framework, the researchers utilized nine diverse datasets covering subjective (aesthetics, memorability, quality) and objective (object recognition) tasks. They employed the Analytic Hierarchy Process (AHP) to establish a ground-truth ranking of transfer performance based on real training trials.

Data partitioning for Phase 1 (pre-training) and Phase 2 (transferring) to ensure rigorous evaluation of the prediction model.

Results: Accuracy and Efficiency

The OT-based prediction method achieved a high correlation ($\rho = 0.791$) with actual transfer learning performance. Key findings include:

  • Massive Speedup: The proposed method is approximately 300 times faster than the traditional "greedy" approach of full training.
  • Reliable Selection: There is an 88% probability that the absolute best source task is included within the top four predicted candidates.
  • Importance of Labels: Ignoring label information (setting $\lambda = 0$) caused the correlation to drop significantly, proving that the underlying logic of the task is as critical as the visual data.

Conclusion and Future Work

By leveraging Optimal Transport and unified label representation, this framework provides a robust and efficient solution for model selection across heterogeneous tasks. While challenges remain in handling significant domain gaps—such as the difference between natural color photos and grayscale icons—the method offers a substantial leap forward in making transfer learning more sustainable. Future work may incorporate deep-learning-based metric learning to better bridge these visual domain gaps.

Summary updated

BibTeX
@article{hatakeyama2024transferability,
  author = {Tomoyuki Hatakeyama and Xueting Wang and Toshihiko Yamasaki},
  title = {{Transferability prediction among classification and regression tasks using optimal transport}},
  journal = {Multimedia Tools and Applications},
  year = {2024},
  doi = {10.1007/s11042-023-15852-6},
}
Figure