Abstract
Current Aspect-Based Sentiment Analysis (ABSA) models often suffer from poor robustness, frequently relying on global sentence sentiment rather than specific target aspects. We present SENTA (Sentiment Adjustment), a framework leveraging causal inference to disentangle target sentiment from confounding non-target aspects. By applying backdoor adjustment, SENTA significantly improves model performance on adversarial datasets like ARTS, demonstrating a principled approach to de-biasing NLP models.
1. Introduction
Aspect-Based Sentiment Analysis (ABSA) aims to identify the sentiment associated with a specific entity within a sentence. For instance, in the sentence "The pizza is good but the waiters are unfriendly," a model should correctly identify a positive sentiment for "pizza" and a negative one for "waiters." However, state-of-the-art neural models often fail this task when faced with complex or adversarial contexts.
The core issue lies in spurious correlations. Training data often contains biases where the overall sentiment of a review correlates strongly with individual aspects. Consequently, models learn to predict sentiment based on the entire context (the "confounder") rather than the target aspect itself. When the sentiment of a non-target aspect is changed, the model's prediction for the target aspect often flips incorrectly, indicating a lack of causal understanding.
2. Methodology: The SENTA Framework
To address these biases, we propose SENTA (SENtiment Adjustment), a framework grounded in Structural Causal Models (SCM). We define three primary variables: the target feature ($X$), the prediction ($Y$), and the confounding factor ($C$), which represents non-target aspects. In standard models, $C$ influences both $X$ and $Y$, creating a "backdoor path" that introduces bias.
2.1 Causal Intervention
SENTA utilizes the "do-operation" ($do(X=x)$) from Pearl’s causal theory to perform backdoor adjustment. This intervention mathematically removes the influence of $C$ on $X$, forcing the model to estimate the direct effect of the target aspect on the prediction across all possible states of the confounder.
2.2 Implementation Steps
The framework is implemented in two distinct steps:
- Step 1: Confounding Model: A BERT-based model identifies confounding features by decomposing them into class-level representations (positive, negative, and neutral).
- Step 2: Interventional Model: The final model is trained by adjusting the input. Hidden states are concatenated with a weighted sum of the confounding features from Step 1, effectively "subtracting" the contextual bias.
3. Experimental Evaluation
We evaluated SENTA on the standard SemEval-2014 Task 4 benchmark and the ARTS (Aspect Robustness Test Set). ARTS serves as a stress test, particularly the REVNON subset, where non-target aspect sentiments are intentionally flipped to probe model robustness.
4. Results and Discussion
SENTA demonstrates superior robustness compared to baseline models. On the Laptop domain of the ARTS dataset, SENTA improved a standard BERT model's accuracy from 63.71% to 67.23%. When integrated with a post-trained BERT (BERT-PT), accuracy reached 74.16%.
Crucially, SENTA reduces the performance gap between standard and adversarial test sets. While standard models often see accuracy drops of over 11%, SENTA limits this drop to as low as 6.00%. The model's performance on the REVNON subset confirms its ability to ignore irrelevant contextual changes and focus on the target aspect.
5. Conclusion
SENTA provides a principled, pluggable method for improving the robustness of ABSA models through causal intervention. By treating non-target aspects as confounders and applying backdoor adjustment, we can move beyond simple pattern matching toward more causally-grounded sentiment analysis. Future work will explore more complex confounder representations and the application of interventional logic to other biased NLP tasks.
Summary updated