Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs
Rui Dai, Sile Hu, Xu Shen, Yonggang Zhang, Xinmei Tian, Jieping Ye
摘要
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. Code: https://github.com/deep-analysis-research/SLTA . 1 f (x; θ0 + ατ ) ≈ f (x; θ0) + α∆f (x; θ0 + τ ) where τ = θ -θ0 is the weight difference caused by fine-tuning and ∆f (x; θ0 + τ ) = f (x; θ0 + τ ) -f (x; θ0) is the corresponding output feature difference. 2 These two properties are easily confused. More discussions see Appendix A.5.1.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- TIES-Merging: Resolving Interference When Merging Models 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- TIES-Merging: Resolving Interference When Merging Models 引用了 Linear Mode Connectivity and the Lottery Ticket Hypothesis
- TIES-Merging: Resolving Interference When Merging Models 引用了 Merging Models with Fisher-Weighted Averaging
- TIES-Merging: Resolving Interference When Merging Models 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 Linear Mode Connectivity and the Lottery Ticket Hypothesis
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 Merging Models with Fisher-Weighted Averaging
- Merging Models with Fisher-Weighted Averaging 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- When Model Merging Breaks Routing: Training-Free Calibration for MoE 引用了 TIES-Merging: Resolving Interference When Merging Models
- When Model Merging Breaks Routing: Training-Free Calibration for MoE 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- When Model Merging Breaks Routing: Training-Free Calibration for MoE 引用了 Linear Mode Connectivity and the Lottery Ticket Hypothesis
- When Model Merging Breaks Routing: Training-Free Calibration for MoE 引用了 Merging Models with Fisher-Weighted Averaging
- Scalable Model Merging with Progressive Layer-wise Distillation 引用了 TIES-Merging: Resolving Interference When Merging Models
- Scalable Model Merging with Progressive Layer-wise Distillation 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Scalable Model Merging with Progressive Layer-wise Distillation 引用了 Linear Mode Connectivity and the Lottery Ticket Hypothesis
- Scalable Model Merging with Progressive Layer-wise Distillation 引用了 Merging Models with Fisher-Weighted Averaging
- M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled Data 引用了 TIES-Merging: Resolving Interference When Merging Models
- M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled Data 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
引用它的顶会 Paper3
- When Model Merging Breaks Routing: Training-Free Calibration for MoECanbin Huang, Tianyuan Shi, Xiaojun Quan, Jingang Wang 等ICML 2026
- Scalable Model Merging with Progressive Layer-wise DistillationJing Xu, Jiazheng Li, Jingzhao ZhangICML 2025
- M-Loss: Quantifying Model Merging Compatibility with Limited Unlabeled DataTiantong Wang, Yiyang Duan, Haoyu Chen, Tiantong Wu 等AAAI 2026
它引用的 Paper28
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 次引用
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs 等ICML 2022 · 1,464 次引用
- TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel 等NeurIPS 2023 · 999 次引用
- Linear Mode Connectivity and the Lottery Ticket HypothesisJonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, Michael CarbinICML 2020 · 750 次引用
- Merging Models with Fisher-Weighted AveragingMichael Matena, Colin RaffelNeurIPS 2022 · 741 次引用
相关 Paper
- NeuronMerge: Merging Models via Functional Neuron GroupsWangyun Gu, Qianghua Gao, Li-Xin Zhang, Xu Shen 等ACL Findings 2025 · 2 次引用
- AdaMerging: Adaptive Model Merging for Multi-Task LearningEnneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu 等ICLR 2024 · 230 次引用
- Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task ArithmeticRuochen Jin, Bojian Hou, Jiancong Xiao, Weijie J. Su 等ICLR 2025
- Merging Multi-Task Models via Weight-Ensembling Mixture of ExpertsAnke Tang, Li Shen, Yong Luo, Nan Yin 等ICML 2024 · 96 次引用
- MetaGPT: Merging Large Language Models Using Model Exclusive Task ArithmeticYuyan Zhou, Liang Song, Bingning Wang, Weipeng ChenEMNLP 2024 · 6 次引用
