Glossary

What is State space model?

In Turkish: Durum uzayı modeli (SSM) · Topic: Models and training

A class of models that process an input sequence through a fixed-size internal state that is updated over time. The idea comes from control engineering and has been adapted to AI as an alternative to the Transformer for long sequences.

How does it work?

The model reads text or a signal step by step and updates an internal state at each step; this state acts like a compressed summary of everything seen so far. The update rule is set by learned parameters. In some designs, such as Mamba, the rule depends on the input, so the model can choose what to remember and what to forget. Training can be run in parallel while generation proceeds step by step, so cost grows roughly linearly with sequence length.

Why does it matter?

In a Transformer, the cost of attention grows quickly as sequences get longer, which is why state space models are being explored as an efficient option for very long inputs. Whether they can replace Transformers for various tasks is still debated, and some work tests hybrid models that combine the two approaches.

Example

Mamba, introduced in 2023, is one of the best-known examples of this class; very long audio recordings or genome sequences are among the inputs such models aim at.

FAQ

What is the difference between a state space model and a Transformer?

A Transformer lets every token look at every other token, which gets expensive for long sequences. A state space model summarizes the past in a fixed-size state, which is cheaper but risks losing detail.

Is a state space model just another name for an RNN?

No, but they are related. Both update an internal state step by step, but modern state space models use special update structures that avoid some of the training difficulties of classic RNNs.

All terms