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

Multitask learning with single gradient step update for task balancing

Sungjae Lee, Youngdoo Son

TL;DR

This paper introduces a novel multitask learning approach that uses a single gradient step update and an inner/outer loop training procedure, inspired by meta-learning, to effectively balance tasks. This method alleviates the common issue of task imbalance in multitask learning, leading to state-of-the-art performance on various computer vision tasks.

What Problem Does This Paper Address?

Multitask learning (MTL) aims to improve model generalization and efficiency by training a single model on multiple related tasks simultaneously. However, a significant challenge in MTL is "task imbalance," where some tasks dominate the learning process, leading to biased shared representations and suboptimal performance on other tasks. Existing methods like adjusting loss weights or modifying network architectures have limitations. This paper tackles the problem of task imbalance at the gradient level, proposing a method that ensures shared layers learn representations beneficial to all tasks without being biased towards any single one.

Methods

The core of the proposed method lies in a novel training procedure inspired by gradient-based meta-learning, specifically the inner/outer loop structure.

  • Inner Loop: For each task, the shared layers are temporarily updated using a single gradient step, while the task-specific layers are kept fixed. This step is crucial for preventing immediate overfitting to a single task.
  • Outer Loop: After the temporary updates, task-specific losses are calculated using these updated shared layers. The original shared layers are then updated based on the sum of these task-specific losses. Subsequently, the task-specific layers are updated using an ordinary gradient descent step, with the shared layers fixed.

This process of alternately updating shared and task-specific layers, combined with the single gradient step in the inner loop, allows for a more balanced gradient flow across tasks. This approach avoids the need for manual loss weight tuning or complex optimization procedures.

Datasets

The paper evaluates the proposed method on the following datasets:

  • Multi-fashion-MNIST: A multitask version of MNIST and Fashion-MNIST, consisting of two classification tasks.
  • CityScapes: A dataset for semantic segmentation and depth estimation.
  • NYUv2: A dataset for semantic segmentation, depth estimation, and surface normal prediction.

Key Insights and Ideas

  • Gradient-level Balancing: The paper demonstrates that addressing task imbalance at the gradient level, rather than just through loss weighting or architecture design, is highly effective.
  • Single Gradient Step's Role: The temporary single gradient step update in the inner loop is key to preventing the shared layers from being immediately biased by a dominant task. It acts as a form of "regularization" for the shared representation.
  • Meta-Learning Inspiration: Borrowing the inner/outer loop structure from meta-learning provides a principled way to achieve task balance without explicit task preference assignments or complex optimization.
  • Separation of Roles: Explicitly distinguishing and alternately updating shared and task-specific layers allows each to fulfill its intended role more effectively – shared layers for general knowledge, task-specific layers for specialized learning.

Key Results

The proposed method achieved state-of-the-art performance on several benchmarks:

  • Multi-fashion-MNIST: Outperformed existing methods on most tasks, with classification accuracies of 92.30% and 90.38% for Multi-MNIST, and 82.41% and 81.78% for Multi-fashion.
  • CityScapes: Showed strong performance, with the proposed method achieving an mIoU of 53.80 and pixel accuracy of 90.96 for semantic segmentation, and an absolute error of 0.0140 for depth estimation. Qualitative analysis showed clearer and more accurate outputs.
  • NYUv2: Achieved the best performance on 8 out of 9 measures, demonstrating its effectiveness on more complex data and tasks.

Limitations and Future Work

  • Parameter Selection: The authors suggest that future work could explore finding optimal subsets of parameters in the shared layers to be updated, rather than updating all shared layers. This could potentially further improve predictive performance.
  • Computational Efficiency: Research into optimization methods that reduce the computational burden of the single gradient step updates in the inner loop is suggested to improve efficiency.
  • Generalizability: The proposed method is noted for its ease of adaptation to general multitask learning and can be combined with other techniques for various real-world applications.

Summary updated

BibTeX
@article{lee2022multitask,
  author = {Sungjae Lee and Youngdoo Son},
  title = {{Multitask learning with single gradient step update for task balancing}},
  journal = {Neurocomputing},
  year = {2022},
  doi = {10.1016/j.neucom.2021.10.025},
}
Figure