Task arithmetic is a model merging technique where task-specific parameter changes (deltas) from multiple fine-tuned models are combined through linear operations—typically addition and subtraction—to create a unified model capable of performing multiple tasks without additional gradient-based training. The core operation calculates the task vector as the difference between a fine-tuned model's weights and its pre-trained base weights. These vectors, representing learned adaptations, are then summed to merge capabilities or subtracted to negate unwanted behaviors.
Glossary
Task Arithmetic

What is Task Arithmetic?
Task arithmetic is a parameter-space method for creating multi-task models by combining fine-tuned checkpoints.
This method operates on the hypothesis that fine-tuning induces directional updates in weight space that are often linearly composable. Practical applications include creating multi-task models by adding vectors, performing task negation to reduce bias, or applying scaling coefficients to balance task interference. It provides a computationally cheap alternative to multi-task training but requires careful calibration to manage conflicts between the merged objectives, as simple addition can lead to performance degradation on constituent tasks.
Key Characteristics of Task Arithmetic
Task arithmetic is a post-training method for creating multi-task models by performing linear operations on the parameter differences (deltas) of fine-tuned models. It enables capability fusion without additional gradient-based training.
Parameter Delta Calculation
The core operation is computing the task vector, defined as the difference between a model fine-tuned on a specific task and the original pre-trained base model: τ = θ_fine-tuned - θ_base. This vector represents the directional change in parameter space required for the model to perform the new task. The arithmetic is performed on these deltas, not the raw weights, isolating the learned adaptation.
Linear Combination of Vectors
Multi-task models are created via a weighted sum of task vectors. For tasks A and B, the merged model parameters are: θ_merged = θ_base + ατ_A + βτ_B. The coefficients α and β control the influence of each task. This linearity is surprisingly effective for combining diverse capabilities like translation and question answering, assuming tasks are not in direct conflict within the model's parameter space.
Avoidance of Catastrophic Interference
A key advantage over sequential fine-tuning is the mitigation of catastrophic forgetting. Since the base model's parameters remain a central anchor and task-specific changes are added independently, the merged model retains a strong connection to the original, general-purpose knowledge. This makes task arithmetic a form of multi-task learning performed after the individual single-task training phases are complete.
Computational Efficiency
The method is highly efficient post-training. The expensive step is the initial fine-tuning of individual models, which can be done in parallel. The merging itself is a simple, fast linear operation with no gradient computations, requiring minimal compute compared to training a multi-task model from scratch or using adapter composition. This makes it viable for rapid prototyping of model capabilities.
Task Negation and Scaling
Arithmetic operations extend beyond addition. Task negation (subtracting a task vector) can be used to reduce or remove a capability, which is useful for safety editing or unlearning. Scaling a task vector (multiplying by a factor >1 or <1) can amplify or dampen its influence. This provides a simple, interpretable knob for adjusting model behavior post-hoc.
Limitations and Orthogonality
Performance depends on the orthogonality of task vectors. When tasks conflict (their gradients point in opposing directions), simple addition leads to interference and performance degradation. The method assumes the linear mode connectivity of loss landscapes—that fine-tuned models lie in a basin where linear interpolation remains low-loss. It works best for tasks that are sufficiently distinct from the base model's knowledge and from each other.
Task Arithmetic vs. Other Model Combination Methods
A technical comparison of Task Arithmetic against other prevalent methods for merging or combining fine-tuned models.
| Feature / Metric | Task Arithmetic | Model Souping (Weight Averaging) | Mixture of Experts (MoE) | Multi-Task Fine-Tuning |
|---|---|---|---|---|
Core Mechanism | Linear combination of task-specific parameter deltas (Δθ) | Averaging of final trained weights from multiple models | Routing different inputs to specialized, sparse sub-networks (experts) | Single model trained jointly on a mixed dataset from multiple tasks |
Requires Retraining? | ||||
Parameter Efficiency | High (operates on deltas, preserves base model) | High (averages final parameters) | Low during training, high during inference (sparse activation) | Low (all parameters updated for all tasks) |
Computational Overhead | < 1 sec (simple arithmetic) | < 1 sec (simple averaging) | High (requires training routing mechanisms and experts) | High (full end-to-end training on combined data) |
Mitigates Catastrophic Forgetting? | ||||
Typical Use Case | Blending 2-10 specialized task adapters | Ensembling models from different training runs/seeds | Scaling model capacity efficiently for a large, diverse task set | Training a single generalist model from scratch on multiple objectives |
Output Blending Control | Precise, via scalar coefficients on each task delta | Implicit, via uniform or weighted averaging | Dynamic, per-token routing based on input | Implicit, learned from multi-task gradient signals |
Common Implementation | θ_merged = θ_base + Σ(α_i * Δθ_i) | θ_soup = Σ(w_i * θ_i) | Gating network selects top-k experts per token | Single loss = Σ(λ_i * L_task_i(θ)) |
Frequently Asked Questions
Task arithmetic is an advanced model merging technique that enables the creation of multi-task models through linear operations on fine-tuned parameters. This FAQ addresses common technical questions about its mechanisms, applications, and relationship to other fine-tuning methodologies.
Task arithmetic is a model merging technique where task-specific parameter changes (deltas) from multiple fine-tuned models are combined through linear operations to create a multi-task model without additional training.
It works by first fine-tuning a shared pre-trained base model on several distinct tasks, creating a set of task vectors. A task vector is calculated as the difference between a fine-tuned model's weights and the base model's weights: τ = θ_fine-tuned - θ_base. These vectors represent the directional changes needed for each task. The core arithmetic operation is a weighted sum: θ_merged = θ_base + Σ (α_i * τ_i), where α_i are scaling coefficients. This merges the capabilities encoded in each vector into a single set of parameters. The process relies on the observation that in over-parameterized models like transformers, task vectors often reside in approximately linearly independent subspaces, allowing for combination without catastrophic interference.
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 builds upon and interacts with several core techniques in model adaptation and merging. Understanding these related concepts is essential for implementing effective multi-task systems.
Model Merging
Model merging is the overarching technique of combining the parameters of multiple neural networks into a single unified model. Unlike task arithmetic, which specifically manipulates fine-tuning deltas, merging can involve various strategies:
- Linear Interpolation: Directly averaging the weights of two or more models.
- Task Vectors: Extracting the difference between a fine-tuned model and its base pre-trained model, which is the foundational concept for task arithmetic.
- Slerp (Spherical Linear Interpolation): Interpolating weights on a hypersphere, often producing smoother blends than linear interpolation. The goal is to consolidate capabilities—such as coding and reasoning—without the compute cost of multi-task training.
Task Vectors
A task vector is the mathematical representation of the changes a model undergoes during fine-tuning for a specific task. It is calculated as the element-wise difference between the fine-tuned model's parameters and the original pre-trained model's parameters: τ = θ_fine-tuned - θ_base.
- Core Component: Task vectors are the fundamental operands in task arithmetic; adding or subtracting them performs the 'arithmetic'.
- Directional Semantics: The vector's direction in parameter space encodes the learned task. Adding vectors combines tasks, while subtracting can negate or remove a behavior.
- Scaling: Task vectors can be scaled (e.g.,
α * τ) to control the strength of the task's influence in the merged model.
Parameter-Efficient Fine-Tuning (PEFT)
Parameter-Efficient Fine-Tuning (PEFT) methods, such as LoRA and Adapters, are highly compatible with task arithmetic. Instead of updating all model weights (θ), PEFT methods learn a small set of additive parameters (Δ).
- Efficient Vectors: The PEFT
Δparameters act as a natural, compact task vector, making arithmetic operations more memory-efficient. - Isolation: Since the base model remains frozen, PEFT deltas cleanly represent the task-specific knowledge without interference from other changes.
- Merging PEFT Modules: Techniques like Merging PEFT Adapters are a direct application of task arithmetic, where LoRA matrices from different tasks are summed before being reintegrated into the base model.
Catastrophic Forgetting
Catastrophic forgetting is the tendency of a neural network to abruptly lose previously learned information when trained on a new task. Task arithmetic offers a potential mitigation strategy.
- Problem: Traditional sequential fine-tuning on task B often degrades performance on task A.
- Arithmetic as a Solution: By treating tasks as independent vectors (
τ_A,τ_B), they can be combined (θ_base + τ_A + τ_B) without the destructive interference typical of sequential training. The base model's general knowledge is preserved, and tasks are combined post-hoc. - Limitation: Simple addition may not perfectly preserve both tasks if their parameter-space directions conflict, leading to a need for more advanced merging techniques.
Multi-Task Learning (MTL)
Multi-Task Learning (MTL) is the conventional approach of training a single model on multiple tasks simultaneously from scratch, sharing representations across tasks. Task arithmetic provides a post-training alternative.
- MTL Process: Requires a curated, balanced multi-task dataset and joint training, which is computationally expensive.
- Arithmetic Contrast: Task arithmetic creates a multi-task model after individual single-task models are fine-tuned. It bypasses the need for complex joint training data and dynamic loss balancing.
- Trade-off: MTL often leads to better shared representations through co-training, while arithmetic can be more flexible and modular but may not achieve the same level of synergistic optimization.
Model Souping
Model souping is a simple model merging technique where the weights of multiple models fine-tuned from the same base (often with different hyperparameters or data orders) are averaged.
- Relation to Arithmetic: Task arithmetic can be seen as a generalized, more principled form of souping. While souping averages entire parameter sets (
θ_soup = mean(θ_1, θ_2, ...)), task arithmetic averages the deltas (θ_merged = θ_base + mean(τ_1, τ_2, ...)). - Use Case: Souping is primarily used for ensembling to improve robustness and generalization on a single task. Task arithmetic is explicitly designed for combining different tasks.
- Performance: Research indicates that averaging fine-tuned checkpoints (souping) often outperforms the best individual checkpoint, providing a strong baseline for merging techniques.

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