[Paper Review] Dual-Balancing for Multi-Task Learning
This paper proposes Dual-Balancing Multi-Task Learning (DB-MTL), a method that simultaneously balances loss scales via logarithmic transformation and gradient magnitudes via normalization to the maximum gradient norm. It achieves state-of-the-art performance across multiple benchmark datasets by effectively mitigating task imbalance in multi-task learning.
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.
Motivation & Objective
- Address the persistent task balancing problem in multi-task learning (MTL), where disparities in loss and gradient scales lead to suboptimal performance on certain tasks.
- Overcome the limitations of equal weighting and existing dynamic weighting methods that fail to balance both loss and gradient dynamics effectively.
- Propose a simple yet effective framework that decouples loss-scale and gradient-magnitude balancing to improve model convergence and generalization.
- Demonstrate that loss-scale balancing via logarithmic transformation enhances the performance of existing gradient balancing methods.
- Achieve state-of-the-art results across diverse benchmark datasets in computer vision, NLP, and recommendation systems.
Proposed method
- Apply a logarithmic transformation to each task loss to normalize loss scales across tasks, ensuring all tasks contribute equally to the overall loss magnitude.
- Normalize all task gradients to have the same magnitude as the maximum gradient norm among tasks, enforcing gradient-magnitude balance during optimization.
- Integrate both loss-scale and gradient-magnitude balancing into a single training pipeline without requiring additional learnable parameters or hyperparameter tuning.
- Use a training-free gradient normalization strategy that sets the target gradient norm to the maximum observed across tasks, empirically shown to yield optimal performance.
- Combine the two balancing components into a unified DB-MTL framework that operates at both loss and gradient levels.
- Ensure compatibility with existing gradient balancing methods by showing that logarithmic loss scaling improves their performance, as validated in ablation studies.
Experimental results
Research questions
- RQ1Can simultaneous balancing of loss scales and gradient magnitudes lead to improved multi-task learning performance compared to single-level balancing?
- RQ2Does applying a logarithmic transformation to task losses enhance the effectiveness of existing gradient balancing methods?
- RQ3What is the optimal target magnitude for normalized gradients in multi-task learning, and does setting it to the maximum observed gradient norm yield the best results?
- RQ4How do the individual components of DB-MTL (loss-scale and gradient-magnitude balancing) contribute to overall performance?
- RQ5Can DB-MTL achieve state-of-the-art performance across diverse benchmark datasets in computer vision, NLP, and recommendation systems?
Key findings
- DB-MTL achieves the best performance across all evaluated datasets, with the lowest test loss of -58.10 ± 3.89 on QM9 and -103.0 ± 8.62 on Cityscapes, outperforming all baselines.
- The ablation study confirms that both loss-scale and gradient-magnitude balancing components are essential, with the full DB-MTL configuration yielding the highest improvement of +1.15 ± 0.16 on NYUv2.
- The logarithmic transformation of task losses improves the performance of gradient balancing methods, as shown by consistent gains in downstream metrics across all datasets.
- Setting the normalized gradient magnitude to the maximum observed gradient norm yields the best results, with a 15% improvement in convergence speed and stability compared to other normalization baselines.
- DB-MTL achieves state-of-the-art performance on five benchmark datasets: NYUv2, Cityscapes, Office-31, Office-Home, and QM9, with consistent improvements in both accuracy and loss.
- The method is robust and generalizable, showing consistent gains across diverse MTL setups including vision, NLP, and graph learning tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.