Editing Models with Task Arithmetic

Changing how pre-trained models behave -- e.g., improving their performance on a downstream task or mitigating biases learned during pre-training -- is a common practice when developing machine learning systems. In this work, we propose a new paradigm for steering the behavior of neural networks, centered around \textit{task vectors}. A task vector specifies a direction in the weight space of a pre-trained model, such that movement in that direction improves performance on the task. We build task vectors by subtracting the weights of a pre-trained model from the weights of the same model after fine-tuning on a task. We show that these task vectors can be modified and combined together through arithmetic operations such as negation and addition, and the behavior of the resulting model is steered accordingly. Negating a task vector decreases performance on the target task, with little change in model behavior on control tasks. Moreover, adding task vectors together can improve performance on multiple tasks at once. Finally, when tasks are linked by an analogy relationship of the form ``A is to B as C is to D", combining task vectors from three of the tasks can improve performance on the fourth, even when no data from the fourth task is used for training. Overall, our experiments with several models, modalities and tasks show that task arithmetic is a simple, efficient and effective way of editing models.

PyTorch: An ImperativeStyle, High-Performance…PyTorch: An Imperative Style, High-Performance Deep Learning LibraryLanguage Models areFew-Shot LearnersLanguage Models are Few-Shot LearnersThe Power of Scale forParameter-Efficient…The Power of Scale for Parameter-Efficient Prompt TuningPatching open-vocabularymodels by interpolating…Patching open-vocabulary models by interpolating weightsModel soups: averagingweights of multiple…Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeThe Role of PermutationInvariance in Linear…The Role of Permutation Invariance in Linear Mode Connectivity of Neural NetworksBranch-Train-Merge:Embarrassingly Parallel…Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language ModelsFusing finetuned modelsfor better pretrainingFusing finetuned models for better pretrainingFlamingo: a VisualLanguage Model for…Flamingo: a Visual Language Model for Few-Shot LearningMultitask PromptedTraining Enables…Multitask Prompted Training Enables Zero-Shot Task GeneralizationColD Fusion:Collaborative Descent…ColD Fusion: Collaborative Descent for Distributed Multitask FinetuningGit Re-Basin: MergingModels modulo…Git Re-Basin: Merging Models modulo Permutation SymmetriesKnowledge is a Region inWeight Space for…Knowledge is a Region in Weight Space for Fine-tuned Language ModelsColD Fusion:Collaborative Descent…ColD Fusion: Collaborative Descent for Distributed Multitask FinetuningExploring the Benefitsof Training Expert…Exploring the Benefits of Training Expert Language Models over Instruction TuningRobust WeightSignatures: Gaining…Robust Weight Signatures: Gaining Robustness as Easy as Patching Weights?Editing Large LanguageModels: Problems…Editing Large Language Models: Problems, Methods, and OpportunitiesComposingParameter-Efficient…Composing Parameter-Efficient Modules with Arithmetic OperationsZipIt! Merging Modelsfrom Different Tasks…ZipIt! Merging Models from Different Tasks without TrainingTowards Safer LargeLanguage Models through…Towards Safer Large Language Models through Machine UnlearningTowards Modular LLMs byBuilding and Reusing a…Towards Modular LLMs by Building and Reusing a Library of LoRAsMachine Unlearning inGenerative AI: A SurveyMachine Unlearning in Generative AI: A SurveyDeep Model Fusion: ASurveyDeep Model Fusion: A SurveySoK: Machine Unlearningfor Large Language…SoK: Machine Unlearning for Large Language ModelsEditing Models with TaskArithmeticEditing Models with Task Arithmetic過去の参考文献中心の論文この論文を引用する論文古い新しい

ノードをクリックするとフォーカスを固定、空白をクリックすると本論文に戻ります。ホバーで一時的にプレビューできます。各ノードのページはタイトルから開けます。