TECHNOLOGY

Compacter: compact adapters through shared hypercomplex factors

In this article
THE QUICK TAKE

Compacter compresses adapter parameterization through structured sharing; the expanded computation and saved state must be measured separately.

Compacter keeps the idea of small adapter modules but changes how their projections are parameterized. It combines low-rank factors with parameterized hypercomplex multiplication, representing adapter matrices through structured sums of Kronecker products. The aim is to share some parameters while allowing layer-specific adaptation with a small learned state.

Separate shared and local factors

The original method distinguishes shared slow weights from fast layer-specific low-rank components. Shared state contributes to several adapter projections, so counting each occurrence as an independent parameter overstates the trainable total. Conversely, exporting only local factors omits the common state required to reconstruct the adapter. Account for unique stored tensors and their references.

Distinguish a bottleneck from its representation

An adapter may still project hidden states down, apply a nonlinearity and project back. Compacter changes the representation of those projection matrices rather than making every operation disappear. A smaller parameterization need not imply proportionally smaller intermediate activations. Compare the actual computation with an ordinary bottleneck adapter using the same base and placement.

Preserve architecture choices

The authors provide configurations and scripts for Compacter and related baselines. Record which variant and insertion locations are used instead of labeling every hypercomplex adapter identically. A changed bottleneck dimension, factor rank or sharing policy can alter the capacity substantially. The research setup is a reproducible starting point, not a universal configuration for any new decoder architecture.

Evaluate quality at the intended data scale

For an illustrative low-resource text classification task, compare validation selection and final held-out quality under equal data boundaries. Check both the target score and robustness to plausible rewordings. More aggressive parameter sharing may help regularization in one setting and restrict adaptation in another. The original benchmark findings do not establish the outcome on a different task or dataset mixture.

Measure the artifact and runtime independently

Save shared factors, local factors, configuration, prediction head and base revision. Test a fresh reload and inspect whether tensor sharing survives serialization as intended. Measure training memory and inference latency in the selected implementation, including reconstruction overhead if applicable. Compacter is most useful when its structured representation reduces the operational state that matters while preserving the required task behavior, rather than when a parameter percentage alone drives the choice.

Primary references

Compacter original paper.

Compacter author implementation.

AdapterHub Compacter methods.

Related explanations: low-rank matrix geometry; GPU adaptation budgeting.

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