Parallel-in-Time Training of Recurrent Neural Networks for Dynamical Systems Reconstruction

Florian Hess, Florian Götz, Daniel Durstewitz

TL;DR

Training recurrent models on long, chaotic time series has traditionally been bottlenecked by the sequential nature of backpropagation. This paper introduces GTF-DEER, a novel framework that combines Generalized Teacher Forcing with parallel fixed-point iterations to enable stable, parallel-in-time training of nonlinear RNNs. By breaking the linear time barrier, it achieves up to an 870× training speedup and demonstrates that training on ultra-long sequences drastically improves our ability to reconstruct complex dynamical systems.

What Problem Does This Paper Address?

Dynamical Systems Reconstruction (DSR) is the art of data-driven discovery—learning the mathematical rules governing complex, chaotic systems (like climate patterns, fluid flows, or brain activity) purely from observed data. To do this successfully, a neural network must capture not just short-term trajectories, but long-term geometric and statistical properties, such as attractors.

Recurrent Neural Networks (RNNs) are ideal for this task, but training them using classical Backpropagation Through Time (BPTT) scales linearly with sequence length, $\mathcal{O}(T)$. This makes training on ultra-long sequences computationally impossible.

Recently, modern State Space Models (SSMs) like Mamba solved this scaling bottleneck by using linear recurrences that parallelize across time ($\mathcal{O}(\log T)$). However, the authors show that SSMs struggle with DSR because their linear training structure limits their capacity to capture true nonlinear chaos, and they suffer from exposure bias at test time. Conversely, existing parallel frameworks for nonlinear models (like DEER) completely break down on chaotic data because small errors explode exponentially due to the system's positive Lyapunov exponents.

Methods

The authors propose GTF-DEER, an algorithm that combines the long-sequence scalability of parallel-in-time methods with the chaos-taming properties of control theory.

  1. The DEER Framework: Instead of calculating the RNN's forward pass step-by-step, DEER reformulates the entire sequence generation as a massive root-finding problem. It solves for all time steps simultaneously using Newton's method and parallel associative scans on the GPU.
  2. Generalized Teacher Forcing (GTF): To stop DEER's Newton updates from blowing up on chaotic data, the authors integrate GTF. GTF mathematically alters the training pass by continuously blending the model's internal latent states with a "teacher" signal from the ground-truth data.

By combining the two, GTF-DEER forces an otherwise wild, chaotic system to behave as a stable, contracting system during training. This guarantees that the parallel Newton iterations converge quickly and reliably.

GTF-DEER scaling performance and convergence behavior under different forcing strengths ($\alpha$).

Datasets

The framework was validated on three distinct dynamical systems:

  • Lorenz-63: The classic 3-dimensional chaotic attractor, tested in both fully observed and highly challenging partially observed (only one variable visible) configurations.
  • Forced Lorenz-96: A 6-dimensional chaotic system augmented with a slow, sinusoidal forcing term to explicitly introduce a massive time scale (15,000 steps).
  • Bursting Neuron Model: A 3-dimensional biophysical Hodgkin-Huxley-type model exhibiting long inter-burst intervals ($>10^4$ steps), evaluated under partial observation.

Key Insights and Ideas

  • The SSM Bottleneck in DSR: Linear SSMs shift the burden of learning nonlinearities entirely to their readout layers during training. The authors reveal that during autoregressive generation at test time, this architecture imposes a strict low-rank constraint. This constraint fundamentally blocks the model from inferring unobserved hidden variables in the data.
  • Anchoring Chaos for Parallelism: Parallel-in-time algorithms usually fail on chaotic systems because the Jacobians diverge. GTF acts as a mathematical anchor, pulling the system into a stable regime where parallel updates can actually succeed.
  • Context Length is a Lever: For systems driven by slow underlying forces (like the forced Lorenz-96), training on short sequence windows completely misses the macro-dynamics. Ultra-long sequence training ($T > 10^4$) is mathematically necessary to capture long-term statistics—a feat only made practical by parallel-in-time methods.

Key Results

  • Sublinear Scaling & 870× Speedups: GTF-DEER scales sublinearly with sequence length on GPUs. For a sequence length of $T = 32,768$, it achieved up to an 870× speedup over sequential training. A training process that would take 34 hours sequentially took just 10 minutes.
  • State-of-the-Art Reconstruction: GTF-DEER significantly outperformed modern linear SSMs and selective models like Mamba-2, accurately capturing long-term attractor geometries and state-space distributions ($D_{stsp}$).
  • The Necessity of Full Jacobians: The authors experimented with "quasi-DEER," which uses a diagonal Jacobian approximation to save compute. However, they found that dropping the off-diagonal terms destroys vital temporal mixing information, causing training to fail on partially observed chaotic systems.
Figure 2: Training dynamics and reconstruction quality of a shPLRNN (M = 5, L = 50) on the Lorenz-63 system under fully observed (FO, N = 3) and partially observed (PO, N = 1) conditions. A: Training loss curves. B: Newton iterations per training step. C: State-space divergence Dstsp (lower is better); red crosses mark runs where trajectory divergence during generation produced NaNs. D: Wall-clock runtime per training step. All reported values are median ± MAD across 20 runs.

Limitations and Future Work

  • Cubic Latent Scaling: Because GTF-DEER relies on full Jacobians to maintain temporal mixing information, it requires $\mathcal{O}(M^3 T)$ work per Newton iteration, where $M$ is the latent dimension. This places a practical ceiling on the hidden size of the RNN.
  • Theoretical Bounds: The strict mathematical proof for guaranteed convergence (Proposition 1) currently assumes that the latent dimension is less than or equal to the observed dimension ($M \le N$), even though it works well empirically when $M > N$.
  • Future Directions: The authors highlight the need for smarter Jacobian approximations that can bypass the cubic complexity bottleneck without sacrificing the temporal cross-talk required to reconstruct partially observed systems.

Summary updated

Abstract

Reconstructing nonlinear dynamical systems (DS) from data (DSR) is a fundamental challenge in science and engineering, but it inherently relies on sequential models. Recent breakthroughs for sequential models have produced algorithms that parallelize computation along sequence length $T$, achieving logarithmic time complexity, $\mathcal{O}(\log T)$. Since sequence lengths have been practically limited due to the linear runtime complexity $\mathcal{O}(T)$ of classical backpropagation through time, this opens new avenues for DSR. This paper studies two prominent classes of parallel-in-time algorithms for this task, both of which leverage parallel associative scans as their core computational primitive. The first class comprises models with linear yet non-autonomous dynamics and a nonlinear readout, such as modern State Space Models (SSMs), while the second consists of general nonlinear models which can be parallelized using the DEER framework. We find that the linear training-time recurrence of the first class of models imposes limitations that often hinder learning of accurate nonlinear dynamics. To address this, we augment DEER with Generalized Teacher Forcing (GTF), a novel variant within the more general nonlinear framework that ensures stable and effective learning of nonlinear dynamics across arbitrary sequence lengths. Using GTF-DEER, we investigate the benefits of training on extremely long sequences ($T>10^4$) for DSR. Our results show that access to such long trajectories significantly improves DSR if the data features long time scales. This work establishes GTF-DEER as a robust tool for data-driven discovery and underscores the largely untapped potential of long-sequence learning in modeling complex DS.
BibTeX
@inproceedings{hess2026parallel,
  author = {Florian Hess and Florian Götz and Daniel Durstewitz},
  title = {{Parallel-in-Time Training of Recurrent Neural Networks for Dynamical Systems Reconstruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uhe6KW6jyO},
}

Loading related content...

Figure