arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.12827cs.LGcs.CV
收藏

切空间中的任务算术:改进预训练模型的编辑

Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models

EPFL(洛桑联邦理工学院)

Guillermo Ortiz-Jimenez, Alessandro Favero, Pascal Frossard

AI总结:

本文研究了视觉语言模型中的任务算术,发现权重解耦是其有效的关键因素,并提出通过线性化模型在切空间微调以放大权重解耦,显著提升多基准性能,同时建立其与神经正切核特征函数空间定位的联系。

摘要:

任务算术最近作为一种直接在权重空间编辑预训练模型的低成本且可扩展的方法而出现:通过添加不同任务的微调权重,模型在这些任务上的性能可以得到提升,而对其取反则会导致任务遗忘。然而,我们对任务算术的有效性及其基本原理的理解仍然有限。我们对视觉语言模型中的任务算术进行了全面研究,并表明权重解耦是使其有效的关键因素。这种属性在预训练期间出现,并表现为权重空间中的不同方向控制着与任务相关的函数空间中独立的、局部的区域。值得注意的是,我们展示了通过线性化模型在切空间中对模型进行微调,可以放大权重解耦。这导致了在多个任务算术基准和不同模型上的显著性能提升。基于这些发现,我们对这些模型的神经正切核(NTK)进行了理论和实证分析,并建立了任务算术与NTK特征函数空间定位之间的引人注目的联系。总体而言,我们的工作揭示了任务算术基本机制的新见解,并提供了一种通过NTK线性化来编辑预训练模型的更可靠、更有效的方法。

英文摘要:

Task arithmetic has recently emerged as a cost-effective and scalable approach to edit pre-trained models directly in weight space: By adding the fine-tuned weights of different tasks, the model's performance can be improved on these tasks, while negating them leads to task forgetting. Yet, our understanding of the effectiveness of task arithmetic and its underlying principles remains limited. We present a comprehensive study of task arithmetic in vision-language models and show that weight disentanglement is the crucial factor that makes it effective. This property arises during pre-training and manifests when distinct directions in weight space govern separate, localized regions in function space associated with the tasks. Notably, we show that fine-tuning models in their tangent space by linearizing them amplifies weight disentanglement. This leads to substantial performance improvements across multiple task arithmetic benchmarks and diverse models. Building on these findings, we provide theoretical and empirical analyses of the neural tangent kernel (NTK) of these models and establish a compelling link between task arithmetic and the spatial localization of the NTK eigenfunctions. Overall, our work uncovers novel insights into the fundamental mechanisms of task arithmetic and offers a more reliable and effective approach to edit pre-trained models through the NTK linearization.

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

↑