Skip to main content

Understanding and Enforcing Weight Disentanglement in Task Arithmetic

AuthorsShangge Liu et al.
Year2026
HF Upvotes12
arXiv2604.17078
PDFDownload
HF PageView on Hugging Face

Abstract

Task arithmetic provides an efficient, training-free way to edit pre-trained models, yet lacks a fundamental theoretical explanation for its success. The existing concept of ``weight disentanglement" describes the ideal outcome of non-interfering task composition but does not reveal its underlying cause. Crucially, what intrinsic properties of the pre-trained model (θ_0) or the task vectors (τ_t) enable this disentanglement remains underexplored. In this paper, we introduce Task-Feature Specialization (TFS), a model's ability to allocate distinct internal features to different tasks, as the fundamental principle. We first prove that TFS is a sufficient condition for weight disentanglement. More importantly, we find that TFS also gives rise to an observable geometric consequence: weight vector orthogonality. This positions TFS as the common cause for both the desired functional outcome (disentanglement) and a measurable geometric property (orthogonality). This relationship provides the key insight for our method: since the abstract TFS property is intractable to enforce directly, we can instead promote weight disentanglement by shaping its concrete geometric consequence, orthogonality. Therefore, we propose OrthoReg, a simple and effective regularization method that actively enforces an internal orthogonal structure on weight updates (ΔW) that constitute τ_t during fine-tuning. And we theoretically prove that OrthoReg promotes disentanglement. Extensive experiments demonstrate that OrthoReg consistently and significantly enhances the performance of various task arithmetic methods. Code is available at https://github.com/RL-MIND/OrthoReg{https://github.com/RL-MIND/OrthoReg}.


Engineering Breakdown

Plain English

This paper explains why task arithmetic—a method for editing pre-trained models without retraining—works so well, despite lacking solid theoretical grounding. The authors introduce Task-Feature Specialization (TFS), which describes how models allocate distinct internal features to different tasks, and prove this is the fundamental mechanism enabling weight disentanglement (the ability to compose multiple task edits without interference). They discover that TFS has a geometric consequence in weight space that can be observed and measured empirically. The work bridges theory and practice by showing what properties of pre-trained models and task vectors make non-interfering composition possible.

Core Technical Contribution

The paper's core contribution is identifying Task-Feature Specialization (TFS) as the underlying principle that makes task arithmetic succeed, moving beyond the empirical observation that weight disentanglement happens. The authors prove that TFS is a sufficient condition for weight disentanglement—meaning if you have good feature specialization across tasks, you're guaranteed low interference when composing edits. They further discover that this specialization manifests as an observable geometric pattern in weight space, which can be checked and potentially enforced during model editing. This shifts the focus from 'does disentanglement work?' to 'what model and task properties make it work, and how do we measure them?'

How It Works

The paper operates in the framework of task arithmetic, where you compute task vectors (τ_t) by subtracting base model weights (θ_0) from task-specific fine-tuned weights. The key insight is that TFS—the tendency of models to learn different internal features for different tasks—allows these task vectors to operate on orthogonal or near-orthogonal dimensions in weight space, minimizing interference. The authors analyze the geometric structure of learned weights across multiple tasks and show that well-trained models naturally exhibit this specialization. They then measure this property through weight covariance patterns and demonstrate that models with higher TFS can successfully compose multiple task edits (e.g., θ_0 + α·τ_t1 + β·τ_t2) without accuracy degradation. The mechanism works because when tasks use different features, adding their vectors doesn't corrupt each other's learned patterns.

Production Impact

For engineers building multi-task or continual learning systems, this work validates and explains a practical approach for model editing that requires no retraining or gradient computation. You can apply multiple task adaptations to a single base model—say, adapting a language model for both medical summarization and legal document analysis—without expensive fine-tuning or accuracy loss, as long as those tasks exhibit good feature specialization. This reduces inference latency and memory requirements compared to maintaining separate models, and it enables rapid addition of new capabilities to deployed systems. The geometric characterization of TFS means you can diagnose whether a new task will compose well with existing tasks before expensive composition attempts. However, the approach assumes sufficient model capacity and diverse training—if your base model or tasks don't naturally specialize features, you may need to enforce this through architectural changes or training objectives, adding complexity.

Limitations and When Not to Use This

The paper does not address how to guarantee or enforce Task-Feature Specialization in models that lack it naturally, which limits applicability to smaller models or tasks with overlapping feature requirements. The theoretical analysis appears to assume linear or near-linear interference in weight space, which may not hold for highly non-linear model behaviors or extreme composition scenarios (many simultaneous task edits). The work focuses on relatively benign task composition scenarios and does not deeply explore failure modes when task vectors conflict strongly or when feature overlap is unavoidable. Additionally, the paper does not provide practical algorithms for selecting which tasks can be safely composed or for measuring TFS in real-time before deployment, leaving a gap between theory and practical tooling.

Research Context

This paper builds directly on prior work in task arithmetic and parameter-efficient fine-tuning (like LoRA), which showed empirically that training-free model editing and task composition work surprisingly well. It advances the theoretical understanding of why methods like adding task vectors succeed, addressing the explanatory gap in literature that previously only observed the phenomenon. The work connects to broader research on feature learning and disentanglement in neural networks, applying those ideas to the multi-task adaptation setting. It opens the door to future work on enforcing TFS as a training objective, designing models that maximize feature specialization across tasks, and developing diagnostic tools for predicting composability.


:::tip Subscribe Get weekly breakdowns of papers like this in AI Letters - the newsletter for engineers building production AI systems. :::


Back to Research Lab → · Subscribe to AI Letters →

© 2026 EngineersOfAI. All rights reserved.