DS3M: Deep structured state space models for nonlinear system identification on modern hardware

Marco Roschkowski, Hannes GernandtarXiv 2026 · arXiv

TL;DR

DS3M (Deep Structured State Space Models) dramatically accelerates nonlinear system identification by fusing neural network evaluations with numerical integration into custom GPU kernels. By reducing hardware overhead, it slashes training times from hundreds of hours to just a few, while matching or exceeding state-of-the-art accuracy on standard benchmarks.

What Problem Does This Paper Address?

System identification is the art of building mathematical models of dynamical systems (like robots, circuits, or chemical plants) using only measured input and output data. While neural state-space models are highly flexible, they are notoriously slow to train in continuous time.

The bottleneck isn't just the math—it's the hardware. Modern GPUs are designed for massive parallelism (doing many things at once), but simulating a dynamical system is inherently sequential: you need the state at time $t$ to calculate the state at $t+1$. In standard deep learning frameworks like PyTorch, every step of a numerical integrator triggers a new "kernel launch" on the GPU. For a long simulation, these thousands of tiny launches create massive overhead, leaving the GPU mostly idle while waiting for the next instruction.

Figure 1: A comparison of relevant training parameters for the standard machine learning task of training ResNet50 He et al. (2016) on Imagenet Russakovsky et al. (2015) and SUBNET Beintema et al. (2023b) on the Wiener-Hammerstein benchmark from Schoukens et al. (2009, 2026).

Methods

The authors introduce DS3M, which tackles this efficiency gap through two main innovations:

  1. Architectural Structuring: Instead of one giant, slow neural network, DS3M uses a series of blocks. Each block contains multiple smaller nonlinear dynamical components (heads) running in parallel. This "deep structured" approach allows the model to be expressive while keeping individual components small enough to fit into fast GPU memory (SRAM).
  2. Kernel Fusion with Triton: The researchers wrote custom GPU kernels using the Triton programming language. These kernels "fuse" the entire simulation loop—including the neural network passes and the numerical integration steps (like Runge-Kutta)—into a single execution. This keeps the model weights in the GPU's registers throughout the entire rollout, nearly eliminating the memory transfer and launch overhead that plagues standard implementations.

The pipeline also includes a subspace encoder that estimates the initial state of the system from a short history of measurements, ensuring the model starts its simulation from a realistic point.

The DS3M architecture: (A) shows the overall pipeline with series blocks, and (B) details the parallel "heads" within a single block.

Datasets

The model was evaluated on several classic nonlinear system identification benchmarks:

  • Silverbox: An electronic circuit mimicking a mechanical oscillator with a cubic nonlinearity.
  • EMPS: An electro-mechanical positioning system.
  • Wiener-Hammerstein (WH) & Parallel WH: Standard benchmarks consisting of linear blocks and static nonlinearities.

Key Insights and Ideas

  • Hardware-Aware Design: The most significant "aha moment" is that for small-to-medium dynamical models, the software-hardware interface is a bigger bottleneck than the complexity of the equations. By designing the model to fit within the constraints of GPU registers, they unlocked massive speedups.
  • Parallelism in Series: By combining parallel "heads" within blocks and then stacking those blocks in series, DS3M mimics the multi-head attention structure of Transformers but applies it to the temporal evolution of physical systems.
  • Physical Consistency: The authors also proposed a port-Hamiltonian variant of DS3M. This version constrains the learned equations to obey the laws of energy dissipation, making the resulting models more robust and physically plausible.

Key Results

The performance gains are striking, particularly regarding training efficiency:

  • Raw Speed: The custom Triton kernels provided up to a 150x speedup over standard PyTorch "eager" execution on a CUDA GPU.
  • Wiener-Hammerstein: DS3M achieved a test error of 0.24 mV in just 1.5 hours. For comparison, the original SUBNET method required over 200 hours to reach the same accuracy.
  • EMPS: DS3M reached an RMSE of 1.8 mm, significantly outperforming previous state-of-the-art methods like dynoNet (2.6 mm).
Table 1: Runtime comparison of PyTorch baselines and the fused Triton kernel of a single CT-SUBNET forward with n = 6, m = 3, h = 32, batch size 128, σ = SiLU and RK4 integrator. Timings include forward and backward passes. Here ’compliled’ means that the torch.compile functionality is used.

Limitations and Future Work

While DS3M is a leap forward in efficiency, it has some constraints:

  • Model Scaling: Because the speedup relies on keeping weights in GPU registers, there is a hard limit on how large the individual neural networks can be. Identifying extremely large, complex systems might require new kernel designs that allow for communication between different program instances.
  • Architecture Priors: The current implementation requires the neural network architecture to be known in advance to compile the Triton kernel, which reduces flexibility for "on-the-fly" architecture searches.
  • Generalization: On the Silverbox benchmark, the model still struggles with certain test trajectories that differ significantly from the training data—a common hurdle for all encoder-based state-space models.

Summary updated

Abstract

Neural state-space identification learns dynamical models from measured inputs and outputs. SUBNET combines this task with an encoder that estimates initial states from short measurement histories. Its continuous-time version requires many successive neural-network evaluations during numerical integration, resulting in slow training speed which is a major limitation for practical use cases. We propose deep structured state space models (DS3M), which combine compact nonlinear dynamical components in parallel and in series. Custom GPU kernels implemented with Triton reduce the launch and memory overhead of their sequential evaluation. We explain this construction, describe a port-Hamiltonian variant, and present various benchmark comparisons of accuracy and training time.
BibTeX
@misc{roschkowski2026ds,
  author = {Marco Roschkowski and Hannes Gernandt},
  title = {{DS3M: Deep structured state space models for nonlinear system identification on modern hardware}},
  year = {2026},
  eprint = {2611.25274},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25274},
}
Figure