[Paper Review] Rethinking Full Connectivity in Recurrent Neural Networks
This paper proposes structurally sparse recurrent neural networks—specifically DiagonalRNN and BandRNN—featuring localized or self-connections to replace full connectivity in RNNs. By reducing recurrent weight matrices to sparse, hardware-friendly structures, the approach enables orders-of-magnitude reductions in memory and computation while maintaining competitive performance on language modeling, speech recognition, and video action recognition tasks.
Recurrent neural networks (RNNs) are omnipresent in sequence modeling tasks. Practical models usually consist of several layers of hundreds or thousands of neurons which are fully connected. This places a heavy computational and memory burden on hardware, restricting adoption in practical low-cost and low-power devices. Compared to fully convolutional models, the costly sequential operation of RNNs severely hinders performance on parallel hardware. This paper challenges the convention of full connectivity in RNNs. We study structurally sparse RNNs, showing that they are well suited for acceleration on parallel hardware, with a greatly reduced cost of the recurrent operations as well as orders of magnitude less recurrent weights. Extensive experiments on challenging tasks ranging from language modeling and speech recognition to video action recognition reveal that structurally sparse RNNs achieve competitive performance as compared to fully-connected networks. This allows for using large sparse RNNs for a wide range of real-world tasks that previously were too costly with fully connected networks.
Motivation & Objective
- Address the high computational and memory cost of fully connected RNNs, especially in low-power and low-cost devices.
- Overcome the sequential bottleneck in RNNs that limits parallelization on modern hardware.
- Explore whether structurally sparse RNNs can match or exceed the performance of fully connected RNNs while drastically reducing parameter count and inference cost.
- Investigate the architectural and hardware implications of replacing dense recurrent connections with sparse, localized, or self-connections.
- Enable larger network sizes within fixed hardware budgets by leveraging structural sparsity without sacrificing model capacity.
Proposed method
- Introduce DiagonalRNN, where each neuron only connects to itself via a diagonal recurrent weight matrix, reducing recurrent computation from O(n²) to O(n).
- Propose BandRNN, a locally connected variant where each neuron connects only to itself and a fixed number of neighboring neurons (C), forming a banded weight matrix.
- Use structured sparsity (not unstructured pruning) to ensure regular memory access patterns suitable for GPU and TPU acceleration.
- Train and evaluate sparse RNNs on standard benchmarks including language modeling (LibriTTS), speech recognition (VCTK), and video action recognition (UCF101).
- Compare performance and efficiency against fully connected GRUs and LSTMs, measuring test CER, accuracy, and recurrent parameter counts.
- Integrate sparse RNNs with existing architectures like PreRNN to assess compatibility and performance gains in end-to-end models.
Experimental results
Research questions
- RQ1Can structurally sparse RNNs with localized or self-connections achieve performance comparable to fully connected RNNs on sequence modeling tasks?
- RQ2To what extent can structural sparsity reduce the number of recurrent parameters and computational cost while maintaining model accuracy?
- RQ3How does the performance of sparse RNNs scale with increasing network size under fixed hardware budgets compared to fully connected models?
- RQ4Can sparse RNNs enable larger network architectures within the same memory and compute constraints, leading to improved performance?
- RQ5Does the use of structured sparsity enable better hardware parallelization and speedups compared to unstructured sparsity or dense RNNs?
Key findings
- DiagonalRNN and BandRNN achieve competitive performance to fully connected GRUs on LibriTTS and VCTK, with 8.57% and 9.69% test CER respectively, while reducing recurrent weights by up to 100x.
- On UCF101 video action recognition, DiagonalRNN and BandRNN achieve 92.5–93.5% accuracy with only 2.19×10⁵ to 4.98×10⁶ recurrent weights—up to 100x fewer than full PreRNN.
- Larger sparse networks (e.g., 1100 units in DiagonalGRU) outperform smaller fully connected models (e.g., 768 units in Full GRU) under the same parameter budget.
- The use of structured sparsity enables efficient parallelization, removing the sequential bottleneck inherent in dense RNNs and improving hardware utilization.
- BandRNN with C=201 achieves 93.2% accuracy on UCF101 with only 4.98×10⁶ recurrent weights, matching full PreRNN’s performance while reducing recurrent parameters by ~80%.
- The combination of DiagonalRNN with PreRNN-SIH achieves 92.6% accuracy using just 2.19×10⁵ recurrent weights—over 100x fewer than full PreRNN.
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.