Skip to main content
QUICK REVIEW

[Paper Review] Hardware-Guided Symbiotic Training for Compact, Accurate, yet Execution-Efficient LSTM

Hongxu Yin, Guoyang Chen|arXiv (Cornell University)|Jan 30, 2019
Advanced Neural Network ApplicationsComputer Science32 references8 citations
TL;DR

This paper proposes a hardware-guided symbiotic training method for Long Short-Term Memory (LSTM) networks that jointly optimizes model compactness, accuracy, and inference efficiency by exploiting the latency hysteresis effect (LHE) — a non-monotonic relationship between model size and inference latency on modern hardware. By combining multi-granular grow-and-prune algorithms with hardware-aware architecture search, the method achieves up to 30.5× parameter reduction and 5.2× latency reduction on CPUs without accuracy loss, while improving accuracy on speech recognition tasks.

ABSTRACT

Many long short-term memory (LSTM) applications need fast yet compact models. Neural network compression approaches, such as the grow-and-prune paradigm, have proved to be promising for cutting down network complexity by skipping insignificant weights. However, current compression strategies are mostly hardware-agnostic and network complexity reduction does not always translate into execution efficiency. In this work, we propose a hardware-guided symbiotic training methodology for compact, accurate, yet execution-efficient inference models. It is based on our observation that hardware may introduce substantial non-monotonic behavior, which we call the latency hysteresis effect, when evaluating network size vs. inference latency. This observation raises question about the mainstream smaller-dimension-is-better compression strategy, which often leads to a sub-optimal model architecture. By leveraging the hardware-impacted hysteresis effect and sparsity, we are able to achieve the symbiosis of model compactness and accuracy with execution efficiency, thus reducing LSTM latency while increasing its accuracy. We have evaluated our algorithms on language modeling and speech recognition applications. Relative to the traditional stacked LSTM architecture obtained for the Penn Treebank dataset, we reduce the number of parameters by 18.0x (30.5x) and measured run-time latency by up to 2.4x (5.2x) on Nvidia GPUs (Intel Xeon CPUs) without any accuracy degradation. For the DeepSpeech2 architecture obtained for the AN4 dataset, we reduce the number of parameters by 7.0x (19.4x), word error rate from 12.9% to 9.9% (10.4%), and measured run-time latency by up to 1.7x (2.4x) on Nvidia GPUs (Intel Xeon CPUs). Thus, our method yields compact, accurate, yet execution-efficient inference models.

Motivation & Objective

  • To address the gap in current neural network compression methods that are hardware-agnostic and often fail to improve execution efficiency despite reducing model size.
  • To investigate how hardware-specific non-monotonic behaviors — particularly the latency hysteresis effect (LHE) — impact the trade-off between model size, accuracy, and inference latency.
  • To develop a training methodology that symbiotically optimizes model compactness, inference accuracy, and execution efficiency by leveraging hardware-impacted LHE and structured sparsity.
  • To outperform existing approaches in all three dimensions: parameter count, accuracy, and run-time latency on both GPUs and CPUs for real-world NLP and speech recognition workloads.

Proposed method

  • The method begins with a sparse seed architecture and applies a structured grow-and-prune process to iteratively refine the network, guided by hardware-specific latency measurements.
  • It introduces a hardware-guided architecture search that identifies optimal hidden-layer dimensions (LHPs) for different hardware platforms, avoiding sub-optimal design points.
  • Multi-granular pruning is applied at both the weight and layer levels, with pruning ratios dynamically adjusted based on hardware feedback to preserve accuracy while maximizing efficiency.
  • The approach leverages the latency hysteresis effect (LHE) — where smaller models can be slower due to inefficient memory access or kernel launch overhead — to avoid such performance traps.
  • For GPU inference, dimension reduction is applied to align with hardware-optimized matrix sizes (e.g., 626/626), reducing latency by 2–30% across GPUs.
  • For CPU inference, weight sparsity is maximized (up to 94.2%) without dimension reduction to fully exploit Intel MKL’s sparse kernel acceleration, enabling additional 1.4× latency reduction.

Experimental results

Research questions

  • RQ1How does hardware-impacted latency hysteresis (LHE) affect the relationship between model size and inference latency in LSTMs?
  • RQ2Can a hardware-guided training strategy avoid sub-optimal model architectures that are small in size but inefficient in execution?
  • RQ3To what extent can multi-granular grow-and-prune algorithms, guided by real hardware latency feedback, improve the symbiosis of compactness, accuracy, and execution efficiency in LSTMs?
  • RQ4How does the combination of structured pruning and hardware-aware dimension tuning affect inference speed and model accuracy on both GPUs and CPUs?
  • RQ5Can high-weight sparsity be effectively exploited on CPUs using optimized libraries like Intel MKL, and what is the resulting performance gain?

Key findings

  • On the Penn Treebank language modeling task, the method reduced model parameters by 18.0× and inference latency by up to 2.4× on Nvidia GPUs, and by 30.5× and 5.2× on Intel Xeon CPUs, respectively, with no accuracy degradation.
  • For the AN4 speech recognition task, the method reduced parameters by 7.0× and latency by up to 1.7× on GPUs, and by 19.4× and 2.4× on CPUs, while improving word error rate (WER) from 12.9% to 9.9% (on GPUs) and 10.4% (on CPUs).
  • The final CPU inference model for speech recognition contained only 2.6M parameters (19.4× compression) and achieved a 54.8% latency reduction (2.2× speedup) on Intel Broadwell CPUs, with a WER of 10.37% — 2.53% better than the baseline.
  • The method achieved up to 5.2× latency reduction on CPUs and 2.4× on GPUs for language modeling, demonstrating that hardware-aware design can yield substantial efficiency gains beyond mere parameter reduction.
  • By avoiding dimension reduction on CPUs and maximizing sparsity to 94.2%, the method fully leveraged Intel MKL’s sparse kernel acceleration, contributing approximately 2× speedup, with the remaining 1.1× speedup from H-LSTM cell optimization.
  • The approach successfully avoided sub-optimal design points, reducing the effective model architecture search space by up to 90%, and outperformed prior work across all three metrics: compactness, accuracy, and execution efficiency.

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.