﻿# Compacter: compact adapters through shared hypercomplex factors

Explore Compacter low-rank hypercomplex parameterization, shared and local factors, its difference from ordinary bottleneck adapters and practical accounting.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-compacter-hypercomplex-shared-factors/
Language: en

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](https://arxiv.org/abs/2106.04647).

[Compacter author implementation](https://github.com/rabeehk/compacter).

[AdapterHub Compacter methods](https://docs.adapterhub.ml/methods.html#compacter).

Related explanations: [low-rank matrix geometry](/journal/lora-low-rank-update-geometry/); [GPU adaptation budgeting](/journal/peft-lora-gpu-budget/).
