Skip to main content
QUICK REVIEW

[Paper Review] Tensor Decomposition for Compressing Recurrent Neural Network

Andros Tjandra, Sakriani Sakti|arXiv (Cornell University)|Feb 28, 2018
Tensor decomposition and applicationsMathematics27 references6 citations
TL;DR

This paper proposes compressing Gated Recurrent Units (GRUs) using tensor decomposition methods—CP, Tucker, and Tensor Train (TT)—to reduce model parameters while preserving performance. TT-GRU achieves the best results across multiple sequence modeling tasks, outperforming CP-GRU and Tucker-GRU at equivalent parameter counts, particularly on polyphonic music datasets.

ABSTRACT

In the machine learning fields, Recurrent Neural Network (RNN) has become a popular architecture for sequential data modeling. However, behind the impressive performance, RNNs require a large number of parameters for both training and inference. In this paper, we are trying to reduce the number of parameters and maintain the expressive power from RNN simultaneously. We utilize several tensor decompositions method including CANDECOMP/PARAFAC (CP), Tucker decomposition and Tensor Train (TT) to re-parameterize the Gated Recurrent Unit (GRU) RNN. We evaluate all tensor-based RNNs performance on sequence modeling tasks with a various number of parameters. Based on our experiment results, TT-GRU achieved the best results in a various number of parameters compared to other decomposition methods.

Motivation & Objective

  • To reduce the number of parameters in Recurrent Neural Networks (RNNs) without sacrificing model expressiveness.
  • To evaluate the effectiveness of tensor decomposition methods—CP, Tucker, and TT—for compressing RNN weight matrices.
  • To compare the performance of CP-GRU, Tucker-GRU, and TT-GRU under varying parameter counts on sequence modeling tasks.
  • To determine which tensor decomposition method best maintains model accuracy while enabling efficient deployment on resource-constrained devices.

Proposed method

  • Apply CP decomposition to factorize the weight matrices of GRU units into a sum of rank-one tensors.
  • Use Tucker decomposition to represent weight matrices as a core tensor multiplied by factor matrices along each mode.
  • Implement Tensor Train (TT) decomposition to express weight matrices as a sequence of low-rank tensors connected in a chain.
  • Re-parameterize the GRU model using each decomposition method, replacing dense weight matrices with compact tensor formats.
  • Train and evaluate the compressed models on polyphonic music sequence modeling tasks using negative log-likelihood (NLL) as the metric.
  • Control the number of parameters across models by adjusting the rank hyperparameters of each decomposition method.

Experimental results

Research questions

  • RQ1How do CP, Tucker, and TT decompositions compare in compressing GRU models while maintaining performance?
  • RQ2Which tensor decomposition method achieves the lowest negative log-likelihood (NLL) score for sequence modeling at a given number of parameters?
  • RQ3Can TT decomposition maintain or improve performance compared to uncompressed GRU and other decomposed variants?
  • RQ4How does model performance vary across different datasets (Nottingham, JSB Chorales, PianoMidi, MuseData) under parameter constraints?
  • RQ5What is the trade-off between parameter efficiency and performance for each decomposition method in RNN compression?

Key findings

  • TT-GRU achieved the lowest negative log-likelihood (NLL) scores across all datasets, outperforming both CP-GRU and Tucker-GRU at equivalent parameter counts.
  • On the PianoMidi dataset, TT-GRU achieved an NLL of 7.16 with 11,392 parameters, outperforming Tucker-GRU (7.20) and CP-GRU (7.23) at similar parameter levels.
  • On the MuseData dataset, TT-GRU achieved an NLL of 7.16 with 11,392 parameters, while Tucker-GRU scored 7.20 and CP-GRU 7.23.
  • For parameter counts above 6,000, CP-GRU achieved performance comparable to TT-GRU but remained slightly worse in all tested configurations.
  • Tucker-GRU consistently underperformed both CP-GRU and TT-GRU across all datasets and parameter settings.
  • The TT decomposition enabled significant parameter reduction while maintaining high model expressiveness, making it the most effective compression method for GRUs in this study.

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.