Attention vs. Memory: Why Transformers Killed the RNN
The math behind the coup — vanishing gradients, the sequential bottleneck, and why attention treats a sequence as a fully connected graph.
Writing
I publish these deep-dives in Towards AI on Medium. The architecture series below follows the Atlas: so far it covers 8 of its 16 architectures in 9 deep-dives — hybrids get two, and multi-token prediction lives on Towards AI only. The other eight are hosted here, and each links back to the original publication.
The writing feeds two research lines: Direction I — can SSMs make long-context reasoning affordable? · Direction II — QUANTA, ternary weights and where the information goes
In reading order — each piece picks up where the previous architecture failed.
No Phase 3 deep-dive yet — they're queued. See the Phase 3 nodes in the Atlas →
The math behind the coup — vanishing gradients, the sequential bottleneck, and why attention treats a sequence as a fully connected graph.
How delta-gated state-space models challenge the Transformer — selective memory, zero-order hold, and the parallel-scan trick that makes it trainable.
Two papers land on the same fix: a gate that lets the model multiply noise by zero — and a delta rule that writes memory surgically instead of blindly.
NVIDIA's PostNAS recipe: keep the few attention layers that matter, replace the rest — full-attention accuracy at a fraction of the cost.
The production proof: a hybrid Mamba–Transformer mixture-of-experts with a million-token context window, and what its design choices reveal.
Ternary weights — every parameter is just −1, 0, or +1 — collapse the matmul into additions, and a native 1-bit model trained on 4T tokens matches full-precision peers at a fraction of the memory and energy.
Why one-token-at-a-time decoding is a straitjacket, and how multi-token prediction teaches models to plan ahead. On Towards AI only — not hosted here yet.
A slow planner and a fast worker, recursing at different frequencies — and beating far larger models on ARC-AGI with ~1000 training examples.
A single 2-layer network recursing on a latent scratchpad — 7M parameters, state-of-the-art generalization on Sudoku-Extreme, Maze-Hard, and ARC-AGI.
Reading times are computed from each piece's word count at ~230 words a minute; dates are the original Towards AI publication dates.
Earlier pieces on the building blocks — read on Medium.
Rotary positional encoding, and why it decides how far a context window can stretch.
From static skips to dynamic routing — rewiring deep networks with hyper-connections. The background to slot 4 in the four-slot block and QUANTA's residual families.
Why a sigmoid loss beats softmax contrastive training at scale.
How contrastive pre-training unlocked zero-shot vision.
Everything in one place: kyouma45.medium.com ↗