FAMO: Fast Adaptive Multitask Optimization

Bo Liu, Yihao Feng, Peter Stone, Qiang Liu
6/6/2023
cs.LG

Official code: Cranial-XIX/FAMO (134 stars, MIT, last commit 2024-05-09).

Abstract

One of the grand enduring goals of AI is to create generalist agents that can learn multiple different tasks from diverse data via multitask learning (MTL). However, in practice, applying gradient descent (GD) on the average loss across all tasks may yield poor multitask performance due to severe under-optimization of certain tasks. Previous approaches that manipulate task gradients for a more balanced loss decrease require storing and computing all task gradients ($\mathcal{O}(k)$ space and time where $k$ is the number of tasks), limiting their use in large-scale scenarios. In this work, we introduce Fast Adaptive Multitask Optimization FAMO, a dynamic weighting method that decreases task losses in a balanced way using $\mathcal{O}(1)$ space and time. We conduct an extensive set of experiments covering multi-task supervised and reinforcement learning problems. Our results indicate that FAMO achieves comparable or superior performance to state-of-the-art gradient manipulation techniques while offering significant improvements in space and computational efficiency. Code is available at \url{https://github.com/Cranial-XIX/FAMO}.

View on arXivView PDF

Code Implementations(1)

Cranial-XIX/FAMOOfficial100%
MIT

Official PyTorch Implementation for Fast Adaptive Multitask Optimization (FAMO)

13418Shell, PythonJun 5, 20232 years agoMIT
multitaskmultitask-learningoptimization-methods

Similar Papers

Cite this paper

@article{liu2023famo,
  title  = {FAMO: Fast Adaptive Multitask Optimization},
  author = {Bo Liu and Yihao Feng and Peter Stone and Qiang Liu},
  year   = {2023},
  eprint = {2306.03792},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.03792v3},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.03792.svg)](https://codeofpaper.com/paper/2306.03792)

Discussion