[Paper Review] Intrinsically Sparse Long Short-Term Memory Networks
This paper proposes SET-LSTM, a sparsely connected Long Short-Term Memory network trained via Sparse Evolutionary Training (SET), which achieves state-of-the-art performance on sentiment analysis tasks with less than 4% of the parameters of fully connected LSTMs. By initializing sparse connectivity in LSTM cells and embedding layers and evolving the topology during training, SET-LSTM reduces memory and computation costs while improving or matching accuracy on four datasets.
Long Short-Term Memory (LSTM) has achieved state-of-the-art performances on a wide range of tasks. Its outstanding performance is guaranteed by the long-term memory ability which matches the sequential data perfectly and the gating structure controlling the information flow. However, LSTMs are prone to be memory-bandwidth limited in realistic applications and need an unbearable period of training and inference time as the model size is ever-increasing. To tackle this problem, various efficient model compression methods have been proposed. Most of them need a big and expensive pre-trained model which is a nightmare for resource-limited devices where the memory budget is strictly limited. To remedy this situation, in this paper, we incorporate the Sparse Evolutionary Training (SET) procedure into LSTM, proposing a novel model dubbed SET-LSTM. Rather than starting with a fully-connected architecture, SET-LSTM has a sparse topology and dramatically fewer parameters in both phases, training and inference. Considering the specific architecture of LSTMs, we replace the LSTM cells and embedding layers with sparse structures and further on, use an evolutionary strategy to adapt the sparse connectivity to the data. Additionally, we find that SET-LSTM can provide many different good combinations of sparse connectivity to substitute the overparameterized optimization problem of dense neural networks. Evaluated on four sentiment analysis classification datasets, the results demonstrate that our proposed model is able to achieve usually better performance than its fully connected counterpart while having less than 4\% of its parameters.
Motivation & Objective
- To address the memory and computational inefficiency of large LSTM models in resource-limited environments.
- To overcome the dependency on expensive pre-trained fully connected models in existing compression techniques.
- To enable efficient training and inference by introducing sparsity from the initial architecture design.
- To explore whether adaptive sparse connectivity can yield better optimization landscapes than overparameterized dense networks.
- To evaluate the performance and robustness of sparse LSTMs on real-world sequential NLP tasks.
Proposed method
- Introduces SET-LSTM, a novel LSTM architecture with sparse connectivity in both LSTM cells and embedding layers from the outset.
- Applies the Sparse Evolutionary Training (SET) procedure to evolve the sparse topology during training, starting from an Erdős-Rényi random graph structure.
- Replaces standard fully connected linear transformations in LSTM gates with sparse, trainable, adaptive connectivity patterns.
- Uses evolutionary strategy to iteratively rewire connections based on performance feedback, optimizing both weights and topology simultaneously.
- Employs a rewire rate hyperparameter to control sparsity evolution per training epoch, enabling dynamic adaptation to data.
- Leverages sparse data structures to reduce memory bandwidth and computation overhead during training and inference.
Experimental results
Research questions
- RQ1Can sparse connectivity in LSTMs be initialized from the start to achieve high performance with drastically reduced parameters?
- RQ2Does adaptive sparse topology evolution via SET lead to better generalization than dense, overparameterized LSTMs?
- RQ3How does the performance of SET-LSTM compare to fully connected LSTMs across multiple sentiment classification benchmarks?
- RQ4What is the impact of fixed versus learned topologies and weight initialization on sparse network performance?
- RQ5Is there a trade-off between sparsity level and model accuracy, and what is the optimal sparsity range for effective performance?
Key findings
- SET-LSTM achieves higher or comparable accuracy than fully connected LSTMs on three of four sentiment analysis datasets, with up to 25 times fewer parameters.
- On the IMDb dataset, SET-LSTM reaches 80.14% accuracy with only 3.8% of the parameters of the dense baseline, outperforming it by 0.89%.
- On the Yelp 2018 dataset, SET-LSTM achieves 68.13% accuracy with 96% fewer parameters than the dense counterpart.
- The optimal rewire rate for Twitter data is ζ = 0.9, retaining only 10% of connections per epoch, which yields 79.37% accuracy.
- Fixed topologies trained with random initialization underperform significantly (77.97%) compared to the original evolutionary training (78.89%), highlighting the importance of joint weight and topology optimization.
- Even at extreme sparsity (99.1% pruned), SET-LSTM maintains 78.75% accuracy, exceeding the 77.19% of the dense LSTM, indicating robustness to high sparsity.
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.