# State Space Models (SSM)

- **Canonical URL:** https://getaimath.com/dictionary/state-space-models-ssm/
- **Topics:** [AI Models & Model Families](https://getaimath.com/dictionary/category/ai-models-and-model-families/)
- **Last updated:** 2026-11-25

## What is State Space Models (SSM)?

**In one sentence:** State space models are a family of architectures that process sequences by updating a compact internal "state" step by step.

Instead of comparing every token with every other token, they carry a running summary forward, which is efficient for long sequences. Mamba is a well-known SSM.

![AI Model Families: Picking the Right Tool for the Job — Simple 4-card guide to AI model families: 1. The Writers & Thinkers (ChatGPT, Claude, Gemini, Llama, DeepSeek), 2. The Super Librarians (BERT, CLIP for search), 3. The Visual Artists (Flux, Stable Diffusion), and 4. The Pocket Models (Phi, Gemma on your phone).](https://getaimath.com/diagrams/ai-models-and-model-families.png)
*Napkin Diagram (AI Models & Model Families): Not all AI models are chatbots: some are built to write and code, some to search files, and some to paint pictures.*

## What is an example of State Space Models (SSM)?

An SSM reading a long audio clip while keeping a small, fixed-size memory.

## Why does State Space Models (SSM) matter?

SSMs offer a path to handling very long contexts cheaply.

## Related Concepts

- [Diffusion Transformers (DiT)](https://getaimath.com/dictionary/diffusion-transformers-dit/): Diffusion Transformers are diffusion models that use a Transformer instead of the older U-Net design to remove noise.
- [Hybrid Architectures](https://getaimath.com/dictionary/hybrid-architectures/): Hybrid architectures combine different model designs, like Transformer attention layers mixed with Mamba or other efficient layers.
- [RetNet](https://getaimath.com/dictionary/retnet/): RetNet, or Retentive Network, is a Microsoft architecture that aims to combine fast parallel training with cheap step-by-step inference.
- [Mamba](https://getaimath.com/dictionary/mamba/): Mamba is a model architecture based on state space models that handles long sequences efficiently without standard attention.
- [RWKV](https://getaimath.com/dictionary/rwkv/): RWKV is an open model architecture that works like a recurrent neural network but can be trained in parallel like a Transformer.
- [Jamba](https://getaimath.com/dictionary/jamba/): Jamba is AI21 Labs' family of models that mixes Transformer layers with Mamba layers and Mixture of Experts.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/state-space-models-ssm/)
