Fair Resource Allocation in Multi-Task Learning
About
By jointly learning multiple tasks, multi-task learning (MTL) can leverage the shared knowledge across tasks, resulting in improved data efficiency and generalization performance. However, a major challenge in MTL lies in the presence of conflicting gradients, which can hinder the fair optimization of some tasks and subsequently impede MTL's ability to achieve better overall performance. Inspired by fair resource allocation in communication networks, we formulate the optimization of MTL as a utility maximization problem, where the loss decreases across tasks are maximized under different fairness measurements. To solve this problem, we propose FairGrad, a novel MTL optimization method. FairGrad not only enables flexible emphasis on certain tasks but also achieves a theoretical convergence guarantee. Extensive experiments demonstrate that our method can achieve state-of-the-art performance among gradient manipulation methods on a suite of multi-task benchmarks in supervised learning and reinforcement learning. Furthermore, we incorporate the idea of $\alpha$-fairness into loss functions of various MTL methods. Extensive empirical studies demonstrate that their performance can be significantly enhanced. Code is provided at \url{https://github.com/OptMN-Lab/fairgrad}.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Depth Estimation | NYU V2 | -- | 167 | |
| Semantic segmentation | Cityscapes | Mean IoU69.86 | 68 | |
| Depth Estimation | Cityscapes | Abs. Err.0.0121 | 65 | |
| Surface Normal Estimation | NYU V2 | Mean Angular Error23.0717 | 65 | |
| Semantic segmentation | NYU V2 | mIoU52.91 | 30 | |
| Scene Understanding | Cityscapes | mIoU75.72 | 18 | |
| Scene Understanding | NYU V2 | mIoU39.74 | 18 | |
| Multi-task Learning | QM9 | Mean Relative Error (MR)5.82 | 17 | |
| Multi-task Learning | CelebA | Misclassification Rate (MR)8.15 | 17 | |
| Semantic segmentation | GTA5 to Cityscapes Sim-to-Real Transfer (Source Target Delta) | mIoU (Source)66.65 | 11 |