Manuscript Offprint

arXiv:2609.35441

Riccati State Space Models: Non-iterative Parallelization for Nonlinear Sequence Modeling

Mónika Farsang, Ramin Hasani, Daniela Rus, Radu Grosu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

State space models (SSMs) achieve efficient sequence processing because their affine state updates are closed under composition and can therefore be evaluated with an associative parallel scan. Nonlinear recurrent models can provide richer, state-dependent dynamics, but generally lose this compositional structure: parallel evaluation then requires iterative methods that repeatedly linearize and scan the recurrence. We ask, what state-dependent nonlinear dynamics can be designed to remain exactly composable? We answer by introducing RiccatiSSM, a nonlinear SSM, in which each state dimension follows an input-conditioned Riccati differential equation. Its quadratic state dependence makes the local Jacobian explicitly state-dependent, while its exact per-step flow under piecewise-constant inputs is a Möbius transformation. Since Möbius maps are closed under composition and compose through 2×22 \times 2 matrix multiplication, the complete nonlinear state trajectory can be evaluated exactly with a single associative parallel scan, without iterative linearization. We further derive a constrained parameterization that ensures bounded, contractive dynamics, and avoids poles in the fractional-linear state update. Across long-sequence classification, regression, and forecasting tasks, RiccatiSSM achieves competitive predictive performance while reducing runtime by 22–33% compared to the nonlinear LrcSSM under matched architectures. These results demonstrate that state-dependent nonlinear dynamics can retain exact composability and be evaluated efficiently within a single parallel scan.

1 INTRODUCTION

State space models (SSMs) have emerged as efficient sequence models for long-context tasks, combining recurrent state updates with highly parallel training (Gu et al., 2022; Smith et al., 2023; Gu and Dao, 2024). A key source of this efficiency is the structure of their recurrence: although the transition parameters may depend on the input, the state update remains affine in the previous state. Affine maps are closed under composition, allowing an entire sequence to be evaluated using an associative parallel scan with linear work and logarithmic parallel depth.

This computational structure, however, restricts the dynamics that can be represented within the recurrent state update. In particular, the local state Jacobian of an affine recurrence does not depend on the current state. Nonlinear recurrent models can instead make the dynamics themselves state-dependent, allowing their local contraction rates and effective timescales to change along a trajectory. Liquid time-constant neural networks (LTC) provide a prominent example of this behavior by placing the current state inside the continuous-time neuron dynamics (Hasani et al., 2021). Such state dependence increases the flexibility of the dynamics, but in general destroys the compositional structure of the model, that enables a single parallel scan.

Recent methods recover parallelism for nonlinear recurrences by treating sequence evaluation as a nonlinear trajectory-solving problem. DEER (Lim et al., 2024), for example, applies Newton iterations on the state trajectory, where each iteration linearizes the recurrence around the current

1^{1}TU Wien

2^{2}MIT CSAIL

3^{3}Liquid AI

Corr. author: monika.farsang@tuwien.ac.at estimate and solves the resulting affine recurrence in parallel. LrcSSM (Farsang and Grosu, 2025) applies this approach to biologically plausible liquid-resistance, liquid-capacitance recurrent dynamics, while designing the neuron dynamics such that they have a diagonal Jacobian, substantially reducing the cost of each iteration. Nevertheless, evaluating the nonlinear recurrence still requires repeated parallel scans, with the number of iterations determined by convergence.

In this work, we take a different approach: rather than starting from a general nonlinear recurrence and recovering parallelism through iterative linearization, we ask whether the nonlinear dynamics themselves can be chosen to remain exactly composable. This requires a nonlinear family whose time-step maps are closed under composition with a fixed-size representation. We show that input-conditioned Riccati dynamics provide such a construction. Their exact per-step flow maps under piecewise-constant inputs are fractional-linear, or Möbius transformations, which compose through multiplication of 2×22 \times 2 matrices. Consequently, the complete nonlinear state trajectory can be evaluated within a single associative parallel scan, without Newton or fixed-point iterations.

This leads us to RiccatiSSM, a diagonal nonlinear state space model, in which each state dimension follows an input-conditioned Riccati differential equation. The quadratic state term makes the local Jacobian explicitly state-dependent, preserving the central dynamical property motivating liquid recurrent models. Moreover, the Riccati structure makes the exact flow compositionally closed. Since unrestricted Riccati equations can exhibit finite-time divergence, we further derive a constrained parameterization that provides stable, bounded dynamics while preserving the exact Möbius flow. RiccatiSSM therefore occupies a middle ground between affine SSMs, which admit direct parallel scans but lack state-dependent local dynamics, and general nonlinear recurrent models, which provide such dynamics but require iterative methods for parallel evaluation.

Our main contributions in this paper are as follows:

• We introduce RiccatiSSM, a nonlinear state-dependent sequence model whose discrete-time flow maps are Möbius transformations. Their closure under composition enables exact, non-iterative sequence evaluation with a single associative scan.

• We derive a constrained Riccati parameterization that makes these Riccati dynamics particularly suitable for sequence modeling by ensuring a bounded invariant state interval, contractive transitions, and a pole-free projective readout.

• We evaluate RiccatiSSM on long-sequence classification, regression, and forecasting tasks, where it achieves competitive predictive performance while reducing runtime by 22 – 33% relative to iterative nonlinear LrcSSM under matched architectures.

References (46)

  • Neural Machine Translation by Jointly Learning to Align and Translate
  • Parallelization of non-linear state-space models: Scaling up liquid-resistance liquid-capacitance networks for efficient sequence modeling
  • Liquid resistance liquid capacitance networks
  • Towards scalable and stable parallelization of nonlinear rnns
  • Predictability enables parallelization of nonlinear state space models
  • A unifying framework for parallelizing sequential models with linear dynamical systems
  • Mamba: Linear-time sequence modeling with selective state spaces
  • Efficiently Modeling Long Sequences with Structured State Spaces
  • Expanding expressivity in transformer models with m\” obiusattention (opens arXiv in a new tab)
  • Liquid time-constant networks (opens the publisher in a new tab)
  • Closed-form continuous-time neural networks
  • Neural controlled differential equations for irregular time series
  • Reformer: The Efficient Transformer
  • A parallel algorithm for the efficient solution of a general class of recurrence equations
  • Modeling long-and short-term temporal patterns with deep neural networks
  • Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting
  • Parallelizing non-linear sequential models over the sequence length
  • Rough transformers: Lightweight and continuous time series modelling through signature patching
  • Neural rough differential equations for long time series
  • Fixed-point RNNs: Interpolating from diagonal to dense
  • Discretax: A lightweight collection of state space models in jax, 2025
  • Resurrecting recurrent neural networks for long sequences
  • Deep ppg: Large-scale heart rate estimation with convolutional neural networks
  • Oscillatory state-space models
  • Kalman linear attention: Parallel bayesian filtering for efficient language modelling and state tracking (opens arXiv in a new tab)
  • Simplified state space layers for sequence modeling
  • Log neural controlled differential equations: The lie brackets make a difference
  • Informer: Beyond efficient transformer for long sequence time-series forecasting
  • We first show the parametrization, then that a Riccati equation is the projective image of a two-dimensional linear system
  • At each time step, the coefficient network produces four unconstrained real-valued outputs
  • Hence, $[-B, B]$ is forward-invariant: if $x_0 \in [-B, B]$, then $x_t \in [-B, B]$ for all subsequent times
  • Under the zero-order hold used in Equation 12, $\varepsilon_t$ and $s_t$ are constant within each step, and the exact one-step flow therefore satisfies
  • Consider the scalar Riccati equation
  • More generally, adding a scalar multiple of the identity to $L$ only introduces a common multiplicative factor in the lifted coordinates and therefore leaves the ratio $x = p/q$ unchanged
  • The lifted state is therefore updated by
  • Thus the constrained RiccatiSSM always uses the real hyperbolic form in Equation 33
  • Equation 10 shows that in the lifted coordinates $(p, q)$ each channel evolves as a two-dimensional linear time-varying system with input-only coefficients, followed by the projective state $x = p/q$
  • With $u$ fixed, $f_i(\cdot; u)$ is a scalar function of the state $x$
  • Thus, the decomposition into a speed factor and the remaining coefficients is a parameterization choice
  • Truncating the dynamics at second order is therefore not the limiting approximation in this model: RiccatiSSM can track the continuous LRC equation more closely than LrcSSM's own update does
  • (Left) Distribution of normalized stability coefficient $\alpha/\alpha_{max}$: the free variant saturates at $\pm1$, while the LRC-tied variant concentrates near zero due to double-squashing through the circuit nonlinearities
  • The default RiccatiSSM instead learns independent projections to the coefficients before applying the stability constraints, allowing it to explore a broader region of the admissible Riccati parameter space
  • For the Weather dataset, we additionally build on the code from Nazari et al
  • For each dataset, we selected the configuration with the highest mean validation accuracy across five data splits generated using the same random seeds, ensuring direct comparability with the reported baselines
  • On both datasets, the selected RiccatiSSM configuration uses six layers, whereas the selected LrcSSM configuration uses only two
  • Values for the models are taken from Rusch and Rus (2025) and Farsang and Grosu