atlas

Research map / Large language models / Instruction and fine-tuning

Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that transformer submodules (layers, attention, MLP) are far more linear than full models and proposes a training-free, closed-form submodule-wise task arithmetic merging method that outperforms standard task arithmetic on Llama-2 merges.

Problem

Task arithmetic merging of fine-tuned LLMs performs poorly when the full model lacks the linearity needed for weight-space combination; existing fixes require retraining with original data for linearization.

Approach

Linearity already exists within submodules (layers, attention, MLPs) even when the full model is nonlinear; so merge each submodule independently with closed-form optimal weights derived from feature-space least squares on about 30 samples per task, without retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use attention/MLP-level merging instead of Task ArithmeticLlama-2-13B · Math & Codingaverage score: 34.60 -> 35.11Helped
use attention/MLP-level merging instead of Task ArithmeticLlama-2-13B · Math & Translateaverage score: 64.72 -> 66.11Helped
use submodule merging instead of DARELlama-2-13B · Coding & Translateaverage score: 54.33 -> 52.51Hurt
use attention/MLP-level merging instead of Fine-tuned ModelLlama-2-13B · Math, Coding & Translateaverage score: 50.14 -> 51.05Helped
use attention/MLP-level merging instead of Task ArithmeticLlama-2-7B · Math & Translateaverage score: 54.65 -> 55.86Helped
use layer-level merging instead of Task ArithmeticLlama-2-7B · Coding & Translateaverage score: 51.11 -> 50.64Hurt
use attention/MLP-level merging instead of Task ArithmeticLlama-2-7B · Math, Coding & Translateaverage score: 39.59 -> 42.88Helped
use attention/MLP-level merging instead of Task ArithmeticQwen-2.5-7B · Math, Coding & Translateaverage score: 76.90 -> 77.51Helped
decompose at layer level rather than merging at model level (ablation)Llama-2-7B · Math & Translateaverage score: 13.38{ $\pm$0.57} -> 49.79{ $\pm$0.43}Helped
decompose at attention/MLP level rather than merging at model level (ablation)Llama-2-13B · Coding & Translateaverage score: 15.75{ $\pm$7.60} -> 52.51{ $\pm$0.26}Helped
divide attention modules into individual heads while retaining MLP merging (ablation)Llama-2-7B · Math & Codingaverage score: 27.33{ $\pm$0.10} -> 13.08{ $\pm$9.33}Hurt
divide attention modules into individual heads while retaining MLP merging (ablation)Llama-2-13B · Math, Coding & Translateaverage score: 51.05{ $\pm$0.16} -> 22.59{ $\pm$19.65}Hurt

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K Code Alpaca zh-en translation dataset Cosmos QA ROPES Winogrande

Benchmarks: GSM8K HumanEval zh-en translation evaluation Cosmos QA ROPES Winogrande

Metrics: accuracy average accuracy across merged tasks non-linearity score projection distance cosine similarity

Baselines: Weight Average Task Arithmetic DARE TIES Breadcrumbs Consensus TA Model-level closed-form merge

Builds on: Task Arithmetic Ortiz-Jimenez et al. linearity and task arithmetic (tangent-space / projection d DARE Weight averaging

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy