[Paper Review] Selfish Sparse RNN Training
This paper proposes Selfish-RNN, a method for training sparse recurrent neural networks (RNNs) from scratch with fixed parameter counts, using a novel sparse optimizer (SNT-ASGD) and non-uniform gate-wise weight redistribution for improved regularization. It achieves state-of-the-art performance on Penn TreeBank and Wikitext-2, outperforming dense-to-sparse pruning methods in RNN settings.
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. 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.
Motivation & Objective
- To address the poor performance of existing dynamic sparse training (DST) methods in RNNs, which lag behind dense-to-sparse approaches.
- To enable end-to-end sparse RNN training from scratch with a fixed number of parameters, avoiding pre-training of dense models.
- To improve generalization and performance in sparse RNNs through non-uniform redistribution of weights across LSTM cell gates.
- To develop a new optimizer, SNT-ASGD, compatible with sparse training that enhances convergence and performance across RNN architectures.
- To analyze the topological structure of sparse connectivity and reveal counterintuitive findings about weight growth and sparsity distribution in RNNs.
Proposed method
- Introduces SNT-ASGD, a sparse variant of averaged stochastic gradient descent with non-monotonic averaging, tailored for sparse RNN training.
- Employs non-uniform redistribution of weights across LSTM cell gates (input, forget, cell, output) during training to enhance regularization.
- Uses a fixed sparsity level throughout training, avoiding iterative pruning or growth phases.
- Applies graph-theoretic measures to quantify topological distance between different sparse connectivity patterns.
- Employs a backward-pass mechanism that skips computations for zero-weight parameters, reducing FLOPs without storing non-existent gradients.
- Evaluates various sparsity distributions (uniform, Erdős-Rényi, ERK) and weight growth strategies (random vs. gradient-based) in RNNs.
Experimental results
Research questions
- RQ1Can dynamic sparse training achieve state-of-the-art performance in RNNs comparable to dense-to-sparse methods?
- RQ2Does non-uniform redistribution of weights across LSTM cell gates improve generalization and model performance?
- RQ3How does the choice of sparsity distribution (uniform vs. Erdős-Rényi) affect the performance of sparse RNNs?
- RQ4Why do random-based weight growth strategies outperform gradient-based ones in sparse RNN training?
- RQ5What is the topological diversity of low-loss sparse RNN architectures, and how do they differ from one another?
Key findings
- Selfish-RNN achieves state-of-the-art performance on Penn TreeBank and Wikitext-2, surpassing both dense-to-sparse pruning and existing DST methods in RNNs.
- The forget gate weights consistently become the sparsest across all RNN models, while cell and output gate weights remain denser than average.
- Random-based weight growth outperforms gradient-based growth in sparse RNN training, contrary to findings in CNNs and MLPs.
- Uniform sparsity distribution performs better than Erdős-Rényi (ER) distribution in RNNs, despite ER’s theoretical advantages in connectivity.
- There exist many low-loss sparse RNNs that are topologically distinct, indicating a rich landscape of effective sparse architectures.
- SNT-ASGD significantly improves performance across all sparse training methods for RNNs, demonstrating its effectiveness as a general-purpose optimizer.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.