Investigating Uncertainty Weighting for Multi-Task Learning: Insights and Analytical Alternative

Lukas Kirchdorfer, Tobias Sesterhenn, Christian Bartelt, Heiner Stuckenschmidt, Lukas Schott, Jan Mathias KöhlerIJCV 2026

Abstract

Multi-task learning (MTL) aims to train a single model to perform multiple tasks simultaneously, but it often suffers from "negative transfer" when one task dominates the training signal. Uncertainty Weighting (UW) is a popular method for balancing these losses, yet it exhibits critical flaws including slow adaptation (update inertia) and a tendency to overfit easy tasks. This paper proposes Soft Optimal Uncertainty Weighting (UW-SO), a novel approach that replaces learned uncertainty parameters with analytically derived weights and a tempered softmax normalization. Evaluated across computer vision benchmarks like NYUv2, Cityscapes, and CelebA, UW-SO demonstrates superior robustness and performance compared to traditional weighting schemes.

The Challenge of Multi-Task Loss Balancing

In MTL, the core challenge is loss balancing. If one task has a significantly larger loss magnitude or gradient, it can dominate the optimization process, causing the model to perform worse than if the tasks were trained individually. Uncertainty Weighting (UW) addresses this by weighting tasks based on their "homoscedastic uncertainty" (task-specific noise).

However, the authors identify three fundamental issues with standard UW:

  1. Update Inertia: Because task weights are learned via gradient descent, they adapt too slowly to the rapidly changing dynamics of early training.
  2. Overfitting: UW often over-prioritizes "easy" tasks that reach low loss values quickly, leading to a significant gap between training and test performance.
  3. Theoretical Mismatches: The probabilistic derivation of UW is often incompatible with common loss functions like cosine similarity.
Figure 1: Learned UW values vs. true noise. As data and model capacity increase, the learned parameters converge to the true noise, but small models/datasets show significant deviation.

Soft Optimal Uncertainty Weighting (UW-SO)

To address these limitations, the authors derive an analytical solution for the standard UW objective, showing that mathematically optimal task weights are approximately the inverse of the task losses ($\omega_k \approx 1/L_k$). Building on this, they introduce UW-SO, which calculates weights dynamically using three key components:

  • Inverse Weighting: It uses the current batch loss to determine the "optimal" weight instantly, eliminating update inertia.
  • Softmax Normalization: By applying a softmax function across all task weights, the method enforces a "zero-sum" competition for importance ($\sum \omega_k = 1$). This better models task interdependence compared to independent weighting.
  • Temperature Scaling ($T$): A temperature parameter $T$ controls the "sharpness" of the weighting. High $T$ values lead to more uniform weights, while low $T$ values aggressively prioritize tasks with lower uncertainty.

Experimental Results and Key Insights

The method was evaluated on standard benchmarks including NYUv2, Cityscapes, and the 40-task CelebA dataset.

Robustness and Generalization

UW-SO consistently outperformed or matched state-of-the-art methods like GradNorm or DWA. A key insight is the method's ability to mitigate overfitting. In high-task scenarios like CelebA, standard UW often fails to generalize because it puts excessive weight on a few easy tasks. In contrast, UW-SO maintains a stable training signal and a much tighter gap between training and test loss.

Figure 3: Comparison of weight ratio and loss development on CelebA. UW puts excessive weight on the 'Bald' task and fails to generalize (increasing test loss), whereas UW-SO remains stable.

On the Cityscapes dataset, UW-SO achieved the best average relative gain ($\Delta_m$) across multiple architectures. The authors note that while the temperature $T$ requires tuning (e.g., $T=2$ for NYUv2 vs. $T=100$ for CelebA), it is a more manageable hyperparameter than tuning individual weights for dozens of tasks.

Conclusion

By replacing learned parameters with an analytical, softmax-normalized alternative, UW-SO overcomes the inherent bottlenecks of traditional Uncertainty Weighting. It provides a more responsive and robust framework for multi-task learning, particularly in complex, high-task environments where standard methods are prone to instability and overfitting.

Summary updated

BibTeX
@article{kirchdorfer2026investigating,
  author = {Lukas Kirchdorfer and Tobias Sesterhenn and Christian Bartelt and Heiner Stuckenschmidt and Lukas Schott and Jan Mathias Köhler},
  title = {{Investigating Uncertainty Weighting for Multi-Task Learning: Insights and Analytical Alternative}},
  journal = {Int. J. Comput. Vis.},
  year = {2026},
  doi = {10.1007/s11263-025-02625-x},
}
Figure