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

Scalable Bilevel Loss Balancing for Multi-Task Learning

Peiyao Xiao, Chaosheng Dong, Shaofeng Zou, Kaiyi Ji · DOI

Introduction

Multi-Task Learning (MTL) aims to solve multiple related tasks using a single shared model. While efficient, MTL often faces the challenge of "loss discrepancy," where tasks progress at different rates due to varying difficulties, loss scales, or conflicting gradients. When one task dominates, overall performance degrades. Existing solutions like gradient manipulation are effective but suffer from $O(K)$ complexity, where $K$ is the number of tasks, making them unscalable for large-scale architectures.

LDC-MTL: A Bilevel Optimization Framework

To address these scalability issues, we introduce LDC-MTL, a framework that treats task balancing as a bilevel optimization problem. The core idea is to explicitly minimize the gaps between task losses while simultaneously optimizing model parameters.

The LDC-MTL bilevel optimization framework, showing the interaction between discrepancy control (upper-level) and loss minimization (lower-level).

The optimization is structured as follows:

  • Lower-level: Updates model parameters $x$ to minimize a weighted sum of task losses $\sum \sigma_i l_i(x)$.
  • Upper-level: Updates task weights $W$ to minimize the discrepancy (mutual gaps) between losses: $\min \sum | \tau_i l_i - \tau_{i+1} l_{i+1} |$.

Scalability Breakthrough

Traditional bilevel optimization requires expensive second-order derivatives (Hessians). LDC-MTL utilizes a scalable first-order algorithm that simplifies the update rule into a single-loop structure. By observing that certain gradient terms remain negligible during training, the algorithm achieves $O(1)$ time and memory complexity relative to the number of tasks, matching the efficiency of simple linear scalarization.

Experimental Evaluation

LDC-MTL was evaluated across diverse benchmarks, including Cityscapes (dense prediction), CelebA (40-task classification), QM9 (quantum chemistry), and NYU-v2 (indoor scene understanding).

Performance and Efficiency

On the 40-task CelebA dataset, LDC-MTL achieved a performance drop ($\Delta m\%$) of -1.31%, significantly outperforming FairGrad (0.37%). Furthermore, LDC-MTL demonstrates exceptional efficiency.

Comparison of optimization trajectories and running times. LDC-MTL achieves a better balance on the Pareto frontier while maintaining competitive running times compared to simpler methods.

As shown in the results, LDC-MTL provides a superior trade-off between task performance and computational cost. On CelebA, it was approximately 12x faster than Nash-MTL and nearly as fast as linear scalarization (LS).

Key Insights

  • Explicit Gap Reduction: Targeting the mathematical difference between task losses ensures a more balanced training trajectory.
  • Dynamic Trajectory: The path weights take during early training stages is crucial for preventing any single task from dominating the optimization.
  • Pareto Optimality: Theoretically, the authors prove that LDC-MTL converges to an $\epsilon$-accurate Pareto stationary point for all tasks.

Conclusion

LDC-MTL offers a scalable and effective solution for balancing multi-task learning. By reformulating task balancing as a first-order bilevel optimization problem, it achieves state-of-the-art performance with $O(1)$ complexity, making it suitable for massive multi-task architectures. Future work will explore its application in large-scale recommendation systems.

Summary updated

BibTeX
@misc{xiao2025scalable,
  author = {Peiyao Xiao and Chaosheng Dong and Shaofeng Zou and Kaiyi Ji},
  title = {{Scalable Bilevel Loss Balancing for Multi-Task Learning}},
  year = {2025},
  eprint = {2502.08585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08585},
}
Figure