arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.07883cs.LG
收藏

SAMO:一种基于联合全局-局部扰动的轻量级锐度感知多任务优化方法

SAMO: A Lightweight Sharpness-Aware Approach for Multi-Task Optimization with Joint Global-Local Perturbation

University at Buffalo(布法罗大学)

Hao Ban, Gokul Ram Subramani, Kaiyi Ji

AI总结:

针对多任务学习中的任务冲突与梯度计算开销问题,提出轻量级锐度感知优化方法SAMO,利用联合全局-局部扰动并仅通过前向传播近似局部扰动,有效提升了优化效率与模型性能。

摘要:

多任务学习(MTL)使联合模型能够捕获多个任务间的共性,从而降低计算成本并提升数据效率。然而,MTL优化中的一大挑战是任务冲突,即任务梯度在方向或幅度上存在差异,限制了模型相比单任务模型的性能。锐度感知最小化(SAM)在最小化任务损失的同时,降低了损失曲面的锐度。我们的经验观察表明,SAM能有效缓解MTL中的任务冲突。受此启发,我们探索将SAM集成至MTL,但面临两大关键挑战:平均损失梯度与各任务梯度(分别称为全局与局部信息)均对SAM有贡献,但如何结合它们尚不明确;此外,直接计算各任务梯度会引入显著的计算与内存开销。为解决这些问题,我们提出了SAMO,一种轻量级的锐度感知多任务优化方法,它利用联合全局-局部扰动。局部扰动仅通过前向传播进行近似,并采用逐层归一化以提升效率。在一系列多任务基准上的大量实验证明了本方法的有效性与高效性。代码见 https://github.com/OptMN-Lab/SAMO。

英文摘要:

Multi-task learning (MTL) enables a joint model to capture commonalities across multiple tasks, reducing computation costs and improving data efficiency. However, a major challenge in MTL optimization is task conflicts, where the task gradients differ in direction or magnitude, limiting model performance compared to single-task counterparts. Sharpness-aware minimization (SAM) minimizes task loss while simultaneously reducing the sharpness of the loss landscape. Our empirical observations show that SAM effectively mitigates task conflicts in MTL. Motivated by these findings, we explore integrating SAM into MTL but face two key challenges. While both the average loss gradient and individual task gradients-referred to as global and local information-contribute to SAM, how to combine them remains unclear. Moreover, directly computing each task gradient introduces significant computational and memory overheads. To address these challenges, we propose SAMO, a lightweight \textbf{S}harpness-\textbf{A}ware \textbf{M}ulti-task \textbf{O}ptimization approach, that leverages a joint global-local perturbation. The local perturbations are approximated using only forward passes and are layerwise normalized to improve efficiency. Extensive experiments on a suite of multi-task benchmarks demonstrate both the effectiveness and efficiency of our method. Code is available at https://github.com/OptMN-Lab/SAMO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑