The Cognitive Revolution
The Cognitive Revolution

The State Space Model Revolution, with Albert Gu

Nathan hosts Albert Gu, assistant professor at CMU and co-founder of Cartesia AI, to discuss the groundbreaking Mamba architecture. In this episode of The Cognitive Revolution, we explore the state space model revolution, diving into the technical details of Mamba and Mamba 2. Join us for an insight

Featured Speakers

Nathan Labenz and Erik Torenberg HostAlbert Gu Guest

Episode Summary

Executive Summary: Albert Gu traces the state-space model revolution from RNN and HiPPO roots to S4, Mamba, and Mamba 2, arguing that selective recurrence and state compression are fundamental for sequence modeling. The conversation explains why Mamba’s input-dependent gating improved language modeling, how Mamba 2 trades some expressivity for hardware efficiency, and why hybrid architectures plus state-based memory could shape the next wave of AI systems.

Main Topics: Intellectual history of state-space models (Priority: 5/5): Gu explains how his work evolved from interest in recurrent neural networks to HiPPO, then S4, and finally Mamba, emphasizing that these ideas were developed over years and were rooted in stateful recurrence and history compression. Why selective recurrence matters (Priority: 5/5): The core Mamba idea is to make the dynamics depend on the input so the model can skip unimportant tokens and selectively preserve useful information, similar in spirit to gating in LSTMs but with a more principled state-space framing. State, memory, and training vs inference (Priority: 5/5): Gu clarifies what 'state' means in these models, distinguishes state in SSMs from KV cache in transformers, and explains why training can avoid materializing full state while inference cannot. Mamba 2 and the expressivity-efficiency trade-off (Priority: 5/5): Mamba 2 reduces inner-layer expressivity in exchange for much better hardware utilization and faster training, especially by leveraging matrix multiplications and chunked computation on modern GPUs. Downstream ecosystem and applications (Priority: 4/5): The discussion covers the rapid growth of Mamba-inspired work, including vision, genomics, long-context modeling, and hybrid architectures, with many researchers adapting the core idea to new modalities and tasks. Future directions: multi-state systems, longer context, and interpretability (Priority: 4/5): Gu highlights promising directions such as multiple specialized states, direct optimization of state, differentiable chunking, and models that better handle very long or infinite context. Research philosophy and intuition (Priority: 4/5): Gu emphasizes the interplay of theory and experimentation, the role of intuition and aesthetics in research, and the importance of taking big bets while remaining empirically open-minded.

Key Arguments: Stateful recurrence is a fundamental computational paradigm for sequences, and models that compress history into a finite state are more biologically and cognitively plausible than architectures that try to attend to everything equally. Mamba’s key breakthrough was making recurrence selective: input-dependent gating lets the model preserve important information and skip filler tokens instead of applying the same update to every step. Older recurrent models often underperformed because they were overly nonlinear or hard to train; simplifying them and making the core dynamics more linear improved controllability and optimization. In modern deep learning, state should be understood operationally as whatever information a model must retain between timesteps; for transformers, that is effectively the KV cache. Mamba 1 was constrained less by raw SRAM capacity than by the speed of the computation required to update its selective state; training-time algorithms could hide some state costs, but inference still requires state retention. Mamba 2 gains speed by reducing expressivity in the core state update and rewriting computation to better exploit matrix multiplications and chunk-wise parallelism on current hardware. The choice between Mamba 1 and Mamba 2 depends on what you optimize for: parameter count, wall-clock training time, inference efficiency, or downstream task behavior. Hybrid architectures likely work because attention and SSMs solve different problems; attention excels at exact retrieval and associative recall, while SSMs may be better for compression-heavy, raw, or less tokenized data. A promising future direction is to design models with multiple internal states or state-specific roles, which could improve both performance and interpretability. There may be substantial room for additional optimizations and architectural variants in SSMs, just as the transformer ecosystem has accumulated many efficiency tricks over time.

Data Points: Downstream Mamba papers/projects: 267 - Jason Moe’s spreadsheet count of Mamba-derived papers, GitHub projects, and related work mentioned in the interview. Interview length: Over 90 minutes - Nathan notes the conversation ran longer than 90 minutes. Early downstream literature coverage window: First 90 days - Referenced Mamba Palooza episode that reviewed the first three months of downstream literature. Mamba 1 vs. Mamba 2 task comparison: Mamba 2 is described as broadly better on perplexity and wall-clock time under parameter-controlled comparisons - Gu says Mamba 2 is dominant over Mamba 1 in the main scaling-law comparisons. Vision/image share of downstream reports: 56.6% - Nathan cites Jason’s categorization of downstream reports as being in vision and image. Long-context extrapolation: Around 3x training context length - Gu references studies showing models can extrapolate to roughly three times the context length they were trained on. Modeling state size comparison: Transformer memory scales with sequence length T; SSM memory scales with a controllable expansion factor N - Gu contrasts transformer KV cache growth with fixed compressed state size in SSMs.

Pivotal Quotes: "I think of what we call state-space models in AI and deep learning as structured state-space models, which are different than the statistical or control state-space models from other disciplines." — Albert Gu: Clarifying terminology and distinguishing deep-learning SSMs from other fields. "The idea that we wanted was to be able to skip over time steps if necessary, or if there's a new input that's super important, how do you kind of focus only on that new input and put that input into your state and ignore everything else?" — Albert Gu: Explaining the core selective mechanism behind Mamba. "I think there are maybe niche cases, or maybe even not niche, but like maybe after you finish exploring whether SSMs are good for your application, then you decide you really want to optimize for inference time." — Albert Gu: Discussing the possibility of trading training cost for better inference-time efficiency via more expressive models.

Implications: The episode suggests AI architecture is entering a pluralistic phase: recurrence, attention, and hybrids will likely coexist. For practitioners, the lesson is to match architecture to the memory/computation regime; for researchers, the open frontier is better state design, longer context, and hardware-aware efficiency.

🔓 Sign Up for Unlimited Episode Search

About The Cognitive Revolution

A biweekly podcast where hosts Nathan Labenz and Erik Torenberg interview the builders on the edge of AI and explore the dramatic shift it will unlock in the coming years. The Cognitive Revolution is part of the Turpentine podcast network. To learn more: turpentine.co

View all episodes from The Cognitive Revolution