Class-based Subset Selection for Transfer Learning under Extreme Label Shift
Akul Goyal, Carl Edwards
TL;DR
WaSS tackles extreme label shift in transfer learning by selecting and reweighting a subset of source classes using a Wasserstein-distance-based linear program in the embedding space, enabling effective transfer even when source and target label spaces are disjoint. It then trains a classifier on the reweighted source and fine-tunes on a small target set with a fixed feature extractor, supported by a theoretical bound that links target error to the source error, domain Wasserstein distance, and model drift. The approach yields consistent improvements across multiple datasets and shift settings (including open-set scenarios), and is validated with both quantitative results and qualitative visualizations that illustrate how the source distribution becomes more aligned with the target. Overall, WaSS provides a practical, principled method to mitigate negative transfer by exploiting informative source classes rather than discarding data indiscriminately.
Abstract
Existing work within transfer learning often follows a two-step process -- pre-training over a large-scale source domain and then finetuning over limited samples from the target domain. Yet, despite its popularity, this methodology has been shown to suffer in the presence of distributional shift -- specifically when the output spaces diverge. Previous work has focused on increasing model performance within this setting by identifying and classifying only the shared output classes between distributions. However, these methods are inherently limited as they ignore classes outside the shared class set, disregarding potential information relevant to the model transfer. This paper proposes a new process for few-shot transfer learning that selects and weighs classes from the source domain to optimize the transfer between domains. More concretely, we use Wasserstein distance to choose a set of source classes and their weights that minimize the distance between the source and target domain. To justify our proposed algorithm, we provide a generalization analysis of the performance of the learned classifier over the target domain and show that our method corresponds to a bound minimization algorithm. We empirically demonstrate the effectiveness of our approach (WaSS) by experimenting on several different datasets and presenting superior performance within various label shift settings, including the extreme case where the label spaces are disjoint.
