# Mamba

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

## What is Mamba?

**In one sentence:** Mamba is a model architecture based on state space models that handles long sequences efficiently without standard attention.

It keeps a compact running summary of what it has seen and chooses what to remember. Its compute grows linearly with length, unlike attention which grows faster.

![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 Mamba?

Using a Mamba model to process a very long DNA sequence.

## Why does Mamba matter?

Mamba is a promising alternative or partner to Transformers.

## Related Concepts

- [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.
- [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.
- [Jamba](https://getaimath.com/dictionary/jamba/): Jamba is AI21 Labs' family of models that mixes Transformer layers with Mamba layers and Mixture of Experts.
- [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.
- [SigLIP](https://getaimath.com/dictionary/siglip/): SigLIP is a Google image-text model similar to CLIP but trained with a simpler, more efficient method.
- [State Space Models (SSM)](https://getaimath.com/dictionary/state-space-models-ssm/): State space models are a family of architectures that process sequences by updating a compact internal "state" step by step.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/mamba/)
