Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dai, Rui, Hu, Sile, Shen, Xu, Zhang, Yonggang, Tian, Xinmei, Ye, Jieping
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916691273842688
author Dai, Rui
Hu, Sile
Shen, Xu
Zhang, Yonggang
Tian, Xinmei
Ye, Jieping
author_facet Dai, Rui
Hu, Sile
Shen, Xu
Zhang, Yonggang
Tian, Xinmei
Ye, Jieping
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_10902
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs
Dai, Rui
Hu, Sile
Shen, Xu
Zhang, Yonggang
Tian, Xinmei
Ye, Jieping
Machine Learning
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.
title Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs
topic Machine Learning
url https://arxiv.org/abs/2504.10902