Balanced Multi-Task Learning from an Optimality-Gap Perspective

Ce Liu, Jianing Huang, Huang Sicheng, Shu Liu, Xinyu Huang, Hao YangNeurIPS 2026

TL;DR

Training one neural network to do ten things at once usually ends in a tug-of-war where loud, high-magnitude tasks bully the quiet ones. Instead of trying to balance raw losses—which is like comparing apples to kilopascals—this paper evaluates each update by asking a surprisingly fair question: "How much did this shared step help Task A compared to the absolute best Task A could have done on its own right now?" By maximizing this ratio for the worst-served task at every step, the authors achieve cleaner, scale-invariant multi-task harmony.

What Problem Does This Paper Address?

In Multi-Task Learning (MTL), a single model shares parameters to solve multiple objectives simultaneously—say, predicting scene depth while also classifying pixels. Because all tasks share weights, the optimizer has to pick one parameter update direction per step. Often, gradients conflict: a step that delights Task 1 might actively sabotage Task 2.

To mediate this, existing methods adjust task weights using loss values, loss-decay rates, or raw gradient norms. The catch? Raw losses are notoriously terrible yardsticks. One task might measure cross-entropy while another measures millimeters; they live in completely different numerical universes. Even worse, looking at how fast a loss drops can fool you: a task near its local optimum will naturally show tiny loss reductions even when it’s being treated royally, while a task with a massive numerical drop might still be severely underperforming relative to its actual potential.

Intuition behind the optimality-gap perspective: comparing shared updates against isolated single-task bounds.

Methods

Borrowing a classic concept from mathematical optimization—the optimality gap—the authors propose measuring progress relative to an individualized, local benchmark.

  1. Normalized Improvement Rate ($r_i$): For each task $i$, they compare the loss reduction achieved by the shared update against the best one-step improvement that task could achieve if optimized completely in isolation. This ratio $r_i$ is unitless and invariant to affine rescaling ($a \cdot \text{loss} + b$). If $r_i = 1$, the shared update was just as good as a selfish step; if $r_i < 0$, the task got hurt.
  2. Quadratic & Isotropic Approximation: Computing the exact isolated best-step for every task at every iteration would be computationally ruinous. Instead, the authors build a local quadratic model around the current weights. Because full neural network Hessians (second-derivative matrices) are way too big to invert, they approximate each task's Hessian as an isotropic matrix scaled by its gradient norm ($H_i \approx \|g_i\| I$). This neatly assigns every task a unit-length isolated benchmark step and turns the local improvement bound into half the gradient norm ($\|g_i\|/2$).
  3. Max-Min Active-Set Solver: They frame task balancing as a max-min game: find the shared direction that maximizes the minimum normalized improvement rate across all tasks—prioritizing the most neglected "bottleneck" tasks. Using Karush-Kuhn-Tucker (KKT) optimality conditions and a diagonally regularized Gram matrix (dot products of normalized task gradients) to keep mini-batch noise from causing numerical chaos, the optimal direction becomes a closed-form convex combination of normalized gradients. A fast active-set algorithm iteratively adds or drops tasks to find the exact bottleneck set in finite steps.

Datasets

No new datasets are introduced; the authors test on four standard, diverse MTL benchmarks:

  • CityScapes (2 vision tasks: semantic segmentation and depth estimation)
  • NYU-v2 (3 vision tasks: semantic segmentation, depth estimation, and surface normal prediction)
  • QM9 (11 chemistry tasks: predicting various molecular properties)
  • CelebA (40 vision tasks: binary facial-attribute classifications)

Key Insights and Ideas

  • Relative potential beats raw progress: Ablating the task-specific normalization bound (setting it to 1, which reverts to balancing raw loss reductions) causes depth estimation metrics on CityScapes to tank, proving that normalizing by remaining local room for improvement is doing the heavy lifting.
  • Inactive tasks aren't abandoned: The KKT math reveals that only a small subset of "bottleneck" tasks actually get non-zero weights on a given step. Yet the "ignored" tasks aren't left behind—by definition of the solver's stopping criteria, those inactive tasks are already getting a better relative improvement ride from the shared vector than the bottleneck tasks!
  • Curvature scaling is delicate: Setting the surrogate curvature scale to $\|g_i\|$ hits a geometric sweet spot. Using a constant curvature ($1$) or squared gradient norm ($\|g_i\|^2$) distorts the implied single-task optima and noticeably degrades depth prediction.

Key Results

The primary metric is $\Delta m\%$, which measures the average percentage drop in performance relative to training dedicated single-task models (lower is better; negative means MTL actually beat isolated specialists).

  • CityScapes: Slashes $\Delta m\%$ to 2.50%, beating strong recent baselines like FairGrad (5.18%), NashMTL (6.82%), and FAMO (8.13%).
  • CelebA (40 tasks): Reaches -0.34% $\Delta m\%$ (outperforming single-task baselines on average), improving over FairGrad (0.37%) and FAMO (4.72%).
  • NYU-v2: Achieves the best $\Delta m\%$ at -5.49%, edging out DB-MTL (-5.36%) and FairGrad (-4.66%).
  • QM9: Competitive at 54.3% $\Delta m\%$ (second overall behind BayesAgg-MTL's 53.2%, while beating DB-MTL's 58.4% and FairGrad's 57.9%).
  • Efficiency: On the 40-task CelebA benchmark, runtime (2979 ms/batch) and memory (4708 MB) match NashMTL and scale noticeably better than FairGrad (3224 ms, 5200 MB), though gradient-free loss-weighting methods like FAMO remain much faster (104 ms).

Limitations and Future Work

  • Blind to directional curvature: Approximating the Hessian as a simple scaled identity matrix ignores anisotropic (direction-dependent) curvature, which makes the local model less accurate in sharp, uneven loss valleys.
  • Scaling overhead: Like other gradient-manipulation methods, you still have to backpropagate every task separately to build the Gram matrix and run the active-set solver, meaning compute and memory grow with the number of tasks.
  • Theory-practice gap: The paper's theoretical convergence guarantees assume full-batch gradients and an unregularized inner solver, whereas real-world training relies on noisy mini-batches and Gram matrix regularization. Bridging this theoretical gap and designing cheap anisotropic curvature surrogates are left for future work.

Summary updated

Abstract

Multi-task learning requires a shared update that makes balanced progress across multiple objectives. A key obstacle is that progress is difficult to compare across tasks with different loss scales, units, and local optimization dynamics. We study this problem from an optimality-gap perspective. For each task, we compare the improvement induced by the shared update with the best one-step improvement achievable by optimizing that task in isolation. This comparison yields a scale-invariant normalized improvement rate, which measures how well the shared update serves each task relative to its own local improvement bound. We formulate balanced multi-task optimization as a max-min problem over the normalized improvement rates, thereby prioritizing the worst-served task. A local quadratic approximation leads to the Karush-Kuhn-Tucker (KKT) optimality conditions, showing that the optimal shared update is determined by a small set of bottleneck tasks. Under an isotropic Hessian approximation, the update admits a closed-form expression that depends only on task gradients and a regularized Gram matrix, while the bottleneck set is identified by an active-set procedure. Experiments on diverse benchmarks show improved task balance and competitive performance.
BibTeX
@inproceedings{liu2026balanced,
  author = {Ce Liu and Jianing Huang and HUANG Sicheng and Shu Liu and Xinyu Huang and Hao Yang},
  title = {{Balanced Multi-Task Learning from an Optimality-Gap Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=JQs8iJ1C2j},
}
Figure