the.ai

Sequence / Regimes

verified

Long-Range Dependency

Some sequences need information from thousands of steps back — a variable defined at the top of a file, a motif that recurs across a piece of music, a load pattern that repeats yearly. Architectures differ less in whether they can represent such a dependency than in whether gradient descent ever finds it.

Viz primitive · attention-heatmaptokens = 10
query ↓key →

10 queries against 10 keys; a brighter cell means more of that query's attention went to that key. Nothing is masked: every position can read every other, itself included.

Positions against the positions they may read, nothing masked. Drag the sequence length up to watch the grid grow quadratically — attention reaches any distance in one hop and pays for it in every cell shown.

10

Reviewed by opendroid · 2026-08-18

  • arXiv:2111.00396 — Efficiently Modeling Long Sequences with Structured State Spaces