COM-MRC: A COntext-Masked Machine Reading Comprehension Framework for Aspect Sentiment Triplet Extraction

Zepeng Zhai, Hao Chen, Fangxiang Feng, Ruifan Li, Xiaojie Wang

Introduction

Aspect Sentiment Triplet Extraction (ASTE) is a critical task in fine-grained sentiment analysis. It requires the simultaneous identification of an aspect term (e.g., "ambience"), its corresponding opinion term (e.g., "nice"), and the associated sentiment polarity (e.g., positive). While Machine Reading Comprehension (MRC) frameworks have shown promise, they frequently struggle with "interference" in multi-aspect sentences. For instance, in the sentence "Nice ambience, but highly overrated place," a model might incorrectly associate "ambience" with "overrated."

The interference problem in ASTE and the COM-MRC masking solution.

The COM-MRC framework addresses this by introducing a context-masking strategy. By iteratively masking irrelevant aspect terms, the model can focus on a single aspect-opinion pair at a time, effectively eliminating cross-aspect noise.

Methodology

The COM-MRC framework is built upon three core components designed to isolate and extract triplets accurately.

The COM-MRC framework architecture, including the discriminative model, context augmentation strategy, and two-stage inference method.

1. Context Augmentation Strategy

To robustly handle multi-aspect sentences, the training data is augmented by generating up to $2^t$ instances for a sentence with $t$ aspects. These instances involve masking different combinations of aspect terms, forcing the model to learn to extract information even when parts of the context are obscured.

2. Discriminative Model

The model utilizes a BERT backbone with four specialized layers:

  • Aspect Extraction: Identifies the first unmasked aspect term.
  • Opinion Extraction: Locates descriptors specific to the identified aspect.
  • Sentiment Classification: Predicts the polarity (Positive, Negative, or Neutral).
  • Aspect Detection: Acts as a termination signal, indicating if further aspects exist in the current context.

3. Two-Stage Inference

Inference follows a sequential process. First, Aspect Inference (AI) extracts aspects one by one, masking each discovered term before searching for the next. Second, Aspect Accessory Inference (AAI) creates a specific context for each extracted aspect where all other aspects are masked, ensuring the model's attention is dedicated solely to the target triplet.

Results and Discussion

COM-MRC was evaluated on standard SemEval benchmarks ($D_1$ and $D_2$). The framework achieved state-of-the-art performance, outperforming the previous leading MRC method (BMRC) by an average of 3.59% and 4.18% F1-score on the respective datasets.

A key finding was the effectiveness of the AAI strategy in complex sentences. In scenarios with multiple aspects, masking all non-target aspects (AAI 2) yielded up to a 3.77% F1 improvement over versions without full masking. Visual analysis of attention maps confirmed that masking prevents "attention leakage," where the model's focus drifts to incorrect opinion terms.

Conclusion

COM-MRC successfully mitigates the interference problem in ASTE through a novel context-masking approach. While the iterative nature of the two-stage inference and the exponential training augmentation introduce some computational overhead, the significant gains in extraction accuracy—particularly for complex sentences—establish it as a powerful new standard for fine-grained sentiment analysis. Future work will focus on developing a one-stage method to improve inference speed while maintaining high precision.

Summary updated

BibTeX
@inproceedings{zhai2022com,
  author = {Zepeng Zhai and Hao Chen and Fangxiang Feng and Ruifan Li and Xiaojie Wang},
  title = {{COM-MRC: A COntext-Masked Machine Reading Comprehension Framework for Aspect Sentiment Triplet Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.212},
}
Figure