Skip to main content
QUICK REVIEW

[Paper Review] Cached Long Short-Term Memory Neural Networks for Document-Level Sentiment Classification

Jiacheng Xu, Danlu Chen|arXiv (Cornell University)|Oct 17, 2016
Topic ModelingComputer Science27 references7 citations
TL;DR

This paper proposes Cached Long Short-Term Memory (CLSTM) networks to improve document-level sentiment classification by introducing a multi-group memory mechanism with varying forgetting rates. By dividing the LSTM’s hidden state into distinct memory groups—each with different forgetting dynamics—CLSTM better preserves long-range sentiment dependencies, achieving state-of-the-art performance on Yelp 2013, Yelp 2014, and IMDB datasets, outperforming both unidirectional and bidirectional baselines without relying on external user or product information.

ABSTRACT

Recently, neural networks have achieved great success on sentiment classification due to their ability to alleviate feature engineering. However, one of the remaining challenges is to model long texts in document-level sentiment classification under a recurrent architecture because of the deficiency of the memory unit. To address this problem, we present a Cached Long Short-Term Memory neural networks (CLSTM) to capture the overall semantic information in long texts. CLSTM introduces a cache mechanism, which divides memory into several groups with different forgetting rates and thus enables the network to keep sentiment information better within a recurrent unit. The proposed CLSTM outperforms the state-of-the-art models on three publicly available document-level sentiment analysis datasets.

Motivation & Objective

  • Address the challenge of modeling long-range sentiment dependencies in document-level sentiment classification using recurrent architectures.
  • Overcome the limitations of standard LSTMs in retaining global sentiment information over long sequences due to uniform forgetting rates.
  • Design a memory mechanism that differentiates between short-term and long-term sentiment cues within a single RNN unit.
  • Achieve superior performance on document-level sentiment datasets without relying on external metadata such as user or product information.

Proposed method

  • Introduce a cache mechanism that partitions the LSTM’s hidden state into multiple groups, each with a distinct forgetting rate.
  • Assign higher forgetting rates to groups acting as short-term caches, enabling transient retention of local sentiment patterns.
  • Assign lower forgetting rates to groups functioning as long-term memory, preserving global sentiment context across long sequences.
  • Train the model end-to-end using backpropagation through time, with shared parameters across groups but independent forgetting gates per group.
  • Implement both unidirectional and bidirectional variants (CLSTM and B-CLSTM) to evaluate performance across different sequence modeling directions.
  • Maintain computational efficiency by keeping the total number of parameters comparable to standard LSTMs, avoiding the complexity of hierarchical models.

Experimental results

Research questions

  • RQ1Can a multi-group memory mechanism with heterogeneous forgetting rates improve long-range sentiment modeling in RNNs for document-level sentiment classification?
  • RQ2How does the proposed CLSTM model compare to standard LSTMs and other advanced variants like CIFG-LSTM in capturing global sentiment patterns in long documents?
  • RQ3Does the cache mechanism enable better performance on long documents compared to models that rely on fixed forgetting rates or bidirectional architectures?
  • RQ4Can CLSTM achieve state-of-the-art results without using external user or product information, which many prior models depend on?

Key findings

  • CLSTM achieves 59.4% accuracy on the Yelp 2013 dataset, outperforming the unidirectional baseline LSTM and approaching the performance of bidirectional models.
  • On the IMDB dataset, CLSTM achieves 45.8% accuracy, significantly outperforming standard LSTM and CIFG-LSTM, and surpassing models that use extra user and product information.
  • The bidirectional variant (B-CLSTM) achieves 61.0% accuracy on Yelp 2014, demonstrating strong performance even on long and complex documents.
  • The model shows robustness to document length, maintaining high accuracy on longer texts, with B-CLSTM outperforming CIFG-BLSTM across all length intervals on the IMDB dataset.
  • Optimal performance is achieved with 4 memory groups on Yelp 2013, and performance degrades with more than 5 groups due to reduced capacity per group.
  • B-CLSTM converges faster than standard and baseline models, attributed to the structured initialization and gradient stability provided by the multi-group memory design.

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.