[Paper Review] Capacity and Trainability in Recurrent Neural Networks
This paper investigates the capacity and trainability of recurrent neural networks (RNNs), finding that all common RNN architectures—vanilla RNN, LSTM, GRU, and novel variants—achieve nearly identical per-parameter and per-unit capacity limits when trained optimally. The key contribution is that task capacity is approximately 5 bits per parameter, and input history memory is roughly one real number per hidden unit, with performance differences across architectures primarily due to trainability, not capacity.
Two potential bottlenecks on the expressiveness of recurrent neural networks (RNNs) are their ability to store information about the task in their parameters, and to store information about the input history in their units. We show experimentally that all common RNN architectures achieve nearly the same per-task and per-unit capacity bounds with careful training, for a variety of tasks and stacking depths. They can store an amount of task information which is linear in the number of parameters, and is approximately 5 bits per parameter. They can additionally store approximately one real number from their input history per hidden unit. We further find that for several tasks it is the per-task parameter capacity bound that determines performance. These results suggest that many previous results comparing RNN architectures are driven primarily by differences in training effectiveness, rather than differences in capacity. Supporting this observation, we compare training difficulty for several architectures, and show that vanilla RNNs are far more difficult to train, yet have slightly higher capacity. Finally, we propose two novel RNN architectures, one of which is easier to train than the LSTM or GRU for deeply stacked architectures.
Motivation & Objective
- To investigate whether differences in RNN performance across architectures stem from inherent capacity limits or training difficulty.
- To quantify the maximum information a recurrent network can store about a task in its parameters and about input history in its hidden units.
- To determine whether gated RNNs (e.g., LSTM, GRU) have superior computational or memory capacity compared to vanilla RNNs.
- To evaluate the trade-off between model capacity and trainability in deep RNN architectures.
- To propose and evaluate two novel RNN architectures—UGRNN and +RNN—designed for improved trainability and scalability.
Proposed method
- Used a Bayesian hyperparameter tuner (Gaussian Process-based) to optimize training across multiple RNN architectures and tasks, minimizing validation loss over hundreds to thousands of trials.
- Fixed the number of parameters across architectures to isolate the effect of architecture on performance, while varying depth (1, 2, 4, 8) to assess scalability.
- Designed two novel RNN architectures: UGRNN (a minimally gated RNN with a single coupled gate), and +RNN (a gated architecture that extends gating to depth dimension).
- Conducted capacity experiments to measure per-parameter task memorization and per-unit input history memorization using controlled tasks.
- Performed trainability comparisons on difficult tasks where gated models might be expected to outperform vanilla RNNs.
- Validated results via repeated training runs (100 trials) on best hyperparameters to assess stability and avoid local minima.
Experimental results
Research questions
- RQ1What is the maximum amount of task-relevant information an RNN can store per parameter, and does this capacity vary significantly across architectures?
- RQ2How much information about input history can an RNN store per hidden unit, and does this capacity limit performance on general tasks?
- RQ3To what extent do performance differences between RNN architectures stem from differences in trainability rather than inherent capacity?
- RQ4Do gated RNNs (e.g., LSTM, GRU) have a computational advantage over vanilla RNNs in terms of performing complex operations like multiplication?
- RQ5Can novel RNN architectures (e.g., UGRNN, +RNN) achieve better trainability and performance, especially in deep architectures?
Key findings
- All RNN architectures achieve nearly identical per-parameter capacity, storing approximately 5 bits of task information per parameter when trained optimally.
- RNNs can store approximately one real number from input history per hidden unit, but this capacity does not significantly impact performance on general tasks.
- Performance differences across architectures are primarily driven by trainability, not capacity, with vanilla RNNs being harder to train but having slightly higher theoretical capacity.
- The UGRNN and +RNN architectures were found to be easier to train than LSTM or GRU, especially in deep architectures, with +RNN outperforming others in deeper setups.
- The GRU was the most trainable of the gated RNNs for shallow architectures, while the LSTM, though reliable, was rarely the best performer in experiments.
- The empirical capacity of 5 bits per parameter aligns closely with biological synaptic capacity (4.7 bits per synapse), suggesting a fundamental limit in information storage in neural networks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.