﻿# AdapterFusion: learning composition while preserving existing task adapters

Understand AdapterFusion knowledge extraction and composition stages, frozen source adapters, activation setup and the cost of evaluating several adapter paths.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-adapterfusion-frozen-skill-composition/
Language: en

AdapterFusion separates learning task-specific adapters from learning how to combine their representations. Existing adapters can remain frozen while new fusion parameters learn a downstream composition. This separation addresses destructive changes to source modules during transfer, but the combined prediction remains a new model behavior that needs its own evaluation.

## Keep the training stages distinct

The source adapters first learn their individual tasks. Fusion training then learns how to use those available representations for a target problem. Record the training data used in each stage. If a source adapter saw the target test examples earlier, freezing it during fusion does not make the final evaluation independent of that exposure.

## Understand what fusion consumes

The method composes outputs from adapter modules rather than merely averaging checkpoint files. The original design learns attention-based combinations across source adapter representations. Consequently, the chosen source inventory and its order belong to the configuration. A plain weighted merge of projection matrices is a different operation with different runtime and behavior.

## Activate the intended composition

AdapterHub distinguishes adapters that are loaded from adapters that are active in computation. Check the actual active fusion setup and associated prediction head. For an illustrative classification task, deliberately run a source adapter, the fusion setup and an inactive-adapter baseline. Distinct expected outputs help detect a configuration that silently evaluates the wrong path.

## Interpret non-destructive narrowly

Freezing a source adapter preserves its stored values; it does not prove that every task score remains unchanged when a new fusion module combines it with other representations. Evaluate the target task and the original source tasks using their intended configurations. Inspect negative transfer explicitly rather than assuming that immutable source tensors imply immutable end-to-end behavior.

## Measure the deployed inventory

The fusion path may require several adapter computations, so a small set of new trainable parameters does not imply the runtime of a single adapter. Save all required source weights, fusion state, head, base revision and composition definition. Reload the full setup and measure latency under the intended batch and sequence lengths. AdapterFusion is valuable when reusable task modules and learned composition outperform simpler alternatives on a clearly separated evaluation.

## Primary references

[AdapterFusion original paper](https://arxiv.org/abs/2005.00247).

[AdapterHub adapter training](https://docs.adapterhub.ml/training.html).

[AdapterHub composition](https://docs.adapterhub.ml/adapter_composition.html).

Related explanations: [task identity in composition](/journal/adapter-composition-task-identity/); [weight merging arithmetic](/journal/lora-adapter-merge-linear-layer/).
