[Paper Review] Simplified State Space Layers for Sequence Modeling
This paper introduces the S5 layer, a multi-input multi-output state-space layer that matches S4 in efficiency but uses a fully recurrent time-domain approach, achieving state-of-the-art results on long-range sequence tasks.
Models using structured state space sequence (S4) layers have achieved state-of-the-art performance on long-range sequence modeling tasks. An S4 layer combines linear state space models (SSMs), the HiPPO framework, and deep learning to achieve high performance. We build on the design of the S4 layer and introduce a new state space layer, the S5 layer. Whereas an S4 layer uses many independent single-input, single-output SSMs, the S5 layer uses one multi-input, multi-output SSM. We establish a connection between S5 and S4, and use this to develop the initialization and parameterization used by the S5 model. The result is a state space layer that can leverage efficient and widely implemented parallel scans, allowing S5 to match the computational efficiency of S4, while also achieving state-of-the-art performance on several long-range sequence modeling tasks. S5 averages 87.4% on the long range arena benchmark, and 98.5% on the most difficult Path-X task.
Motivation & Objective
- Motivate and enable efficient long-range sequence modeling with a simpler, recurrent time-domain layer.
- Replace the S4 bank of SISO SSMs with a single MIMO SSM to improve efficiency and scalability.
- Leverage diagonalized HiPPO-inspired initializations to capture long-range dependencies.
- Demonstrate competitive or superior performance on standard long-range benchmarks while supporting irregular sampling and variable observation intervals.
Proposed method
- Replace the S4 bank of independent SISO SSMs with one diagonalized MIMO SSM of latent size P.
- Diagonalize the state matrix A to enable efficient parallel scans in the time domain.
- Initialize with diagonalized HiPPO-inspired matrices (HiPPO-N) and relate S5 dynamics to S4 under guiding assumptions.
- Discretize continuous-time SSMs using zero-order hold with learnable timescales Δ.
- Use a nonlinear activation and a mixing step to produce layer outputs from SSM preactivations.
- Show that with Latent size P = O(H), S5 matches S4 in runtime and memory complexity.
Experimental results
Research questions
- RQ1Can a single MIMO SSM with diagonalized dynamics achieve the same functional capacity as a bank of SISO SSMs in S4?
- RQ2Does HiPPO-inspired initialization (diagonalized HiPPO-N) provide effective starting points for S5 in the MIMO setting?
- RQ3Can the S5 layer maintain linear complexity in sequence length while handling irregular sampling and time-varying parameters?
- RQ4How does S5 perform on long-range sequence benchmarks relative to S4 and other baselines?
- RQ5What are the practical implications of relaxing core assumptions (e.g., identical A, identical Δ, P ≈ H) for S5 design?
Key findings
- S5 achieves state-of-the-art performance on long-range sequence tasks with linear complexity in sequence length, matching S4 in efficiency.
- On the Long Range Arena benchmark, S5 attains an average score of 87.4%, and 98.5% on the challenging Path-X task.
- S5 outperforms several baselines in speech classification and matches or exceeds S4 variants on multiple tasks.
- The diagonalized HiPPO-N initialization provides competitive performance relative to HiPPO-LegS initializations used in S4, enabling stable diagonalizable dynamics.
- S5 supports irregular sampling and time-varying SSMs through time-domain parallel scans, unlike the convolution-based S4 kernel.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.