ρ-hot Lexicon Embedding-based Two-level LSTM for Sentiment Analysis

Ou Wu, Tao Yang, Mengyang Li, Ming LiarXiv 2018

Abstract

Sentiment analysis often struggles with subjective labeling noise and the effective integration of rule-based linguistic knowledge into neural architectures. This paper introduces ρTl-LSTM, a framework that utilizes a two-stage labeling strategy and a two-level LSTM architecture. A key innovation is the ρ-hot lexicon embedding, which scales lexical features to match the intensity of dense word embeddings. Evaluated on three new Chinese sentiment datasets, the proposed model achieves a 5-6% accuracy improvement over standard baselines by effectively capturing clause-level nuances and sentence-level logic.

Introduction

Deep learning has significantly advanced sentiment analysis, yet two primary challenges remain. First, labeling noise is prevalent because sentiment is inherently subjective; complex sentences with mixed sentiments are often mislabeled in standard datasets. Second, neural models frequently ignore lexical cues, such as the inversion of sentiment caused by privative words (e.g., "not bad"). While traditional lexicon-based methods handle these rules well, they lack the representational power of deep learning. This research bridges this gap by creating a system that is both easier to train via structured labeling and smarter about linguistic structure through specialized feature encoding.

Methodology

Two-Stage Labeling Strategy

To mitigate labeling noise, the authors propose a divide-and-conquer approach. Instead of labeling complex sentences directly, annotators first label individual clauses. These sub-sentences typically contain a single, clear sentiment, making them easier to label accurately. In the second stage, full sentences are labeled by multiple annotators to capture the complexity of mixed sentiments and conjunction-driven shifts.

Two-Level LSTM Architecture

The model architecture mirrors the labeling strategy with two hierarchical tiers:

  1. Level 1 (Clause Level): A bi-directional LSTM processes individual clauses to generate sentiment scores and feature vectors.
  2. Level 2 (Sentence Level): A second LSTM aggregates the outputs from Level 1, incorporating "conjunction embeddings" (e.g., "but", "however") to determine the final sentiment of the entire text.

ρ-hot Lexicon Embedding

Standard one-hot encodings are often "drowned out" when concatenated with dense word embeddings due to differences in magnitude and dimensionality. To address this, the authors developed ρ-hot encoding:

  • The binary "1" is replaced with a learnable parameter ρ (optimized at approximately 0.4).
  • The vector is duplicated $n$ times to increase its length, ensuring lexical features have sufficient weight to influence the model's attention mechanism.

Datasets

The study introduces three Chinese sentiment datasets based on user reviews, uniquely providing labels for both clauses and full sentences:

  • Travel: 4,100 samples / 11,291 clauses.
  • Hotel: 3,825 samples / 11,264 clauses.
  • Mobile: 3,483 samples / 8,118 clauses.

Results and Discussion

The proposed ρTl-LSTM model was benchmarked against CNN, standard LSTM, and Bag-of-Words (BOW) baselines.

  • Performance: The model outperformed the best baselines by 5-6% across all datasets.
  • Lexical Impact: Integrating Part-of-Speech (POS) tags and polar dictionaries via ρ-hot encoding consistently improved performance, validating the importance of balanced feature scaling.
  • Hyperparameter Optimization: Grid search identified an expansion factor ($n$) of 11 and a ρ value of 0.4 as optimal for balancing lexical and neural features.

Conclusion

The ρTl-LSTM framework demonstrates that integrating linguistic rules into deep learning models requires careful consideration of feature magnitude. By using a two-level architecture and ρ-hot embeddings, the model effectively captures the nuances of sentiment in complex Chinese text. Future work will explore extending lexicon embeddings to Transformer-based architectures and automating the construction of lexical dictionaries.

Summary updated

BibTeX
@misc{wu2018hot,
  author = {Ou Wu and Tao Yang and Mengyang Li and Ming Li},
  title = {{ρ-hot Lexicon Embedding-based Two-level LSTM for Sentiment Analysis}},
  year = {2018},
  eprint = {1803.07771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.07771},
}
Figure