利用子模块线性提升大语言模型的任务算术性能
Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs
AI总结:
针对任务算术这一模型合并策略,通过统计分析发现模型子模块(如层、自注意力机制和MLP)的线性显著高于整体模型,提出独立合并子模块的策略并推导最优权重闭式解,在多任务模型合并中持续优于基线。
摘要:
任务算术是一种简单却高效的模型合并策略,能让合并后的模型具备多任务能力。近期研究表明,具有线性特性的模型可提升任务算术性能。与现有依赖模型全局线性化的方法不同,我们认为这种线性已存在于模型子模块中。具体而言,我们通过统计分析发现,子模块(如层、自注意力机制和MLP)的线性显著高于整体模型。基于这些发现,我们提出一种创新的模型合并策略,独立合并这些子模块;特别地,我们基于子模块的线性特性推导了最优合并权重的闭式解。实验结果显示,在不同模型规模和任务上,我们的方法持续优于标准任务算术方法及其他成熟基线。该结果凸显了利用子模块线性的优势,为探索有效且实用的多任务模型合并方案提供了新视角。
英文摘要:
Task arithmetic is a straightforward yet highly effective strategy for model merging, enabling the resultant model to exhibit multi-task capabilities. Recent research indicates that models demonstrating linearity enhance the performance of task arithmetic. In contrast to existing methods that rely on the global linearization of the model, we argue that this linearity already exists within the model's submodules. In particular, we present a statistical analysis and show that submodules (e.g., layers, self-attentions, and MLPs) exhibit significantly higher linearity than the overall model. Based on these findings, we propose an innovative model merging strategy that independently merges these submodules. Especially, we derive a closed-form solution for optimal merging weights grounded in the linear properties of these submodules. Experimental results demonstrate that our method consistently outperforms the standard task arithmetic approach and other established baselines across different model scales and various tasks. This result highlights the benefits of leveraging the linearity of submodules and provides a new perspective for exploring solutions for effective and practical multi-task model merging.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。