Skip to main content
QUICK REVIEW

[Paper Review] Minimal Width for Universal Property of Deep RNN

Changhoon Song, Geonho Hwang|arXiv (Cornell University)|Nov 25, 2022
Stochastic Gradient Optimization TechniquesComputer Science9 citations
TL;DR

This paper proves that deep narrow recurrent neural networks (RNNs) with ReLU activation can universally approximate any continuous or $L^p$ function mapping finite sequences in $\mathbb{R}^{d_x}$ to $\mathbb{R}^{d_y}$, with a minimal width of $d_x + d_y + 3$ for continuous functions and $\max\{d_x+1, d_y\}$ for $L^p$ functions, independent of sequence length. The result establishes tight upper bounds on minimal width for universality in deep narrow RNNs.

ABSTRACT

A recurrent neural network (RNN) is a widely used deep-learning network for dealing with sequential data. Imitating a dynamical system, an infinite-width RNN can approximate any open dynamical system in a compact domain. In general, deep networks with bounded widths are more effective than wide networks in practice; however, the universal approximation theorem for deep narrow structures has yet to be extensively studied. In this study, we prove the universality of deep narrow RNNs and show that the upper bound of the minimum width for universality can be independent of the length of the data. Specifically, we show that a deep RNN with ReLU activation can approximate any continuous function or $L^p$ function with the widths $d_x+d_y+2$ and $\max\{d_x+1,d_y\}$, respectively, where the target function maps a finite sequence of vectors in $\mathbb{R}^{d_x}$ to a finite sequence of vectors in $\mathbb{R}^{d_y}$. We also compute the additional width required if the activation function is $ anh$ or more. In addition, we prove the universality of other recurrent networks, such as bidirectional RNNs. Bridging a multi-layer perceptron and an RNN, our theory and proof technique can be an initial step toward further research on deep RNNs.

Motivation & Objective

  • To establish the minimal width required for deep narrow RNNs to achieve universal approximation of sequential functions.
  • To prove that the minimal width bound is independent of the sequence length, enabling efficient deep narrow architectures.
  • To extend universality results to various RNN variants, including bidirectional RNNs, GRUs, and LSTMs.
  • To provide tight upper bounds on minimal width for different function classes, including continuous and $L^p$ functions.
  • To bridge the theoretical gap between deep narrow networks and universal approximation by constructing explicit RNN architectures.

Proposed method

  • Constructs a deep RNN with ReLU activation using a token-wise lifting map and recursive composition of modified TRNN cells to simulate arbitrary linear combinations of input sequences.
  • Employs a two-stage architecture: forward pass to compute weighted sums of past inputs, followed by a reverse pass to reconstruct target functions via matrix inversion techniques.
  • Uses binomial coefficient matrices and lower-triangular systems to solve for weights that recover desired function outputs at each time step.
  • Applies Corollary 26 to solve for backward pass weights $\bar{b}_i[t]$ that satisfy linear systems derived from desired function approximations.
  • Adapts the construction to handle non-ReLU activations like sigmoid and tanh by imposing differentiability conditions at zero.
  • Extends the framework to bidirectional RNNs by combining forward and backward RNNs to capture both past and future dependencies.

Experimental results

Research questions

  • RQ1What is the minimal width required for a deep narrow RNN with ReLU activation to universally approximate continuous functions on compact domains?
  • RQ2Can the minimal width bound for universality in deep RNNs be independent of the sequence length?
  • RQ3How does the minimal width requirement change for $L^p$ function approximation compared to continuous function approximation?
  • RQ4What additional width is needed when using non-ReLU activations like sigmoid or tanh?
  • RQ5Can the universal approximation property be extended to bidirectional RNNs and other RNN variants like GRUs and LSTMs?

Key findings

  • A deep RNN with ReLU activation can universally approximate any continuous function $f: \mathcal{K} \to \mathbb{R}^{d_y}$ with width $d_x + d_y + 3$, where $\mathcal{K}$ is a compact subset of $\mathbb{R}^{d_x}$.
  • For $L^p$ function approximation on $\mathcal{K}$, the minimal width is bounded by $\max\{d_x+1, d_y\} + 1$.
  • For $L^p$ functions on $\mathbb{R}^{d_x}$, the minimal width is exactly $\max\{d_x+1, d_y\}$ when using ReLU activation.
  • For non-ReLU activations such as sigmoid or tanh (satisfying differentiability and non-zero derivative at zero), the minimal width increases by one, to $d_x + d_y + 4$ for continuous functions.
  • The construction generalizes to bidirectional RNNs, GRUs, and LSTMs, with the same minimal width bounds as standard RNNs.
  • The minimal width is independent of the sequence length $N$, proving that deep narrow RNNs can achieve universality without increasing width as sequence length grows.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.