Aspect-Based Sentiment Analysis Through EDU-Level Attentions

Ting Lin, Aixin Sun, Yequan Wang

Abstract

The EDU-Attention model improves Aspect-based Sentiment Analysis (ABSA) by breaking complex sentences into "Elementary Discourse Units" (EDUs)—logical, clause-like segments. By applying hierarchical sparse attention and orthogonal regularization, the model accurately maps specific sentiments to their corresponding aspects, outperforming even BERT-based models on "hard" sentences while remaining significantly smaller and faster.

Introduction

Sentiment analysis is straightforward when a sentence has one opinion (e.g., "The food is great"). However, real-world reviews are often "hard sentences" containing multiple aspects with conflicting polarities: "The food was tasty, but the service was mediocre and the bill was too high."

Existing models often struggle with these because word-level attention mechanisms tend to "leak" sentiment from one aspect to another. If a model sees the word "tasty," it might incorrectly apply that positive sentiment to the "service" or "price" aspects. The challenge is to create a structural boundary that forces the model to look only at the relevant part of the sentence for a specific aspect.

Methodology

The authors propose a hierarchical approach based on the observation that a single EDU (a clause) usually expresses exactly one aspect and one sentiment.

The hierarchical EDU-Attention architecture, showing the flow from sentence segmentation to final representation.

The model architecture consists of several key components:

  1. EDU Segmentation: The model first segments the input sentence into EDUs using an off-the-shelf tool (SEGBOT).
  2. Word-level Sparse Attention: Within each EDU, the model uses sparsemax instead of the traditional softmax. Sparsemax is "sparse" because it can assign exactly zero weight to irrelevant words, effectively filtering out noise and focusing only on sentiment-bearing terms (like "tasty" or "slow").
  3. EDU-level Sparse Attention: The model then determines which EDU(s) are relevant to which aspect category (e.g., "Food" vs. "Service").
  4. Orthogonal Regularization: This is a key innovation. To prevent the model from "double-dipping"—assigning the same EDU to multiple different aspects—the authors apply a regularization penalty that forces the attention distributions for different aspects to be mathematically orthogonal (perpendicular) to each other.
  5. Multi-task Learning: The model is trained to predict both the sentiment polarity and whether an aspect is even present in the sentence, which helps the encoder learn better representations.

Evaluation and Results

The model was evaluated on three major benchmarks: Rest14, Laptop15, and MAMS-ACSA (where every sentence contains at least two aspects with different polarities). The authors also created specific "Hard" versions of Rest14 and Laptop15 to test the model's limits.

Performance comparison of the EDU-Attention model (Ours) against various baselines across multiple datasets.

Key Performance Insights

  • Superiority on Hard Sentences: On the Rest14-Hard dataset, the EDU-Attention model achieved an accuracy of 70.28%, significantly outperforming the standard BERT-baseline (66.98%).
  • Efficiency over Scale: The model is remarkably lightweight, featuring only 3.5 million parameters, compared to the 109.5 million in the BERT-baseline. This demonstrates that better inductive biases can be more effective than sheer parameter count for specific tasks.
  • Inference Speed: In testing on the MAMS dataset, the model was roughly twice as fast as BERT-baseline during inference, making it much more suitable for real-time applications.
  • Ablation Success: Removing the orthogonal regularization led to a noticeable drop in performance, proving that forcing the model to diversify its attention across different EDUs is critical for handling complex sentences.

Conclusion

The EDU-Attention model highlights that grammatical clauses (EDUs) are the "natural" level of granularity for sentiment. By using sparsemax and orthogonal constraints, the model avoids the noise and sentiment leakage common in word-level attention models. While the system's performance is tied to the accuracy of the initial EDU segmenter, its efficiency and accuracy on complex text represent a significant step forward for fine-grained sentiment analysis.

Summary updated

BibTeX
@inproceedings{lin2022aspect,
  author = {Ting Lin and Aixin Sun and Yequan Wang},
  title = {{Aspect-Based Sentiment Analysis Through EDU-Level Attentions}},
  booktitle = {PAKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=JSXxYJJ8QfG},
}
Figure