Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models

John Cooper, Ilias Diakonikolas, Mingchen Ma, Frederic Sala

International Conference on Machine Learning 2026 · Oral

Overview

Modern Large Language Models (LLMs) have pushed the boundaries of capability, but the underlying hardware and memory constraints of pure architectures—such as standard Transformer attention layers and State Space Models (SSMs)—remain a critical bottleneck. Recently, hybrid architectures like Nemotron-H, the Qwen 1.5 Next family, and the Jamba models have demonstrated that combining attention mechanisms with SSM layers yields superior accuracy and higher throughput compared to their pure counterparts. This talk investigates the fundamental mathematical and empirical reasons behind this phenomenon, asking precisely when and why hybrid sequence models achieve capabilities that neither pure model can reach on its own.

Watch on SlidesLive

Visual summary for Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models by John Cooper, Ilias Diakonikolas, Mingchen Ma, Frederic Sala
Visual summary for Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models by John Cooper, Ilias Diakonikolas, Mingchen Ma, Frederic Sala

Key moments

  1. 0:00 Introduction and motivation for hybrid sequence models
  2. 2:00 Comparison of attention and SSM characteristics
  3. 4:00 Introduction to function composition tasks
  4. 6:00 Selective copying task definition and construction
  5. 8:00 Empirical results and layer ordering comparison
  6. 10:00 Future directions and conclusion
  7. 11:30 Audience Q&A on attention complexity and hybrid ratios

Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models

Speakers: John Cooper; Ilias Diakonikolas; Mingchen Ma; Frederic Sala

Conference: ICML

YouTube: https://slideslive.com/39083754

Overview

Modern Large Language Models (LLMs) have pushed the boundaries of capability, but the underlying hardware and memory constraints of pure architectures—such as standard Transformer attention layers and State Space Models (SSMs)—remain a critical bottleneck. Recently, hybrid architectures like Nemotron-H, the Qwen 1.5 Next family, and the Jamba models have demonstrated that combining attention mechanisms with SSM layers yields superior accuracy and higher throughput compared to their pure counterparts. This talk investigates the fundamental mathematical and empirical reasons behind this phenomenon, asking precisely when and why hybrid sequence models achieve capabilities that neither pure model can reach on its own.

Presented at ICML, this research explores the efficiency-expressivity tradeoffs inherent in sequence modeling through the lens of structured function composition tasks. The authors demonstrate that pure transformers and pure SSMs face severe memory scaling bottlenecks on these tasks, whereas carefully designed hybrids bypass these limitations. By proving theoretical separation theorems and validating them with small-scale empirical constructions, the work sheds light on the architectural nuances—such as layer ordering—that dictate whether a hybrid model succeeds or fails.

Background

▶ Watch: Introduction and motivation for hybrid sequence models (0:00)

The architectural landscape of modern LLMs is defined by a tension between expressivity and computational efficiency. Attention mechanisms serve as the backbone of contemporary LLMs due to their immense expressivity, enabling models to perform complex relational lookups and contextual reasoning. However, standard attention suffers from a major hardware drawback: as context lengths scale into the millions of tokens, the model must store keys and values for every past token in the KV cache, resulting in a memory footprint that scales linearly with context length ($O(L)$).

Conversely, SSMs represent a newer class of sequence model that operates with constant memory ($O(1)$) relative to sequence length. Rather than retaining historical token representations, SSMs compress sequential input into a fixed-size internal hidden state, interacting only with the current token and the preceding state to generate outputs. While highly efficient in terms of memory and throughput, SSMs frequently lag behind transformers in expressivity across various complex reasoning domains.

In the broader machine learning and systems space, researchers have sought to bridge this gap by interleaving attention and SSM layers. Yet, until recently, the theoretical justification for why these hybrid models outperform pure architectures has remained largely empirical. This work addresses that gap by formalizing the specific task structures where hybrids excel.

Key Findings

▶ Watch: Introduction to function composition tasks (4:00)

The primary finding of this research is that hybrid sequence models are fundamentally more expressive than pure models under specific compositional data dependencies, achieving this capability with significantly reduced memory footprints.

  • Theoretical Separation: The authors prove that pure SSMs and pure transformers require massive internal representations (large states or expansive KV caches, respectively) to solve structured function composition tasks, whereas hybrid models can solve them with exponentially less memory.
  • Layer Ordering Sensitivity: Empirical evaluations on controlled two-layer hybrid models reveal that architecture design is highly non-symmetric. Placing the SSM layer first followed by the transformer yields near-perfect performance, whereas reversing the order (transformer-first) fails to outperform pure models.
  • Task Structure as the Driver: The success of hybrid models is fundamentally driven by data dependencies characterized by sparse early context requirements combined with dense late-stage sequence operations.

Technical Deep Dive

▶ Watch: Selective copying task definition and construction (6:00)

To isolate the differences between pure and hybrid models, the authors define a class of two-layer function composition tasks. In these tasks, an output depends on two distinct contextual components: $U$, a dense component situated at the end of the sequence, and $V$, a sparse component located earlier in the context. These components are combined via a function $F$.

This structure mirrors real-world reasoning traces, such as those observed in the DeepSeek-R1 reasoning paradigm, where a model references an earlier "aha moment" ($V$) multiple times while executing a dense stream of current operations ($U$).

The authors formalize the limitations of pure models through two core regimes:

  1. SSM Bottleneck: To solve compositional tasks where $U$ is large, an SSM must maintain a massive internal state because it lacks direct random access to historical context tokens.
  2. Transformer Bottleneck: To capture early sparse dependencies ($V$), a pure transformer must retain an extensive KV cache across a wide attention window, sacrificing memory efficiency.

To demonstrate how hybrids resolve this, the authors construct a synthetic benchmark task termed selective compounding/copying. The task requires the model to identify the last numerical token in a sequence, use that number as an address pointer to look back by that exact offset, and output the corresponding vocabulary token.

  • SSM Requirement: Identifying the last numerical token is trivial for a stateful model.
  • Transformer Requirement: Performing a relational lookup based on that offset plays directly to the strengths of attention.

In their explicit weight construction, the hybrid architecture requires the SSM to remember only a single token rather than the entire dense component $U$, while allowing the transformer to operate over a drastically restricted local window (size $N$ instead of full context length $L$). This reduces attention complexity from $O(L^2)$ down to $O(N^2)$.

Experimental Setup & Results

▶ Watch: Future directions and conclusion (10:00)

To validate their theoretical findings, the authors trained small two-layer hybrid models on the selective copying task, comparing them against pure two-layer SSMs and pure two-layer transformers across varying model capacities.

  • Datasets: Controlled synthetic function composition tasks (specifically selective copying) designed to decouple sparse early dependencies from dense late-stage tokens.
  • Architectures Compared:
  • Pure two-layer transformers (Blue curves)
  • Pure two-layer SSMs (Red curves)
  • SSM-first hybrid models: SSM layer followed by an attention layer (Green curves)
  • Transformer-first hybrid models: Attention layer followed by an SSM layer (Yellow curves)
  • Headline Results:
  • The SSM-first hybrid models achieve perfect performance across model size variations, whereas pure transformers and pure SSMs struggle to achieve high performance.
  • The transformer-first hybrids perform poorly, demonstrating that the ordering of SSM and attention layers is critical to realizing the theoretical expressivity-efficiency tradeoffs.

Practical Implications

▶ Watch: Audience Q&A on attention complexity and hybrid ratios (11:30)

For infrastructure teams, model builders, and deployers, these findings provide theoretical backing for the growing industry shift toward hybrid architectures like Nemotron-H and Jamba.

  • Memory and Compute Savings: By strategically windowing the transformer component and offloading sequence state tracking to the SSM, deployers can mitigate the quadratic scaling wall ($O(L^2)$) of pure attention. The transformer only needs to attend over the last $N$ tokens rather than the full context length $L$.
  • Architectural Nuance: Practitioners cannot simply interleave attention and SSM layers arbitrarily. The specific placement matters; putting state-tracking layers earlier in the pipeline to filter and route information appears mathematically and empirically superior for tasks featuring sparse historical dependencies.
  • Limitations: The current theoretical proofs and empirical validations focus primarily on two-layer constructions and synthetic function composition tasks. Scaling these insights to deep, multi-billion parameter foundation models with complex, multi-layered interleaving ratios (e.g., 3:1 or 7:1 SSM-to-attention ratios) remains an open frontier.

Key Takeaways

  • Hybrid sequence models combine the expressivity of attention with the memory efficiency of SSMs, explaining their surging popularity in large-scale LLMs.
  • Structured function composition tasks—featuring sparse early dependencies ($V$) and dense late-stage operations ($U$)—expose the exact failure modes of pure architectures.
  • Theoretical constructions prove that hybrids can solve these tasks using exponentially less memory and reduced attention window sizes ($O(N^2)$ versus $O(L^2)$).
  • Empirical evaluations confirm that layer ordering is critical: SSM-first hybrids vastly outperform transformer-first hybrids.
  • Future work must extend these two-layer insights to deeper multi-layer hybrids and analyze real-world pre-training data distributions for function composition structures.

About the Speaker(s)

  • John Cooper: Presenter of work on efficiency-expressivity tradeoffs for hybrid sequence models.

Co-authors: Ilias Diakonikolas, Mingchen Ma, Frederic Sala.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026