atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear Transformers

ICLR 2025 · Architectures and efficiency › Pruning and efficient tuning · approach: Parameter-efficient transfer analysis · 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.

Provides the first generalization analysis of task arithmetic (addition, negation, out-of-domain generalization, low-rank/sparse task vectors) for a one-layer nonlinear Transformer trained by SGD, validated on Colored-MNIST and unlearning with Phi-1.5.

Problem

Task arithmetic (adding/negating task vectors) works empirically for model editing, but its theoretical basis for nonlinear Transformers is unexplained; the paper asks when and why multi-task learning, unlearning, and out-of-domain generalization via task vectors succeed.

Approach

Analyzes SGD feature learning in a one-layer single-head Transformer on binary majority-vote tasks defined by discriminative patterns, deriving conditions on arithmetic coefficients λ as a function of inter-task correlation α (aligned, irrelevant, contradictory) and out-of-domain correlations γ_i, plus justification for low-rank and magnitude-pruned task vectors.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
task addition (positive lambda on second task vector)irrelevant and aligned tasks · Colored-MNIST multi-tasktest accuracyHelped
task negation (negative lambda on second task vector)irrelevant tasks · Colored-MNIST unlearningT2 accuracy drop while T1 retainedHelped
task negationcontradictory tasks · Colored-MNIST unlearningT2 accuracyHelped
task addition for contradictory taskscontradictory tasks · Colored-MNIST multi-tasktest accuracyHurt
searched arithmetic coefficients on two irrelevant-ish task vectors for out-of-domain targetout-of-domain target task · Colored-MNISTtarget task accuracy: 91.74 vs 88.10 (best single vector) and 45.06Helped
negative lambda (unlearning HP1) on full-rank task vectorPhi-1.5 HP1 unlearning · Rouge-L on HP1, HP2, PPRouge-L: HP1 down 37.23%, HP2 down 34.71%, PP down 15.13% at lambda=-1Helped
low-rank (rank 32) task vector instead of full-rankPhi-1.5 HP1 unlearning · Rouge-L on HP1, HP2, PP at lambda=-1Rouge-L: HP1 down 35.53% vs 37.23% full-rank; HP2 down 24.11% vs 34.71%; PP down 13.83% vs 15.13%No clear effect
larger model (Phi-3-small 7B) with LoRA rank-32 task vectorHP1 unlearning · Rouge-L on HP2 at lambda=-1Rouge-L decrease on aligned task HP2: HP2 decrease 52.29% vs 24.11% for Phi-1.5 low-rank; HP2 unlearning stronger with 7BHelped

Surprising findings

Limitations

Experimental setup

Datasets: Colored-MNIST Harry Potter 1 Harry Potter 2 Pride and Prejudice

Benchmarks: Colored-MNIST parity tasks Harry Potter 1/2 and Pride and Prejudice unlearning (Rouge-L)

Metrics: test accuracy Rouge-L generalization error

Baselines: fine-tuned task vectors Psi*_T1 and Psi*_T2 joint fine-tuning TIES DARE

Builds on: task arithmetic feature learning framework for Transformers neural tangent kernel LoRA

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