NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fair Resource Allocation in Multi-Task Learning

Hao Ban, Kaiyi Ji

TL;DR

Multi-task learning (MTL) often struggles when tasks have "conflicting gradients," where progress in one area comes at the expense of another. This paper introduces FairGrad, a novel optimization framework that borrows "$\alpha$-fairness" principles from communication networks to balance task progress. It provides a unified, mathematically grounded way to prioritize different tasks while guaranteeing convergence to a Pareto-optimal solution.

What Problem Does This Paper Address?

Multi-task learning is the "Swiss Army Knife" of AI—one model learns to handle many tasks (like depth estimation and semantic segmentation) simultaneously. In theory, this improves efficiency and generalization. In practice, it’s a delicate balancing act.

The main culprit is gradient conflict. Imagine two tasks: Task A has a massive gradient (it's "loud") and Task B has a tiny one (it's "quiet"). If you simply average their losses, the optimizer will follow Task A’s lead, potentially making Task B’s performance worse. While existing methods like MGDA or Nash-MTL try to find a compromise, they are often rigid, focusing on only one type of "fairness." Prior to this work, there hasn't been a unified framework that allows researchers to choose how to be fair—whether that means protecting the "weakest" task or ensuring proportional progress for all.

Methods

The authors draw a brilliant parallel between MTL and resource allocation in communication networks. In a network, you have limited bandwidth (the resource) and multiple users (the tasks). You want to distribute bandwidth so that everyone gets a "fair" level of service.

The FairGrad Algorithm

The authors define the "resource" as the common search direction $d$ and the "service quality" as the rate at which the loss decreases for each task. They introduce the $\alpha$-fairness utility function:

$$u(x) = \frac{x^{1-\alpha}}{1-\alpha}$$

By adjusting the parameter $\alpha$, FairGrad can emulate different fairness philosophies, steering the optimization trajectory toward different points on the Pareto front:

Optimization trajectories for different fairness levels
  • $\alpha = 0$ (Without Fairness): Equivalent to a simple average (Linear Scalarization). It maximizes overall progress but may leave some tasks behind.
  • $\alpha \to 1$ (Proportional Fairness): Similar to Nash-MTL, it ensures no single task is dominated, balancing relative improvements.
  • $\alpha = 2$ (Minimum Potential Delay Fairness): A middle ground that balances overall speed and individual task progress.
  • $\alpha \to \infty$ (Max-Min Fairness): Similar to MGDA, it prioritizes the task making the least progress (the "least-fortunate" task).

Technically, FairGrad solves a constrained nonlinear least-squares problem at each step to find the optimal weights for task gradients, ensuring the model moves toward a Pareto-optimal state where you can't improve one task without hurting another.

Datasets

The researchers put FairGrad through its paces across several diverse benchmarks:

  • CelebA: A massive face-attribute dataset with 40 classification tasks (e.g., smiling, wavy hair).
  • QM9: A chemical property dataset with 11 regression tasks for organic molecules.
  • NYU-v2 & Cityscapes: Standard "dense prediction" computer vision benchmarks involving segmentation and depth estimation.
  • MT10 (MetaWorld): A reinforcement learning benchmark featuring 10 robotic manipulation tasks (like opening doors or picking up objects).

Key Insights and Ideas

  • The Unified Framework: The biggest "aha" moment is that many existing MTL methods are actually just specific points on the $\alpha$-fairness spectrum. FairGrad provides the "slider" to move smoothly between them.
  • The Power of $\alpha=2$: Interestingly, the experiments showed that $\alpha=2$ (Minimum Potential Delay) often yielded the best overall performance, outperforming the more common "proportional" or "max-min" approaches.
  • Loss Transformation: Beyond the FairGrad algorithm itself, the authors found that simply transforming the loss functions of other popular MTL methods (like PCGrad or CAGrad) using the $\alpha$-fair formula significantly boosted their performance. This suggests $\alpha$-fairness is a fundamental improvement for the field.

Key Results

FairGrad achieved State-of-the-Art (SOTA) results across almost all tested scenarios:

  • Vision Tasks: On the NYU-v2 dataset, FairGrad achieved a negative $\Delta m\%$ (-4.66%), meaning it didn't just balance tasks—it actually helped the multi-task model significantly outperform individual single-task models.
  • Scaling to 40 Tasks: On CelebA, FairGrad maintained the best Mean Rank (4.95) and the lowest performance drop (0.37%) compared to all other gradient manipulation methods.
  • Reinforcement Learning: In the MT10 robotic suite, FairGrad performed competitively with Nash-MTL, proving its utility in complex, non-static environments.

Limitations and Future Work

While FairGrad is powerful, the authors note a few hurdles:

  • Computational Overhead: Solving the nonlinear least-squares problem at every training step can be slow. For the Reinforcement Learning experiments, they had to use an SGD approximation to keep training times reasonable.
  • Choosing $\alpha$: While the framework is flexible, it requires the user to pick the "right" $\alpha$. The authors used a grid search (1, 2, 5, 10), but an automated way to tune fairness during training would be a valuable next step.
  • Generalization: The theoretical proof focuses on convergence to a Pareto stationary point on the training set. Future research is needed to see how different fairness levels impact generalization to unseen data.

Summary updated

BibTeX
@inproceedings{ban2024fair,
  author = {Hao Ban and Kaiyi Ji},
  title = {{Fair Resource Allocation in Multi-Task Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=KLmWRMg6nL},
}
Figure