Abstract: Learning from multiple related tasks by knowledge sharing and transfer has become increasingly relevant over the last two decades. In order to successfully transfer information from one task to another, it is critical to understand the similarities and differences between the domains. In this paper, we introduce the notion of performance gap, an intuitive and novel measure of the distance between learning tasks. Unlike existing measures which are used as tools to bound the difference of expected risks between tasks (e.g., $\mathcal{H}$-divergence or discrepancy distance), we theoretically show that the performance gap can be viewed as a data- and algorithm-dependent regularizer, which controls the model complexity and leads to finer guarantees. More importantly, it also provides new insights and motivates a novel principle for designing strategies for knowledge sharing and transfer: gap minimization. We instantiate this principle with two algorithms:
- gapBoost, a novel and principled boosting algorithm that explicitly minimizes the performance gap between source and target domains for transfer learning; and 2. gapMTNN, a representation learning algorithm that reformulates gap minimization as semantic conditional matching for multitask learning. Our extensive evaluation on both transfer learning and multitask learning benchmark data sets shows that our methods outperform existing baselines.
Introduction
In the realms of transfer learning (TL) and multitask learning (MTL), the primary objective is to leverage knowledge from one domain to enhance performance in another. However, a persistent challenge is "negative transfer," where task differences are so significant that sharing knowledge actually degrades performance. Traditional approaches to measuring task similarity often rely on marginal distributions—analyzing the "shape" of input data through metrics like $\mathcal{H}$-divergence or Wasserstein distance.
A critical limitation of these methods is their neglect of label information. If two datasets share identical input distributions but utilize entirely different labeling schemes, aligning their marginal distributions is counterproductive. This research addresses this gap by introducing a similarity measure that incorporates label information and provides a practical framework for minimizing task distance during training.
The Performance Gap as a Regularizer
The core innovation of this work is the Performance Gap ($\nabla$). This metric is built on an intuitive premise: if two tasks are truly similar, a model optimized for Task A should exhibit high performance on Task B, and vice versa.
By applying the lens of algorithmic stability, the authors demonstrate that the generalization error of a model is upper-bounded by this performance gap. Crucially, the theoretical analysis reveals that the performance gap functions as a data-dependent regularizer. Minimizing this gap is mathematically equivalent to controlling model complexity, providing a rigorous foundation for new learning strategies.
Proposed Algorithms
The principle of gap minimization is instantiated through three distinct algorithms designed for different learning scenarios:
- gapBoost (Classification): A boosting algorithm for transfer learning that iteratively reweights data. It specifically down-weights instances where source and target learners disagree, effectively shrinking the performance gap between domains.
- gapBoostR (Regression): An extension of the boosting framework tailored for continuous output variables.
- gapMTNN (Multitask Learning): A deep learning architecture featuring a shared feature extractor. It employs centroid alignment (semantic conditional matching) to ensure that the "concept" of a class—represented by the average feature vector—remains consistent across all tasks.
Empirical Evaluation
The framework was evaluated across diverse benchmarks, including text (20 Newsgroups), image classification (Office-Caltech, PACS, Office-Home), and various regression datasets.
Key Findings
- Superior Accuracy:
gapMTNNandgapBoostconsistently outperformed traditional baselines such as AdaBoost and AMTNN. On the Office-Home multitask dataset with limited labels (5%),gapMTNNachieved an average error rate of 50.93%, a significant improvement over the 59.67% error rate of standard uniform models. - Efficiency in Data-Scarce Scenarios: The performance advantages were most evident when target label information was limited, confirming that the performance gap effectively guides the "borrowing" of relevant information from source domains.
- Task Asymmetry: Analysis of
gapMTNNtask relation matrices revealed that task relationships are often asymmetric; Task A may provide more benefit to Task B than it receives in return. This nuance is captured by the performance gap but often missed by simpler similarity metrics.
Conclusion and Future Directions
By shifting the focus from marginal distribution alignment to conditional distribution alignment ($Y|X$), this framework maintains discriminative power even under significant data distribution shifts. While the current implementation uses heuristics to manage the computational complexity of bilevel optimization, future work may explore more efficient exact solvers. Additionally, the authors suggest that the gap minimization principle holds potential for applications in fair learning—minimizing gaps between demographic groups—and lifelong learning systems.
Summary updated