Dual-Balancing for Multi-Task Learning

Baijiong Lin, Weisen Jiang, Feiyang Ye, Yu Zhang, Pengguang Chen +4 more
8/23/2023
cs.LGcs.AI

No official code found. Best implementation: median-research-group/LibMTL (2,573 stars, MIT, PyTorch, last commit 2025-05-14).

Abstract

Multi-task learning aims to learn multiple related tasks simultaneously and has achieved great success in various fields. However, the disparity in loss and gradient scales among tasks often leads to performance compromises, and the balancing of tasks remains a significant challenge. In this paper, we propose Dual-Balancing Multi-Task Learning (DB-MTL) to achieve task balancing from both the loss and gradient perspectives. Specifically, DB-MTL achieves loss-scale balancing by performing logarithm transformation on each task loss, and rescales gradient magnitudes by normalizing all task gradients to comparable magnitudes using the maximum gradient norm. Extensive experiments on a number of benchmark datasets demonstrate that DB-MTL consistently performs better than the current state-of-the-art.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

A PyTorch Library for Multi-Task Learning

2,573232PythonDec 18, 20211 years agoMIT
deep-learningmmoemtlmulti-domain-learningmulti-objective-optimization+6 more

Cite this paper

@article{lin2023dualbalancing,
  title  = {Dual-Balancing for Multi-Task Learning},
  author = {Baijiong Lin and Weisen Jiang and Feiyang Ye and Yu Zhang and Pengguang Chen and Ying-Cong Chen and Shu Liu and Ivor W. Tsang and James T. Kwok},
  year   = {2023},
  eprint = {2308.12029},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12029v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12029.svg)](https://codeofpaper.com/paper/2308.12029)

Discussion