English

Adaptive Pruning of Neural Language Models for Mobile Devices

Computation and Language 2018-09-30 v1 Machine Learning

Abstract

Neural language models (NLMs) exist in an accuracy-efficiency tradeoff space where better perplexity typically comes at the cost of greater computation complexity. In a software keyboard application on mobile devices, this translates into higher power consumption and shorter battery life. This paper represents the first attempt, to our knowledge, in exploring accuracy-efficiency tradeoffs for NLMs. Building on quasi-recurrent neural networks (QRNNs), we apply pruning techniques to provide a "knob" to select different operating points. In addition, we propose a simple technique to recover some perplexity using a negligible amount of memory. Our empirical evaluations consider both perplexity as well as energy consumption on a Raspberry Pi, where we demonstrate which methods provide the best perplexity-power consumption operating point. At one operating point, one of the techniques is able to provide energy savings of 40% over the state of the art with only a 17% relative increase in perplexity.

Keywords

Cite

@article{arxiv.1809.10282,
  title  = {Adaptive Pruning of Neural Language Models for Mobile Devices},
  author = {Raphael Tang and Jimmy Lin},
  journal= {arXiv preprint arXiv:1809.10282},
  year   = {2018}
}

Comments

10 pages, 3 figures, 2 tables, submitted to ICLR 2019

R2 v1 2026-06-23T04:19:49.978Z