AdapterFusion is a parameter-efficient fine-tuning (PEFT) method that learns to compositionally combine multiple pre-trained, task-specific adapter modules for a new target task. In its first stage, independent adapters are trained on diverse source tasks while the base model remains frozen. The second stage freezes both the base model and these adapters, training only a new composition layer that learns to weight and fuse their outputs.
Glossary
AdapterFusion

What is AdapterFusion?
A two-stage method for multi-task learning that combines knowledge from multiple pre-trained adapters without catastrophic forgetting.
This architecture enables knowledge transfer from multiple source domains while preventing catastrophic forgetting of the original adapter skills. By learning dynamic, input-dependent combinations, AdapterFusion outperforms single adapters or simple averaging (e.g., AdapterSoup), providing a flexible, modular framework for building multi-task systems from a library of reusable adapter components.
Key Features of AdapterFusion
AdapterFusion is a parameter-efficient fine-tuning method that combines the knowledge of multiple pre-trained adapters for a new target task. It operates in two distinct stages to prevent catastrophic interference and enable efficient knowledge transfer.
Decoupled Two-Stage Training
AdapterFusion's core innovation is its strict separation of learning phases. In Stage 1 (Knowledge Extraction), multiple independent task-specific adapters are trained on separate source tasks, with the frozen backbone model providing shared representations. In Stage 2 (Knowledge Composition), a new composition layer is trained on the target task. This layer learns to combine the frozen adapters' outputs, preventing catastrophic forgetting of the source tasks and enabling stable multi-source transfer.
The Composition Layer
The second-stage composition layer is a small, trainable neural network that learns to weight and combine the outputs from the frozen, pre-trained adapters. It typically consists of attention mechanisms or simple feed-forward networks that compute a context-dependent combination. For example, it might learn to heavily weight a sentiment analysis adapter and a fact-checking adapter when performing a new task like detecting deceptive reviews, while ignoring a translation adapter. This dynamic routing is the key to cross-task generalization.
Parameter Efficiency & Scalability
AdapterFusion achieves high efficiency by building on the parameter-efficient nature of adapters. Only the tiny composition layer parameters are trained in the second stage, while the base model and all source adapters remain frozen. This allows the system to scale to incorporate knowledge from dozens of source tasks by simply adding more pre-trained adapter modules, with only a linear increase in the composition layer's size. It avoids the quadratic cost growth of multi-task learning that updates all shared parameters.
Knowledge Transfer Without Forgetting
A primary advantage over sequential fine-tuning is the prevention of catastrophic forgetting. Because source adapters are frozen after Stage 1, their specialized knowledge is preserved perfectly. The composition layer learns to leverage this static knowledge rather than overwrite it. This makes AdapterFusion ideal for continual learning settings and for building a reusable library of modular skills (adapters) that can be mixed for new objectives without retraining.
Relation to Other PEFT Methods
AdapterFusion is a compositional extension of standard adapter-based fine-tuning. It differs from:
- AdapterSoup: Which performs untrained averaging of adapter weights, whereas AdapterFusion learns an optimal combination.
- Multi-Task Learning: Which jointly trains all tasks, risking negative transfer; AdapterFusion isolates task knowledge first.
- Hypernetworks: Which generate adapter weights dynamically; AdapterFusion uses pre-trained, fixed adapters and a separate combiner. It represents a shift from training single adapters to managing libraries of them.
Practical Applications & Workflow
A typical AdapterFusion workflow involves:
- Curating a Source Task Suite: Selecting diverse but relevant tasks (e.g., NLI, sentiment, QA) and training a high-quality adapter for each on the frozen base model.
- Target Task Definition: Defining the new downstream task with its labeled dataset.
- Fusion Training: Initializing the composition layer and training it on the target task data, using the frozen base model and frozen source adapters as feature extractors. This is particularly powerful in enterprise settings where multiple existing specialized models (encoded as adapters) need to be leveraged for a new business application.
AdapterFusion vs. Other Multi-Task PEFT Methods
A feature comparison of AdapterFusion against other parameter-efficient fine-tuning (PEFT) strategies designed for multi-task learning and continual adaptation.
| Feature / Mechanism | AdapterFusion | AdapterSoup / Averaging | Multi-Task LoRA | Hypernetwork PEFT |
|---|---|---|---|---|
Core Adaptation Principle | Two-stage: train independent adapters, then learn a composition layer | Single-stage: average pre-trained adapter parameters at inference | Single-stage: train shared low-rank matrices across multiple tasks | Single-stage: use a secondary network to generate task-specific parameters |
Knowledge Composition | Learned, parametric fusion (e.g., attention-based) | Non-parametric, static averaging | Implicit via shared low-rank projections | Explicit via hypernetwork conditioning |
Mitigates Catastrophic Forgetting | ||||
Supports Cross-Task Transfer | ||||
Inference Overhead vs. Base Model | ~10-15% (adds fusion layer) | < 5% (parameter averaging only) | ~5-10% (adds low-rank matrices) | ~15-25% (requires hypernetwork forward pass) |
Number of Trainable Parameters per New Task | Very Low (fusion layer only) | None (inference-only method) | Low (shared + task-specific ranks) | Low (hypernetwork + task embedding) |
Training Stage Required for New Task | Second-stage fusion training only | None | Full low-rank update training | Hypernetwork + embedding training |
Typical Use Case | Sequential task learning with knowledge reuse | Rapid multi-task inference ensemble | Joint multi-task training with parameter sharing | Dynamic, conditional task generation |
Example Use Cases for AdapterFusion
AdapterFusion's two-stage design—training independent adapters, then learning to combine them—enables several advanced, efficient adaptation strategies. These use cases demonstrate its utility in multi-task, continual, and resource-constrained learning scenarios.
Multi-Task Learning with Knowledge Composition
AdapterFusion is a core method for multi-task learning where a single model must perform well across several distinct tasks. In the first stage, separate task-specific adapters are trained independently on datasets for sentiment analysis, named entity recognition, and natural language inference. The second-stage composition layer then learns to dynamically combine the outputs of these specialized adapters for a new, related task (e.g., emotion detection) without catastrophic forgetting. This allows the model to leverage complementary knowledge from multiple domains efficiently.
Continual and Lifelong Learning
This method is highly effective for continual learning scenarios where a model must adapt to a stream of new tasks over time. As each new task arrives, a new adapter is trained while all previous adapters remain frozen, preventing catastrophic forgetting. The AdapterFusion layer is then retrained to incorporate the new adapter's knowledge into the existing combination. This creates a scalable, modular knowledge base where the model's capability grows incrementally without retraining the entire system or degrading performance on past tasks.
Cross-Lingual Transfer and Adaptation
AdapterFusion facilitates efficient cross-lingual transfer. In stage one, language-specific adapters are trained on monolingual tasks (e.g., English NER, Spanish sentiment). The fusion layer then learns to compose these linguistic features for a low-resource target language task, effectively transferring knowledge. This is more parameter-efficient than full model fine-tuning for each language pair and allows the base model's multilingual knowledge to be selectively harnessed based on the input language.
Efficient Model Personalization
The technique enables rapid model personalization for different users, domains, or datasets. For instance, in a customer service chatbot, separate adapters can be trained on technical support, billing, and general FAQ data. A user-specific or session-specific AdapterFusion layer can then weight these adapters to tailor responses. This allows a single deployed model instance to serve highly specialized use cases by loading different combinations of lightweight adapter and fusion weights, avoiding the need for multiple full model copies.
Resource-Constrained Research and Development
AdapterFusion is a practical tool for research and prototyping under compute constraints. Researchers can pre-train a library of adapters on public benchmarks (GLUE, SuperGLUE) once. For a new experiment, they only need to train the small fusion layer, which is orders of magnitude faster and cheaper than fine-tuning the entire model. This enables rapid iteration and A/B testing of different knowledge combinations (e.g., [Logic Adapter + NLI Adapter]) to solve novel problems without significant GPU time.
Mitigating Negative Interference in Multi-Task Training
Traditional multi-task training often suffers from negative transfer, where learning one task degrades performance on another. AdapterFusion's decoupled design mitigates this. By isolating task learning to independent adapters, interference is minimized. The fusion layer's role is purely compositional, learning which adapters to activate or suppress for a given input. This results in more stable training and often higher final performance compared to joint training of all parameters, as the fusion process explicitly models task relationships.
Frequently Asked Questions
AdapterFusion is a two-stage parameter-efficient fine-tuning (PEFT) method that enables knowledge composition from multiple pre-trained adapters for new tasks. These questions address its core mechanisms, advantages, and practical applications.
AdapterFusion is a two-stage, parameter-efficient fine-tuning method that first trains multiple independent task-specific adapters and then learns a composition layer to dynamically combine them for a new target task. In the first stage, standard adapter modules are trained on separate source tasks with the frozen backbone model. In the second fusion stage, these pre-trained adapters are kept frozen, and a new attention-based composition layer is trained on the target task data. This layer learns to compute a weighted combination (a context-dependent gating mechanism) of the outputs from all the source adapters, effectively fusing their knowledge without catastrophic forgetting of the original adapter skills.
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
These terms define the core concepts and methods within the modular adaptation paradigm, where small, specialized components are learned and combined to efficiently adapt a base model.
Adapter
A small, trainable neural network module inserted into a frozen pre-trained model. Typically structured as a bottleneck feed-forward network (down-projection, non-linearity, up-projection), it adapts the model to a new task by processing the hidden states. Adapters are the fundamental building blocks that AdapterFusion combines.
- Key Property: Parameter-efficient; only the adapter's weights are updated.
- Placement: Usually inserted after the feed-forward layer within a transformer block.
- Example: Training an adapter on a sentiment analysis dataset to make a general-purpose LLM classify movie reviews.
Delta Tuning
The overarching paradigm of adapting a model by learning a small, task-specific change (delta) to its parameters, leaving the vast majority of the base model frozen. AdapterFusion is a two-stage delta tuning method.
- Core Principle: The adapted weights (W') are the sum of the original frozen weights (W) and a learned delta (ΔW): W' = W + ΔW.
- Contrast with Full Fine-Tuning: Updates <1% of parameters vs. 100%.
- Methods Include: Adapters, LoRA, (IA)^3, and prefix tuning.
Task Vector
A mathematical representation, often derived from fine-tuned model weights, that encodes the direction and magnitude of change needed to adapt a base model to a specific task. In AdapterFusion, the first-stage adapters can be seen as instantiations of task vectors.
- Formal Definition: For a base model θ0 and a model fine-tuned on task A (θA), the task vector is τA = θA - θ0.
- Use in Composition: Task vectors enable task arithmetic (e.g., τC = τA + τB) for multi-task adaptation, analogous to AdapterFusion's learned composition.
Mixture-of-Experts (MoE)
A neural network architecture where the model consists of many expert layers (sub-networks). A gating network dynamically routes each input token to a sparse combination of these experts. It relates to AdapterFusion through the theme of conditional computation and knowledge composition.
- Key Similarity: Both use multiple specialized components (experts/adapters).
- Key Difference: MoE experts are activated per-token via routing during a single model's forward pass. AdapterFusion combines pre-trained, task-specific adapters via a learned layer for a new task.
- Efficiency: Enables massive model capacity with sub-linear compute cost.
Hypernetwork
A secondary neural network that generates the weights for a primary model. In advanced PEFT, a hypernetwork can generate the parameters for an adapter conditioned on a task embedding, offering a more dynamic form of adaptation.
- Relation to AdapterFusion: While AdapterFusion learns a static composition layer for fixed adapters, a hypernetwork could dynamically generate a fused adapter's weights based on the input or task description.
- Intrinsic Task Vectors: Hypernetworks often use low-dimensional intrinsic task vectors as input to generate high-dimensional adapter weights.
Modular Adaptation
The general design philosophy of extending a base model with small, self-contained, and composable neural modules (like adapters) that are tuned for specific skills or tasks. AdapterFusion is a premier technique within this paradigm.
- Core Tenets: Composability (modules can be combined), Reusability (pre-trained modules are assets), and Isolation (modules can be added/removed without catastrophic interference).
- Enterprise Benefit: Enables building a library of skills (e.g.,
adapter-sentiment,adapter-sql) that can be dynamically assembled for complex workflows without retraining the core model.

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