← All entries
Paper2026#1244

Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling

Summary

Generalizes linear attention from a matrix state to a third-order tensor state: writes the triadic outer product of a key, a second key, and a value (k tensor k' tensor v) into S_t in R^{d x E x d}, and reads by contracting both key axes with two queries. An E-dimensional second key yields an E-fold state-size increase while adding only two projections (negligible parameter overhead; E=16 gives 16x capacity at 1.08x non-embedding params in MQAR tests). Compatible with data-dependent forgetting (per-slice decay gates), the delta rule applied jointly to both keys (removing the value stored under the key pair), and chunkwise-parallel training via custom CuTe kernels that tile the per-head state along the value axis (blocks of 32 columns, all E slices held in registers) so no SM holds the full tensor. Applied to Gated DeltaNet and scalar-gated linear attention, it substantially improves long-context LM and recall, outperforming alternatives that enlarge state via wider heads/values, more heads, or multiple value heads per key. A pretrained linear-attention model can be converted post hoc to its triadic form during long-context extension. Training overhead over vanilla GDN (custom kernels, H100, 1.3B, 2k-64k tokens): 9-11% (E=2), 14-15% (E=4), 28-30% (E=8); E=8 is 3% slower than a Transformer at 4k but faster beyond, reaching 5.1x faster at 64k.

Venue
arXiv 2609.36529 (cs.LG/cs.CL), submitted 29 Sep 2026, preprint
Source
x
Access
free
Language
en
Added
Oct 4, 2026
Verified
Oct 4, 2026
Found via
#random-papers

Tags

triadic-linear-attentiontensor-stategated-deltanetrecalllong-contextchunkwise-parallelcute-kernels

Topics

linear attention, RNN state size, long-context modeling, gated deltanet, delta rule, GPU kernels

Research notes

  • Discovery: author @osieberling X thread 2026-10-04 5:15 PM ET (https://x.com/osieberling/status/2106855865303339236), ~8.3K views; bio: PhD student @MIT, pretraining, rnn enjoyer
  • Thread confirmed: ~15% end-to-end training slowdown for 4x more state (E=4) vs competitive GDN baseline (FlashQLA TileLang kernels); strong recall improvements on DROP/NQ/TriviaQA/FDA/SQuAD/SWDE but still trailing Transformers
  • GPU kernels: https://github.com/OliverSieberling/cute-triadic-gdn
  • Minimal training code: https://github.com/OliverSieberling/TriadicLinearAttention
  • alphaXiv: https://alphaxiv.org/abs/2609.36529
  • License: CC BY 4.0
  • MIT / MIT-IBM Computing Research Lab; AI2050 Schmidt Sciences grant

Similar entries