Neuro-Symbolic Sentiment Analysis with Dynamic Word Sense Disambiguation

Xulang Zhang, Rui Mao, Kai He, Erik Cambria

Introduction

Sentiment analysis often struggles with polysemy—words that carry multiple meanings depending on context. For instance, the word "fine" can denote high quality ("a fine wine") or a penalty ("a heavy fine"). While traditional deep learning models handle these nuances implicitly, they remain "black boxes," making it difficult to verify if the model truly understands the context or is merely relying on statistical correlations.

Existing Word Sense Disambiguation (WSD) systems are often incompatible with neural sentiment pipelines because they require pre-defined word lists or produce abstract labels that neural networks cannot easily process. This paper introduces a transparent, neuro-symbolic framework that bridges this gap by identifying ambiguous words and replacing them with clearer synonyms to aid classification.

Methodology

The proposed framework integrates sub-symbolic neural networks with symbolic knowledge from WordNet. The architecture, illustrated in Figure 1, follows a four-stage pipeline:

  1. Importance Ranking: A Hierarchical Attention Network (HAN) identifies words that contribute most significantly to the sentiment prediction.
  2. Diversity Ranking: For high-importance words, the model calculates "sense diversity" by measuring the Euclidean distance between the hidden states of the word's synonyms in WordNet. Words with synonyms that are semantically distant are flagged as highly ambiguous.
  3. Lexical Substitution: A pre-trained model selects the most appropriate synonym to replace the ambiguous target word.
  4. Dynamic Rewarding: This core innovation uses a reinforcement-learning-style mechanism. If a synonym substitution improves sentiment prediction accuracy, the lexical substitution model is "rewarded" and fine-tuned to prefer similar clarifications in the future.
The proposed neuro-symbolic framework architecture, detailing the flow from importance ranking to dynamic rewarding.

Experimental Setup and Results

The framework was evaluated across three distinct domains: movie reviews (Rotten Tomatoes), financial news (Financial PhraseBank), and informal social media posts (STS-Gold).

As shown in Figure 2, the neuro-symbolic framework consistently outperformed strong baselines, including vanilla RoBERTa-large and domain-specific models like FinBERT. Key performance highlights include:

  • Accuracy Gains: An average improvement of 1.23% over the best baselines across all datasets.
  • State-of-the-Art Performance: The model achieved a remarkable 99.05% accuracy on the STS-Gold dataset.
  • Ablation Insights: Removing the Dynamic Rewarding (DR) component led to a significant performance drop, confirming that joint training between the sentiment and substitution modules is essential for success.
Performance comparison of the proposed model against various baselines across three datasets.

Key Insights

  • Selective Disambiguation: By focusing only on words that are both influential (high attention) and ambiguous (high sense diversity), the model avoids introducing noise through unnecessary substitutions.
  • Sentiment as a Teacher: The "Dynamic Rewarding" mechanism demonstrates that downstream sentiment labels can effectively supervise upstream WSD tasks without requiring manual linguistic labels.
  • Interpretability: Because the model performs literal word swaps, the decision-making process becomes transparent. For example, changing "visibility" to "profile" in a marketing context allows humans to see exactly how the model's understanding has evolved.

Limitations and Future Work

While effective, the system currently relies on WordNet, which limits its application primarily to English. Additionally, the model is sensitive to Part-of-Speech (POS) tagging errors; a misidentified word class can lead the WSD module to look up incorrect synonyms. Future research may explore multilingual WSD resources and apply dynamic disambiguation to other tasks such as machine translation or summarization.

Summary updated

BibTeX
@inproceedings{zhang2023neuro,
  author = {Xulang Zhang and Rui Mao and Kai He and Erik Cambria},
  title = {{Neuro-Symbolic Sentiment Analysis with Dynamic Word Sense Disambiguation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.587},
}
Figure