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

建模多任务模型合并为自适应投影梯度下降

Modeling Multi-Task Model Merging as Adaptive Projective Gradient Descent

Tsinghua University(清华大学);Wuhan University(武汉大学);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Nanyang Technological University(南洋理工大学)

Yongxian Wei, Anke Tang, Li Shen, Zixuan Hu, Chun Yuan, Xiaochun Cao

AI总结:

本文提出将多任务模型合并建模为自适应投影梯度下降问题,通过无数据优化任务向量并投影到共享子空间以保留共享知识,实现了跨视觉和NLP领域的即插即用最优性能。

摘要:

合并多个专家模型为执行多任务学习提供了一种有前景的方法,而无需访问其原始数据。现有方法试图通过稀疏化任务向量或促进它们之间的正交性来缓解任务冲突。然而,它们忽略了模型合并的基本目标:合并后的模型在各自任务上的表现应尽可能接近任务特定模型。我们发现这些方法不可避免地丢弃了任务特定信息,这些信息虽然会引起冲突,但对性能至关重要。基于我们的发现,我们将模型合并构建为一个约束优化问题(即,在保留共享知识的约束下,最小化合并模型与各个模型之间的差距),并通过自适应投影梯度下降来解决它。具体来说,我们通过分解和重构损失函数来使合并模型与各个模型对齐,通过任务向量的无数据优化来缓解冲突。为了保留共享知识,我们通过在跨越所有任务的共享子空间内投影梯度来优化此目标。此外,我们将合并系数视为自适应学习率,并提出了一种任务感知的、无需训练的策略。实验表明,我们的即插即用方法始终优于先前方法,在视觉和自然语言处理领域的多种架构和任务上取得了最先进的结果。

英文摘要:

Merging multiple expert models offers a promising approach for performing multi-task learning without accessing their original data. Existing methods attempt to alleviate task conflicts by sparsifying task vectors or promoting orthogonality among them. However, they overlook the fundamental target of model merging: the merged model performs as closely as possible to task-specific models on respective tasks. We find these methods inevitably discard task-specific information that, while causing conflicts, is crucial for performance. Based on our findings, we frame model merging as a constrained optimization problem ($\textit{i.e.}$, minimizing the gap between the merged model and individual models, subject to the constraint of retaining shared knowledge) and solve it via adaptive projective gradient descent. Specifically, we align the merged model with individual models by decomposing and reconstituting the loss function, alleviating conflicts through $\textit{data-free}$ optimization of task vectors. To retain shared knowledge, we optimize this objective by projecting gradients within a $\textit{shared subspace}$ spanning all tasks. Moreover, we view merging coefficients as adaptive learning rates and propose a task-aware, training-free strategy. Experiments show that our plug-and-play approach consistently outperforms previous methods, achieving state-of-the-art results across diverse architectures and tasks in both vision and NLP domains.

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

↑