Detecting Domain Polarity-Changes of Words in a Sentiment Lexicon

Shuai Wang, Guangyi Lv, Sahisnu Mazumder, Bing Liu

Introduction

General-purpose sentiment lexicons are a cornerstone of sentiment analysis, yet they often struggle with the dynamic nature of language. A word's polarity can shift dramatically depending on the context; for example, "cold" is a negative attribute for a hotel room but a positive one for a refrigerator. This paper addresses the "domain polarity change" problem by introducing the Domain-specific Sentiment Graph (DSG), a framework designed to automatically detect and correct these shifts without the need for labor-intensive manually labeled data.

Methodology

The DSG framework operates by modeling sentiment as a global optimization problem on a graph. The process involves three primary stages:

  1. Sentiment Word Collection: Identifying potential sentiment-bearing words within a target corpus, including existing lexicon entries and new candidates like adjectives and adverbs.
  2. Sentiment Correlation Extraction: The system identifies linguistic relationships that suggest whether two words share the same or opposite polarity. These relationships serve as the edges in the graph.
  3. Graph Construction and Inference: Words are represented as nodes in a Markov Random Field (MRF). The model employs Loopy Belief Propagation to estimate the domain-specific sentiment of each word. This approach relies on the "Small Change" assumption: since most words in a lexicon remain stable across domains, this majority can be used to anchor and resolve the polarities of ambiguous or flipped words.
Linguistic correlations and their agreement levels used to build the sentiment graph.

As shown in the table above, the model distinguishes between different types of correlations, such as "AND" (strong agreement) and "BUT" (strong disagreement), which is crucial for accurate polarity propagation.

Evaluation and Results

The researchers evaluated DSG across four distinct datasets: product reviews for refrigerators, blenders, and washers, and a social media dataset of movie-related tweets. The model was compared against several baselines, including Lexical Co-occurrence Induction (LCI) and SentProp (SP).

Key Performance Metrics

The DSG model demonstrated a superior ability to identify words that changed polarity in specific domains. For instance, in the Movie domain, DSG correctly identified 15 out of the top 20 polarity-changed words, compared to just 9 identified by the LCI baseline.

Comparison of DSG against baselines (LCI and SP) in identifying polarity-changed words across different domains.

Beyond word detection, the corrected lexicon significantly improved downstream sentiment classification. Accuracy rose from a baseline of 61.35% (using a general lexicon) to 79.33% with DSG. When integrated with lexicon expansion tools like SentProp, accuracy reached 80.03%, highlighting that correcting existing entries is as vital as discovering new ones.

Conclusion

The Domain-specific Sentiment Graph provides a robust, unsupervised method for adapting lexicons to new contexts. By leveraging linguistic constraints and graph-based inference, DSG offers a scalable solution for "cold-start" scenarios where labeled data is unavailable. Future work may explore integrating these graph-based corrections directly into neural architectures to combine the interpretability of lexicons with the predictive power of deep learning.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Sentiment classification (four-domain AVG: fridge, blender, washer, movie)Domain-specific Sentiment Graph (DSG)Accuracy79.33%+17.98 vs baselinesubset=925 sampled labeled sentences containing at least one detected word · domains=fridge, blender, washer, movie
Source quote
L308: DSG │ 74.56% │ 80.84% │ 77.01% │ 84.91% │ 79.33%
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Sentiment classification (four-domain AVG: fridge, blender, washer, movie)Original Lexicon (OL) baselineAccuracy61.35%subset=925 sampled labeled sentences containing at least one detected word · domains=fridge, blender, washer, movie
Source quote
L312: OL │ 61.20% │ 65.42% │ 62.06% │ 56.72% │ 61.35%
BibTeX
@inproceedings{wang2021detecting,
  author = {Shuai Wang and Guangyi Lv and Sahisnu Mazumder and Bing Liu},
  title = {{Detecting Domain Polarity-Changes of Words in a Sentiment Lexicon}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.320},
}
Figure