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

FAMO: Fast Adaptive Multitask Optimization

Bo Liu, Yihao Feng, Peter Stone, qiang liu

Introduction

Multitask Learning (MTL) is a powerful paradigm for training unified models capable of performing multiple tasks simultaneously. While conceptually appealing, MTL often faces the challenge of "conflicting gradients," where the optimization of one task inadvertently hinders the progress of others. Standard approaches that minimize the average loss frequently result in sub-optimal performance for neglected tasks. To address this, gradient manipulation methods have been proposed to re-weight task gradients. However, these methods typically incur a significant computational "tax," requiring $\mathcal{O}(k)$ space and time complexity relative to the number of tasks $k$, which limits their scalability to large-scale models and many-task scenarios.

Methodology: Fast Adaptive Multitask Optimization (FAMO)

The proposed FAMO optimizer introduces a novel approach to MTL by aiming to decrease all task losses at an approximately equal rate. The core innovation lies in amortization over time. Instead of solving an expensive optimization problem at every iteration to find optimal task weights, FAMO updates weights using a single, computationally efficient gradient step. This approach focuses on balancing the rate of improvement (log-loss) rather than absolute loss values, which makes the optimization process more robust to tasks having vastly different loss scales.

Individual task loss landscapes ($L^0, L^1, L^2$) illustrating the diversity of optimization surfaces in multitask learning.

Crucially, FAMO eliminates the need to compute individual task gradients. It utilizes the history of task losses as a proxy for gradient information. The fundamental insight is that the actual gradients of every task are not strictly necessary to identify which tasks require more focus; observing how their losses changed after the last update provides sufficient information. By monitoring the change in the log-loss of each task from the previous step, FAMO dynamically adjusts weights to prioritize tasks that are lagging. This mechanism allows FAMO to maintain $\mathcal{O}(1)$ extra space and time complexity, making it as efficient as standard Adam while providing the balancing benefits of more complex optimizers. The method introduces a regularization hyperparameter, $\gamma$, to ensure the stability of these updates across different datasets.

Experimental Evaluation

FAMO was evaluated across a wide range of benchmarks, including synthetic toy problems, supervised learning tasks (NYU-v2, CityScapes, QM-9, CelebA), and reinforcement learning (MetaWorld MT10).

Performance and Efficiency

The results demonstrate that FAMO consistently achieves state-of-the-art performance, comparable to or exceeding methods like NashMTL and CAGrad. Notably, FAMO offers massive speedups; in a 2-task toy problem, it reached the Pareto front while being 25x faster than NashMTL.

Comprehensive evaluation on a toy problem, showing the average loss landscape, task contours, time consumption comparison, and optimization trajectories for various methods.

As illustrated in the efficiency benchmarks, FAMO's training time per epoch remains nearly identical to standard linear scalarization (LS). Unlike previous gradient manipulation methods that slow down significantly as the number of tasks increases, FAMO's $\mathcal{O}(1)$ complexity ensures it scales gracefully to large-scale multitask problems. In reinforcement learning environments like MetaWorld MT10, FAMO also demonstrated superior performance, outperforming several specialized baselines in average success rate.

Conclusion

FAMO represents a significant step forward in multitask optimization. By leveraging loss history to balance task progress, it achieves the performance of sophisticated gradient manipulation methods without their prohibitive computational costs. Its efficiency and scalability make it a practical choice for training modern foundation models across diverse task sets.

Summary updated

BibTeX
@inproceedings{liu2023famo,
  author = {Bo Liu and Yihao Feng and Peter Stone and qiang liu},
  title = {{FAMO: Fast Adaptive Multitask Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zMeemcUeXL},
}
Figure