Exploiting Position Bias for Robust Aspect Sentiment Classification

Fang Ma, Chen Zhang, Dawei Song

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.

Density of aspect proximity across datasets, illustrating that most opinion words are located near the target aspect.

To exploit this, the researchers propose two "plug-and-play" modules:

  1. 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.
  2. 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).

Experimental results showing significant improvements in Accuracy and F1 scores across multiple models when using position-biased mechanisms.

The results demonstrate significant improvements:

  • Robustness Gains: Adding pos-wt improved 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

BibTeX
@inproceedings{ma2021exploiting,
  author = {Fang Ma and Chen Zhang and Dawei Song},
  title = {{Exploiting Position Bias for Robust Aspect Sentiment Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.116},
}
Figure