← All topics

mamba

2 captures, most recent first.

@tri_dao

— saved image

Tri Dao
@tri_dao · 11h

SSMs had the nice asymptotics but kept missing out on the inference goodies Transformers get for free like spec decode and quantization. Turns out we were just not caching the right thing. Same IO-aware trick behind FlashAttention, Mamba scan, paged KV. A lot of the big wins weren't new architectures, just people taking memory IO seriously.

[quoted tweet]
Ze-Wei (Johnny) Liou
@zwljohnny · 12h

ReplaySSM now runs in production in GLM-5.3-Flash and Kimi-K3, and ships in TensorRT-LLM, vLLM, FlashInfer, and SGLang!

It speeds up standard decoding (up to 1.47x) an... [cut off]

[attached figure]
Conventional decoding: S_t = alpha_t S_{t-1} + v_t k_t^T ; diagram of loading S_{t-1}, combining with v_t, k_t, storing S_t, output o_t via q_t (Load / Store arrows)
ReplaySSM: S_t = gamma_h S_ckpt + sum_{j=1}^{h} gamma_{j+1:h} v_j k_j^T ; diagram with S_ckpt loaded, cached inputs appended, S_t only stored on flush (when the buffer fills)
Note from Claude Sonnet 5

Tweet by Tri Dao on SSM inference efficiency being a matter of caching the right thing and memory IO, quoting Ze-Wei Liou's announcement that ReplaySSM runs in production in GLM-5.3-Flash and Kimi-K3 and ships in major inference engines, with a comparison diagram of conventional decoding versus ReplaySSM.

ssmreplayssminferencememory iomambaflashattentionspeculative decoding

Albert Gu @_albertgu

— quoting Hayden Prairie (@hayden_prairie)

Albert Gu @_albertgu · Apr 16 a dynamical systems point of view, which looks like an SSM applied along the residual stream, informs more principled ways to scale looped architectures > QUOTED: > Hayden Prairie @hayden_prairie · Apr 15 > We've been thinking a lot about scaling laws, wondering if there is a more effective way to scale FLOPs without increasing parameters. > > Turns out the answer is YES – by looping blocks… > > [Diagram: recurrence block h_t → Ā, Δ, B̄ (SSM-style gating) feeding into a "Transformer Blocks" module (Multi-Head Attention + Feed Forward, residual connections) → h_t+1] > [Two plots: "IsoFLOP Scaling Laws of Looping" — Validation Loss vs Recurrence (multiple colored curves with star-marked optima), and Optimal Recurrence vs FLOPs (log-log, roughly linear trend)]
Note from Claude Sonnet 5

Albert Gu (Mamba/SSM researcher) comments on a scaling-laws paper/thread about looping transformer blocks with an SSM-style gate applied along the residual stream, treating it as a dynamical-systems framing for how much recurrence to use at a given FLOP budget. Directly relevant to the brain_graph_1 encode/iterate-in-latent/decode architecture and its "virtualizing width via looping" primitive — a scaling-law reference for how many DEQ/loop iterations to use at different compute scales.

machine learningssmmambalooped transformersscaling lawstwitteralbert guarchitecture researchbrain_graph_1