Learning Interpretable Negation Rules via Weak Supervision at Document Level: A Reinforcement Learning Approach

Nicolas Pröllochs, Stefan Feuerriegel, Dirk Neumann

Abstract

Negation detection is a critical component of sentiment analysis, yet traditional supervised methods suffer from high annotation costs and low inter-rater reliability. This paper proposes a reinforcement learning (RL) framework that learns interpretable negation rules using only document-level sentiment labels as weak supervision. By modeling negation as a sequential decision-making process, the agent learns to identify negation scopes that maximize sentiment prediction accuracy. Experimental results across three diverse datasets—IMDb, Airport, and Ad hoc—demonstrate that this approach outperforms fixed-rule heuristics and even supervised models, reducing Mean Squared Error (MSE) by up to 4.66% while maintaining full transparency through learned Q-tables.

Introduction

Negation is a fundamental linguistic tool that can completely invert the sentiment of a phrase (e.g., "not happy"). Traditional sentiment analysis models often struggle with negation unless they are explicitly trained on "negation scopes"—labels marking which words are affected by a negation cue. However, creating these labels is expensive and highly subjective; human raters often agree on negation scopes only about 50% of the time. This research addresses these challenges by asking: Can we learn these rules without word-level labels, using only the weak supervision of a document's overall sentiment score?

Methodology

The authors frame negation detection as a sequential decision-making problem solved via Q-learning. The RL agent processes a document word-by-word, deciding at each step whether a word is Negated or ¬Negated. The state is defined by the current word $w_i$ and the action taken for the previous word $a_{i-1}$, allowing the model to capture dependencies like the start and end of a negation scope.

The learned policy table demonstrates how the agent makes decisions based on the current word and previous state.

Unlike "black box" deep learning models, this approach is fully interpretable. As shown in the policy table above, the agent learns logical linguistic rules: for example, the word "isn't" triggers a transition to a Negated state, while the word "but" serves as a signal to terminate the negation scope and return to ¬Negated. The agent receives a terminal reward at the end of the document based on how much its negation choices improved the document's sentiment prediction compared to a baseline with no negation handling.

Experimental Setup

The model was evaluated on three distinct datasets to test its versatility:

  • IMDb: Movie reviews representing standard sentiment tasks.
  • Airport: Skytrax user reviews of airports.
  • Ad hoc: Financial announcements, which involve complex, domain-specific language where negation cues may be subtle.

Key Results

The RL approach consistently outperformed all baseline methods across the tested datasets. In the IMDb and Airport datasets, the model achieved a significant reduction in Mean Squared Error (MSE) compared to traditional fixed-window rules (e.g., negating the next $n$ words).

Comparison of MSE across different negation handling approaches and datasets.

As summarized in the table above, the proposed reinforcement learning method achieved the lowest MSE in every category. Notably, it outperformed a supervised Hidden Markov Model (HMM) trained on human-annotated word-level labels by 5.79%. This suggests that optimizing for the downstream sentiment task directly is more effective than relying on noisy and subjective human negation labels. The model's ability to adapt to domain-specific language was particularly evident in the "Ad hoc" financial dataset, where it discovered implicit negation cues without a pre-defined list.

Discussion and Conclusion

By mimicking cognitive reading theory—processing information iteratively word-by-word—the RL agent successfully discovers negation rules that are both effective and human-readable. While the current approach relies on a pre-defined sentiment lexicon for its reward function, the results prove that weak supervision at the document level is a powerful alternative to expensive word-level annotation. Future work may explore the generalization of these learned rules to other NLP tasks such as Information Retrieval and Question Answering.

Summary updated

BibTeX
@inproceedings{prollochs2019learning,
  author = {Nicolas Pröllochs and Stefan Feuerriegel and Dirk Neumann},
  title = {{Learning Interpretable Negation Rules via Weak Supervision at Document Level: A Reinforcement Learning Approach}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1038},
}
Figure