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

Recurrent Neural Networks in the Eye of Differential Equations

Murphy Yuezhen Niu, Lior Horesh, Isaac Chuang

Abstract

This paper establishes a formal mathematical bridge between Recurrent Neural Networks (RNNs) and the numerical integration of Ordinary Differential Equations (ODEs). By treating RNN layers as steps in a Runge-Kutta integration, the authors provide a framework to guarantee training stability and introduce a "Quantum-inspired Universal computing Neural Network" (QUNN) that handles long-term dependencies with significantly fewer parameters than traditional models.

Introduction

Recurrent Neural Networks (RNNs) are fundamental to sequence modeling tasks such as speech recognition and machine translation. However, they are notoriously difficult to design and train due to the "exploding" or "vanishing" gradient problems. While heuristic architectures like Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU) were developed to address these issues, they lack a unified theoretical foundation. This paper proposes the ODERNN framework, which treats the hidden state updates of an RNN as discrete steps in solving an ODE, providing a rigorous mathematical basis for understanding and designing recurrent architectures.

Methods

The authors introduce the $n$-$t$-ODERNN classification system, where $n$ represents the degree of functional nonlinearity (mapped to the stages of a Runge-Kutta recursion) and $t$ represents the range of temporal memory (mapped to the order of the time-derivative in the ODE).

Stability Analysis

To ensure training stability, the authors apply the concept of BN-stability from numerical analysis. They demonstrate that by ensuring the Burrage-Butcher tensor is positive semi-definite, a network can be guaranteed to remain stable during training. This moves stability from a matter of hyperparameter tuning to a structural property of the architecture.

Quantum-inspired Universal computing Neural Network (QUNN)

Inspired by the Schrödinger equation and "clock-Hamiltonians" in quantum computing, the authors propose the QUNN. Unlike standard RNNs with static weights, the QUNN utilizes input-dependent weight matrices. This non-autonomous approach allows the network to more naturally emulate complex physical dynamics and reduces the parameter count from polynomial to linear relative to the temporal correlation length.

Results

A key contribution of this work is the formal mapping of existing RNN architectures into the ODERNN framework. The authors prove that popular models like LSTMs and GRUs are specific, low-order instances of ODE solvers.

Categorization of popular RNN architectures within the $n$-$t$-ODERNN framework.

As shown in the categorization table above, LSTMs, GRUs, and Unitary RNNs (URNNs) are categorized as 2-$L$-ODERNNs, while Clockwork-RNNs (CW-RNNs) and the proposed QUNN are classified as $L$-$L$-ODERNNs.

Furthermore, the theoretical analysis shows that the QUNN architecture requires only $O(n)$ parameters relative to the temporal correlation length, offering a significant efficiency gain over the $O(n^2)$ requirements of many traditional models.

Discussion and Conclusion

The ODERNN framework provides a systematic way to analyze stability and complexity in recurrent architectures. However, practical implementation challenges remain. The QUNN requires pre-processing to estimate temporal correlation lengths, and data-dependent weight construction may introduce computational overhead. Future work will focus on heuristic testing to evaluate these theoretical blueprints on large-scale, real-world machine learning tasks. By grounding RNN design in the principles of numerical integration, this research paves the way for more robust and efficient sequence modeling.

Summary updated

BibTeX
@misc{niu2019recurrent,
  author = {Murphy Yuezhen Niu and Lior Horesh and Isaac Chuang},
  title = {{Recurrent Neural Networks in the Eye of Differential Equations}},
  year = {2019},
  eprint = {1904.12933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.12933},
}
Figure