TL;DR
RiccatiSSM is a new class of nonlinear state space models (SSMs) that achieves the "best of both worlds": the flexible, state-dependent dynamics of nonlinear models and the massive parallel efficiency of linear ones. By leveraging the unique algebraic properties of Riccati equations, the authors enable exact nonlinear sequence evaluation using a single associative parallel scan, bypassing the slow iterative methods required by previous nonlinear architectures.
What Problem Does This Paper Address?
Modern sequence modeling is a tug-of-war between expressivity and efficiency. Linear State Space Models (SSMs) like Mamba and S4 are incredibly fast because their state updates are affine (linear plus a constant). This property allows them to use "associative parallel scans," solving an entire sequence of length $T$ in $O(\log T)$ parallel time.
However, linear models have a limitation: their internal dynamics (like how fast they "forget" old information) don't depend on their current state. Nonlinear models, such as Liquid Time-constant (LTC) networks, fix this by making dynamics state-dependent, but they usually break the mathematical structure needed for parallel scans. To parallelize them, researchers previously had to use iterative methods (like Newton's method) that repeatedly linearize and re-scan the sequence, which is computationally expensive and can be unstable.
Methods
The authors introduce RiccatiSSM, which uses a specific type of nonlinear differential equation called a Riccati equation: $$\dot{x} = \epsilon(\alpha + \beta x + \gamma x^2)$$
The key "aha!" moment is that while this equation is nonlinear in the state $x$, its flow over time can be represented as a Möbius transformation (a fractional-linear map). Crucially, Möbius transformations are closed under composition and can be represented by $2 \times 2$ matrices.
As shown in Figure 1, the model performs a clever mathematical detour:
- Lift: It "lifts" the 1D nonlinear state into a 2D linear space.
- Scan: It performs a single associative parallel scan using $2 \times 2$ matrix multiplications to compose the updates across the entire sequence.
- Project: It projects the result back down to the nonlinear state space.
To ensure the model doesn't "blow up" (a common issue with Riccati equations where the denominator hits zero), the authors derived a stable parameterization. This constrains the coefficients ($\alpha, \beta, \gamma$) to ensure the state stays within a bounded interval and the dynamics remain contractive.
Datasets
The model was evaluated on a diverse set of benchmarks:
- UEA Time-Series Classification: Six multivariate datasets including Heartbeat, MotorImagery, and the very long-sequence EigenWorms (17,984 steps).
- PPG-DaLiA: A long-range regression task for heart rate estimation.
- Weather Dataset: A long-horizon forecasting task predicting 720 future time steps.
Key Insights and Ideas
- Nonlinearity without Iteration: The most significant insight is that we don't need to choose between "linear and fast" or "nonlinear and iterative." By restricting the nonlinearity to a specific algebraic family (Riccati/Möbius), we get exact parallelization.
- Liquid Dynamics: RiccatiSSM captures "liquid" behavior—where the local contraction rate and effective timescale change based on the current state—without the overhead of an ODE solver.
- Exact Discretization: Unlike many models that use approximate Euler steps, RiccatiSSM uses an exact matrix exponential solution for its discrete-time updates, reducing numerical integration errors.
Key Results
- Speedup: RiccatiSSM reduced end-to-end runtime by 22–33% compared to LrcSSM (a state-of-the-art iterative nonlinear SSM) while using the same architecture.
- Efficiency: As seen in Figure 2, the runtime advantage is particularly pronounced on long sequences like EigenWorms, where iterative methods struggle with convergence.
- Competitive Performance: It matched or exceeded the predictive accuracy of top-tier models like Mamba, S6, and LinOSS across classification, regression, and forecasting tasks. For example, on the PPG-DaLiA regression task, it achieved a Mean Squared Error of $7.15$, significantly better than the $10.89$ of LrcSSM.
Limitations and Future Work
- Functional Form: The model is strictly limited to a second-order polynomial nonlinearity. While powerful, it cannot represent arbitrary nonlinear functions.
-
Coefficient Independence: To maintain the parallel scan property, the coefficients ($\alpha, \beta, \gamma$) can depend on the input but not on the state. This prevents certain types of complex feedback loops.
-
Future Directions: The authors suggest exploring whether other algebraic groups (beyond Möbius maps) could support similar non-iterative parallelization for even more complex dynamics.
Summary updated