DeepIoT: Compressing Deep Neural Network Structures for Sensing Systems with a Compressor-Critic Framework

Shuochao Yao, Yiran Zhao, Aston Zhang, Lu Su, Tarek F. Abdelzaher · DOI

Introduction

Deep learning has significantly advanced sensing tasks such as voice recognition and activity tracking. However, state-of-the-art deep neural networks (DNNs) are often too resource-intensive for low-power IoT devices like smartwatches or embedded controllers. These devices face strict constraints in memory, latency, and battery life.

Existing compression techniques often rely on weight pruning, which results in sparse matrices. While mathematically smaller, sparse matrices are notoriously difficult for standard mobile CPUs to process efficiently, often requiring specialized hardware or complex indexing that negates performance gains. DeepIoT addresses these gaps by focusing on structural pruning—reducing the actual dimensions of the network to create smaller, dense matrices that run efficiently on commodity hardware.

The DeepIoT Framework

DeepIoT employs a "compressor-critic" framework inspired by reinforcement learning to identify and remove structural redundancies across various architectures, including CNNs, RNNs, and fully-connected layers.

The DeepIoT Compressor-Critic framework architecture, showing the interaction between the original neural network and the compressor RNN.

Compressor-Critic Mechanism

The framework consists of two primary components:

  1. The Compressor: A specialized recurrent neural network (RNN), specifically a variant of an LSTM, that analyzes the weights of the target model. It learns global redundancies by processing layers sequentially, generating dropout probabilities for every hidden element (e.g., filters in a CNN or dimensions in an LSTM).
  2. The Critic: This is the original sensing model. During training, the compressor suggests which structural elements to "drop." The Critic’s loss function then provides feedback, guiding the compressor to find the most compact structure that maintains target accuracy.

Structural Pruning and Soft Deletion

Unlike traditional weight pruning, DeepIoT performs structural pruning. By identifying the minimum necessary filters or neurons, it transforms large models into sets of smaller, dense matrices. These matrices are highly compatible with standard Basic Linear Algebra Subprograms (BLAS) libraries, ensuring high execution speed on standard mobile processors. To ensure stability during optimization, DeepIoT utilizes a "soft deletion" strategy with a decay factor, allowing the network to "rehabilitate" elements if they were prematurely pruned.

Experimental Evaluation

The framework was evaluated on an Intel Edison board across five diverse sensing benchmarks, including LeNet-5 for digit recognition, VGGNet for image recognition, and Bi-LSTM for speech recognition.

Key Results

DeepIoT achieved significant reductions in resource consumption across all tested models without sacrificing accuracy. In some instances, such as the LibriSpeech task, the compressed model even showed a slight improvement in Word Error Rate.

Summary of model size, execution time, and energy consumption reductions achieved by DeepIoT across different architectures.

As shown in the results table, DeepIoT reduced model sizes by up to 98.9% and energy consumption by up to 95.7%. Execution times were slashed by over 90% for complex models like VGGNet and Bi-LSTM. Compared to baselines like DyNS (magnitude-based pruning), DeepIoT consistently offered a superior trade-off between accuracy and resource efficiency.

Discussion and Future Work

A core insight of this work is that dense operations are significantly more efficient than sparse ones on commodity IoT hardware. By taking a global view of redundancy through its LSTM-based compressor, DeepIoT recognizes dependencies between layers that local pruning methods miss.

While highly effective, DeepIoT currently requires a fine-tuning phase on a powerful workstation with access to training data, making it a pre-deployment optimization rather than an on-device learning tool. Future research could explore combining structural pruning with weight quantization or developing hardware-aware versions of the compressor that optimize for specific chip architectures like DSPs or NPUs.

Summary updated

BibTeX
@inproceedings{yao2017deepiot,
  author = {Shuochao Yao and Yiran Zhao and Aston Zhang and Lu Su and Tarek F. Abdelzaher},
  title = {{DeepIoT: Compressing Deep Neural Network Structures for Sensing Systems with a Compressor-Critic Framework}},
  booktitle = {SenSys},
  year = {2017},
  doi = {10.1145/3131672.3131675},
}
Figure