NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Causal Intervention Improves Implicit Sentiment Analysis

Siyin Wang, Jie Zhou, Changzhi Sun, Junjie Ye, Tao Gui, Qi Zhang, Xuanjing Huang

Introduction

Current sentiment analysis models often struggle when sentiment is not explicitly stated through emotive adjectives like "good" or "bad." In these cases, known as Implicit Sentiment Analysis (ISA), the sentiment is embedded within factual statements or context (e.g., "The price was $100 for two drinks"). Traditional neural networks, which act as "correlation machines," frequently fail by relying on "shortcuts" or spurious correlations found in training data. This paper introduces CLEAN (CausaL intervention model for Entiment ANalysis), a framework that leverages Instrumental Variables (IV) to isolate the true causal relationship between a sentence's semantic context and its sentiment.

The Challenge of Implicit Sentiment

Most sentiment analysis models learn to associate specific words with positive or negative labels. While effective for explicit sentiment, this approach fails in ISA because of the "confounder" problem. Models often latch onto co-located words that act as shortcuts. For example, if a review mentions "food" (typically positive) alongside an implicit negative comment about "price," the model may incorrectly predict a positive sentiment for the price aspect simply due to the proximity of the word "food."

Implicit sentiment analysis vs. explicit sentiment analysis and the role of confounders.

The authors identify four primary types of confounders:

  • Inter-aspect: Sentiment from one topic bleeding into another.
  • Inter-clause: Opposing sentiments in complex sentences (e.g., "The screen is great, but the battery...").
  • Rhetoric: Sarcasm or rhetorical questions that flip the literal meaning.
  • Dynamic Neural: Neutral words that happen to appear mostly with one polarity in a biased training set.

To address this, the researchers move from simple correlation—$P(Sentiment | Sentence)$—to causal effect—$P(Sentiment | do(Sentence))$, effectively "intervening" to remove the influence of these confounders.

The CLEAN Framework: Causal Intervention via Instrumental Variables

CLEAN employs a two-stage learning process based on the statistical concept of Instrumental Variables (IV). An IV ($Z$) is a variable that affects the input ($X$, the sentence) but has no direct effect on the output ($Y$, the sentiment) except through that input.

The CLEAN framework utilizing stochastic perturbations as instrumental variables.

The Two-Stage Process

  1. Instrumental Variable Generation: The authors use stochastic perturbations—including random word swaps, deletions, insertions, and synonym substitutions—as the IV. These perturbations change the sentence's format without altering its underlying sentiment.
  2. Stage 1 (Establishing the Link): The model learns the relationship between the original sentence ($X$) and its perturbed versions ($X_z$), helping the network understand structural variations.
  3. Stage 2 (Causal Intervention): The model applies a specialized "IV Loss" ($L_{IV}$). This loss function suppresses the influence of confounders by comparing how the model reacts to different perturbations, forcing it to ignore spurious cues and focus on the underlying semantic meaning that actually causes the sentiment.

The final objective function combines this causal regularization with standard cross-entropy loss: $L_{ALL} = L_{CE} + \beta L_{IV}$.

Experimental Results and Evaluation

CLEAN was evaluated on three primary benchmarks: CLIPEval (a 100% implicit dataset), and the Laptop & Restaurant Reviews from SemEval 2014. The researchers specifically analyzed the Implicit Sentiment (ISE) and Explicit Sentiment (ESE) subsets to measure the model's targeted effectiveness.

  • Superior Performance: CLEAN outperformed strong baselines like BERT-SPC. On the CLIPEval dataset, it achieved an F1 score of 87.49, compared to the baseline's 84.74.
  • ISE Boost: On the Restaurant dataset, CLEAN improved the ISE F1 score by over 4 points.
  • Robustness: When tested against the TextFlint adversarial toolkit, CLEAN maintained significantly higher accuracy than standard models, proving it relies on causal semantics rather than nearby word associations.
  • Ablation Study: Interestingly, simply adding augmented data to a standard BERT model without the IV framework actually decreased performance. This confirms that the causal framework, not just the volume of data, is the key to the model's success.

Key Insights and Limitations

The study demonstrates that data augmentation can be used as a causal lever to "unstick" models from spurious correlations. By using $do$-calculus logic, the model becomes more robust, asking "Does this specific structure cause this sentiment?" rather than "What label usually goes with this word?"

However, limitations remain. The model still struggles with "unusual knowledge" (e.g., understanding that a mandatory 15% gratuity is often viewed negatively) and complex rhetorical devices like sarcasm. Future work may involve integrating external commonsense knowledge bases to help the model understand the real-world context behind factual statements.

Summary updated

BibTeX
@inproceedings{wang2022causal,
  author = {Siyin Wang and Jie Zhou and Changzhi Sun and Junjie Ye and Tao Gui and Qi Zhang and Xuanjing Huang},
  title = {{Causal Intervention Improves Implicit Sentiment Analysis}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=_qlBlCgGr3},
}
Figure