Skip to content
SimulatorLanguage models

A state that turns instead of growing

A state of length 1 is updated again and again by the same small step, in two ways. Switch between rotating it and adding to it, and watch its length.

  • the circle: every state of length 1
Length of the state at the end
1.000
Drift from length 1
0.0%
Turned in all
248°
Updates
24
How the state is updated

Switch between the two methods with the same step size. Adding the step leaves the circle; rotating cannot.

What the simulator does

  • Rotating multiplies the state by a rotation: its length is 1 after every update, to the last digit.
  • Adding takes the same step along the tangent: the length grows by the same factor at every update, so the state spirals away from the circle.
  • The larger the update and the more of them, the faster the added state drifts. The rotated one never does.

In Verace V1: rotation memory experiments

Schematic: a per-head memory state is turned across a curved space by one closed-form rotation per token. It is studied as a replacement for the growing key-value cache. The layers and kernels are implemented, but no recall result is recorded yet.

Orthogonal or unitary state
Rotation keeps the norm, so the state cannot blow up
Rank-2 Rodrigues rotation
One closed-form rotation per token
Skew-symmetric generator
Rotation plane spanned by the key and value
Per-head memory state
Recalled with a single product against the query

What this is not

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Read the write-up