AdaTask: A Task-aware Adaptive Learning Rate Approach to Multi-task Learning

Enneng Yang, Junwei Pan, Ximei Wang, Haibin Yu, Li Shen, Xihua Chen, Lei Xiao, Jie Jiang, Guibing Guo · DOI

Abstract

Multi-task learning (MTL) models have demonstrated impressive results in computer vision, natural language processing, and recommender systems. Even though many approaches have been proposed, how well these approaches balance different tasks on each parameter still remains unclear. In this paper, we propose to measure the task dominance degree of a parameter by the total updates of each task on this parameter. Specifically, we compute the total updates by the exponentially decaying Average of the squared Updates (AU) on a parameter from the corresponding task. Based on this novel metric, we observe that many parameters in existing MTL methods, especially those in the higher shared layers, are still dominated by one or several tasks. The dominance of AU is mainly due to the dominance of accumulative gradients from one or several tasks. Motivated by this, we propose a Task-wise Adaptive learning rate approach, AdaTask in short, to separate the accumulative gradients and hence the learning rate of each task for each parameter in adaptive learning rate approaches (e.g., AdaGrad, RMSProp, and Adam). Comprehensive experiments on computer vision and recommender system MTL datasets demonstrate that AdaTask significantly improves the performance of dominated tasks, resulting SOTA average task-wise performance. Analysis on both synthetic and real-world datasets shows AdaTask balance parameters in every shared layer well.

Introduction

In Multi-Task Learning (MTL), a single model aims to solve multiple problems simultaneously by sharing a backbone of parameters. Ideally, this leads to better generalization. However, in practice, one task often has much larger gradients than others, leading to task dominance. Modern optimizers like Adam adjust learning rates based on aggregated gradient statistics from all tasks. If Task B is significantly "louder" than Task A, the optimizer sets a learning rate that suits Task B, effectively stalling Task A's progress on shared weights.

Figure 1: Performance deterioration under varying noise scales and parameter percentages, illustrating how one task can be disproportionately affected by shared parameter updates.

Methodology

The authors introduce a new metric: rAU (ratio of Average squared Updates), which quantifies the proportion of a parameter's total updates contributed by a specific task. To address the dominance revealed by rAU, they propose AdaTask:

  1. Separated Statistics: Instead of a global history of squared gradients, AdaTask maintains a separate history ($G^k$) for each task $k$.
  2. Task-Specific Adaptive Rates: Updates for a specific task use only that task's accumulated gradient history.
  3. Decoupling: This ensures that "quiet" tasks receive a learning rate appropriate for their own gradient scale, rather than being suppressed by dominant tasks.

They also introduce LAdaTask (Layer-wise AdaTask), a memory-efficient version that groups parameters by layer to reduce storage overhead.

Experimental Setup

AdaTask was evaluated on four diverse benchmarks:

  • Synthetic Dataset: Two regression tasks designed for one to dominate the other.
  • CityScapes: Autonomous driving tasks involving Depth Estimation (dominated) and Semantic Segmentation (dominant).
  • TikTok: Recommender system focusing on "Like" and "Finish" tasks.
  • WeChat: Large-scale industrial dataset with four interaction tasks (Click, Like, Follow, etc.).

Results and Discussion

AdaTask achieved state-of-the-art average performance across all tasks. On CityScapes, it improved the Absolute Error of the dominated Depth Estimation task by 15.78% compared to equal-weighting baselines.

Crucially, visualization of the rAU metric confirms that AdaTask maintains a much better balance across shared parameters. While standard methods often result in 99% of parameters being dominated by a single task, AdaTask keeps the majority of parameters in a balanced state (where neither task contributes more than 60% of updates).

Figure 5: Comparison of parameter dominance across different MTL methods. AdaTask (e) shows a significantly higher percentage of balanced parameters (yellow) compared to other methods.

Key insights include:

  • Optimizer-Level Imbalance: Task dominance is an internal optimizer issue that loss-weighting alone cannot solve.
  • Layer Sensitivity: Higher shared layers are more prone to bias, making AdaTask's per-parameter or per-layer adjustments particularly effective.
  • Efficiency: AdaTask's training time is comparable to standard methods as it avoids the expensive projection operations required by complex gradient-surgery techniques.

Conclusion

AdaTask provides a simple yet effective modification to standard optimizers to combat task dominance in MTL. While it significantly boosts "weak" tasks, future work may address the slight performance trade-offs in dominant tasks and further optimize embedding layer balancing in recommender systems.

Summary updated

BibTeX
@inproceedings{yang2023adatask,
  author = {Enneng Yang and Junwei Pan and Ximei Wang and Haibin Yu and Li Shen and Xihua Chen and Lei Xiao and Jie Jiang and Guibing Guo},
  title = {{AdaTask: A Task-aware Adaptive Learning Rate Approach to Multi-task Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26275},
}
Figure