Oscillatory State-Space Models

T. Konstantin Rusch, Daniela Rus

State-space models (SSMs) have recently emerged as highly effective architectures for long-sequence tasks, offering a compelling alternative to Transformers. They successfully combine the fast inference of Recurrent Neural Networks (RNNs) with the parallel training speeds of Transformers. However, traditional SSMs typically require complex, restrictive mathematical constraints to remain stable.

In the paper "Oscillatory State-Space Models," researchers introduce Linear Oscillatory State-Space models (LinOSS). By leveraging the physics of harmonic oscillators, LinOSS achieves stable, highly expressive sequence modeling with significantly simpler parameterizations, consistently outperforming state-of-the-art models like Mamba and LRU.

The Stability Bottleneck in State-Space Models

Because SSMs rely on linear recurrences, their hidden states are prone to exploding or vanishing gradients over long sequences. To prevent this, previous SSMs force their state matrices into highly specific, restrictive mathematical structures (such as HiPPO matrices). These strict structural requirements act as a straightjacket, heavily constraining the model's latent feature space and limiting its expressive power.

The authors set out to build an SSM that is inherently stable over long timeframes but flexible enough to learn complex patterns without these restrictive parameterizations.

Methods: Forced Harmonic Oscillators

Inspired by the oscillatory firing patterns of biological neurons, the authors base their model on the physics of forced harmonic oscillators—conceptually similar to a network of pendulums or springs being driven by input data.

Architecture of the LinOSS model, featuring alternating linear oscillatory layers and nonlinear layers.

To translate this continuous physical concept into a fast, computable neural network layer, the authors employ several key techniques:

  1. Discretization: They convert the continuous differential equations into discrete steps using two distinct numerical methods:
  2. LinOSS-IM (Implicit): Introduces a "dissipative" effect. In machine learning terms, this acts as a forgetting mechanism, which is highly effective for standard sequence modeling where older noise needs to be discarded.
  3. LinOSS-IMEX (Implicit-Explicit): A "symplectic" (volume-preserving) integrator. It perfectly conserves the energy and time-reversibility of the system, making it ideal for modeling physical dynamics.
  4. Parallel Scans: Instead of processing sequences step-by-step, the model uses associative parallel scans. This allows LinOSS to process sequences in $O(\log N)$ time, matching the speed of modern SSMs.
  5. Simple Parameterization: Unlike older SSMs, LinOSS only requires its diagonal state matrix to be non-negative to guarantee stability. This is achieved simply by applying a ReLU activation to the weights.

Key Insights and Theoretical Guarantees

  • Simplicity Breeds Stability: Grounding the model in the physics of harmonic oscillators guarantees mathematical stability as long as the diagonal weights are non-negative. This frees the optimizer to explore a much wider, more expressive parameter space.
  • Universal Approximation: The authors rigorously prove that LinOSS is a universal approximator. It can approximate any continuous and causal operator mapping between time-series data to any desired accuracy.

Empirical Performance

The authors evaluated LinOSS on a variety of challenging benchmarks, ranging from mid-range classification to extreme long-range regression.

UEA Multivariate Time Series Classification

LinOSS was tested on the six datasets with the longest sequences (400 to 18,000 steps) from the UEA archive. LinOSS-IM achieved an average accuracy of 67.8%, beating the next best model (Log-NCDE at 64.3%) and significantly outperforming Mamba (58.6%).

Performance comparison on the UEA Multivariate Time Series Classification Archive, demonstrating LinOSS's superior average accuracy.

Extreme Long-Range Interactions (PPG-DaLiA)

To test extreme sequence lengths, the authors used the PPG-DaLiA dataset—a real-world regression task predicting heart rate from wrist-worn device sensors with sequences up to ~50,000 steps. LinOSS-IM scored a Mean Squared Error (MSE) of $6.4 \times 10^{-2}$, nearly doubling the performance of Mamba ($10.65 \times 10^{-2}$) and LRU ($12.17 \times 10^{-2}$).

Long-Horizon Forecasting

On a Weather dataset requiring the model to predict 720 hours into the future based on the past 720 hours, LinOSS-IMEX achieved a Mean Absolute Error of 0.508, outperforming S4 (0.578) and various Transformer baselines.

Crucially, LinOSS achieves these accuracy bumps without sacrificing speed. Its GPU memory footprint and runtime are highly competitive, ranking as the fastest or second-fastest model on several datasets.

Limitations and Future Work

Like all recurrent and state-space models, LinOSS struggles with highly chaotic dynamical systems due to the fundamental inevitability of exploding gradients in chaotic regimes.

Looking forward, the current models use first-order discretization schemes. The authors suggest that exploring higher-order time integration schemes (like the second-order velocity Verlet method) could yield even more accurate approximations of the underlying physics, though this would come at the cost of some computational speed.

Summary updated

BibTeX
@inproceedings{rusch2025oscillatory,
  author = {T. Konstantin Rusch and Daniela Rus},
  title = {{Oscillatory State-Space Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GRMfXcAAFh},
}
Figure