NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-free training of recurrent neural networks

Erik Lien Bolager, Ana Cukarska, Iryna Burak, Zahra Monfared, Felix Dietrich · DOI

Abstract

Researchers from the Technical University of Munich and Heidelberg University have introduced a novel gradient-free training framework for Recurrent Neural Networks (RNNs) that eliminates the need for Backpropagation Through Time (BPTT). By integrating data-dependent weight sampling (SWIM) with Koopman operator theory, the proposed "Sampled RNN" architecture maps non-linear dynamics into a high-dimensional feature space where the system evolves linearly. This allows for the analytical determination of network weights using linear least squares, bypassing iterative gradient descent. The approach achieves significant speedups—up to 360x—while maintaining or exceeding the accuracy of state-of-the-art gradient-based models on complex periodic and chaotic dynamical systems.

Introduction

Recurrent Neural Networks are essential for modeling time-dependent data, yet they remain notoriously difficult to train. The primary challenge is the Exploding and Vanishing Gradient Problem (EVGP) associated with BPTT. Because RNNs apply the same weights repeatedly across time steps, gradients often become numerically unstable, preventing the network from learning long-term dependencies. Furthermore, gradient-based training is computationally intensive and often results in "black box" models that lack theoretical interpretability. This research addresses these issues by proposing a training method that is fast, stable, and grounded in the physics of dynamical systems.

The Sampled RNN Architecture

The Sampled RNN framework relies on two primary pillars to achieve gradient-free learning. First, it utilizes SWIM (Sampling Weights with Inverse Mapping). Unlike traditional Reservoir Computing which uses data-agnostic initialization, SWIM uses a data-dependent distribution to sample hidden weights. By aligning random features with the steepest parts of the target function, the model ensures that the hidden layer is highly relevant to the specific dataset.

Architecture of the Sampled RNN

Second, the model is built on Koopman Operator Theory. This theory posits that a non-linear dynamical system can be represented as a linear system if mapped into a sufficiently high-dimensional space of observables. In this framework, the RNN's hidden layer acts as a finite-dimensional approximation of this space. Consequently, the transition matrix $K$ and output matrix $V$ can be solved analytically using linear least squares (Moore-Penrose pseudoinverse), requiring no iterative updates.

Experimental Evaluation

The method was evaluated against several baselines, including shPLRNN (a state-of-the-art gradient-based RNN), LSTMs, and Echo State Networks (ESNs). Testing was conducted on a variety of benchmarks:

  • Synthetic ODEs: The periodic Van der Pol Oscillator and chaotic Lorenz-63 and Rössler systems.
  • Real-World Data: The Jena Climate dataset for weather prediction, as well as infrastructure data including electricity consumption and bike traffic counts.

Key Results and Interpretability

The Sampled RNN demonstrated massive computational advantages. On the chaotic Lorenz-63 system, the model trained in just 1.67 seconds, compared to 607 seconds for the gradient-based shPLRNN—a ~360x speedup. Despite this speed, accuracy remained superior; in the Van der Pol oscillator test, the Sampled RNN achieved a Mean Squared Error (MSE) of $9.55 \times 10^{-4}$, significantly outperforming ESNs ($1.58 \times 10^{-2}$) and shPLRNN ($1.39 \times 10^{-2}$).

Chaotic attractor prediction

Beyond performance, the model offers unique spectral interpretability. Because the transition matrix $K$ is a linear operator, the stability of the learned system can be guaranteed by ensuring its eigenvalues remain within the unit circle. This level of formal verification is rarely possible with standard deep learning models.

Conclusion and Future Work

While the Sampled RNN offers a breakthrough in training efficiency and stability, it faces scaling challenges due to the $O(M^3)$ complexity of the linear solver relative to the number of neurons. Future research will focus on adapting the SWIM sampling strategy for high-dimensional structured data like images and extending formal convergence proofs to controlled systems within the context of Model Predictive Control (MPC). Nonetheless, the current results prove that for many dynamical systems, linearity is "hidden in plain sight," and gradient-free methods can provide a robust, interpretable alternative to traditional deep learning.

Summary updated

BibTeX
@article{bolager2026gradient,
  author = {Erik Lien Bolager and Ana Cukarska and Iryna Burak and Zahra Monfared and Felix Dietrich},
  title = {{Gradient-free training of recurrent neural networks}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure