Task arithmetic is a model editing technique where the parameter deltas (e.g., from LoRA adapters) learned from fine-tuning a base model on separate tasks are linearly combined. This operation creates a single set of merged parameters that, when applied to the original model, enables it to perform multiple tasks simultaneously. The core principle is that these task-specific weight changes often occupy nearly orthogonal directions in parameter space, allowing for relatively clean additive combination without severe interference.
Glossary
Task Arithmetic

What is Task Arithmetic?
Task arithmetic is a model editing technique that linearly combines the parameter deltas from multiple fine-tuned models to create a single, multi-capable model without additional training.
The technique is foundational for creating multi-task models and is closely related to model merging. It provides a computationally cheap method for composing capabilities after initial parameter-efficient fine-tuning (PEFT). Key considerations include managing negative catastrophic forgetting and interference between tasks, which can be addressed through scaling and normalization of the task vectors. This approach enables efficient adaptation and capability stacking in large language models and other architectures.
Core Mechanisms of Task Arithmetic
Task arithmetic is a model editing technique where parameter deltas (e.g., from LoRA adapters) learned for distinct tasks are linearly combined to create a multi-task model without additional training.
Task Vectors
A task vector is the core mathematical object in task arithmetic. It is defined as the parameter difference between a model fine-tuned on a specific task and the original pre-trained base model: τ = θ_fine-tuned - θ_base. This vector τ encodes the directional change in weight space required for the model to perform the new task. In PEFT methods like LoRA, this vector is inherently low-rank and compact, making arithmetic operations computationally efficient.
Linear Combination of Deltas
The fundamental operation is the element-wise linear combination of multiple task vectors. For tasks A and B, a combined model can be created as: θ_combined = θ_base + ατ_A + βτ_B. The coefficients α and β control the influence of each task. This linearity often holds surprisingly well in the weight space of over-parameterized models, allowing for the composition of learned behaviors without retraining.
Negation and Task Forgetting
Task arithmetic supports the negation of a task vector to remove a learned capability. Applying θ_base - τ_A can effectively "unlearn" or de-emphasize task A, reverting the model closer to its base state or mitigating unwanted behaviors learned during fine-tuning. This is a form of targeted model editing and is foundational for task forgetting and bias mitigation.
Interpolation and Scaling
By scaling a task vector with a coefficient λ, practitioners can interpolate the strength of a task's influence. For example, θ_base + λτ_A where 0 < λ < 1 applies a weaker adaptation, potentially useful for balancing task performance or for progressive model merging. This allows fine-grained control over how much the base model's behavior is altered.
Orthogonality and Interference
The success of linear arithmetic depends on the degree of orthogonality between task vectors. When vectors for different tasks point in similar directions in weight space, they interfere minimally, enabling clean composition. Significant interference or conflict occurs when vectors are negatively correlated, leading to performance degradation on one or both tasks when combined. Analyzing vector similarity is key to predicting composability.
Application to LoRA Adapters
Task arithmetic is naturally suited to LoRA. Instead of combining full model weights, you combine the small low-rank adapter matrices (ΔW = BA). The merged model for inference is created by summing the base weights with the combined LoRA deltas: W' = W + Σ(λ_i * B_i A_i). This is extremely efficient, as the base model remains static and multiple lightweight adapters can be stored, combined, and applied on-the-fly.
How Task Arithmetic Works: A Step-by-Step Process
Task arithmetic is a model editing technique that linearly combines parameter deltas from different tasks to create a multi-task model without additional training.
Task arithmetic begins by fine-tuning a base pre-trained model on individual tasks using a parameter-efficient method like LoRA, which yields a set of small task vectors. Each vector represents the learned parameter change (ΔW) for its specific task. These vectors are stored as lightweight adapter weights, separate from the frozen base model, capturing the directional update needed for each capability.
To perform a new, composite task, the relevant task vectors are retrieved and combined via a linear combination, typically a weighted sum. This combined delta is then applied to the base model's weights. The operation's success relies on the linear mode connectivity observed in low-error basins of the loss landscape, where interpolating between task solutions yields functional multi-task models without catastrophic interference.
Primary Use Cases and Applications
Task arithmetic enables the creation of multi-capability models by mathematically combining the parameter changes learned from individual fine-tuning tasks. This section details its core operational applications.
Multi-Task Model Creation
The primary application of task arithmetic is to combine specialized adapters (e.g., LoRA modules) into a single model that performs multiple tasks without further training. This is achieved by linearly combining task vectors—the difference between a fine-tuned model's weights and the base model's weights. For example, adding a translation task vector to a summarization task vector can yield a model capable of both operations. This approach bypasses the need for costly multi-task joint training on a combined dataset.
Skill Composition & Editing
Task arithmetic allows for precise model editing by adding or subtracting specific capabilities. Developers can:
- Add a skill: Model_New = Base + Vector_TaskA
- Remove an unwanted behavior: Model_Clean = Model_FineTuned - Vector_Bias
- Interpolate between traits: Model_Blended = Base + αVector_Task1 + βVector_Task2 This enables the modular assembly of model behaviors, treating fine-tuned adaptations as lego blocks that can be attached or detached. It's foundational for creating customized AI agents with tailored skill sets.
Catastrophic Forgetting Mitigation
In continual learning scenarios, where a model is sequentially trained on new tasks, task arithmetic provides a mechanism to preserve prior knowledge. Instead of fine-tuning the base model directly on a new task (which overwrites weights), a separate adapter is trained. All previous task adapters remain intact. The model can then perform inference by dynamically switching or merging the relevant adapters. This maintains a library of task vectors, effectively eliminating catastrophic forgetting by design, as the base model parameters are never updated.
Efficient Model Personalization
Task arithmetic enables rapid personalization at scale. A single, large base model can serve multiple users or domains by storing only small, user-specific task vectors. For instance:
- A financial services firm can maintain a base legal document model and add client-specific jargon adapters.
- A healthcare provider can combine a base clinical language model with vectors for different specialties (radiology, cardiology). Deployment involves simply loading the base model and the relevant additive vectors, drastically reducing storage and serving costs compared to maintaining dozens of fully fine-tuned model copies.
Negative Task & Bias Unlearning
Beyond adding skills, task arithmetic can subtract undesirable attributes. By treating problematic model behaviors—such as generating toxic language or exhibiting demographic bias—as a "task," a negative task vector can be computed. Applying this vector via subtraction (Base - Vector_Bias) can reduce the unwanted behavior. This is a form of targeted unlearning that is more efficient and precise than retraining from scratch or applying broad post-hoc filters. It allows for surgical correction of model outputs.
Foundation for Model Merging
Task arithmetic is the mathematical precursor to advanced model merging techniques. Methods like Task Arithmetic, TIES-Merging, and DARE use linear combinations of task vectors as a core operation. These techniques go beyond simple addition by resolving sign conflicts and pruning redundant parameters across vectors. The result is a single, consolidated model that retains high performance across all source tasks. This makes task arithmetic a critical component in the scalable development of generalist models from collections of specialists.
Task Arithmetic vs. Related Techniques
A feature comparison of Task Arithmetic and other prominent techniques for combining or editing model capabilities without full retraining.
| Feature / Metric | Task Arithmetic | Model Merging (Weight Averaging) | Adapter Composition | Full Fine-Tuning |
|---|---|---|---|---|
Core Mechanism | Linear combination of task-specific parameter deltas (ΔW) | Averaging the weights of multiple fine-tuned models | Sequential or parallel activation of multiple adapter modules | Gradient-based update of all model parameters |
Parameter Efficiency | ||||
Preserves Base Model Knowledge | ||||
Risk of Catastrophic Forgetting | Very Low | Low | Low | High |
Inference Overhead | None (after merging) | None | Moderate (active adapters) | None |
Supports Multi-Task Inference | ||||
Training Compute Required | Low (per task) | High (per model) | Low (per task) | Very High (per task) |
Typical Use Case | Blending skills from multiple LoRA adapters | Creating a generalist from multiple specialist models | Dynamic task switching via different adapters | Maximizing performance on a single, specific task |
Frequently Asked Questions
Task arithmetic is a model editing technique that enables the linear combination of parameter deltas—such as those from LoRA adapters—to create a single model capable of performing multiple tasks without additional training.
Task arithmetic is a technique for model editing where the parameter deltas (e.g., the learned changes from LoRA adapters) for different tasks are linearly combined to create a single model capable of performing multiple tasks without additional training. It operates on the principle that fine-tuning a pre-trained model for a specific task results in a task vector—a direction in parameter space that encodes the new capability. By adding or interpolating these vectors, one can create a composite model. This method is highly efficient, as it reuses existing fine-tuned checkpoints and requires no further gradient updates, making it a powerful tool for multi-task adaptation and model composition.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Task arithmetic operates within the broader paradigm of parameter-efficient fine-tuning (PEFT). These related concepts define the mechanisms for learning, storing, and combining modular model adaptations.
Delta Weights (ΔW)
Delta weights (ΔW) represent the learned parameter change applied to a frozen pre-trained model. In PEFT, ΔW is constrained to be highly efficient—such as a low-rank matrix in LoRA—capturing the essential task-specific adaptation without modifying the original weights.
- Core Concept: The mathematical difference between the fine-tuned and base model weights: ΔW = W_finetuned - W_base.
- Storage: Stored separately, enabling modular reuse and combination.
- Foundation for Arithmetic: Task arithmetic linearly combines these ΔW from different tasks to create multi-task models.
Model Merging
Model merging is the process of combining parameters from multiple neural networks into a single unified model. It is a broader technique that encompasses task arithmetic.
- Methods: Includes weight averaging, task vector addition (task arithmetic), and more sophisticated linear mode connectivity approaches.
- Goal: To create a model that exhibits blended capabilities from its source models without additional multi-task training.
- Contrast with Task Arithmetic: General merging may involve full model weights, while task arithmetic specifically manipulates the efficient delta weights (ΔW) from PEFT runs.
Task Vectors
A task vector is the parameter delta (ΔW) obtained from fine-tuning a model on a specific task, conceptualized as a direction in weight space. Task arithmetic treats these vectors as composable units.
- Representation: τ = θ_task - θ_base, where θ are model parameters.
- Properties: Vectors can be added, subtracted, and scaled. For example, τ_multi = τ_taskA + τ_taskB.
- Interpretation: Moving the base model's weights along the task vector direction imbues it with that task's capability.
Multi-Task Fine-Tuning
Multi-task fine-tuning trains a single model on multiple objectives simultaneously using a combined dataset. This contrasts with task arithmetic, which combines already-trained single-task adapters.
- Traditional Approach: Requires a curated, balanced multi-task dataset and joint training, which is computationally expensive.
- Data Mixing Challenge: Performance can be sensitive to the dataset mixture ratios and task conflicts.
- Advantage of Arithmetic: Task arithmetic bypasses the need for simultaneous data access and training, composing existing efficient adapters post-hoc.
Modular Adaptation
Modular adaptation is a design paradigm where a model is extended with small, self-contained, and often interchangeable neural modules (like LoRA adapters) for each new task or skill.
- Core Idea: The base model acts as a shared, frozen backbone. Task-specific modules are plugged in and out dynamically.
- Infrastructure Enabler: Enables efficient storage, versioning, and deployment of many specialized model variants.
- Relation to Task Arithmetic: Provides the modular components (adapters/deltas) that are the operands for arithmetic operations, treating adaptation as a modular algebra.
Catastrophic Forgetting
Catastrophic forgetting is the tendency of a neural network to lose performance on previously learned tasks when trained on new data. Task arithmetic and PEFT are strategies to mitigate this.
- Cause in Full Fine-Tuning: Large, unconstrained updates to network weights overwrite representations critical for old tasks.
- PEFT Mitigation: By constraining updates to a small set of parameters (e.g., low-rank adapters), the core representations in the base model remain largely intact.
- Arithmetic's Role: Allows for the preservation of single-task adapters. A base model can be adapted to Task B without destroying the separately stored adapter for Task A.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us