Overview
Multi-task learning (MTL) often struggles when gradients from different tasks conflict or have vastly different scales. This paper introduces Nash-MTL, a principled approach that treats gradient aggregation as a cooperative bargaining game. By utilizing the Nash Bargaining Solution, the method finds an update direction that is both Pareto optimal and "proportionally fair" to all tasks.
The Challenge of Multi-Task Learning
In Multi-Task Learning, a single neural network is trained to perform several tasks simultaneously (e.g., an autonomous vehicle model detecting lanes, pedestrians, and traffic signs at the same time). While computationally efficient, this shared representation often leads to a "tug-of-war" during training: the gradient for Task A might point in a direction that actively degrades performance on Task B.
Existing solutions often rely on heuristics to balance these conflicting gradients. Many of these methods are highly sensitive to the scale of the loss functions, meaning a task with a naturally larger loss value can dominate the training process. The authors identify a critical need for a principled, axiomatic framework to combine these gradients fairly without allowing a single task to monopolize the network's capacity.
Nash-MTL: A Game-Theoretic Approach
The authors propose viewing gradient combination as a cooperative bargaining game. Each task acts as a player negotiating for a parameter update direction that maximizes its own "utility" (the decrease in its specific loss).
To find the optimal update, they employ the Nash Bargaining Solution (NBS). The NBS is the unique solution that satisfies four desirable game-theoretic axioms:
- Pareto Optimality: You cannot improve one task without hurting another.
- Symmetry: Tasks are treated equally if their gradients are similar.
- Independence of Irrelevant Alternatives (IIA): Adding "bad" options doesn't change the best choice.
- Invariance to Affine Transformation: The solution doesn't change if you rescale a task's loss (e.g., multiplying a loss by 10).
Mathematically, this involves finding a weight $\alpha_i$ for each task's gradient $g_i$ such that the joint update $\Delta\theta = \sum \alpha_i g_i$ satisfies the condition $G^\top G \alpha = 1/\alpha$ (where $G$ is the matrix of gradients). They solve this efficiently using a Concave-Convex Procedure (CCP).
To handle the computational cost of calculating gradients for every task at every step, they introduce a practical speedup: updating the task weights $\alpha$ only once every $T$ iterations.
Core Mechanisms & Insights
- Scale Invariance is Key: One of the biggest hurdles in MTL is that different tasks have different loss magnitudes. Nash-MTL is mathematically invariant to these scales. As shown in the illustrative example below, while other methods like LS (Linear Scalarization) or PCGrad get pulled toward the task with the larger gradient, Nash-MTL remains balanced.
- Balanced Projections: By maximizing the product of utilities, Nash-MTL naturally seeks an update direction that provides a "fair" improvement to all tasks. The visualization below demonstrates how Nash-MTL results in the most balanced projections onto individual task gradients compared to competitors.
- Theoretical Rigor: Unlike many heuristic MTL methods, the authors provide convergence guarantees, proving that Nash-MTL converges to a Pareto stationary point even in non-convex settings.
Experimental Setup & Performance Highlights
The authors evaluated Nash-MTL across diverse domains, including QM9 (molecular property regression), NYUv2 & Cityscapes (computer vision scene understanding), and MT10 (Meta-World reinforcement learning for robotic manipulation).
- State-of-the-Art Performance: Nash-MTL achieved the best Mean Rank (MR) across all benchmarks. On the QM9 dataset, it significantly outperformed all other baselines in both Mean Rank and average performance drop ($\Delta_m$).
- Reinforcement Learning Success: In the MT10 robotic benchmark, Nash-MTL was the only multi-task method to match the performance of training 10 separate, independent models, reaching a success rate of 0.91.
- Efficiency: By updating weights every 50-100 steps, the authors achieved a ~10x speedup on QM9 and MT10 with negligible loss in performance, making it competitive with simple linear scalarization in terms of wall-clock time.
Limitations
- Gradient Computation: Like most advanced MTL methods, Nash-MTL requires computing the full gradient for every task. While their periodic weight update helps, this remains a bottleneck for models with a massive number of tasks.
- Feature-Level Gradients: The authors found that using "feature-level" gradients (a common shortcut) significantly degraded Nash-MTL's performance. The method relies heavily on the accurate inner products of gradients across the entire parameter space.
- Independence Assumption: The theoretical analysis assumes task gradients are linearly independent (except at optimal points). While empirical evidence suggests this generally holds, degenerate cases could theoretically pose issues.
Summary updated