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

Towards Estimating Transferability using Hard Subsets

Tarun Ram Menta, Surgan Jandial, Akash Patil, Vimal K B, Saketh Bachu, Balaji Krishnamurthy, Vineeth N. Balasubramanian, Chirag Agarwal, Mausoom Sarkar · DOI

Introduction

In modern deep learning, the standard practice is to leverage "transfer learning," where a model pre-trained on a massive dataset like ImageNet is fine-tuned for a specific target task. However, with the explosion of available pre-trained architectures, selecting the optimal "source" model for a given "target" task has become a significant challenge.

While full fine-tuning is the most accurate way to evaluate a model's potential, it is computationally prohibitive to perform for every candidate. Existing "transferability metrics" (such as LEEP or NCE) aim to predict this performance quickly, but they often falter when the source and target domains are significantly different. The core issue identified by the authors is that "easy" samples—those highly similar to the source data—provide little information about a model's true capacity to adapt. Instead, it is the "hard" samples that reveal a model's potential.

The HASTE Framework

The authors propose HASTE (HArd Subset TransfErability), a strategy designed to enhance any existing transferability metric. Rather than calculating a score across the entire target dataset, HASTE identifies a "hard subset" and restricts the metric's calculation to these samples.

Figure 1: Accuracy across difficulty bins (B1-B5) for ResNet-18 and VGG-19, alongside visual examples of easy and hard samples.

As shown in Figure 1, model accuracy varies significantly across difficulty bins. HASTE identifies these hard samples using two primary methods:

  1. Class-Agnostic (CA): This method analyzes internal model activations, comparing target image features to source image features using cosine similarity. Samples least similar to the source data are deemed "hard."
  2. Class-Specific (CS): This method utilizes target labels to model each class as a distribution in the embedding space. Samples furthest from their class center (measured via Mahalanobis distance) are considered "hard."

Typically, the hardest 25-33% of the data is selected to form the subset for scoring.

Key Insights: Entanglement as Difficulty

A critical finding of this research is the relationship between data difficulty and feature space organization. Using t-SNE visualizations, the authors demonstrate that "easy" samples are often well-segregated in the model's feature space because they align with the model's existing knowledge. In contrast, "hard" subsets are highly entangled.

Figure 4: t-SNE visualizations comparing the full dataset (a) to the hard subsets identified by Class-Agnostic (b) and Class-Specific (c) methods.

As illustrated in Figure 4, the hard subsets (b and c) show much tighter clustering and overlap compared to the full dataset (a). A model's ultimate success in transfer learning depends on its ability to "disentangle" these complex clusters during the fine-tuning process. By focusing metrics on these entangled regions, HASTE provides a more sensitive measure of a model's learning potential.

Experimental Results

HASTE was validated across a diverse array of tasks, including image classification (Caltech101, Stanford Dogs), semantic segmentation (CityScapes, BDD100k), and NLP sentiment analysis (IMDB, BERT architectures).

Key results include:

  • Improved Correlation: HASTE-modified metrics showed significantly higher Pearson Correlation Coefficients (PCC) with actual fine-tuned accuracy than their standard counterparts.
  • Architecture Selection: In source architecture selection, HASTE improved the LEEP metric's correlation by +129.74%.
  • Cross-Domain Robustness: For semantic segmentation, HASTE-LEEP improved correlation by +182.23% over standard LEEP, proving its utility beyond simple classification.
  • Efficiency: Finding the hard subset adds minimal overhead (e.g., ~25 seconds on a single GPU), remaining orders of magnitude faster than full fine-tuning.

Conclusion

HASTE demonstrates that data selection is as crucial as the mathematical formulation of transferability metrics. By filtering out the "noise" of easy, in-distribution samples, HASTE allows researchers to more accurately and efficiently rank pre-trained models. Future work may involve refining subset selection thresholds and extending the framework to multi-source transfer learning and domain generalization scenarios.

Summary updated

BibTeX
@misc{menta2023towards,
  author = {Tarun Ram Menta and Surgan Jandial and Akash Patil and Vimal K B and Saketh Bachu and Balaji Krishnamurthy and Vineeth N. Balasubramanian and Chirag Agarwal and Mausoom Sarkar},
  title = {{Towards Estimating Transferability using Hard Subsets}},
  year = {2023},
  eprint = {2301.06928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.06928},
}
Figure