Causal Prompting for Implicit Sentiment Analysis with Large Language Models

Jing Ren, Wenhao Zhou, Bowen Li, Mujie Liu, Nguyen Linh Dan Le, Jiade Cen, Liping Chen, Ziqi Xu, Xiwei Xu, Xiaodong Li · DOI

Introduction

Sentiment analysis has traditionally relied on identifying explicit emotional cues. While Large Language Models (LLMs) have shown remarkable proficiency in Explicit Sentiment Analysis (ESA), they often struggle with Implicit Sentiment Analysis (ISA)—where sentiment is conveyed through factual descriptions rather than overt adjectives.

The Challenge of Implicit Sentiment

In ISA, a statement like "The movie was three hours and I didn't check my phone once" implies a positive experience without using words like "good" or "great." Conversely, "I asked three times and still didn't get a response" is clearly negative despite lacking explicit "bad" descriptors.

Comparison of Explicit vs. Implicit Sentiment Analysis.

Current LLMs often fail these tasks due to spurious correlations. Trained on vast datasets, they may develop internal biases ($Z$) that link specific topics to sentiments regardless of context. Standard techniques like Chain-of-Thought (CoT) with majority voting (Self-Consistency) often amplify these biases rather than correcting them, as the model simply repeats its biased reasoning more frequently.

The CAPITAL Framework: A Causal Approach

To address these limitations, researchers introduced CAPITAL (CAusal Prompting framework for Implicit sentimenT AnaLysis). CAPITAL shifts the paradigm by treating the LLM's reasoning process through a causal lens, specifically utilizing front-door adjustment.

Causal diagrams illustrating the front-door adjustment strategy.

The framework defines a Structural Causal Model (SCM) where:

  • $X$ (Query): The input text.
  • $T$ (Mediator): The Chain-of-Thought reasoning paths.
  • $Y$ (Outcome): The final sentiment prediction.
  • $Z$ (Confounder): The LLM's internal latent biases.

By applying the front-door criterion, CAPITAL mathematically isolates the causal effect of the query ($X$) on the answer ($Y$) by routing it through the reasoning mediator ($T$), effectively filtering out the influence of the confounder ($Z$).

Methodology: Beyond Simple Voting

CAPITAL operates in three primary stages:

  1. Reasoning Generation and Clustering: Instead of relying on a single output, the model generates multiple reasoning paths. These paths are encoded into vector space and clustered to identify representative "reasoning prototypes," ensuring a diverse and robust set of logic.
  2. Causal Estimation: The framework calculates the true causal effect by decomposing it into the influence of the prompt on the reasoning chains and the subsequent impact of those chains on the final output.
  3. Calibration via NWGM: To approximate the effect across the infinite space of possible prompts, CAPITAL employs the Normalized Weighted Geometric Mean (NWGM). Notably, it retrieves "incorrect" reasoning examples from training data to help the model recognize and avoid its own typical failure modes.

Key Results and Performance

Evaluated on LLaMA-2, LLaMA-3, and GPT-3.5 Turbo across SemEval14 benchmarks (Laptop and Restaurant), CAPITAL demonstrated significant improvements:

  • Accuracy Gains: On the LLaMA-3 backbone, CAPITAL achieved an F1-score of 71.63 on the Restaurant ISA task, a substantial leap from the previous state-of-the-art method, THOR (66.31).
  • Robustness: CAPITAL proved exceptionally resilient to adversarial prompts. While standard CoT methods saw performance drops of nearly 20% when faced with misleading contexts, CAPITAL maintained a high F1-score of 90.17.

Conclusion

CAPITAL demonstrates that treating LLM reasoning as a causal mediator rather than just text allows for the systematic removal of internal model biases. This approach not only improves accuracy in subtle tasks like implicit sentiment analysis but also enhances the overall reliability and robustness of LLM-based reasoning.

Summary updated

BibTeX
@article{ren2026causal,
  author = {Jing Ren and Wenhao Zhou and Bowen Li and Mujie Liu and Nguyen Linh Dan Le and Jiade Cen and Liping Chen and Ziqi Xu and Xiwei Xu and Xiaodong Li},
  title = {{Causal Prompting for Implicit Sentiment Analysis with Large Language Models}},
  journal = {IEEE Transactions on Computational Social Systems},
  year = {2026},
  doi = {10.1109/tcss.2026.3661211},
}
Figure