Inverse Approximation Theory for Nonlinear Recurrent Neural Networks

Shida Wang, Zhong Li, Qianxiao Li
5/1/2023
13 citations

Official code: radarFudan/Curse-of-memory (19 stars, Jupyter Notebook, last commit 2025-05-08).

Abstract

We prove an inverse approximation theorem for the approximation of nonlinear sequence-to-sequence relationships using recurrent neural networks (RNNs). This is a so-called Bernstein-type result in approximation theory, which deduces properties of a target function under the assumption that it can be effectively approximated by a hypothesis space.

Show full abstract

In particular, we show that nonlinear sequence relationships that can be stably approximated by nonlinear RNNs must have an exponential decaying memory structure - a notion that can be made precise. This extends the previously identified curse of memory in linear RNNs into the general nonlinear setting, and quantifies the essential limitations of the RNN architecture for learning sequential relationships with long-term memory. Based on the analysis, we propose a principled reparameterization method to overcome the limitations. Our theoretical results are confirmed by numerical experiments. The code has been released in https://github.com/radarFudan/Curse-of-memory

View on arXivView PDF

Code Implementations(1)

Curse-of-memory phenomenon of RNNs in sequence modelling

191Jupyter Notebook, PythonJul 14, 20231 years ago
long-term-memoryrnnssm

Similar Papers

Cite this paper

@article{wang2023inverse,
  title  = {Inverse Approximation Theory for Nonlinear Recurrent Neural Networks},
  author = {Shida Wang and Zhong Li and Qianxiao Li},
  year   = {2023},
  eprint = {2305.19190},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2305.19190},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.19190.svg)](https://codeofpaper.com/paper/2305.19190)

Discussion