Introduction
Training a single neural network to handle multiple tasks often leads to a "tug-of-war" where some tasks dominate while others are neglected. Multi-Task Learning (MTL) is highly efficient—acting as the "Swiss Army Knife" of deep learning with one shared backbone and multiple task-specific heads. However, it frequently suffers from the partial training issue.
Because different tasks utilize different loss functions (e.g., cross-entropy for classification vs. L1 for regression) and produce varying gradient magnitudes, the optimization process can become biased. A task with a massive loss scale or a "louder" gradient can effectively hijack the shared backbone, leaving other tasks under-trained. Existing solutions typically attempt to balance either the losses or the gradients, but they often introduce new biases—favoring tasks with smaller gradients, relying on specific data distributions, or requiring tedious manual tuning of importance weights.
To address this, researchers introduce Impartial Multi-Task Learning (IMTL), a method that balances both gradients and loss scales through a closed-form geometric solution, ensuring all tasks progress at a comparable pace without manual hyperparameter tuning.
The Hybrid Balance Approach
The authors propose a two-pronged "Hybrid Balance" approach that targets both the shared backbone and the task-specific heads.
1. IMTL-G (Gradient Balance)
IMTL-G is aimed at the task-shared parameters (the backbone). Geometrically, the authors seek an aggregated gradient that has equal projections onto the gradients of all individual tasks. They prove that this is equivalent to finding the "angle bisector" of the task gradients.
Crucially, they derive a closed-form solution for this bisector, making it significantly faster and more stable than iterative optimization methods like MGDA. This ensures the shared backbone receives an "impartial" update direction.
2. IMTL-L (Loss Balance)
IMTL-L is aimed at the task-specific parameters (the heads). This method automatically learns a weighting parameter for each task to ensure weighted losses stay at a comparable scale. Unlike previous "Uncertainty Weighting" methods, IMTL-L makes no assumptions about the underlying data distribution (e.g., Gaussian or Laplacian). This makes it universally applicable to any loss function, including cosine similarity, preventing numerical dominance by any single task.
Key Insights
- Complementarity is Key: Gradient balance and loss balance are not redundant; they are complementary. Gradient balance ensures the direction of the update is fair, while loss balance ensures the magnitude of task-specific updates is consistent.
- Scale Invariance: IMTL is mathematically scale-invariant. In many frameworks, switching from a "mean" loss to a "sum" loss can break a model. The authors demonstrated that even if you manually multiply one task's loss by 10, IMTL converges to nearly the same result.
- Efficiency via Relaxation: To avoid the massive computational cost of calculating gradients for every task through the entire backbone, the authors use a "feature-level" relaxation. They compute the balance at the last shared layer and backpropagate that balanced signal, significantly reducing training time.
Experimental Results
The researchers evaluated IMTL on three standard MTL benchmarks: Cityscapes (urban scenes), NYUv2 (indoor scenes), and CelebA (face attributes).
- Superior Performance: On Cityscapes and NYUv2, IMTL consistently outperformed state-of-the-art methods like GradNorm, MGDA, and PCGrad. In some cases, the MTL model even beat single-task baselines, proving that "impartial" sharing helps tasks learn from one another.
- Robustness: When the semantic segmentation loss on Cityscapes was artificially multiplied by 10, IMTL showed the smallest performance fluctuation (only a 0.44 mIoU change) compared to competitors like GLS, which suffered a massive 9.43 drop.
- Speed: IMTL-G adds negligible overhead. While some gradient-surgery methods (like PCGrad) can double the training time per iteration, IMTL remains close to the speed of simple uniform scaling.
Limitations and Future Work
While highly effective, the core philosophy of IMTL assumes all tasks are equally important. In certain industrial applications, prioritizing a primary task (e.g., safety-critical detection) over a secondary one might be desired, and the current framework doesn't explicitly detail how to integrate this "prioritized" partiality. Additionally, while feature-level relaxation works well for standard architectures like ResNet-50, its efficacy in extremely deep or highly non-linear architectures requires further exploration. Finally, combining IMTL with intelligent "task grouping" strategies could yield even better results in the future.
Summary updated