Introduction
Recurrent Neural Networks (RNNs), particularly Gated Recurrent Units (GRUs) and Long Short-Term Memory (LSTM) networks, are the primary tools for modeling sequential data. However, their high expressive power comes at a significant computational cost, as millions of parameters typically reside in dense weight matrices. This creates a deployment bottleneck for resource-constrained environments like mobile phones and IoT sensors.
Researchers from the Nara Institute of Science and Technology and RIKEN have investigated tensor decomposition as a sophisticated method for re-parameterizing and shrinking these networks while maintaining their performance.
Methodology: Compressing the GRU
The study focuses on the Gated Recurrent Unit (GRU) architecture. By breaking down large multi-dimensional weight arrays into smaller, interconnected components, the researchers aim to reduce the memory footprint significantly.
The authors compared three distinct tensor decomposition techniques:
- CP Decomposition (Canonical Polyadic): Factorizes a tensor into a sum of rank-1 tensors.
- Tucker Decomposition: Decomposes a tensor into a "core tensor" multiplied by factor matrices along each mode.
- Tensor Train (TT) Decomposition: Represents a high-order tensor as a chain of lower-order "TT-cores."
The Initialization Challenge
A critical technical contribution of this work is a specialized initialization strategy. Because decomposed tensors involve multiple recursive multiplications, standard initialization can lead to unstable training with vanishing or exploding gradients. The authors derived specific variance-based initialization rules (extending the "Glorot/Xavier" principle) for the CP and Tucker factors to ensure stable convergence.
Experimental Results
The models were evaluated on four polyphonic music datasets: Nottingham, MuseData, PianoMidi, and JSB Chorales. The task involved predicting active notes (represented as 88-binary-value vectors) at each timestep.
Superiority of Tensor Train (TT)
The Tensor Train (TT) approach consistently outperformed the others. Across almost all tests and parameter counts, the TT-GRU achieved the lowest Negative Log-Likelihood (NLL).
- Massive Compression: The baseline uncompressed GRU had approximately 1.18 million parameters. The compressed versions achieved reductions of up to 500x.
- Performance Retention: On the Nottingham dataset, the baseline GRU (1.18M params) achieved an NLL of 3.369. The TT-GRU with only 8,448 parameters (a ~140x reduction) achieved a nearly identical NLL of 3.35.
- Comparison: In every experiment with a similar parameter budget, TT-GRU performed better than Tucker-GRU. For example, on PianoMidi with ~2,600 parameters, TT-GRU hit an NLL of 7.60, while Tucker-GRU was significantly worse at 7.98.
Discussion and Limitations
The results suggest that the Tensor Train format better captures the underlying structural dependencies of RNN weights compared to the simpler CP or the core-heavy Tucker formats. However, the study notes some limitations:
- Task Specificity: The evaluation was limited to polyphonic music modeling; results may vary for massive-scale NLP or speech synthesis.
- Hardware Latency: While parameter count is reduced, inference speed depends on hardware optimization for tensor operations, which may differ from standard dense matrix multiplication.
Conclusion
Tensor decomposition, particularly the Tensor Train method, offers a powerful way to compress RNNs for edge deployment. By combining these structural changes with specialized initialization strategies, researchers can achieve significant memory savings without sacrificing the model's ability to handle complex sequential data.
Summary updated