State Space Models for Language › S4 and Structured State Matrices
Language AI HandbookAll chapters The Structured State Space model (S4) makes long convolution kernels practical to compute from a recurrent state space representation. The revised paper reports 86.09% average accuracy for the updated S4 model across its Long Range Arena suite, including 96.35% on Path-X. Those are sequence benchmark results from the evaluated model and tasks. Gu, Goel, and Ré, Table 2 and Appendix D.2 Table 4.
- HiPPO initialization. S4 initializes the state dynamics from HiPPO matrices. At each time, HiPPO projects the signal history onto a finite span of polynomials. The measure for that time assigns weights to different parts of the history. The orthogonal projection minimizes the weighted squared approximation error within the span. The construction supplies an initialization for S4. HiPPO, section 2.2 and S4, sections 2.2 and 4.4.
- Normal plus low rank. S4 exploits a decomposition of the state matrix into a normal part and a low-rank correction . The columns of the unitary matrix provide a stable change of basis that makes the normal part diagonal. In that basis the full state matrix is diagonal plus low rank. The Woodbury identity reduces the inverse of a diagonal matrix with a low-rank correction to diagonal inverses and a small inner solve, when the relevant inverses exist. The resulting kernel evaluations reduce to structured Cauchy matrix products. Gu, Goel, and Ré, section 3.2 and Appendix C.3.
- Bilinear discretization. The original S4 paper computes its discrete transition and write matrices using the bilinear transform. This choice supports an efficient structured recurrent update. Gu, Goel, and Ré, section 2.3 and Appendix C.2.
In the bilinear formula, is the step size and and are the continuous-time matrices. The formulas require to be invertible. This holds for when every eigenvalue of has negative real part.
For a negative scalar rate and a positive step, the discrete pole is . Its magnitude is less than one because the magnitude of the numerator is strictly less than the denominator. The ZOH pole is also stable under these conditions. Both transitions are near , so they agree through the linear term in the step size. The worked example in this chapter uses the exact hold formulas for a diagonal system.
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!