[Paper Review] Sentiment Analysis Using Simplified Long Short-term Memory Recurrent Neural Networks
This paper proposes six simplified LSTM (slim LSTM) variants to accelerate training and reduce computational cost in sentiment analysis on a GOP debate Twitter dataset. The study finds that slim LSTM6 achieves performance comparable to standard LSTM with significantly reduced parameters, while bidirectional LSTM layers improve overall accuracy, and RMSprop optimizer yields the best sentiment classification balance between positive and negative sentiments.
LSTM or Long Short Term Memory Networks is a specific type of Recurrent Neural Network (RNN) that is very effective in dealing with long sequence data and learning long term dependencies. In this work, we perform sentiment analysis on a GOP Debate Twitter dataset. To speed up training and reduce the computational cost and time, six different parameter reduced slim versions of the LSTM model (slim LSTM) are proposed. We evaluate two of these models on the dataset. The performance of these two LSTM models along with the standard LSTM model is compared. The effect of Bidirectional LSTM Layers is also studied. The work also consists of a study to choose the best architecture, apart from establishing the best set of hyper parameters for different LSTM Models.
Motivation & Objective
- To reduce computational cost and training time in sentiment analysis using LSTM networks.
- To evaluate the performance of six simplified LSTM architectures (slim LSTM) on a GOP debate Twitter dataset.
- To identify the optimal model architecture, hyperparameters, and training configuration for sentiment classification.
- To assess the impact of bidirectional LSTM layers and different optimizers on model performance.
- To determine the best batch size and training-validation split ratio for improved generalization.
Proposed method
- Proposes six parameter-reduced variants of the standard LSTM network, termed 'slim LSTM', to minimize parameters and accelerate training.
- Employs standard LSTM equations involving input, forget, and output gates: ππ‘=π(ππβπ‘β1+πππ₯π‘+ππ), ππ‘=π(ππβπ‘β1+πππ₯π‘+ππ), ππ‘=π(ππβπ‘β1+πππ₯π‘+ππ), with cell state update ππ‘=ππ‘βππ‘β1 + tanh(ππβπ‘β1+Wππ₯π‘+ππ) and hidden state βπ‘=ππ‘βtanh(ππ‘).
- Integrates bidirectional LSTM layers to capture both past and future context in sequence data, improving long-term dependency modeling.
- Uses RMSprop and Adam optimizers to train models, with learning rate tuned to 3e-4 or 0.001 for optimal convergence.
- Tests model performance across varying batch sizes (16, 32, 64, 128) and training-validation split ratios (0.33, 0.4) to identify optimal configuration.
- Applies dropout layers to mitigate overfitting, though finds better performance with smaller training sets, suggesting reduced overfitting risk in slimmed models.
Experimental results
Research questions
- RQ1Which slim LSTM variant achieves the best trade-off between performance and computational efficiency?
- RQ2How does the inclusion of bidirectional LSTM layers affect sentiment classification accuracy?
- RQ3What is the optimal batch size and training-validation split ratio for sentiment analysis on this Twitter dataset?
- RQ4Which optimizer (RMSprop vs. Adam) yields the most balanced performance on positive and negative sentiment classification?
- RQ5Does reducing model parameters via slimming improve training speed without sacrificing accuracy?
Key findings
- The slim LSTM6 model achieves overall accuracy of 83% with comparable performance to standard LSTM (82%) but with reduced computational cost.
- RMSprop optimizer outperforms Adam in balancing positive and negative sentiment classification, achieving 71% positive and 81% negative accuracy, compared to Adamβs 67% and 83%.
- The optimal batch size is 16, as it yields the highest overall accuracy and enables more training iterations per epoch.
- A training-validation split ratio of 0.4 (60% training, 40% validation) yields better performance than 0.33, contrary to the common assumption that more training data always improves results.
- Adding dense layers after the LSTM block increases parameters and training time without improving performance, indicating that such layers are not recommended.
- Bidirectional LSTM layers improve overall system performance by providing context from both past and future sequence points.
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.