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

Schematic: the per-head state of SSSD attention turns on a curved surface by an exactly orthogonal Cayley rotation at each token, so its norm cannot change. The architecture is implemented and tested but not yet trained.

Orthogonal manifold
SSSD, CHAM and the optimizer keep a matrix exactly on it
Per-head matrix state
Frobenius norm conserved by construction
Cayley state rotation
Exactly orthogonal rotation at every token
Skew-symmetric generator
Formed from the token's key and value

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