Model merging is the process of algorithmically combining the learned parameters of multiple neural networks to create a single, consolidated model. This is typically performed on models that share an identical base architecture but have been adapted to different tasks via methods like Low-Rank Adaptation (LoRA). The goal is to produce a unified model that exhibits a blend of the capabilities from all source models, such as proficiency in multiple languages or specialized domains, through techniques like linear weight interpolation or task vector arithmetic.
Glossary
Model Merging

What is Model Merging?
Model merging is a technique for creating a unified neural network by combining the parameters of multiple pre-trained or fine-tuned models, enabling multi-task capability without joint training.
Common merging strategies include simple averaging of weights from models fine-tuned on different datasets and more sophisticated souping methods that search for optimal interpolation coefficients. A key application is combining multiple LoRA adapters, each representing a small task-specific delta, with a frozen base model. This approach enables efficient multi-task inference from a single model checkpoint, significantly reducing deployment complexity and storage overhead compared to maintaining separate expert models.
Key Model Merging Techniques
Model merging combines the learned parameters from multiple neural networks into a single, unified model. These techniques enable the fusion of capabilities from different fine-tuned models, such as those adapted with LoRA, without additional joint training.
Task Arithmetic
Task arithmetic is a foundational model merging technique where the parameter deltas (ΔW) from models fine-tuned on different tasks are combined through linear operations. The core formula is: W_merged = W_base + Σ(α_i * ΔW_i), where α_i is a scaling coefficient for each task vector.
- Task Vectors: Represent the directional change in weight space learned during fine-tuning, calculated as ΔW = W_finetuned - W_base.
- Capability Fusion: Enables the creation of multi-task models by adding or interpolating these vectors, allowing for skill composition (e.g., merging a code model with a math model).
- Limitations: Performance can degrade if task vectors are not approximately orthogonal or if tasks conflict, a phenomenon known as interference.
Model Soups (Weight Averaging)
Model soups involve averaging the parameters of multiple models fine-tuned from the same pre-trained checkpoint, often with different hyperparameters or data orders. This technique smooths the loss landscape and improves generalization and robustness.
- Uniform Averaging: The simplest form, where the weights of N models are averaged directly: W_soup = (1/N) * Σ W_i.
- Greedy Soup Construction: Models are added to the soup sequentially only if they improve validation performance, preventing dilution from poorly performing checkpoints.
- Applications: Primarily used to ensemble multiple fine-tunes of a vision or language model, leading to more stable and accurate predictions without the computational cost of multi-model inference.
TIES-Merging
TIES-Merging (Trim, Elect Sign & Merge) is an advanced, three-step method designed to effectively merge multiple task-specific models by resolving sign conflicts between their parameter updates.
- Trim: Removes a percentage of the smallest magnitude changes (delta parameters) in each model, keeping only the most significant task-specific updates.
- Elect Sign: For each remaining parameter, a dominant update direction (sign) is elected across all models via majority voting.
- Merge: Parameters are averaged, but only those aligning with the elected sign are included, effectively resolving contradictory updates.
- Outcome: Produces a more coherent merged model with significantly higher performance than simple averaging, especially when merging many diverse tasks.
DARE (Drop And REscale)
DARE is a merging technique specifically designed for models fine-tuned with Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA. It operates on the delta weights (adapters) by randomly dropping a large portion of them to zero and then rescaling the remainder.
- Process: For each merged delta, a high percentage (e.g., 90%) of its values are randomly set to zero. The remaining values are rescaled (e.g., by 10x) to preserve the expected magnitude of the original update.
- Key Insight: PEFT deltas are often highly redundant and over-parameterized. DARE exploits this sparsity, enabling the painless merging of many adapters without catastrophic interference.
- Use Case: Enables the creation of a single model from dozens of LoRA adapters, each for a different skill or language, making it practical for building versatile, multi-capability models.
SLERP (Spherical Linear Interpolation)
SLERP is a interpolation technique used in model merging that navigates along the geodesic (shortest path) on a hypersphere in weight space, providing a more meaningful transition between two model checkpoints than linear interpolation (LERP).
- Geometric Principle: Treats model weights as vectors and interpolates the angle between them, preserving the norm and rotational dynamics. The formula is: **SLERP(p0, p1, t) = [sin((1-t)Ω)/sin(Ω)]p0 + [sin(tΩ)/sin(Ω)]p1, where Ω is the angle between weight vectors p0 and p1.
- Advantage over LERP: Prevents dilution of performance that can occur when LERP pulls weights through a lower-performance region of the loss landscape.
- Typical Application: Best suited for smoothly blending two models, such as a base model and a fine-tuned model, or two complementary fine-tunes, to find an optimal intermediate model.
How Does Model Merging Work?
Model merging is a post-training technique that combines the learned parameters from multiple neural networks to create a unified model with blended capabilities.
Model merging is the process of algorithmically combining the parameters of two or more pre-trained or fine-tuned neural networks into a single, consolidated model. This is typically achieved through linear operations like weighted averaging of corresponding weights or the addition of task vectors (parameter deltas). The goal is to produce a model that exhibits a composite of the source models' skills—such as proficiency in multiple languages or tasks—without the need for further joint training. Common methods include model soup creation and slerp interpolation.
The technique is highly synergistic with parameter-efficient fine-tuning (PEFT) methods like LoRA. Instead of merging entire massive models, practitioners merge only the small adapter weights (e.g., the low-rank matrices from LoRA), which is computationally trivial. This enables efficient creation of multi-task models or the refinement of a base model's behavior. Successful merging relies on model compatibility—networks must share an architecture and initialization—and careful weighting to balance performance and avoid interference, a challenge known as task interference.
Applications and Use Cases
Model merging enables the creation of unified, multi-capability models by combining specialized adaptations. This section explores its primary applications in production systems and research.
Improving Generalization & Robustness
Merging models trained on different data distributions or with different random seeds can improve out-of-domain generalization and reduce variance. This ensembling-like effect averages out idiosyncrasies from individual training runs, leading to a more robust final model. It's a practical method to achieve the benefits of an ensemble with the inference cost of a single model.
- Process: Simple weight averaging of multiple checkpoints from the same training run (SWA) or from different data slices.
- Outcome: A model less prone to overfitting and more stable across diverse inputs.
Continuous Model Improvement
In production systems, model merging enables continuous integration of new capabilities. As new LoRA adapters are trained on fresh data or for emerging tasks, they can be dynamically merged into a deployed base model. This supports a modular, CI/CD-like pipeline for AI, allowing incremental updates without full retraining cycles.
- Use Case: A customer service model can have a safety adapter, a new product knowledge adapter, and a tone adapter merged on-demand.
- Advantage: Enables agile, low-cost model iteration in enterprise environments.
Domain Specialization & Personalization
Merging allows for the efficient creation of highly specialized models. A base general-purpose LLM can be combined with domain-specific adapters (e.g., for legal, medical, or financial jargon) and user-personalized adapters. The final merged model exhibits both broad knowledge and deep, contextual expertise.
- Workflow: Train separate, small LoRA modules for domain knowledge and user preference.
- Result: A single, efficient model that provides personalized, domain-accurate responses.
Mitigating Catastrophic Forgetting
By keeping the base model frozen and merging modular adapters, model merging inherently helps avoid catastrophic forgetting. The core knowledge of the pre-trained model remains intact, while new skills are added via the merged parameters. This is crucial for lifelong learning systems where a model must accumulate skills over time without degrading previous performance.
- Mechanism: The base model's weights are a stable foundation; adapters are additive, non-destructive updates.
- Benefit: Preserves investment in large-scale pre-training while enabling safe adaptation.
Model Merging vs. Alternative Approaches
A technical comparison of methods for combining or leveraging multiple specialized models, highlighting trade-offs in parameter efficiency, inference cost, and task flexibility.
| Feature / Metric | Model Merging (e.g., Task Arithmetic) | Ensemble Methods | Multi-Task Learning | Modular Networks / Mixture of Experts (MoE) |
|---|---|---|---|---|
Core Mechanism | Averaging or linearly combining learned parameter deltas (e.g., LoRA weights) | Averaging predictions or outputs from multiple independent models | Training a single model with a shared backbone on multiple tasks simultaneously | Routing inputs through different, sparse sub-networks (experts) within a single model |
Parameter Efficiency | ||||
Inference Compute Cost | Same as base model post-merge | N x base model cost (for N models) | Same as base model | ~2-4x base model (active parameters per token) |
Memory Footprint (Deployment) | Single model size | N x model size | Single model size | Single (but larger) model size |
Task/Expert Specialization | High (merges distinct task vectors) | High (independent per-task models) | Medium (shared representation) | High (experts specialize) |
Mitigates Catastrophic Forgetting | ||||
Requires Joint/Coordinated Training | ||||
Primary Use Case | Blending capabilities from multiple fine-tunes (e.g., code + math) | Maximizing prediction accuracy/robustness for a single task | Learning several related tasks efficiently from the start | Scaling model capacity efficiently for diverse inputs |
Frequently Asked Questions
Model merging is a technique for combining multiple specialized neural networks into a single, unified model. This section answers common technical questions about its mechanisms, applications, and relationship to methods like LoRA.
Model merging is the process of algorithmically combining the learned parameters of two or more neural networks to create a single, consolidated model that exhibits a blend of their capabilities. It works by performing operations—most commonly weight averaging—on the models' parameter tensors. For models fine-tuned with parameter-efficient methods like LoRA, merging typically involves first integrating the trained adapter weights (the delta weights, ΔW) with the base model's frozen weights, then averaging these consolidated models. The core hypothesis is that models trained on related tasks reside in the same low-error basin in the parameter space, allowing their weights to be interpolated without catastrophic performance loss.
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
Model merging combines multiple neural networks into a unified model. These key concepts define the techniques, mechanics, and applications of this powerful paradigm.
Task Arithmetic
Task arithmetic is a model editing technique where the parameter deltas (e.g., LoRA adapters or task vectors) learned from fine-tuning on different tasks are linearly combined through addition or interpolation. This allows the creation of a single model that exhibits blended capabilities from multiple source tasks without additional joint training.
- Core Operation: Performs element-wise addition of weight deltas:
W_merged = W_base + Σ(ΔW_task_i). - Key Benefit: Enables multi-task capability from single-task adapters.
- Example: Adding a French translation adapter to a math reasoning adapter can yield a model proficient in both domains.
Model Souping
Model souping is a merging technique that creates a unified model by performing a weighted average of the parameters from multiple models fine-tuned from the same pre-trained checkpoint. Unlike task arithmetic, it typically averages the full model weights, not just the deltas.
- Process: Computes
W_soup = Σ(α_i * W_i), whereΣα_i = 1. - Primary Use: Improves generalization and robustness by smoothing the loss landscape.
- Variants: Includes uniform souping (simple average) and greedy souping, which iteratively adds models that improve validation performance.
Task Vector
A task vector is the mathematical difference between a fine-tuned model's weights and its original pre-trained weights (ΔW = W_finetuned - W_base). It encapsulates the learned adaptation for a specific task and serves as the fundamental unit for model merging via task arithmetic.
- Representation: Encodes the direction and magnitude of weight change needed for a task.
- Properties: Can be negated to 'unlearn' a capability or scaled to adjust task strength.
- Foundation: Enables modular and composable model building from discrete adaptations.
Sparse Merging
Sparse merging is an advanced technique that combines models by selectively blending only a strategic subset of parameters, rather than all weights. This is based on the insight that different tasks or capabilities often depend on distinct, sparse regions of a neural network.
- Mechanism: Uses metrics like weight magnitude or gradient signals to identify critical parameters for each task before merging.
- Advantage: Reduces interference between merged capabilities, mitigating negative transfer.
- Goal: Achieves higher multi-task performance than dense, full-parameter averaging.
Delta Merging
Delta merging is the process of combining multiple parameter-efficient fine-tuning (PEFT) modules—such as LoRA adapters—and integrating them with a base model for inference. This is the primary merging method used with PEFT techniques.
- Standard Workflow: 1. Train separate LoRA adapters on different tasks. 2. Merge each adapter's low-rank matrices (
B*A) with the base weights. 3. Combine the resulting full-weight models via averaging or task arithmetic. - Efficiency: Allows storage of only small adapter files; the full merged model is materialized only once for deployment.
- Tooling: Supported by libraries like PEFT and mergekit.
Mergekit
Mergekit is an open-source toolkit and library designed specifically for experimenting with and implementing various model merging algorithms. It provides a unified interface for techniques like task arithmetic, model souping, and sparse merging.
- Key Features: Supports merging models of different architectures (e.g., merging Llama and Mistral families), multiple merge methods, and output in standard formats like GGUF.
- Use Case: Essential for researchers and practitioners developing merged models or creating custom model blends.
- Access: Available on GitHub: https://github.com/arcee-ai/mergekit

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