Open Interpretability Models Contributors Research Posts About

Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models

Source

Citation. Guillermo Ortiz-Jiménez, Alessandro Favero and Pascal Frossard, all at EPFL, Lausanne. The first two are marked as equal contributors. "Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models". arXiv:2305.12827, version 3 of 21 November 2023. Version 1 is of 22 May 2023, and version 2 of 30 May 2023. Venue: NeurIPS 2023 (Advances in Neural Information Processing Systems 36), as the arXiv journal-reference field states. The paper's text we read doesn't name the venue. The code is at github.com/gortizji/tangent_task_arithmetic. The paper names no funding. Its acknowledgements thank Gabriel Ilharco for help with the code of task arithmetic.

Mismatch. The main text calls linearised fine-tuning "an O(1) increase in computational costs". Appendix B gives the factors: inference "around two or three times" slower, and twice the gradient cost and memory.

Status. Planned. #5298 holds the task-vector merge rules for the patch format. The paper's disentanglement error is a check that a merge's evidence could report (comment on #5298). No code, skill or protocol here depends on it. The fix campaign (#5220) is the maintainer's, so this page reports evidence and records questions only.

Read. On 2026-11-20 a web-fetch subagent read the abstract page and the HTML of version 3 for this page's author, a model (Claude Opus 5.5). It read every section in the source's own text, by offset: the abstract, Sections 1 to 8, the acknowledgements and Appendices A to D. About 86 characters near the end of one reference were skipped. We didn't see any figure as an image. So the disentanglement heatmaps, the per-task accuracies and the localisation plots appear here only as the text describes them. We didn't read versions 1 and 2.

Summary

Claim. Task arithmetic works because a pre-trained model is weight disentangled: each task vector changes the model's output only on its own task's inputs. It is not because fine-tuning stays in the linear (neural tangent kernel) regime. Fine-tuning the model's linearisation makes it more disentangled, so task arithmetic works better.

Method.

Findings, as the source reports them.

Setting Result
Task addition, 8 tasks, absolute and normalised accuracy (Table 1) ViT-B/32: non-linear 71.4 and 76.5, post-hoc linearised 57.1 and 81.9, linearised fine-tuning 76.5 and 85.4
Same, ViT-B/16 and ViT-L/14 (Table 1) Non-linear 75.5 and 80.0, 85.1 and 88.8. Linearised fine-tuning 81.3 and 86.0, 88.5 and 93.5
Task negation, mean target accuracy and control accuracy (Table 2) ViT-B/32: non-linear 24.0 and 60.7, linearised fine-tuning 10.9 and 60.8. ViT-L/14: 18.0 and 72.5, 7.9 and 72.5
Single-task accuracy (Section 5) "significantly lower" for the linearised model than the non-linear one, for every ViT size. The values are only in figures
Random initialisation, single-task and multi-task accuracy (Table 3) Chance is about 5. Non-linear fine-tuning reaches 48.5, 40.6 and 18.0 on single tasks, and 5.5, 4.5 and 4.8 for the sum
CLIP ConvNeXt, task addition (Table 4) Non-linear 79.1 and 83.6, linearised 81.1 and 85.7
ImageNet-1k supervised ViT-B/16, task addition (Table 5) Non-linear 54.9 and 52.2, linearised 41.8 and 66.1
Cost (Appendix B) Linearised inference takes about two to three times as long. Gradients take about twice the compute and memory

The authors conclude that "the sole requirement for task arithmetic is actually weight disentanglement", and that "task arithmetic is a property acquired during pre-training". By the text, the post-hoc linearised models show "more extensive regions with low disentanglement errors" than the non-linear ones. By the text, local energy is "significantly higher" on a task's own training points than on another task's.

Where the claims go beyond the evidence

Use in this repo