A Fully Tensorized Recurrent Neural Network

Charles C. Onu, Jacob E. Miller, Doina PrecuparXiv 2020

Abstract Recurrent Neural Networks (RNNs), specifically LSTMs and GRUs, are highly effective for sequential data processing but are characterized by high parameter counts due to multiple large internal gate matrices. This overparameterization hinders deployment on resource-constrained edge devices and often leads to overfitting. We present a "fully tensorized" RNN architecture that utilizes Tensor-Train (TT) decomposition to jointly encode all internal gate matrices into a single, compact representation. Our approach achieves up to a 200-fold reduction in parameters while improving performance on complex tasks such as speaker verification. Furthermore, the proposed architecture provides implicit regularization and enhances training stability by maintaining healthier gradient distributions.

1. Introduction

Recurrent Neural Networks are fundamental to modern sequential modeling, yet their deployment is often limited by their substantial memory footprint. A standard LSTM or GRU cell relies on four separate weight matrices to manage internal gating mechanisms. As the hidden state dimension ($D$) increases to accommodate complex patterns, the parameter count grows quadratically ($O(D^2)$). This paper introduces a novel architecture that leverages Tensor-Train (TT) decomposition not just for individual matrices, but for the entire set of gate weights simultaneously, exploiting inter-gate redundancies to achieve unprecedented compression.

2. The Challenge of Overparameterization

Standard RNN cells face three primary challenges due to their size:

  1. Deployment Constraints: Large models are incompatible with the limited memory and power of edge hardware.
  2. Overfitting: Excessive parameters allow models to memorize training noise rather than learning generalizable features.
  3. Training Instability: Deep RNNs are prone to vanishing or exploding gradients, requiring careful initialization and hyperparameter tuning.

While previous attempts used TT decomposition to compress individual gate matrices, they failed to account for the structural similarities between gates, leaving significant redundancy unaddressed.

3. Proposed Methodology: Full Tensorization

The core innovation of this work is Gate Concatenation. Instead of treating each gate matrix as an independent entity, we stack all gate matrices (e.g., the four matrices in an LSTM) into a single composite block. We then apply the Tensor-Train (TT) formalism to this unified structure.

Overview of the GRU architecture and the proposed gate concatenation and tensorization process.

In this setup, the weight matrices are represented as a sequence of low-rank "cores." The first core acts as a global mixer, learning to linearly combine information from subsequent cores to reconstruct the specific logic required for each individual gate. This creates a novel form of weight sharing across the entire RNN cell, leading to an additional $g$-fold reduction in parameters (where $g$ is the number of gates) beyond standard TT compression.

4. Experimental Results

We evaluated the "TT-RNN" on Permuted Pixel MNIST and the LibriSpeech speaker verification task. The results demonstrate that full tensorization provides benefits far beyond simple compression.

4.1. Compression and Accuracy

On the LibriSpeech task, the TT-LSTM achieved a 200-fold reduction in parameters, shrinking from 2.6 million to just 13,000. Remarkably, this massive compression was accompanied by a significant performance boost: the Equal Error Rate (EER) dropped from 7.33% in the baseline LSTM to 4.34% in the TT-LSTM.

4.2. Regularization and Data Efficiency

The TT format acts as a natural constraint, preventing the model from overfitting by forcing weights into a low-rank structure. As shown in the training dynamics, TT-LSTMs exhibit a much smaller gap between training and validation error compared to standard LSTMs. Additionally, the TT-LSTM maintains superior performance even when trained on significantly less data.

Performance comparison between standard LSTM and TT-LSTM: (left) EER over training steps, (right) Test EER vs. percentage of training data used.

4.3. Training Stability

Tensorized structures appear more robust to high learning rates. While standard LSTMs often suffer from gradient explosions at higher rates, the TT-LSTM remains stable, with gradients distributed over a healthy range. This robustness simplifies the training process and allows for faster convergence.

5. Conclusion

Fully tensorized RNNs represent a significant step forward in making deep learning models more efficient and robust. By exploiting inter-gate redundancy through joint TT decomposition, we achieve state-of-the-art performance with a fraction of the parameters. Future work will explore applying these principles to other overparameterized architectures, such as Transformers, to further reduce the computational barriers to advanced AI deployment.

Summary updated

BibTeX
@misc{onu2020fully,
  author = {Charles C. Onu and Jacob E. Miller and Doina Precup},
  title = {{A Fully Tensorized Recurrent Neural Network}},
  year = {2020},
  eprint = {2010.04196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.04196},
}
Figure