---
title: Oscillatory State-Space Models (LinOSS)
url: https://www.emergentmind.com/topics/oscillatory-state-space-models-linoss
type: topic
---

# Oscillatory State-Space Models (LinOSS)

Oscillatory State-Space Models (LinOSS) constitute a class of state-space models for sequence learning, parameterized to capture long-range temporal interactions using principles drawn from the dynamics of forced harmonic oscillators. The LinOSS framework formalizes the transition from classical oscillation-based statistical modeling to computationally efficient, stable, and universal models suitable for large-scale time series classification, regression, and forecasting. Extensions, such as Damped LinOSS (D-LinOSS), address limitations of frequency–damping coupling and further broaden the model expressivity while preserving stability and efficient inference.

## 1. Mathematical Foundations and Model Structure

Oscillatory State-Space Models are based on the state-space formulation of forced (and optionally damped) harmonic oscillators. The canonical continuous-time model for $m$ uncoupled oscillatory channels is defined by the second-order ordinary differential equation:
$$
\ddot{x}(t) + D\,\dot{x}(t) + \Omega^2 x(t) = B\,u(t)
$$
where $x(t)\in\mathbb{R}^m$ is the latent position, $D=\operatorname{diag}(d_1,\dots,d_m)\geq 0$ is the (optional) diagonal damping, $\Omega=\operatorname{diag}(\omega_1,\dots,\omega_m)$ with $\omega_k>0$ are oscillator frequencies, $B\in\mathbb{R}^{m\times p}$ is the external input gain, and $u(t)\in\mathbb{R}^p$ the input.

By augmenting with the velocity $v(t)=\dot{x}(t)$ and stacking as $z(t) = [x(t); v(t)] \in \mathbb{R}^{2m}$, the model is recast as a linear time-invariant (LTI) first-order system:
$$
\dot{z}(t) = S\,z(t) + B_1\,u(t), \quad y(t) = C\,z(t)
$$
with $S = \begin{bmatrix} 0 & I_m \\ -\Omega^2 & -D \end{bmatrix}$ and $B_1 = [0; B]$. The read-out matrix $C$ selects which state is observed, such as the position or velocity.

This structure encompasses a spectrum from completely oscillatory (no damping, $D=0$) to damped, potentially multi-timescale, evolutions. For statistical time series, discrete-time analogs are derived by stable numerical discretizations of the ODE.

## 2. Discretization Techniques and Stability

LinOSS introduces two primary discretization schemes:

- **Fully Implicit (LinOSS-IM):** Employing backward-Euler on both $x$ and $v$, the dynamics evolve as
  $$
  (I - \Delta S) z_n = z_{n-1} + \Delta B_1 u_n
  $$
  leading to the recurrent update $z_n = A_{\text{IM}} z_{n-1} + B_{\text{IM}} u_n$, with $A_{\text{IM}} = (I - \Delta S)^{-1}$.

- **Implicit-Explicit Symplectic (LinOSS-IMEX):** $v$ is advanced implicitly, $x$ explicitly,
  $$
  v_n = v_{n-1} + \Delta(-\Omega^2 x_{n-1} + B u_n), \quad x_n = x_{n-1} + \Delta v_n
  $$
  which yields $z_n = A_{\text{IMEX}}z_{n-1} + B_{\text{IMEX}}u_n$.

Parameterization constrains $\Omega^2$ to be diagonal and nonnegative. The crucial theoretical guarantee is that these discretizations produce stable dynamics: for each $2\times 2$ block associated with oscillator $k$, all eigenvalues of $A_d$ reside on or within the unit circle for any $\omega_k^2\geq 0$ (and $\Delta>0$). In the undamped (symplectic) LinOSS-IMEX case, $|{\lambda}|=1$—the model is exactly energy-preserving and time-reversible [2410.03943].

In practical implementations, this structure enables efficient $O(m)$ per-step computation and lends itself to highly parallel associative scan algorithms for inference [2410.03943, 2505.12171].

## 3. Universality, Time-Reversibility, and Expressivity

Oscillatory State-Space Models are rigorously shown to be *universal* in the sense that combinations of LinOSS blocks (ODE + nonlinearity + output) can uniformly approximate any continuous and causal operator $\Phi : C_0([0,T];\mathbb{R}^p) \to C_0([0,T];\mathbb{R}^q)$ on compact sets [2410.03943, Theorem 3.4]. The technical mechanism follows from representing operator kernels as finite-horizon sine-transform kernels and mounting these in static networks.

LinOSS-IMEX discretizations are symplectic integrators for associated Hamiltonian systems, perfectly preserving the symmetry of time-reversibility. Mapping forward $n$ steps and backward $n$ returns the initial state up to machine precision, an algebraic property directly shown by the involutive structure $A_{\text{IMEX}}^{-1} = J A_{\text{IMEX}}^\top J^{-1}$ for the canonical symplectic $J$ [2410.03943].

However, in pure LinOSS models, forgetting and oscillatory frequencies are rigidly coupled: the eigenvalues of the transition matrix sweep a one-dimensional curve of modulus $\leq 1$ in the complex plane (unit circle for IMEX, inside for IM). This restricts the ability to represent multi-timescale decay or pure exponential modes [2505.12171].

## 4. Inference Algorithms and Computation

Efficient inference in LinOSS-based architectures leverages the associativity of the time-update operators. Each time step's local map is $(A_d, B_d u_n)$, and the overall trajectory can be computed by repeated application using the operation:
$$
(A,X)\circ(B,Y) = (AB, A Y + X)
$$
A parallel-prefix ("scan") algorithm computes all partial products in $O(\log N)$ parallel depth and $O(N m^2)$ total work. The canonical pseudocode executes a parallel scan and then extracts latent state vectors for each $n$ [2410.03943].

Memory is $O(N m)$ for backpropagation, but IMEX reversibility can enable checkpointing strategies for reduced memory in differentiable programming frameworks. Both IM and IMEX models leverage this to achieve scalable sequence learning.

## 5. Extensions: Damped LinOSS and Expressivity Improvements

Damped LinOSS (D-LinOSS) generalizes the LinOSS framework by introducing learnable damping $G$, decoupling energy dissipation ("forgetting" rate) from oscillation frequency:
$$
\ddot{x}(t) + 2\zeta \omega_0 \dot{x}(t) + \omega_0^2 x(t) = B u(t)
$$
Each mode now has its own adjustable damping ratio $\zeta_i$, with discrete updates via an IMEX scheme. The spectral distribution of the transition matrix covers the entire closed unit disk: for any $|z| \leq 1$, there exist $G_i, A_i$ mapping to $z$ (proved via a closed-form mapping) [2505.12171]. This remedy allows D-LinOSS layers to match arbitrary stability and frequency requirements, overcoming LinOSS's single-timescale limitation.

Furthermore, D-LinOSS eliminates the choice of discretization scheme as a hyperparameter—fixing to IMEX—and reduces the hyperparameter space by 50%, achieving improved empirical results across synthetic and real-world long-sequence tasks with the same $O(m), O(Nm)$ complexity [2505.12171].

## 6. Statistical and System Identification Perspectives

Oscillatory state-space models have foundations in both statistical modeling of oscillatory time series and nonlinear system identification. A general statistical oscillatory SSM represents observations as $y_t = m(\phi_t) + \varepsilon_t$, driven by an unobserved stochastic “phase” $\phi_t$ characterized by a random walk or autoregressive dynamics. Inference in nonparametric oscillatory SSMs requires particle-based EM algorithms, with identifiability guaranteed up to phase shift and rescaling if the base frequency is irrational [1412.4912].

The *linearized* (LinOSS) case arises by fixing the pattern $m(\phi)$ to be a parametric function of known form (e.g., a sinusoid or low-order Fourier expansion), at which point the system reduces to a linear Gaussian state-space model. Standard Kalman-based filtering, smoothing, and EM algorithms are optimal for this subcase [1412.4912]. Nonparametric identification yields, via local linearization, LinOSS surrogates tailored to specific dynamical regimes [1209.4416].

## 7. Empirical Performance, Applications, and Implementation

LinOSS models, and D-LinOSS in particular, achieve state-of-the-art results on challenging long-range sequence tasks:

| Task & Metric                       | LinOSS-IM  | LinOSS-IMEX | D-LinOSS    | Best Baselines   |
|-------------------------------------|------------|-------------|-------------|------------------|
| UEA-MTSCA (accuracy, avg 6 datasets) | 67.8%      | 65.0%       | 68.0%       | LRU/S6: 64.4%    |
| PPG-DaLiA (heart-rate MSE $\times 10^{-2}$) | 6.4        | 7.5         | 6.16        | Mamba: 10.65, LRU: 15.64 |
| Weather forecasting MAE             | 0.528      | 0.508       | 0.486       | S4: 0.578, Informer: 0.731 |

On extreme-length sequences (up to 50k timesteps), LinOSS-IM attains nearly $2 \times$ the accuracy of Mamba; D-LinOSS further narrows the gap to optimality. In all empirical settings, these models demonstrate high stability, computational scalability, and competitive or superior performance compared to SSM, RNN, and Transformer baselines without requiring complex architectural choices [2410.03943, 2505.12171].

Practical applications span time-series classification and regression, long-horizon forecasting (weather, biomedical signals), and as stable latent-dynamics modules in generative models or sequence backbones in language, genomics, and audio.

---

These results collectively position LinOSS and D-LinOSS as foundational architectures for oscillatory sequence modeling, with rigorous guarantees of stability and expressivity, efficient scalable inference, and strong empirical performance. Theoretical connections to both classical oscillatory statistical models and nonlinear dynamical system identification underline their versatility and extensibility [2410.03943, 2505.12171, 1412.4912, 1209.4416].

Source: https://www.emergentmind.com/topics/oscillatory-state-space-models-linoss