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

Practical Transferability Estimation for Image Classification Tasks

Yang Tan, Yang Li, Shao-Lun HuangarXiv 2021

Introduction

Transfer learning has become a cornerstone of modern computer vision, where models pre-trained on large-scale datasets like ImageNet are adapted to specific target tasks. However, a critical challenge remains: source model selection. Practitioners often default to choosing the model with the highest accuracy on the source task. Unfortunately, high source performance does not guarantee high transfer performance, particularly when there is a significant domain shift (e.g., from natural photos to sketches) or task shift.

The JC-NCE Metric

To address this, we introduce JC-NCE (Joint Correspondences Negative Conditional Entropy), a robust and efficient metric for predicting transferability. Unlike previous methods that rely on expensive trial-and-error training or complex auxiliary tasks, JC-NCE provides a transferability score in seconds.

Methodology: Joint Correspondences and Optimal Transport

The core of JC-NCE lies in its use of Optimal Transport (OT) to align source and target distributions. While standard OT approaches often focus solely on visual feature similarity, JC-NCE incorporates label information into the "ground cost" of the transport problem.

  1. Joint Correspondences: The metric calculates a cost that combines sample distance (visual similarity) and label distance (semantic similarity). Label distance is derived using the Wasserstein distance between class-specific image distributions.
  2. Optimal Transport Mapping: By solving the OT problem with this joint cost, the algorithm generates a coupling matrix that matches source data points to target data points while respecting both appearance and category.
  3. Negative Conditional Entropy: The final score is the negative conditional entropy of the labels. A high score indicates that source labels are strong predictors of target labels, signifying high transferability.
Visualization of the joint correspondences established by JC-NCE between source and target data points.

Experimental Evaluation

The effectiveness of JC-NCE was validated across diverse benchmarks, including DomainNet (cross-domain transfer), Office31, and the Visual Task Adaptation Benchmark (VTAB) for inter-dataset evaluation.

Key Insights

  • Semantic Alignment: By integrating labels into the matching process, JC-NCE ensures semantically meaningful correspondences (e.g., matching a source "dog" to a target "dog" rather than a visually similar but unrelated object).
  • Domain Robustness: JC-NCE maintains high predictive accuracy even across large domain gaps, where traditional metrics like H-score or LEEP often fail.
  • Efficiency: The metric is "auxiliary-task free," requiring no prior knowledge or extra training data to calibrate its predictions.

Results

JC-NCE demonstrates a significant improvement over existing state-of-the-art metrics. In intra-dataset tests, it outperformed the previous best auxiliary-task-free metric by 7%, and by 12% in inter-dataset scenarios.

Comparison of Transfer Accuracy prediction. Left: Source Model Accuracy is a poor predictor (r=-0.131). Right: JC-NCE shows a strong linear correlation (r=0.928) with actual transfer performance.

The metric achieves a Pearson correlation of up to 0.914 with actual fine-tuned accuracy. Crucially, it offers a massive speedup: computing a score takes less than 2 seconds on a CPU, compared to over 14 minutes for empirical fine-tuning on a GPU—a nearly 500x improvement in efficiency.

Conclusion

JC-NCE provides a practical, fast, and accurate way to estimate model transferability. While it currently assumes a shared feature space and requires a weighting parameter for label vs. sample distance, its performance across varied domains makes it a powerful tool for automated model selection. Future work will explore its application to heterogeneous transfer learning and multi-task optimization.

Summary updated

BibTeX
@misc{tan2021practical,
  author = {Yang Tan and Yang Li and Shao-Lun Huang},
  title = {{Practical Transferability Estimation for Image Classification Tasks}},
  year = {2021},
  eprint = {2106.10479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.10479},
}
Figure