Hybrid attention and SSM models

State-space & hybrids · hybrid · 2023 · text · any domain

What it is

The empirical consensus: a mostly-linear stack with a minority of attention layers beats either pure design.

When to use it

Any frontier-scale long-context model. Treat pure-attention vs pure-SSM as a false choice.

Caveats

The right ratio and ordering of attention and state-space layers is found empirically and differs between tasks. Combining two layer types complicates implementation and optimization, and independent large-scale comparisons are limited.

Key ideas

  • Attention layers handle recall and in-context copying; linear layers do the bulk token mixing
  • H3, GSS and BiGS were the early evidence for this

Related architectures

Original paper

Hungry Hungry Hippos: Towards Language Modeling with State Space Models (2022, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted