A state-space model (SSM) defines a state h_t updated by h_t = f(h_{t-1}, x_t), with an output read out as y_t = g(h_t). Classical linear SSMs (and their deep-learning descendants — S4, Mamba, and other selective-state architectures) are prized because, unlike attention, their per-step compute and memory are constant regardless of sequence length, while still supporting long-range dependencies through structured, often diagonalizable, recurrence matrices.
Filtering estimates the current state from observations up to now; smoothing revisits past state estimates once later observations are available, producing a more accurate — but non-causal — reconstruction. World models typically filter online (for planning) and smooth offline (for training), and the gap between those two modes is a recurring source of train/inference mismatch worth auditing.