Introduction
Aspect Sentiment Classification (ASC) is a fine-grained sentiment analysis task that involves identifying the sentiment polarity (positive, negative, or neutral) for specific "aspects" within a sentence. While modern deep learning models achieve high performance on standard benchmarks, they often lack robustness when encountering out-of-domain (O.O.D.) data or adversarial (Adv.) perturbations. This paper addresses this brittleness by introducing two simple, model-agnostic mechanisms: position-biased weight and position-biased dropout.
The Challenge: Mis-attending and Robustness
The primary reason for model failure in ASC is "mis-attending." Models often latch onto strong sentiment words that are syntactically or contextually unrelated to the target aspect. For instance, in a sentence with multiple aspects, a model might incorrectly associate a sentiment word with the wrong target if it lacks a mechanism to prioritize local context. This issue is exacerbated in O.O.D. scenarios (e.g., training on laptops, testing on restaurants) and adversarial attacks designed to distract the model.
Methods: Leveraging Position Bias
The authors hypothesize that position bias—the tendency for descriptive words to be physically close to the aspect they modify—is a powerful inductive bias. Analysis of multiple SemEval datasets confirms that opinion words are predominantly located near their target aspects.
To exploit this, the researchers propose two "plug-and-play" modules:
- Position-biased Weight (pos-wt): Assigns a weight to context words based on their relative distance to the aspect. Weights decrease linearly as distance increases, effectively down-weighting distant distractors.
- Position-biased Dropout (pos-dp): Uses distance-based probabilities to randomly drop words during training. Words further from the aspect have a higher probability of being dropped, forcing the model to rely on the immediate context.
Experimental Results
The proposed mechanisms were integrated into various architectures, including LSTMs, Attention-based models (IAN, AOA), Memory Networks (MemNet), and RoBERTa. Testing was conducted on SemEval 2014 and the Aspect Robustness Test Set (ARTS).
The results demonstrate significant improvements:
- Robustness Gains: Adding
pos-wtimproved accuracy by up to 6.05 percentage points on O.O.D. data and 7.20 points on adversarial sets. - F1 Score Jumps: Macro-F1 scores saw improvements of up to 9.51 points, highlighting better performance across imbalanced classes.
- Model Agnosticism: The benefits were consistent across all tested architectures. Even RoBERTa, which includes absolute positional encodings, benefited from explicit relative position bias.
Conclusion and Future Work
By explicitly modeling the relative distance between aspects and context words, the proposed position-biased mechanisms significantly enhance the robustness of ASC models. While effective, the current linear distance metric is relatively simple. Future research could explore more sophisticated biases based on syntactic dependency trees or deeper integration into Transformer self-attention layers.
Summary updated