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}.
A Multitask Large Reasoning Model for Molecular Science
Pengcheng Laboratory(鹏城实验室);School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生学院)
Multitask Neuroevolution for Reinforcement Learning with Long and Short Episodes
Nanyang Technological University(南洋理工大学);Singapore Institute of Manufacturing Technology (SIMTech)(新加坡制造技术研究院);Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局);Sun Yat-sen University(中山大学);A*Star Center for Frontier AI Research(新加坡科技研究局前沿人工智能研究中心)
Deep Reinforcement Learning with Task-Adaptive Retrieval via Hypernetwork
Beijing University of Posts and Telecommunications(北京邮电大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Peking University(北京大学);CASIA(中国科学院自动化研究所)
School of Automation, Northwestern Polytechnical University(西北工业大学自动化学院);Information Engineering College of Yangzhou University(扬州大学信息工程学院);State Key Lab of Intelligent Technologies and Systems, Beijing National Research Center for Information Science and Technology(智能技术与系统国家重点实验室,北京信息科学与技术国家研究中心);Department of Automation, Tsinghua University(清华大学自动化系)
在本文中,我们揭示了度量学习将遭受严重的不可分割的问题,如果没有信息样本挖掘。由于不可分样本中经常会混入硬样本,现有的信息样本挖掘策略在处理不可分样本时可能会带来一些副作用,如目标函数不稳定等。针对这一问题,提出了一种新的距离度量学习算法,即自适应邻域度量学习(ANML)。在ANML中,我们设计了两个阈值来自适应地识别训练过程中不可分的相似和不相似样本,从而在同一过程中实现不可分样本去除和度量参数学习。由于所提出的ANML的非连续性,我们开发了一个巧妙的功能,命名为\emph{log-exp mean function}构建一个连续的配方来代替它,它可以有效地解决了梯度下降方法。与Triplet loss类似,ANML可用于学习线性嵌入和深度嵌入。通过分析所提出的方法,我们发现它有一些有趣的性质。例如,当ANML用于学习线性嵌入时,当前著名的度量学习算法如大间隔最近邻(LMNN)和邻域分量分析(NCA)通过设置不同的参数值而成为所提出的ANML的特例。当它被用来学习深度特征时,最先进的深度度量学习算法如Triplet loss、Lifted structure loss和Multi-similarity loss成为ANML的特例。此外,在我们的方法中提出的\emph{log-exp mean function}提供了一个新的视角来回顾深度度量学习方法,如Prox-NCA和N对损失…