Introduction
Multi-task learning (MTL) is often hailed as a path toward more efficient and generalizable AI models. By training a single shared encoder to handle multiple tasks simultaneously, we theoretically gain computational efficiency and cross-task knowledge transfer. However, in practice, MTL often underperforms compared to a suite of independent single-task models. This performance gap is primarily attributed to "unbalanced optimization," where tasks compete for the model's capacity, leading to a "tug-of-war" during training.
The Architecture vs. Optimization Dilemma
The fundamental challenge in MTL is balancing the learning process across diverse tasks, such as depth estimation, edge detection, and semantic segmentation. As illustrated in the architectural comparison below, while single-task models use dedicated encoders for each objective, multi-task models rely on a shared feature space.
To mitigate task interference, researchers have traditionally focused on two areas:
- Multi-Task Optimization (MTO): Algorithms that dynamically adjust loss weights or manipulate gradients during backpropagation.
- Specialized Architectures: Complex network designs (e.g., MTAN, MTI-Net) intended to isolate task-specific information.
Despite these efforts, many solutions remain inconsistent across different datasets and often require expensive manual tuning (grid search) to achieve competitive results.
A Systematic Stress Test
This research provides a comprehensive evaluation of the MTL landscape, testing various optimization methods, architectures, and the impact of foundation models (like CLIP and DINO-v2). The study utilizes benchmarks such as NYUD-v2 and PASCAL-Context to assess performance in dense computer vision tasks.
The results reveal a sobering reality: complexity does not guarantee stability. Many state-of-the-art MTO methods fail to consistently outperform simple uniform weighting or single-task baselines.
As seen in the experimental results summarized above, methods like MGDA or RLW can significantly degrade performance compared to the single-task baseline on certain datasets. Even sophisticated architectures still rely heavily on the "dark magic" of manually tuned loss weights to succeed.
The Gradient Norm Insight
The authors identify a critical, often overlooked factor: the magnitude of task-specific gradients. While previous research focused on "gradient conflict" (the angle between task gradients), this study finds that the norm (size) of the gradient is a much more reliable predictor of optimization imbalance.
In successful models, the gradient norms for different tasks tend to converge. Conversely, in failing models, one task's gradient often dominates the others in magnitude, effectively drowning out their learning signals. This suggests that the size of the gradient is actually a more reliable predictor of imbalance than the angle.
Proposed Solution: AvgNorm
Based on this insight, the authors propose AvgNorm, a straightforward strategy that scales each task's loss to ensure their gradient magnitudes are approximately equal. Unlike complex Pareto-optimal solvers, AvgNorm is computationally efficient as it only requires monitoring the gradients at the last shared layer.
Empirically, AvgNorm achieves performance comparable to exhaustive grid searches without the associated computational cost. For instance, on the NYUD-v2 dataset with a ResNet-18 backbone, AvgNorm achieved a $+0.37\%$ average improvement over single-task baselines, whereas many complex MTO methods resulted in negative gains.
Conclusion
This analysis suggests that the path forward for Multi-Task Learning lies not in increasingly "baroque" architectures or complex gradient surgery, but in a fundamental understanding of gradient dynamics. By focusing on balancing gradient magnitudes, researchers can achieve stable and efficient multi-task models that finally live up to the "one model to rule them all" promise.
Summary updated