Skip to content

A small rank. A different space.

Change the adapter rank and watch its outputs open from a line into a plane and a volume.

Preparing the 3D view…

Constrain the correction

The base weight W stays frozen. A maps the input into r coordinates; B maps those coordinates back into the output space. Only the adapter correction BAx is shown.

Open another direction

In this three-output toy model, A selects the first r input coordinates and B contains the first r coordinate basis vectors. At rank one the outputs lie on a line, at rank two on a plane, and at rank three in a volume.

Read the limit

The points are fixed synthetic inputs, not measured model activations. In real training B also learns, so its subspace can change. The α/r scale, dropout, and frozen Wx contribution are omitted.

The equation behind the motion

h = Wx + BAx; rank(BA) ≤ r

Synthetic inputs with explicit geometric assumptions. Rotate the view and inspect the model above.

Read the primary source

Trace the adapter, one multiplication at a time

Keep the frozen branch in view while changing the adapter rank, scale, and initialization.

1 of 4

Reduced motion is on. Use Previous and Next to inspect each state.

Keep the original pathThe frozen matrix maps x to [2, 1, 0]. With zero adapter scale, the output is unchanged. Output [2, 1, 0]Input x[2, -1, 1]Frozen W[2, 1, 0]Adapter correction[0, 0, 0]+A · x = [2, -1]; scale α/r = 0

h = Wx + (α/r)BAx r = 2, α = 0

Output [2, 1, 0]

Keep the original path

The frozen matrix maps x to [2, 1, 0]. With zero adapter scale, the output is unchanged.

Explore the inputs and calculations
Input x[2, -1, 1]
Frozen W[2, 1, 0]Unchanged as the adapter changes
A · x[2, -1]2 intermediate coordinates
(α/r) B · Ax[2, -0.6, 0]Correction, scale 1
Sum both branches[4, 0.4, 0]
The 4096 × 4096 comparison at this rank: 16,384 trainable adapter weights versus 16,777,216 base weights. The tiny 3 × 3 example above is for arithmetic; at high rank it offers no parameter saving.
Inspect A, B, and the merged weight
A · 2 × 3
100
010
B · 3 × 2
10
00.6
00
Frozen W
100
0-10
000
W + (α/r)BA
200
0-0.40
000

Merged output: [4, 0.4, 0]. It agrees with the two-branch calculation. This equality is for compatible dense weights, with no adapter dropout.

At B = 0, why can B learn even though A initially gets no gradient from the adapter?

The gradient for B uses Ax, which can be nonzero. The gradient for A passes through Bᵀ and is initially zero. After B changes, gradients can reach A as well.

An exact 3 × 3 arithmetic example, separate from the point-cloud scene. A selects coordinates and B has diagonal entries 1, 0.6, and 0.3. Real adapters learn both matrices; rank is an upper bound on the update rank.

Hu et al.Read the full explanation