Advanced Deep Learning Topic
State-space models maintain a compact internal state while processing an ordered sequence. This optional lesson preserves the state-space material outside the 24-lesson core path.
The Basic State Update
In a simplified discrete linear model, A carries information from the previous state, B writes the current input, C reads the state, and D can pass the current input directly to the output. In practical models these symbols usually represent learned or structured matrices.
st = A st−1 + B xt
yt = C st + D xt
A compact state carries selected information through a long sequence
input x₁
↓
state s1
produces y1
input x₂
↓
state s2
produces y2
input x₃
↓
state s3
produces y3
input x₄
↓
state s4
produces y4
A One-Dimensional Teaching Example
Choose A=0.9 and B=0.2 only to make the arithmetic visible. Let the previous state be 0.5 and the current data value be 1.
st=(0.9×0.5)+(0.2×1)=0.45+0.20=0.65
The first product retains part of the old state; the second writes current evidence; addition combines them. A real model learns or constrains these transformations during training.
From Classical to Selective SSMs
Structured SSMs parameterize the state update so long sequences can be processed efficiently. Selective variants make parts of the update depend on the current input, allowing the model to preserve or suppress information conditionally. These architectures need task-specific evidence: compare quality, latency, memory, tooling and long-context behavior with recurrent and attention baselines.