In deep learning, we often want a single model to be a "jack of all trades." In multi-task learning (MTL), a unified neural network architecture shares internal representations to solve multiple problems simultaneously—such as jointly predicting an object's depth, segmentation mask, and surface normals.
While MTL is computationally efficient and allows tasks to share foundational knowledge, it frequently suffers from a frustrating "seesaw phenomenon": improving performance on one task often comes at the expense of another. At the heart of this optimization instability is loss scale disparity. When different objectives produce loss values and gradient magnitudes that differ by orders of magnitude, the optimization process becomes heavily biased, allowing a subset of tasks to dominate the training.
The Tyranny of the Largest Magnitude
To understand why multi-task learning breaks down, consider how a standard neural network updates its weights. The typical approach is unitary scalarization, where the total loss is simply the sum of individual task losses:
$$L_{\text{total}} = L_1 + L_2 + \dots + L_n$$
During backpropagation, the total gradient driving the parameter updates is the sum of the individual gradients: $\nabla L_{\text{total}} = \nabla L_1 + \nabla L_2 + \dots + \nabla L_n$.
This setup works perfectly if all tasks operate on similar numerical scales. However, different tasks naturally live in different mathematical universes. For example, as noted by Markus Mueller et al. in their work on mixed-type tabular data, continuous and categorical features utilize fundamentally distinct loss functions that operate on vastly different scales.
If Task 1 outputs a mean-squared error (MSE) in the hundreds (e.g., predicting bounding box coordinates or geographic locations) while Task 2 outputs a cross-entropy loss between 0 and 1 (e.g., predicting text tokens or discrete classes), then $|\nabla L_1| \gg |\nabla L_2|$. As a result, the gradient step is almost entirely determined by Task 1. The network becomes a specialist in the high-magnitude task while completely neglecting the subtle learning signals of the smaller-scale task.
This imbalance manifests across diverse domains:
- 3D Computer Vision: Andrea Simonelli et al. show that regression targets like depth, size, and orientation have vastly different units, causing errors in one parameter group to overwhelm others. Similarly, Di Feng et al. observe that combining multiple perception tasks causes the optimization process to prioritize high-magnitude objectives.
- Multi-Object Tracking: Liang Zheng et al. demonstrate that combining object localization and identity embedding into a single network fails if the heterogeneous losses are not explicitly balanced.
- Geographic Language Models: Valentin Hofmann et al. find that integrating coordinate prediction with text generation causes convergence issues because the loss scales are fundamentally mismatched.
- Energy Forecasting: Yucong Huang et al. note that a single energy type with high variance can overwhelm the learning signal for all other related energy types in a joint forecasting system.
Dynamic Normalization Strategies
The most straightforward way to prevent high-magnitude tasks from dominating is to project individual losses onto a common numerical scale.
One intuitive approach is to use historical loss values to normalize the current loss. Anish Lakkapragada et al. propose scaling each task's loss by its own Exponential Moving Average (EMA). By dividing the current loss by its running average magnitude, every task is dynamically scaled to contribute a baseline magnitude near 1.0, preventing any single objective from running away with the gradient.
Alternatively, Maxime Fontana et al. utilize log transformations to compress the numerical ranges of diverse task losses, ensuring that differences in raw ranges do not bias the gradient signal. Another variant, explored by Yuren Mao et al., involves pre-training each task independently to determine its baseline empirical loss, which then serves as a static scaling factor during joint multi-task training.
Balancing Gradients Directly
While normalizing the loss values helps, the true driver of optimization is the gradient magnitude. Two tasks can have identical loss values but vastly different gradient steepness.
To address this, Ankit Jha et al. introduce an adaptive weighting scheme that balances task losses based directly on their active gradient magnitudes. By tracking how hard each task is pulling the model's parameters, the system dynamically dampens tasks with overpowering gradients.
Taking this a step further, Bo Liu et al. develop FAMO (Fast Adaptive Multitask Optimization). Recognizing that calculating full task-specific gradients at every step is computationally expensive, the authors introduce a mathematical shortcut that optimizes task weights using only the history of the losses. This allows the model to dynamically adjust weights so that tasks making less relative progress are prioritized, without incurring massive memory overhead.
Game Theory and Scale Invariance
The ultimate solution to loss scale disparity is to design optimization algorithms that are mathematically scale-invariant. If multiplying a single task's loss function by an arbitrary constant changes the optimization path, the system is fundamentally vulnerable to scaling choices.
To achieve true scale invariance, Aviv Navon et al. reframe multi-task gradient aggregation as a cooperative bargaining game. They apply the classic Nash Bargaining Solution to find a "proportionally fair" update direction. Because the Nash solution maximizes the product of utilities rather than their sum, the resulting algorithm (Nash-MTL) is completely invariant to the individual scales of the loss functions.
Unitary Scalarization (Sum):
Favors the task with the largest absolute gradient magnitude.
Nash Bargaining (Product of Improvements):
Finds a direction that proportionally benefits all tasks,
regardless of their individual loss scales.
Building on this game-theoretic foundation, Kushagra Gupta et al. introduce DiBS-MTL. This algorithm achieves invariance to arbitrary monotonic nonaffine scalings of task losses by strictly utilizing normalized gradients. By stripping away the absolute magnitude of the gradient and focusing purely on its direction and relative progress, these methods eliminate the need for labor-intensive manual tuning of loss weights.
Separating Scale from Task Difficulty
When designing these balancing mechanisms, researchers must avoid a common pitfall: confusing a large loss scale with task difficulty.
As Guangyuan Ma et al. point out, standard optimization techniques fail when a high loss indicates that a task is inherently difficult or noisy, rather than indicating that the model is performing poorly. If an algorithm blindly boosts the weight of tasks with high losses, it may waste capacity trying to fit unlearnable noise.
To decouple scale from actual learning progress, Xiaohan Qin et al. introduce PIVRG, a performance-driven approach. Instead of looking at raw loss magnitudes, it uses the actual performance variance between tasks as a fairness indicator. This ensures that optimization priority is dynamically shifted to tasks that are genuinely lagging behind in their learning curve, rather than tasks that simply happen to output large numbers.
In Defense of Simplicity
Given the complexity of game-theoretic optimizers and dynamic tracking loops, is it always necessary to abandon simple loss summation?
Surprisingly, Antonio Demontis et al. mount a defense of basic unitary scalarization. They demonstrate that when paired with standard regularization techniques (such as weight decay and dropout), simply summing the losses remains remarkably robust. Their findings suggest that while loss scale disparity is a real and present challenge, proper regularization often smooths the optimization landscape enough to allow standard optimizers to converge effectively, matching the performance of complex methods at a fraction of the computational cost.
Key Foundational Work
Utilization of age information for speaker verification using multi-task learning deep neural networks (2019) — contributed 1 concept elements to this direction.
OmniArt: A Large-scale Artistic Benchmark (2018) — contributed 1 concept elements to this direction.
Disentangling Monocular 3D Object Detection (2019) — contributed 1 concept elements to this direction.