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 sourceTrace the adapter, one multiplication at a time
Keep the frozen branch in view while changing the adapter rank, scale, and initialization.
Reduced motion is on. Use Previous and Next to inspect each state.
h = Wx + (α/r)BAx r = 2, α = 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
Inspect A, B, and the merged weight
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 |
| 0 | 0.6 |
| 0 | 0 |
| 1 | 0 | 0 |
| 0 | -1 | 0 |
| 0 | 0 | 0 |
| 2 | 0 | 0 |
| 0 | -0.4 | 0 |
| 0 | 0 | 0 |
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.