Proceedings

Dynamically Hierarchy Revolution: DirNet for Compressing Recurrent Neural Network on Mobile Devices

Download BibTeX Cite

Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence. Main track. Pages 3089-3096.

https://doi.org/10.24963/ijcai.2018/429

Abstract

Recurrent neural networks (RNNs) achieve cutting-edge performance on a variety of problems. However, due to their high computational and memory demands, deploying RNNs on resource constrained mobile devices is a challenging task. To guarantee minimum accuracy loss with higher compression rate and driven by the mobile resource requirement, we introduce a novel model compression approach DirNet based on an optimized fast dictionary learning algorithm, which 1) dynamically mines the dictionary atoms of the projection dictionary matrix within layer to adjust the compression rate 2) adaptively changes the sparsity of sparse codes cross the hierarchical layers. Experimental results on language model and an ASR model trained with a 1000h speech dataset demonstrate that our method significantly outperforms prior approaches. Evaluated on off-the-shelf mobile devices, we are able to reduce the size of original model by eight times with real-time model inference and negligible accuracy loss.

  1. [Abadi et al., 2016] Martín Abadi, Paul Barham, et al. Ten- sorflow: A system for large-scale machine learning. In OSDI, pages 265-283, GA, 2016. USENIX Association.
  2. [Chen et al., 2017] Yuntao Chen, Naiyan Wang, and Zhaox- iang Zhang. Darkrank: Accelerating deep metric learn- ing via cross sample similarities transfer. arXiv preprint arXiv:1707.01220, 2017.
  3. [Cho et al., 2014] Kyunghyun Cho, Bart Van Merriënboer, et al. Learning phrase representations using RNN encoder- decoder for statistical machine translation. abs/1406.1078, 2014.
  4. [Combettes and Wajs, 2005] Patrick L Combettes and Valérie R Wajs. Signal recovery by proximal forward- backward splitting. Multiscale Modeling & Simulation, 4(4):1168-1200, 2005.
  5. [Davis and Mermelstein, 1990] Steven B Davis and Paul Mermelstein. Comparison of parametric representations # neurons of each layer Params WER (G) WER (O) 500, 500, 500, 500, 500 10.3M 12.7 12.7 350, 375, 395, 405, 410 8.6M 12.3 12.3 270, 305, 335, 345, 350 7.2M 12.5 12.3 175, 215, 245, 260, 265 5.4M 12.5 12.4 120, 150, 180, 195, 200 4.1M 12.6 12.5 80, 105, 130, 145, 150 3.1M 12.9 12.5 50, 70, 90, 100, 110 2.3M 13.2 12.7 30, 45, 55, 65, 75 1.7M 14.4 12.9 25, 35, 45, 50, 55 1.3M 16.6
  6. 9 Table 3: The Word error rates (%) (WER) on the testing set as vary- ing the dimensions of each projection matrices D l by adaptively Ad- justing the hierarchical structure of RNN. for monosyllabic word recognition in continuously spo- ken sentences. In Readings in speech recognition, pages 65-74. Elsevier, 1990.
  7. [Denil et al., 2013] Misha Denil, Babak Shakibi, et al. Pre- dicting parameters in deep learning. In NIPS, pages 2148- 2156, 2013.
  8. [Friedman et al., 2007] Jerome Friedman, Trevor Hastie, et al. Pathwise coordinate optimization. The Annals of Applied Statistics, 1(2):302-332, 2007.
  9. [Geng et al., 2017] Yanyan Geng, Guohui Zhang, Weizhi Li, Yi Gu, Gaoyuan Liang, Jingbin Wang, Yanbin Wu, Nitin Patil, and Jing-Yan Wang. A novel image tag completion method based on convolutional neural network. In Inter- national Conference on Artificial Neural Networks, pages 539-546. Springer, 2017.
  10. [Graves et al., 2006] Alex Graves, Santiago Fernández, et al. Connectionist temporal classification: labelling unseg- mented sequence data with recurrent neural networks. In ICML, pages 369-376. ACM, 2006.
  11. [Graves et al., 2013] Alex Graves, Abdel-rahman Mohamed, et al. Speech recognition with deep recurrent neural net- works. In ICASSP, pages 6645-6649. IEEE, 2013.
  12. [Han et al., 2015a] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural net- works with pruning, trained quantization and huffman cod- ing. arXiv preprint arXiv:1510.00149, 2015.
  13. [Han et al., 2015b] Song Han, Jeff Pool, et al. Learning both weights and connections for efficient neural network. In NIPS, pages 1135-1143, 2015.
  14. [Han et al., 2017] Song Han, Junlong Kang, Huizi Mao, Yiming Hu, Xin Li, Yubin Li, Dongliang Xie, Hong Luo, Song Yao, Yu Wang, et al. Ese: Efficient speech recogni- tion engine with sparse lstm on fpga. In Proceedings of the 2017 ACM/SIGDA International Symposium on Field- Programmable Gate Arrays, pages 75-84. ACM, 2017.
  15. [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
  16. [Hitziger et al., 2013] Sebastian Hitziger, Maureen Clerc, et al. Jitter-adaptive dictionary learning-application to multi-trial neuroelectric signals. arXiv preprint arXiv:1301.3611, 2013.
  17. [Kim and Rush, 2016] Yoon Kim and Alexander M Rush. Sequence-level knowledge distillation. arXiv preprint arXiv:1606.07947, 2016.
  18. [Kingma and Ba, 2014] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
  19. [Kingsbury, 2009] Brian Kingsbury. Lattice-based optimiza- tion of sequence classification criteria for neural-network acoustic modeling. In ICASSP, pages 3761-3764, 2009.
  20. [Lei et al., 2013] Xin Lei, Andrew W Senior, et al. Accu- rate and compact large vocabulary speech recognition on mobile devices. In INTERSPEECH. Citeseer, 2013.
  21. [Li et al., 2017] Dawei Li, Xiaolong Wang, and Deguang Kong. Deeprebirth: Accelerating deep neural net- work execution on mobile devices. arXiv preprint arXiv:1708.04728, 2017.
  22. [Lin et al., 2014] Binbin Lin, Qingyang Li, et al. Stochastic coordinate coding and its application for drosophila gene expression pattern annotation. arXiv:1407.8147, 2014.
  23. [Mairal et al., 2009] Julien Mairal, Francis Bach, Jean Ponce, and Guillermo Sapiro. Online dictionary learning for sparse coding. In ICML, pages 689-696. ACM, 2009.
  24. [Marcus et al., 1993] Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313-330, 1993.
  25. [Mikolov et al., 2011] Tomàš Mikolov, S. Kombrink, et al. Extensions of recurrent neural network language model. In ICASSP, pages 5528-5531, May 2011.
  26. [Narang et al., 2017] Sharan Narang, Gregory Diamos, Shubho Sengupta, and Erich Elsen. Exploring sparsity in recurrent neural networks. ICLR, 2017.
  27. [Panayotov et al., 2015] Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: an asr corpus based on public domain audio books. In ICASSP, pages 5206-5210. IEEE, 2015.
  28. [Prabhavalkar et al., 2016] Rohit Prabhavalkar, Ouais Al- sharif, et al. On the compression of recurrent neural net- works with an application to lvcsr acoustic modeling for embedded speech recognition. In ICASSP, pages 5970- 5974. IEEE, 2016.
  29. [Sainath et al., 2013] Tara N Sainath, Brian Kingsbury, et al. Low-rank matrix factorization for deep neural network training with high-dimensional output targets. In ICASSP, pages 6655-6659, 2013.
  30. [Sak et al., 2014] Hasim Sak, Andrew Senior, et al. Long short-term memory recurrent neural network architectures for large scale acoustic modeling. In INTERSPEECH, 2014.
  31. [Sak et al., 2015] Has ¸im Sak, Andrew Senior, et al. Learning acoustic frame labeling for speech recognition with recur- rent neural networks. In ICASSP, pages 4280-4284. IEEE, 2015.
  32. [Tibshirani, 1996] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), pages 267-288, 1996.
  33. [Tseng, 2001] Paul Tseng. Convergence of a block co- ordinate descent method for nondifferentiable minimiza- tion. Journal of optimization theory and applications, 109(3):475-494, 2001.
  34. [Vinyals et al., 2017] Oriol Vinyals, Alexander Toshev, et al. Show and tell: Lessons learned from the 2015 mscoco im- age captioning challenge. IEEE transactions on pattern analysis and machine intelligence, 39(4):652-663, 2017.
  35. [Xu et al., 2018] Chen Xu, Jianqiang Yao, et al. Alternating multi-bit quantization for recurrent neural networks. In ICLR, 2018.
  36. [Xue et al., 2013] Jian Xue, Jinyu Li, and Yifan Gong. Re- structuring of deep neural network acoustic models with singular value decomposition. In INTERSPEECH, pages 2365-2369, 2013.
  37. [Zaremba et al., 2014] Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regulariza- tion. arXiv preprint arXiv:1409.2329, 2014.
  38. [Zhang et al., 2016] Kai Zhang, Shandian Zhe, et al. An- nealed sparsity via adaptive and dynamic shrinking. In KDD, pages 1325-1334, 2016.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards