Abstract
Multi-task learning (MTL) often suffers from "task variance," where competition between tasks leads to uneven optimization—some tasks overfit while others underfit. We present BanditMTL, a novel framework that treats task weighting as an adversarial multi-armed bandit problem. By incorporating explicit variance regularization and utilizing mirror gradient ascent-descent, BanditMTL achieves state-of-the-art performance on text classification benchmarks by balancing task-specific losses and stabilizing the training process.
Introduction
Multi-task Learning (MTL) aims to improve the generalization of models by training on several related tasks simultaneously. The standard approach minimizes the average loss across all tasks. However, tasks often compete for model capacity; a gradient update beneficial for one task may be detrimental to another. This competition results in high task variance, where "easy" tasks are over-optimized at the expense of "hard" tasks. Existing adaptive weighting methods like GradNorm or Uncertainty weighting focus on gradient magnitudes or noise but fail to directly address this variance, leading to suboptimal generalization.
Methodology
BanditMTL formulates MTL as a Regularized Loss Minimization (RLM) problem. The core innovation is the addition of a variance regularization term that penalizes large discrepancies between task-specific losses.
The optimization is framed as a minimax game between two players:
- The Player: Selects task weights ($p$) to maximize the weighted loss, effectively prioritizing the most challenging tasks.
- The Adversary: Updates model parameters ($\theta$) to minimize this weighted loss.
To solve this game, the authors employ Mirror Gradient Ascent-Descent. Task weights are updated via mirror ascent with an entropy-based Legendre function to ensure they remain within a valid probability simplex. A bisection search is used to find the optimal Lagrange multiplier during weight updates, while model parameters are updated through standard gradient descent.
Experimental Setup
The framework was evaluated on two major text classification benchmarks:
- Amazon Sentiment Analysis: Binary classification across 14 product domains (e.g., Books, DVD, Kitchen).
- 20 Newsgroups: Four distinct 4-class classification tasks (Comp, Rec, Sci, and Talk) derived from 16 newsgroups.
Results and Discussion
BanditMTL consistently outperformed all baselines, including single-task learning and state-of-the-art adaptive methods such as MGDA and GradNorm.
Key Insights
- Variance as a Signal: Explicitly regularizing the spread of losses forces the model to find solutions that perform equitably across all tasks, serving as a powerful signal for better generalization.
- Training Stability: Unlike methods like MGDA, which can exhibit oscillating weights, BanditMTL’s weight adaptation is smooth and stable.
- The Regularization Trade-off: The parameter $\rho$ controls the strength of variance regularization. While increasing $\rho$ initially boosts accuracy by reducing variance, excessively high values can over-constrain the model.
Conclusion
BanditMTL addresses the fundamental challenge of task competition in MTL through an adversarial bandit framework and variance regularization. While currently focused on classification, future work could extend this approach to heterogeneous tasks (e.g., regression and sequence labeling) and more complex NLP applications like Multi-task Named Entity Recognition.
Summary updated