SimulatorLanguage models
Looking back, or keeping a fixed memory
A row of tokens is read two ways at once: the newest token looks back at every earlier one, and every token is also written into one memory of fixed size that fades.
- looking back: one arc for every earlier token
- fixed memory: how much of each token it still holds
- newest token at the right
- Looking back, this token
- 23 comparisons
- Looking back, whole sequence
- 276 comparisons
- State kept: looking back / fixed
- 24 tokens / 1 state
- Fixed memory: a token is half faded after
- 4.3 tokens
Lengthen the sequence: the arcs multiply, the fixed memory stays one state. Lower the decay and it forgets sooner.
What the simulator does
- Looking back costs one comparison for every earlier token, so the work for a whole sequence grows with the square of its length, and the state kept grows with it.
- The fixed memory is one state however long the sequence is: each new token is added and the rest fades by the decay.
- The bars show what that costs: a token read long ago has almost no weight left.
In Verace V0 Baseline
Schematic of the Kimi Team's hybrid design, implemented in code by the lab in Verace V0 Baseline: Kimi Delta Attention keeps a fixed-size state, while latent attention looks back over the whole context. The code is not yet trained or evaluated.
- Fixed-size recurrent state
- Kimi Delta Attention state, decayed per channel
- Gated NoPE latent attention
- Used in every fourth layer and the last
- Delta-attention output
- Passes a per-head norm and a sigmoid gate
- Delta-rule write
- Write strength set per token by a sigmoid
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