NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved optimization strategies for deep Multi-Task Networks

Lucas Pascal, Pietro Michiardi, Xavier Bost, Benoît Huet, María A. Zuluaga · DOI

Abstract

In Multi-Task Learning (MTL), it is a common practice to train multi-task networks by optimizing an objective function, which is a weighted average of the task-specific objective functions. Although the computational advantages of this strategy are clear, the complexity of the resulting loss landscape has not been studied in the literature. Arguably, its optimization may be more difficult than a separate optimization of the constituting task-specific objectives. In this work, we investigate the benefits of such an alternative, by alternating independent gradient descent steps on the different task-specific objective functions and we formulate a novel way to combine this approach with state-of-the-art optimizers. As the separation of task-specific objectives comes at the cost of increased computational time, we propose a random task grouping as a trade-off between better optimization and computational efficiency. Experimental results over three well-known visual MTL datasets show better overall absolute performance on losses and standard metrics compared to an averaged objective function and other state-of-the-art MTL methods. In particular, our method shows the most benefits when dealing with tasks of different nature and it enables a wider exploration of the shared parameter space. We also show that our random grouping strategy allows to trade-off between these benefits and computational efficiency.

Introduction

Multi-Task Learning (MTL) involves training a single neural network to perform multiple tasks simultaneously, such as object identification, depth estimation, and surface normal prediction. The standard practice, referred to as the "Aggregated Loss" approach, sums the losses of all tasks and performs a single joint update step. While computationally efficient, this approach often results in a "tug-of-war" within the loss landscape where gradients from different tasks conflict, or a dominant task with larger gradient magnitudes overshadows others, leading to sub-optimal solutions.

This paper challenges the standard practice by investigating a simpler, often overlooked alternative: alternating independent updates. The authors propose that taking sequential steps for individual tasks can navigate the complex loss landscape more effectively than a single joint step.

Methodology

The authors introduce and analyze three primary optimization strategies:

  1. MTL-SUS (Standard Update Step): The baseline approach where a single joint update is performed using an aggregated loss.
  2. MTL-IUS (Individual Update Steps): The model performs sequential updates for each task. However, a key flaw is identified: shared momentum in modern optimizers like Adam causes "momentum leakage," where one task's update is influenced by the previous task's gradients.
  3. MTL-IO (Individual Optimizers): The core contribution of this work. Each task (or group of tasks) maintains its own independent optimizer state (momentum buffers). This ensures true independence between task updates, preventing memory leakage and allowing for a more thorough exploration of the parameter space.

To address the computational overhead of updating $N$ tasks individually, the authors propose Random Task Grouping. By grouping tasks into "super-tasks," practitioners can trade off between optimization quality and training speed.

Experimental Results

The proposed methods were evaluated on three benchmark datasets: NYUv2 (heterogeneous tasks), Cityscapes (homogeneous tasks), and Celeb-A (large-scale attribute detection).

Performance and Loss Landscapes

On the NYUv2 dataset, MTL-IO consistently achieved superior results across all metrics, outperforming established baselines like GradNorm and PCGrad. It achieved a Rank of 1.00 across the various task metrics. As shown in the comparison below, MTL-IO (orange) maintains lower loss values across a wide range of learning rates ($\eta$) compared to the standard SUS and IUS approaches.

Comparison of loss metrics on the NYUv2 dataset across different optimization strategies.

Parameter Space Exploration

A significant finding is that MTL-IO promotes a wider exploration of the parameter space. By measuring the "Total Covered Distance" (the path length of weights during training), the authors found that MTL-IO's path was approximately 3x longer than that of the standard aggregated loss. This suggests that the stochasticity introduced by independent updates helps the model escape local minima and find better-performing regions.

Task Heterogeneity and Grouping

The benefits of MTL-IO are most pronounced when tasks are diverse (e.g., NYUv2). For similar tasks (e.g., Cityscapes), the performance gap narrows. On the 40-task Celeb-A dataset, the Random Task Grouping strategy proved highly effective. Interestingly, grouping tasks into 8 "super-tasks" yielded better results than updating all 40 tasks individually, suggesting an optimal level of stochasticity for training.

Conclusion

This work demonstrates that separating optimizer states in Multi-Task Learning is a powerful yet simple strategy to improve model performance. By preventing momentum leakage, MTL-IO enables more effective navigation of the loss landscape. While the method increases computational cost, the proposed random task grouping provides a flexible mechanism to balance optimization quality with efficiency. Future work may involve integrating these independent updates with existing gradient-balancing techniques to further enhance multi-task performance.

Summary updated

BibTeX
@misc{pascal2021improved,
  author = {Lucas Pascal and Pietro Michiardi and Xavier Bost and Benoît Huet and María A. Zuluaga},
  title = {{Improved optimization strategies for deep Multi-Task Networks}},
  year = {2021},
  eprint = {2109.11678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.11678},
}
Figure