Decide what the state remembers.

Mamba turns fixed state-space dynamics into content-dependent ones. Replay a selective scan to see which tokens write strongly, which signals persist, and why linear sequence processing is not the same thing as attention.

hₜ = Āₜ hₜ₋₁ + B̄ₜ xₜBₜ, Cₜ, Δₜ depend on xₜ
Architecture
0.78
0.88
INPUT STREAM

Remember the access code buried inside ordinary text.

Write gate0.00
Retention0.00
Read gate0.00

State evolution

Four teaching channels summarize the recurrent state after each token.

Ready
t = 0O(L)

Current operation

Awaiting token

Step through the sequence to update the hidden state.

Interpretation

Content-dependent memory

Selective parameters let the recurrence react differently to each token.

Signal retained0%
Distractor writes0
State width4
Pairwise scores0

Selection changes the recurrence, not the asymptotic scan.

A conventional linear state-space layer applies input-independent dynamics. Mamba makes key parameters functions of the current token, then uses a hardware-aware parallel scan to keep sequence length scaling linear.

Content can open the write gate.

A high-value token can enter state strongly while ordinary filler barely perturbs it. This is the lab’s simplified picture of input-dependent Δ, B, and C.

Linear in sequence length.

The recurrence carries a fixed-width state instead of materializing every query-key pair.

O(L)

State is compressed history.

Unlike attention, the model cannot revisit an arbitrary past token directly; information must survive in the state.

Parallel scan matters.

Associative scan structure and kernel fusion turn the recurrence into an efficient GPU implementation.

Long context is not perfect recall.

Linear scaling removes the quadratic matrix, but finite state and learned gates still create memory tradeoffs.

Test what the state forgets.

Sweep distance, distractor density, gate sharpness, and state width. Compare exact retrieval, throughput, memory, and failure under distribution shift.

Needle retrieval

Move the target earlier, add similar distractors, and measure whether the answer signal survives until the query.

Selective-copy stress

Require the model to copy only marked tokens. Fixed recurrence should reveal why content-dependent updates matter.

Attention comparison

Report matched parameter count, hardware, batch size, context length, and quality. Big-O notation is not a benchmark.

Three mechanisms, three different promises.

Hover or focus each mechanism to expand its operational contract.

Export a memory audit.

Turn each slider setting into a reproducible evaluation note. Then see how Superpowers builds inspectable agent tools and caches repeated computer-use evaluations.

0 of 4 ready