Abstract
Multi-task learning (MTL) improves model generalization by sharing information across tasks but risks "negative transfer" when dissimilar tasks are grouped. We present an automated framework that predicts task affinity using computationally inexpensive features, such as learning curve gradients and pairwise gains. By integrating this predictor into a randomized search algorithm with a "quick reject" mechanism, we efficiently identify optimal task groupings. Evaluation across four high-task-count datasets demonstrates significant performance gains and scalability compared to traditional clustering and exhaustive search methods.
Introduction
Multi-Task Learning (MTL) aims to improve the performance of multiple related tasks by training them simultaneously within a shared model. While the shared representation can enhance generalization, grouping unrelated tasks often leads to negative transfer, where interference between tasks degrades performance. The primary challenge lies in task grouping: determining which tasks should be trained together. As the number of tasks increases, the search space for optimal partitions grows exponentially (e.g., over $10^{37}$ partitions for 42 tasks), making exhaustive search or manual grouping infeasible.
Methodology: Predict then Search
The proposed framework addresses the scalability of task grouping through a two-stage "Predict then Search" approach.
1. Task-Affinity Prediction
Instead of the prohibitive cost of training every possible task combination, the authors train a neural network predictor to estimate the "Relative MTL Gain"—the performance improvement of MTL over Single-Task Learning (STL). The predictor utilizes "cheap" features that do not require full MTL training:
- Statistical Features: Variance of target attributes and sample sizes.
- Distributional Distances: Euclidean, Manhattan, and Hellinger distances between task data distributions.
- Learning Curve Gradients: Gradients of STL learning curves at various training stages (e.g., 10%, 20%).
- Pairwise Proxies: The average of pairwise MTL gains for all pairs within a potential group.
2. Randomized Search with Quick Reject
The framework employs a local search algorithm that iteratively mutates task partitions. To avoid expensive training runs for every mutation, a "Quick Reject" mechanism is introduced. The algorithm queries the affinity predictor for each proposed mutation; if the predicted gain is negative, the mutation is rejected immediately with high probability. This allows the search to explore the vast space of partitions while only performing full training on the most promising candidates.
Key Insights
The empirical analysis revealed several critical findings regarding task relationships:
- Pairwise Gains as Proxies: Pairwise MTL gains are highly predictive of the performance of larger task groups, particularly in datasets like Chemical and Parkinson.
- Learning Curves as Fingerprints: The shape and gradient of a task's STL learning curve serve as excellent indicators of its behavior in an MTL setting, often outperforming simple statistical features.
- Transfer vs. Affinity: Traditional transfer learning relationships (pre-training on Task A for Task B) are poor predictors of MTL affinity, suggesting that MTL synergy is distinct from sequential transfer.
Experimental Results
The framework was evaluated on four datasets with high task counts: School (139 tasks), Chemical (35 tasks), Landmine (29 tasks), and Parkinson (42 tasks).
- Performance: The proposed method consistently outperformed STL, "All-in-One" MTL, and standard clustering baselines. For instance, on the School dataset, the method achieved a Mean Squared Error (MSE) of 78.7, compared to 86.49 for STL and 98.43 for the best clustering baseline.
- Efficiency: The "Quick Reject" mechanism reduced the search time significantly. The time spent on predictor queries was negligible (under 1 minute) compared to the hours saved by pruning unpromising training runs.
- Scalability: Unlike previous state-of-the-art methods limited to small task sets, this approach successfully managed up to 139 tasks, demonstrating its viability for large-scale automated machine learning (AutoML).
Conclusion
This work provides a scalable, automated solution for task grouping in MTL. By leveraging cheap-to-compute features and a predictive "Quick Reject" search, the framework avoids the pitfalls of negative transfer without the computational burden of exhaustive search. Future research may focus on reducing the initial sampling requirements and exploring dynamic task regrouping during the training process.
Summary updated