Skip to main content
QUICK REVIEW

[Paper Review] Sentiment Analysis Using Simplified Long Short-term Memory Recurrent Neural Networks

Karthik Gopalakrishnan, Fathi M. Salem|arXiv (Cornell University)|Jan 1, 2020
Topic ModelingComputer Science9 references4 citations
TL;DR

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.

ABSTRACT

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 Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.