State Space Models for Language › The Continuous-Time State Space Model
Language AI HandbookAll chapters Consider a system driven by a scalar signal . At continuous time , the state is a vector of coordinates. A differential equation describes the change of that vector, and a readout produces a scalar output .
- describes the dynamics of the state in the absence of input.
- distributes the scalar input over the state coordinates.
- takes a weighted sum of the state.
- scales the direct path from input to output.
With a diagonal , each coordinate moves independently in response to the same scalar input. If a coordinate has rate , its value in the absence of input changes by a factor of after time . Rates closer to zero decay more slowly. The write and readout vectors determine how strongly each mode participates in the input and output. More general state matrices can also mix state coordinates. Many deep sequence models build a vector-valued layer by applying scalar-input state space computations along several channels and using learned projections to mix channels around them. This development starts from the continuous state equation used by Gu, Goel, and Ré, sections 2 and 3.4.
Why Linearity Matters
The state equation is linear jointly in and . If the initial state is zero, the output due to a sum of input signals is the sum of the outputs due to the individual signals. You can therefore study how the system responds to individual impulses and add those responses together. When the coefficients stay fixed, an impulse at a later time produces a shifted copy of the same response. Together, those two properties give the convolution representation.
A standard recurrent neural network can apply a nonlinearity inside its update from the previous state. That generally invalidates superposition. State space networks can retain a linear state operator and introduce nonlinear operations around it, such as a gate computed from the layer input. We will use that distinction to understand what Mamba can parallelize.
What "Linear Time Invariant" Means
A linear time-invariant (LTI) state space layer uses the same matrices at every position, and its zero-state response is linear in the input. The contribution from an impulse then depends on the lag since it arrived. For a fixed input coordinate and output coordinate, the layer applies that same lag-dependent rule to each signal value it sees.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!