Class Subset Selection for Transfer Learning using Submodularity

Varun Manjunatha, Srikumar Ramalingam, Tim K. Marks, Larry S. DavisarXiv 2018

Introduction

In deep learning, the prevailing wisdom is that "more is better"—more data, deeper architectures, and a larger number of classes. Standard practice for new image classification tasks involves leveraging models pre-trained on massive datasets like ImageNet. However, this paper challenges the assumption that training on every available class in a source dataset necessarily yields the most effective features for a specific target task.

The authors of "Class Subset Selection for Transfer Learning using Submodularity" demonstrate that carefully selecting a Subset of Classes (SOC) from the source dataset can produce superior features for transfer learning while simultaneously reducing training overhead.

Problem Formulation: The OPT-SOC Problem

The computer vision community often assumes that a feature extractor trained on 1,000 classes is fundamentally better than one trained on 100. This intuition overlooks two key factors:

  1. Monotonicity: Does the quality of learned features always improve as more classes are added?
  2. Diversity vs. Redundancy: Do highly similar classes (e.g., multiple breeds of dogs) enhance or hinder the "generality" of features when the target task is unrelated (e.g., medical imaging)?

The authors formalize this as the OPT-SOC problem: given a budget of $k$ classes, identify the subset of the source dataset that generates the most transferable features for an unknown target task.

Transfer learning scenario and accuracy results for MNIST to ALPHANIST.

Methodology

The core innovation lies in modeling transferability through submodular functions. Submodularity captures the principle of "diminishing returns," where adding an element to a smaller set provides a more significant marginal gain than adding it to a larger set.

The performance $F(A)$ of a class subset $A$ is modeled using a quadratic Boolean function: $$F(A) = \sum_{i \in A} \alpha_i + \sum_{i, j \in A} \beta_{ij}$$ Where:

  • $\alpha_i$ represents the individual contribution of class $i$.
  • $\beta_{ij}$ represents the interaction between classes $i$ and $j$. A negative $\beta_{ij}$ indicates redundancy, suggesting that including both classes provides less benefit than including two distinct ones.

To find the optimal subset, the authors employ a greedy algorithm. Due to the submodular nature of the function, this approach is mathematically guaranteed to yield a solution close to the global optimum. Parameters ($\alpha$ and $\beta$) are estimated via:

  1. Linear Programming (LP): A data-driven method that probes the target task with various subsets.
  2. Similarity Matrix: A scalable approach using WordNet to calculate visual similarity, allowing for subset selection based on diversity without prior knowledge of the target task.

Experimental Setup

The approach was evaluated across several standard benchmarks, including MNIST to ALPHANIST and various CIFAR configurations.

Summary of experimental datasets and configurations.

Key Insights and Results

  • The "Sweet Spot": Optimal performance was frequently achieved using only 70-80% of available source classes. In some instances, using 100% of classes led to a decrease in target task accuracy.
  • Redundancy and Diversity: The submodular model effectively identified that visually similar classes provide diminishing returns. Subsets selected for high diversity consistently outperformed random selection and redundant subsets.
  • WordNet as a Proxy: Linguistic relationships from WordNet served as an effective proxy for visual diversity, facilitating the creation of high-quality transfer features without target-specific data.
  • Efficiency: Identifying an optimal SOC allows for more efficient training, achieving better results with smaller training sets and reduced computational costs.

Conclusion

This research demonstrates that submodularity is an accurate framework for describing transfer learning behavior, with a mean modeling error of approximately 1%. By prioritizing class diversity over sheer volume, practitioners can develop more generalizable feature extractors more efficiently. Future work may explore higher-order submodular functions and larger-scale datasets like ImageNet to further refine standard pre-trained models.

Summary updated

BibTeX
@misc{manjunatha2018class,
  author = {Varun Manjunatha and Srikumar Ramalingam and Tim K. Marks and Larry S. Davis},
  title = {{Class Subset Selection for Transfer Learning using Submodularity}},
  year = {2018},
  eprint = {1804.00060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.00060},
}
Figure