Curriculum

State Space Models & Mamba

Continuous-time SSMs, selective scan parameters, discretization, and linear-time sequence modeling.

Not started3 min explanation

Visualize, practice, and deep-dive material are optional—use only what helps you learn.

Explanation

A focused 3-minute explanation using the topic's authored material.

Learning goals and prerequisites

After this lesson

  • Explain continuous and discrete SSMs
  • Implement a selective scan
  • Choose between SSM, attention, and hybrid designs

Helpful before starting

  • Linear systems and matrix operations
  • Sequence models and convolutions
  • Neural-network training and GPU basics

Start here

State Space Models & Mamba, in plain language

Continuous-time SSMs, selective scan parameters, discretization, and linear-time sequence modeling. Selective state-space models offer linear-time sequence processing and streaming state, creating a different quality-memory tradeoff from attention.

For a small example, a sequence contains signal tokens among irrelevant ones. Let input-dependent gates retain the signal, discard noise, and compare with a fixed linear recurrence. This is the mechanism to keep in view as the lesson becomes more technical. Before moving on, identify the input, transformation, output, and one observation that would falsify your conclusion.

Key points

  • Hidden state, input/output maps, recurrence, impulse response, and convolution view.
  • Continuous-time dynamics and zero-order-hold discretization.
  • Long-range memory and computational complexity.

Use it well

When State Space Models & Mamba helps—and where it breaks

Hundreds of thousands of readings exceed comfortable attention length. Chunk safely, train a selective SSM baseline, test long-range events, and compare throughput and memory with a transformer. A useful result still depends on checking the assumptions and evidence below rather than treating one successful output as proof.

Key points

  • Equating linear complexity with faster execution. Better approach: Benchmark optimized kernels on the target hardware.
  • Assuming state summarizes all distant detail. Better approach: Use retrieval-style probes and compare with attention.
  • Ignoring recurrent inference semantics. Better approach: Define per-session state reset, migration, and failure recovery.

Was this lesson helpful?

Submit to the team when server feedback is available; otherwise this browser keeps a local copy and tells you so.