Selfish Sparse RNN Training

Shiwei Liu, Decebal Constantin Mocanu, Yulong Pei, Mykola Pechenizkiy
1/22/2021
cs.LGcs.AI

Official code: Shiweiliuiiiiiii/Selfish-RNN (10 stars, Python, last commit 2021-10-08).

Abstract

Sparse neural networks have been widely applied to reduce the computational demands of training and deploying over-parameterized deep neural networks. For inference acceleration, methods that discover a sparse network from a pre-trained dense network (dense-to-sparse training) work effectively.

Show full abstract

Recently, dynamic sparse training (DST) has been proposed to train sparse neural networks without pre-training a dense model (sparse-to-sparse training), so that the training process can also be accelerated. However, previous sparse-to-sparse methods mainly focus on Multilayer Perceptron Networks (MLPs) and Convolutional Neural Networks (CNNs), failing to match the performance of dense-to-sparse methods in the Recurrent Neural Networks (RNNs) setting. In this paper, we propose an approach to train intrinsically sparse RNNs with a fixed parameter count in one single run, without compromising performance. During training, we allow RNN layers to have a non-uniform redistribution across cell gates for better regularization. Further, we propose SNT-ASGD, a novel variant of the averaged stochastic gradient optimizer, which significantly improves the performance of all sparse training methods for RNNs. Using these strategies, we achieve state-of-the-art sparse training results, better than the dense-to-sparse methods, with various types of RNNs on Penn TreeBank and Wikitext-2 datasets. Our codes are available at https://github.com/Shiweiliuiiiiiii/Selfish-RNN.

View on arXivView PDF

Code Implementations(1)

[ICML 2021] "Selfish Sparse RNN Training" by Shiwei Liu, Decebal Constantin Mocanu, Yulong Pei, Mykola Pechenizkiy

103PythonJun 6, 20205 years ago
awd-lstmawd-mos-lstmdynamic-sparse-trainingonlstmrecurrent-neural-networks+2 more

Similar Papers

Cite this paper

@article{liu2021selfish,
  title  = {Selfish Sparse RNN Training},
  author = {Shiwei Liu and Decebal Constantin Mocanu and Yulong Pei and Mykola Pechenizkiy},
  year   = {2021},
  eprint = {2101.09048},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.09048}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.09048.svg)](https://codeofpaper.com/paper/2101.09048)

Discussion