TECHNOLOGY

AdapterFusion: learning composition while preserving existing task adapters

In this article
THE QUICK TAKE

AdapterFusion learns a composition over existing task adapters; preserving their weights does not guarantee unchanged behavior of the composed model.

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.

AdapterHub adapter training.

AdapterHub composition.

Related explanations: task identity in composition; weight merging arithmetic.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles