Multi-task learning (MTL) aims to train a single model to perform multiple related tasks simultaneously, such as classifying a product review by both sentiment and category. While this approach should theoretically allow tasks to share "inductive bias" and improve overall performance, it often leads to a "tug-of-war" where gradients from different tasks conflict, causing one task's progress to stall another's.
Presented at ACL 2023, this paper introduces GetMTL (Gradient Trade-off Multi-task Learning), a novel approach designed to mitigate gradient interference by specifically targeting balanced solutions on the Pareto front.
The Problem with Standard Pareto Optimality
Existing solutions to task conflict generally fall into two categories: heuristic loss balancing (weighting tasks by difficulty) or seeking Pareto optimality. A solution is Pareto optimal if no task's performance can be improved without degrading at least one other task.
However, the authors argue that standard Pareto methods are often "uncontrollable." They may find mathematically optimal solutions that reside at the extreme edges of the Pareto front, significantly favoring one task while allowing the error of another to reach unacceptable levels. In most practical MTL scenarios, the goal is to minimize the average loss across all tasks, a goal that standard Pareto algorithms do not explicitly prioritize.
The GetMTL Framework
GetMTL addresses this by finding a gradient update direction that is both Pareto optimal and resides in the "neighborhood" of the average loss. The framework operates within a standard MTL architecture consisting of task-shared layers followed by task-specific heads.
The Optimization Process
- Initial Descent: The method utilizes the Multiple Gradient Descent Algorithm (MGDA) to identify a direction that potentially improves all tasks simultaneously.
- Maximin Optimization: It formulates a "Maximin" problem to find an update direction $d$ that maximizes the improvement of the "worst-off" task gradient.
- Proximity Constraint: Crucially, GetMTL introduces a constraint (controlled by a hyperparameter $\epsilon$) that keeps the update direction close to the average gradient of all tasks.
By anchoring the optimization to the average loss, GetMTL avoids the extreme regions of the Pareto front, leading to more stable training and lower task variance.
Experimental Results
The researchers evaluated GetMTL against state-of-the-art baselines, including GradNorm, MGDA, and BanditMTL, across two major benchmarks:
- 20 Newsgroups: GetMTL achieved a best-in-class average accuracy of 92.09%, outperforming the next best model by 0.83% and securing the top spot on every sub-task.
- Amazon Reviews: Across 14 domains treated as separate tasks, GetMTL reached an average accuracy of 89.80%, performing best on 13 out of 14 individual tasks.
Beyond accuracy, training curves demonstrated that GetMTL converges to a lower total loss more steadily than its competitors. The authors also noted that GetMTL effectively mitigates task competition, resulting in the lowest observed "task variance" during the training process.
Limitations and Future Work
While highly effective, GetMTL introduces computational overhead because it requires calculating gradients for every task at every training step. This makes the method potentially prohibitive for massive-scale MTL involving hundreds or thousands of tasks. Future research will focus on approximating these task gradients to reduce the computational burden while maintaining the stability and balance provided by the GetMTL approach.
Summary updated