Skip to main content
QUICK REVIEW

[Paper Review] Compressing RNNs for IoT devices by 15-38x using Kronecker Products

Urmish Thakker, Jesse Beu|arXiv (Cornell University)|Jun 7, 2019
Advanced Neural Network ApplicationsComputer Science54 references30 citations
TL;DR

This paper proposes Kronecker Product (KP) compression to reduce RNN model size by 15–38× for IoT deployment, with minimal accuracy loss. By learning KP factors directly and using a hybrid KP (HKP) approach to recover accuracy, the method achieves state-of-the-art compression with 8-bit quantization pushing compression to 50×, while maintaining fast inference and outperforming pruning and low-rank factorization on 5 benchmarks.

ABSTRACT

Recurrent Neural Networks (RNN) can be difficult to deploy on resource constrained devices due to their size.As a result, there is a need for compression techniques that can significantly compress RNNs without negatively impacting task accuracy. This paper introduces a method to compress RNNs for resource constrained environments using Kronecker product (KP). KPs can compress RNN layers by 15-38x with minimal accuracy loss. By quantizing the resulting models to 8-bits, we further push the compression factor to 50x. We show that KP can beat the task accuracy achieved by other state-of-the-art compression techniques across 5 benchmarks spanning 3 different applications, while simultaneously improving inference run-time. We show that the KP compression mechanism does introduce an accuracy loss, which can be mitigated by a proposed hybrid KP (HKP) approach. Our HKP algorithm provides fine-grained control over the compression ratio, enabling us to regain accuracy lost during compression by adding a small number of model parameters.

Motivation & Objective

  • Address the challenge of deploying large RNNs on resource-constrained IoT devices with limited memory and processing power.
  • Identify limitations of existing compression techniques—pruning and low-rank matrix factorization (LMF)—which fail to achieve 15× compression without significant accuracy degradation.
  • Develop a novel compression method using Kronecker Products (KPs) that enables high compression ratios while preserving model accuracy.
  • Introduce a hybrid KP (HKP) mechanism to recover accuracy lost during KP compression through selective addition of a small number of parameters.
  • Demonstrate that KP-based compression improves inference speed and achieves state-of-the-art performance across multiple IoT-targeted benchmarks.

Proposed method

  • Use Kronecker Products to compress RNN weight matrices by factorizing them into smaller, low-rank matrices, reducing parameter count by 15–38×.
  • Learn the KP factors directly during training rather than relying on post-hoc decomposition, enabling better approximation and flexibility.
  • Apply 8-bit quantization to the KP-compressed models to further increase compression to 50×, reducing model size for ultra-constrained devices.
  • Propose a hybrid KP (HKP) approach that adds a small number of learned parameters to restore accuracy lost during KP compression.
  • Use a loss function that balances compression ratio and accuracy, allowing fine-grained control over the trade-off between size and performance.
  • Train models using standard optimization (Adam) with learning rate schedules and weight decay, while monitoring rank and condition number of compressed matrices to ensure stability.

Experimental results

Research questions

  • RQ1Can Kronecker Product-based compression achieve 15× or higher compression on RNNs without significant accuracy loss on IoT benchmarks?
  • RQ2Why do traditional compression methods like pruning and low-rank factorization fail to achieve high compression with acceptable accuracy on RNNs?
  • RQ3How does KP compression affect the rank and condition number of RNN weight matrices, and can this be mitigated?
  • RQ4Can a hybrid KP (HKP) approach effectively recover accuracy lost during KP compression while maintaining high compression ratios?
  • RQ5Does KP-based compression improve inference runtime on resource-constrained devices compared to baseline and existing compression techniques?

Key findings

  • KP compression achieves 16–38× compression on RNN layers with minimal accuracy loss, outperforming pruning and LMF on all five benchmarks tested.
  • The hybrid KP (HKP) method recovers accuracy lost during KP compression by adding only a small number of parameters, enabling fine-grained control over the compression-accuracy trade-off.
  • With 8-bit quantization, the total compression ratio reaches 50×, making models viable for deployment on IoT devices with as little as 2KB RAM and 32KB Flash.
  • On the HAR1 benchmark, HKPLSTM achieved 91.025% mean accuracy at 159.83 KB (15.9× compression), outperforming LMF (90.61%) and pruning (86.56%) at similar sizes.
  • On the KWS-LSTM benchmark, HKPLSTM achieved 91.66% mean accuracy at 26.38 KB (9.2× compression), surpassing LMF (91.26%) and pruning (87.25%) at comparable sizes.
  • Inference runtime was significantly reduced—e.g., from 26.8ms to 3.2ms on KWS-LSTM—demonstrating that KP compression not only reduces size but also accelerates inference on edge devices.

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.