Abstract
In multi-task learning (MTL), gradient balancing has recently attracted more research interest than loss balancing since it often leads to better performance. However, loss balancing is much more efficient than gradient balancing, and thus it is still worth further exploration in MTL. Note that prior studies typically ignore that there exist varying improvable gaps across multiple tasks, where the improvable gap per task is defined as the distance between the current training progress and desired final training progress. Therefore, after loss balancing, the performance imbalance still arises in many cases. In this paper, following the loss balancing framework, we propose two novel improvable gap balancing (IGB) algorithms for MTL: one takes a simple heuristic, and the other (for the first time) deploys deep reinforcement learning for MTL. Particularly, instead of directly balancing the losses in MTL, both algorithms choose to dynamically assign task weights for improvable gap balancing. Moreover, we combine IGB and gradient balancing to show the complementarity between the two types of algorithms. Extensive experiments on two benchmark datasets demonstrate that our IGB algorithms lead to the best results in MTL via loss balancing and achieve further improvements when combined with gradient balancing.
Introduction
Multi-Task Learning (MTL) aims to train a single model to perform multiple tasks simultaneously, such as semantic segmentation, depth estimation, and surface normal prediction. While efficient and capable of knowledge sharing, MTL often suffers from the "seesaw phenomenon," where performance gains in one task come at the expense of others. This imbalance is primarily due to conflicting gradients, varying loss scales, and differing convergence speeds across tasks.
Existing strategies generally fall into two categories: Loss Balancing, which is computationally efficient but often struggles with complex interference, and Gradient Balancing, which is highly effective but computationally expensive. A critical oversight in traditional loss balancing is the neglect of the improvable gap—the distance between a task's current progress and its desired final state. As shown in Figure 1, tasks often have different remaining room for improvement at any given point in training.
Methodology
The proposed Improvable Gap Balancing (IGB) framework addresses this by dynamically weighting tasks based on their individual room for improvement. The core of the framework is a Scale-Invariant (SI) loss paradigm that utilizes the logarithm of losses to mitigate numerical scale differences.
IGBv1: The Heuristic Approach
IGBv1 is a simple, efficient version that calculates task weights by normalizing current losses against an early "baseline" epoch. It prioritizes tasks that remain high relative to their initial baseline, ensuring the model pivots attention to lagging tasks.
IGBv2: The Reinforcement Learning Approach
IGBv2 represents a novel application of Deep Reinforcement Learning (DRL) to MTL loss weighting. Utilizing a Soft Actor-Critic (SAC) agent, the system treats weight assignment as a sequential decision problem. The agent observes the current batch losses (state), determines the task weights (action), and receives a reward based on the minimum loss decline across all tasks, effectively encouraging improvement in the "weakest link."
Experimental Evaluation
The researchers evaluated IGB on two benchmarks: NYUv2 (indoor scene vision tasks) and QM9 (molecular property regression).
Performance and Efficiency
On the NYUv2 dataset, the combination of IGBv2 + Nash-MTL achieved state-of-the-art results, outperforming standalone gradient and loss balancing methods. Crucially, IGB maintains high efficiency; on the 11-task QM9 dataset, IGB algorithms were 7 to 22 times faster than complex gradient-balancing competitors like Nash-MTL and MGDA while delivering superior or competitive accuracy.
Complementarity
The study also demonstrates that IGB is complementary to gradient balancing. While IGB manages high-level task weighting to balance the improvable gaps, gradient methods can simultaneously handle low-level optimization conflicts.
Conclusion
Improvable Gap Balancing offers a robust solution to the performance imbalance in multi-task learning. By reframing task weighting as a sequential decision problem and leveraging reinforcement learning, IGB bridges the gap between the efficiency of loss balancing and the performance of gradient balancing. Future work will focus on optimizing the RL component's hyperparameter sensitivity and scaling the framework to even larger multi-task problems.
Summary updated