Layer-Aware Task Arithmetic: Disentangling Task-Specific and Instruction-Following Knowledge
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) demonstrate strong task-specific capabilities through fine-tuning, but merging multiple fine-tuned models often leads to degraded performance due to overlapping instruction-following components. Task Arithmetic (TA), which combines task vectors derived from fine-tuning, enables multi-task learning and task forgetting but struggles to isolate task-specific knowledge from general instruction-following behavior. To address this, we propose Layer-Aware Task Arithmetic (LATA), a novel approach that assigns layer-specific weights to task vectors based on their alignment with instruction-following or task-specific components. By amplifying task-relevant layers and attenuating instruction-following layers, LATA improves task learning and forgetting performance while preserving overall model utility. Experiments on multiple benchmarks, including WikiText-2, GSM8K, and HumanEval, demonstrate that LATA outperforms existing methods in both multi-task learning and selective task forgetting, achieving higher task accuracy and alignment with minimal degradation in output quality. Our findings highlight the importance of layer-wise analysis in disentangling task-specific and general-purpose knowledge, offering a robust framework for efficient model merging and editing.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 30 of its 49 references that are in the map. First posted on arXiv 27 Feb 2025.
Builds on
30 of 49 references.
References · 30
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2021Merging Models with Fisher-Weighted Averagingcited by 613
- 2019On the Cross-lingual Transferability of Monolingual Representationscited by 575
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
- 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 384
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
18 more
- 2023Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedbackcited by 189
- 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
- 2024MAmmoTH2: Scaling Instructions from the Webcited by 143
- 2024Task Singular Vectors: Reducing Task Interference in Model Mergingcited by 143
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 126
- 2024Twin-Merging: Dynamic Integration of Modular Expertise in Model Mergingcited by 114
- 2024Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmeticcited by 105
- 2024Representation Surgery for Multi-Task Model Mergingcited by 95
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipelinecited by 81
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editingcited by 77
- 2024MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmeticcited by 53
- 2023Chat Vector: A Simple Approach to Equip LLMs with Instruction Following and Model Alignment in New Languagescited by 52
- 2024Model Merging and Safety Alignment: One Bad Model Spoils the Bunchcited by 41
- 2024Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activationscited by 32
- 2024Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignmentcited by 31
- 2024Revisiting Weight Averaging for Model Mergingcited by 24
- 2024Beyond Task Vectors: Selective Task Arithmetic Based on Importance Metricscited by 11
- 2025Mediator: Memory-efficient LLM Merging with Less Parameter Conflicts and Uncertainty Based Routingcited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025OptMerge: Unifying Multimodal LLM Capabilities and Modalities via Model Mergingcited by 12
- 2026Orthogonal Model Mergingcited by 3
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmeticcited by 2
- 2026Reading the Gate, Not the Interference: Output-Side Interference Measurement Does Not Track Merge Collapsecited by 1
- 2026Preference Tuning as Spectral Update Reorganizationcited by 0
- 2026Reading the Gate, Not the Interference: Output-Side Interference Measurement Does Not Track Merge Collapse12 Aug 2026
- 2026Preference Tuning as Spectral Update Reorganization12 May 2026
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmetic13 Feb 2026
- 2026Orthogonal Model Merging5 Feb 2026
- 2025OptMerge: Unifying Multimodal LLM Capabilities and Modalities via Model Merging26 May 2025