TL;DR
Training Recurrent Neural Networks (RNNs) with backpropagation through time often suffers from exploding or vanishing gradients and high computational costs. This paper introduces an analytical, gradient-free training framework that pairs data-dependent random feature sampling with Koopman operator theory. By lifting low-dimensional dynamics into a linear representation and solving for outer layers via least squares, the method trains orders of magnitude faster than gradient descent while matching or exceeding forecasting accuracy.
What Problem Does This Paper Address?
Recurrent neural networks are standard tools for sequence modeling and dynamical systems forecasting, but training them with Backpropagation Through Time (BPTT) is notoriously fragile. Gradients frequently vanish or explode—a failure mode exacerbated when modeling chaotic dynamics or multi-stable attractors where bifurcations cause sudden loss jumps. Furthermore, gradient-based RNNs function largely as uninterpretable black boxes and demand extensive hyperparameter tuning. While reservoir computing (e.g., Echo State Networks) avoids BPTT by randomizing internal weights, it relies on heuristic, data-agnostic distributions and often requires delicate regularization and tuning.
Methods
The authors construct a single-layer recurrent neural network completely without gradient descent by fusing two core ideas:
- Data-Dependent Weight Sampling (SWIM): Rather than sampling internal layer parameters from generic Gaussian or uniform priors, weights and biases for the hidden features $\mathcal{F}(h) = \sigma(Wh + b)$ are sampled using point pairs directly from the empirical state trajectory data. The sampling density favors regions with steep functional gradients, ensuring features align with the underlying manifold.
-
Koopman Operator & EDMD Formulation: Koopman operator theory shows that nonlinear dynamics can be represented linearly in an infinite-dimensional function space. The authors approximate this linear evolution in the high-dimensional hidden neuron space using Extended Dynamic Mode Decomposition (EDMD): $$z_t = K \mathcal{F}(h_{t-1}) + B \mathcal{G}(x_t), \quad h_t = C z_t$$ Here, transition matrix $K$, control matrix $B$, and output projection $C$ are closed-form solutions of linear least-squares (pseudoinverse) problems.
-
Theoretical Guarantees: Leveraging Koopman approximation bounds, the authors provide a convergence theorem proving that for uncontrolled systems over any finite prediction horizon, the reconstruction error vanishes in the $L^2$ norm as width $M \to \infty$ and sample size $N \to \infty$.
Datasets
The approach is evaluated across canonical dynamical systems and real-world time-series benchmarks:
- Synthetic Dynamical Systems:
- Van der Pol Oscillator: Tested in full-state observation, partial 1D observation with time-delay embedding, and a forced (controlled) variant steered via Linear-Quadratic Regulation (LQR).
- Chaotic Systems: 3D Lorenz-63 and Rössler systems evaluated in chaotic regimes.
- Real-World Benchmarks:
- Jena Climate Dataset: 14 weather parameters downsampled to 1-hour resolution, forecasting temperature over 1-day and 1-week horizons.
- Individual Household Electricity Consumption: Minute-resolution voltage forecasting (supplementary).
- Copenhagen Bike Traffic: Hourly bicycle traffic counts (supplementary).
Key Insights and Ideas
- Recurrence as a Linear State-Space Model: The internal recurrent step can be treated as a linear operator acting on nonlinearly lifted states. This bridges modern RNN architectures directly with linear systems theory and allows standard linear controllers (like LQR) to control nonlinear systems.
- Intrinsic Stability Analysis: Because $K$ approximates the Koopman operator, spectral analysis becomes trivial. Plotting the eigenvalues of $K$ provides an immediate certificate of stability (e.g., ensuring all eigenvalues lie inside or on the unit disk).
- Interpretability Through Geometry: The data-driven sampling vectors map directly onto the phase space, exposing exactly which regions of the attractor have adequate neuron coverage.
- Ablation Synergy: Ablation studies show that neither Koopman-based EDMD with Gaussian weights nor SWIM sampling alone matches the performance achieved when combining both.
Key Results
- Drastic Speedups:
- On the Van der Pol oscillator, the sampled RNN trains in 0.26 s (MSE: $9.55 \times 10^{-4}$), compared to 217.93 s for the state-of-the-art gradient-based shallow PLRNN (MSE: $1.39 \times 10^{-2}$) and 3.76 s for an Echo State Network (ESN).
- On the chaotic Lorenz-63 attractor, training finishes in 1.67 s versus 607.42 s for shPLRNN, achieving a superior Empirical KL divergence (EKL) of $4.36 \times 10^{-3}$ vs. $5.79 \times 10^{-3}$.
- Real-World Forecasting: On 1-day weather forecasting, the sampled RNN requires only 4.87 s to train, outperforming both an LSTM (378.10 s) and shPLRNN (321.76 s) in MSE ($2.239^\circ\text{C}$ vs. $2.531^\circ\text{C}$ and $2.296^\circ\text{C}$).
- Effective Control: For the forced Van der Pol oscillator, coupling the sampled RNN model with an LQR controller successfully stabilized trajectories to target setpoints with low control cost within 1.12 seconds of training.
Limitations and Future Work
- Cubic Complexity: Solving the linear regression problem scales cubically ($\mathcal{O}(\min(M, N)^3)$) with respect to the number of hidden nodes or time steps, which can lead to memory bottlenecks on massive datasets.
- Low-Dimensional Input Focus: The sampling mechanism is designed for continuous vector state spaces and does not yet extend to high-dimensional structured architectures like CNNs or Transformers used in vision and language.
- Theoretical Scope: Formal convergence proofs currently hold only for uncontrolled discrete-time systems. Extending rigorous error bounds to controlled settings and continuous-time formulations (NeuralODEs) remains open for future research.
Summary updated