When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear Transformers
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Task arithmetic refers to editing the pre-trained model by adding a weighted sum of task vectors, each of which is the weight update from the pre-trained model to fine-tuned models for certain tasks. This approach recently gained attention as a computationally efficient inference method for model editing, e.g., multi-task learning, forgetting, and out-of-domain generalization capabilities. However, the theoretical understanding of why task vectors can execute various conceptual operations remains limited, due to the highly non-convexity of training Transformer-based models. To the best of our knowledge, this paper provides the first theoretical characterization of the generalization guarantees of task vector methods on nonlinear Transformers. We consider a conceptual learning setting, where each task is a binary classification problem based on a discriminative pattern. We theoretically prove the effectiveness of task addition in simultaneously learning a set of irrelevant or aligned tasks, as well as the success of task negation in unlearning one task from irrelevant or contradictory tasks. Moreover, we prove the proper selection of linear coefficients for task arithmetic to achieve guaranteed generalization to out-of-domain tasks. All of our theoretical results hold for both dense-weight parameters and their low-rank approximations. Although established in a conceptual setting, our theoretical findings were validated on a practical machine unlearning task using the large language model Phi-1.5 (1.3B).
Key facts. Cited by 38 papers in the map (data through 14 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 70 of its 79 references that are in the map. First posted on arXiv 15 Apr 2025.
Builds on
70 of 79 references.
Closest ancestors · 3
Same direction, newest first
- 2024Rewind-to-Delete: Certified Machine Unlearning for Nonconvex Functions15 Sep
- 2024MUSE: Machine Unlearning Six-Way Evaluation for Language Models8 Jul
- 2024TOFU: A Task of Fictitious Unlearning for LLMs11 Jan
Other references · 67
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2019Invariant Risk Minimizationcited by 1,854
- 2022Visual Prompt Tuningcited by 1,681
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
38 more
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 818
- 2021Robust fine-tuning of zero-shot modelscited by 797
- 2022Transformers learn in-context by gradient descentcited by 732
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 694
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2019Linear Mode Connectivity and the Lottery Ticket Hypothesiscited by 637
- 2021Merging Models with Fisher-Weighted Averagingcited by 621
- 2023Textbooks Are All You Needcited by 569
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2019Certified Data Removal from Machine Learning Modelscited by 535
- 2019Making AI Forget You: Data Deletion in Machine Learningcited by 465
- 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 387
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023In-Context Learning Creates Task Vectorscited by 312
- 2020Descent-to-Delete: Gradient-Based Methods for Machine Unlearningcited by 311
- 2023Function Vectors in Large Language Modelscited by 308
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Modelscited by 221
- 2022Patching open-vocabulary models by interpolating weightscited by 190
- 2022Neural Networks can Learn Representations with Gradient Descentcited by 161
- 2022Diverse Weight Averaging for Out-of-Distribution Generalizationcited by 148
- 2023SGD learning on neural networks: leap complexity and saddle-to-saddle dynamicscited by 143
- 2022The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networkscited by 142
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2023In-Context Convergence of Transformerscited by 115
- 2022Model Ratatouille: Recycling Diverse Models for Out-of-Distribution Generalizationcited by 97
- 2022Vision Transformers provably learn spatial structurecited by 93
- 2022Benign Overfitting in Two-layer Convolutional Neural Networkscited by 91
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023Transformers learn through gradual rank increasecited by 52
- 2023On the Role of Attention in Prompt-tuningcited by 50
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2025: 19; 2026: 19.
38 papers.
Sort:
By area:
- 2025FlyLoRA: Boosting Task Decoupling and Parameter Efficiency via Implicit Rank-Wise Mixture-of-Expertscited by 35
- 2025MergeBench: A Benchmark for Merging Domain-Specialized LLMscited by 33
- 2025SoK: Machine Unlearning for Large Language Modelscited by 11
- 2025UltraEdit: Training-, Subject-, and Memory-Free Lifelong Editing in Language Modelscited by 9
- 2025ICM-Fusion: In-Context Meta-Optimized LoRA Fusion for Multi-Task Adaptationcited by 9
- 2026Stable and Explainable Personality Trait Evaluation in Large Language Models with Internal Activationscited by 8
- 2025Merge to Mix: Mixing Datasets via Model Mergingcited by 7
- 2025Adaptive Helpfulness-Harmlessness Alignment with Preference Vectorscited by 6
- 2025Adaptive Task Vectors for Large Language Modelscited by 5
- 2025CoT Vectors: Transferring and Probing the Reasoning Mechanisms of LLMscited by 4
- 2025On Fairness of Task Arithmetic: The Role of Task Vectorscited by 3
- 2025Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Datacited by 3
26 more
- 2026Understanding and Enforcing Weight Disentanglement in Task Arithmeticcited by 3
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?cited by 2
- 2025Model Merging via Multi-Teacher Knowledge Distillationcited by 2
- 2026Inference-time Unlearning Using Conformal Predictioncited by 2
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmeticcited by 2
- 2025Cross-Model Transfer of Task Vectors via Few-Shot Orthogonal Alignmentcited by 1
- 2025Pseudo2Real: Task Arithmetic for Pseudo-Label Correction in Automatic Speech Recognitioncited by 1
- 2025Weight Weaving: Parameter Pooling for Data-Free Model Mergingcited by 1
- 2026Attesting Model Lineage by Consisted Knowledge Evolution with Fine-Tuning Trajectorycited by 1
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026A Theoretical Framework for LLM Fine-tuning Using Early Stopping for Non-random Initializationcited by 1
- 2026Visual prompting reimagined: The power of the Activation Promptscited by 1
- 2026Decouple before Integration: Test-time Synthesis of SFT and RLVR Task Vectorscited by 1
- 2026On the Blessing of Pre-training in Weak-to-Strong Generalizationcited by 1
- 2026Suppression Sticks, Locality Is Fragile: A Closed-Loop Target-and-Control Audit of Task-Vector Negation in VLA Policiescited by 1
- 2025Efficient Multi-Source Knowledge Transfer by Model Mergingcited by 0
- 2025Variational Task Vector Compositioncited by 0
- 2025Subtract the Corruption: Training-Data-Free Corrective Machine Unlearning using Task Arithmeticcited by 0
- 2026Task Arithmetic with Support Languages for Low-Resource ASRcited by 0
- 2026Beyond Fixed Rounds: Data-Free Early Stopping for Practical Federated Learningcited by 0
- 2026Robust Heterogeneous Analog-Digital Computing for Mixture-of-Experts Models with Theoretical Generalization Guaranteescited by 0
- 2026LCA: Local Classifier Alignment for Continual Learningcited by 0
- 2026Transformers Learn the Optimal DDPM Denoiser for Multi-Token GMMscited by 0
- 2026Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learningcited by 0
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Mergingcited by 0
- 2026Can Linguistic Reasoning Vectors Enhance Multimodal Reasoning Ability?cited by 0
- 2026Can Linguistic Reasoning Vectors Enhance Multimodal Reasoning Ability?25 Sep 2026
- 2026Suppression Sticks, Locality Is Fragile: A Closed-Loop Target-and-Control Audit of Task-Vector Negation in VLA Policies5 Aug 2026
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Merging3 Jul 2026
- 2026Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learning20 May 2026
- 2026On the Blessing of Pre-training in Weak-to-Strong Generalization7 May 2026
- 2026Decouple before Integration: Test-time Synthesis of SFT and RLVR Task Vectors1 May 2026
- 2026Understanding and Enforcing Weight Disentanglement in Task Arithmetic18 Apr 2026
- 2026Transformers Learn the Optimal DDPM Denoiser for Multi-Token GMMs11 Apr 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2026LCA: Local Classifier Alignment for Continual Learning10 Mar 2026
- 2026Robust Heterogeneous Analog-Digital Computing for Mixture-of-Experts Models with Theoretical Generalization Guarantees3 Mar 2026
- 2026A Theoretical Framework for LLM Fine-tuning Using Early Stopping for Non-random Initialization15 Feb 2026
26 more
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmetic13 Feb 2026
- 2026Inference-time Unlearning Using Conformal Prediction3 Feb 2026
- 2026Beyond Fixed Rounds: Data-Free Early Stopping for Practical Federated Learning30 Jan 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2026Attesting Model Lineage by Consisted Knowledge Evolution with Fine-Tuning Trajectory16 Jan 2026
- 2026Stable and Explainable Personality Trait Evaluation in Large Language Models with Internal Activations14 Jan 2026
- 2026Task Arithmetic with Support Languages for Low-Resource ASR11 Jan 2026
- 2025Model Merging via Multi-Teacher Knowledge Distillation24 Dec 2025
- 2025Subtract the Corruption: Training-Data-Free Corrective Machine Unlearning using Task Arithmetic24 Nov 2025
- 2025Weight Weaving: Parameter Pooling for Data-Free Model Merging15 Oct 2025
- 2025FlyLoRA: Boosting Task Decoupling and Parameter Efficiency via Implicit Rank-Wise Mixture-of-Experts9 Oct 2025
- 2025Pseudo2Real: Task Arithmetic for Pseudo-Label Correction in Automatic Speech Recognition9 Oct 2025
- 2025CoT Vectors: Transferring and Probing the Reasoning Mechanisms of LLMs1 Oct 2025
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?1 Oct 2025
- 2025Variational Task Vector Composition21 Sep 2025
- 2025Efficient Multi-Source Knowledge Transfer by Model Merging26 Aug 2025
- 2025ICM-Fusion: In-Context Meta-Optimized LoRA Fusion for Multi-Task Adaptation6 Aug 2025
- 2025SoK: Machine Unlearning for Large Language Models10 Jun 2025
- 2025Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Data10 Jun 2025
- 2025Adaptive Task Vectors for Large Language Models3 Jun 2025
- 2025On Fairness of Task Arithmetic: The Role of Task Vectors30 May 2025
- 2025Merge to Mix: Mixing Datasets via Model Merging21 May 2025
- 2025UltraEdit: Training-, Subject-, and Memory-Free Lifelong Editing in Language Models20 May 2025
- 2025Cross-Model Transfer of Task Vectors via Few-Shot Orthogonal Alignment17 May 2025
- 2025MergeBench: A Benchmark for Merging Domain-Specialized LLMs16 May 2025
- 2025Adaptive Helpfulness-Harmlessness Alignment with Preference Vectors27 Apr 2025
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025Model Merging via Multi-Teacher Knowledge Distillationcited by 2
- 2025Model Merging via Multi-Teacher Knowledge Distillation24 Dec 2025
- 2025MergeBench: A Benchmark for Merging Domain-Specialized LLMscited by 33
- 2025UltraEdit: Training-, Subject-, and Memory-Free Lifelong Editing in Language Modelscited by 9
- 2025ICM-Fusion: In-Context Meta-Optimized LoRA Fusion for Multi-Task Adaptationcited by 9
- 2026Stable and Explainable Personality Trait Evaluation in Large Language Models with Internal Activationscited by 8
- 2025Merge to Mix: Mixing Datasets via Model Mergingcited by 7
- 2025Adaptive Task Vectors for Large Language Modelscited by 5
- 2025On Fairness of Task Arithmetic: The Role of Task Vectorscited by 3
- 2025Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Datacited by 3
- 2026Understanding and Enforcing Weight Disentanglement in Task Arithmeticcited by 3
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmeticcited by 2
- 2025Cross-Model Transfer of Task Vectors via Few-Shot Orthogonal Alignmentcited by 1
- 2025Pseudo2Real: Task Arithmetic for Pseudo-Label Correction in Automatic Speech Recognitioncited by 1
12 most cited of 25 All 25 (JSON)
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Merging3 Jul 2026
- 2026Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learning20 May 2026
- 2026On the Blessing of Pre-training in Weak-to-Strong Generalization7 May 2026
- 2026Decouple before Integration: Test-time Synthesis of SFT and RLVR Task Vectors1 May 2026
- 2026Understanding and Enforcing Weight Disentanglement in Task Arithmetic18 Apr 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2026LCA: Local Classifier Alignment for Continual Learning10 Mar 2026
- 2026A Theoretical Framework for LLM Fine-tuning Using Early Stopping for Non-random Initialization15 Feb 2026
- 2026Bus-Conditioned Zero-Shot Trajectory Generation via Task Arithmetic13 Feb 2026
- 2026Beyond Fixed Rounds: Data-Free Early Stopping for Practical Federated Learning30 Jan 2026
- 2026Attesting Model Lineage by Consisted Knowledge Evolution with Fine-Tuning Trajectory16 Jan 2026
- 2026Stable and Explainable Personality Trait Evaluation in Large Language Models with Internal Activations14 Jan 2026
12 newest of 25 All 25 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Decomposing Task Vectors for Refined Model Editing
- 2026Distilling Linearized Behavior into Non-Linear Fine-Tuning for Effective Task Arithmetic
- 2026Training-Free Task Vectors for LLM Behavioral Control
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?
- 2026Interpretability-Guided Layer Selection over Subspace Projection: SAEs as Stethoscopes, Not Scalpels, for Raw Task Vector Model Editing
- 2025Transmuting prompts into weights
- 2022Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization