SpanMlt: A Span-based Multi-Task Learning Framework for Pair-wise Aspect and Opinion Terms Extraction

He Zhao, Longtao Huang, Rong Zhang, Quan Lu, Hui XueACL 2020

Abstract

SpanMlt is an end-to-end framework designed for the joint extraction of aspect terms (AT) and opinion terms (OT) as linked pairs. Moving beyond traditional word-level sequence tagging, SpanMlt utilizes a span-based multi-task learning approach. By identifying terms and their relationships simultaneously, the model overcomes the limitations of pipeline and co-extraction methods, achieving state-of-the-art performance on benchmark datasets.

Introduction

In fine-grained Aspect-Based Sentiment Analysis (ABSA), identifying individual aspect and opinion terms is insufficient for comprehensive product profiling. A truly effective system must link these terms into pairs, such as connecting "service" (aspect) with "great" (opinion).

Existing approaches often struggle with this. Co-extraction models identify sets of terms but fail to establish links. Pipeline models, which extract aspects before opinions, suffer from error propagation. Furthermore, standard sequence tagging (e.g., BIO tagging) is often inadequate for complex sentence structures where one opinion might describe multiple aspects.

Comparison of AT/OT co-extraction and pair-wise extraction on a sample review sentence.

Methodology: The SpanMlt Framework

The authors propose SpanMlt, treating aspect-opinion pair extraction as a joint entity and relation extraction task. The model operates on spans (sequences of words) rather than individual tokens.

Architecture Overview

The framework consists of several key components:

  1. Base Encoders: The model employs either a BiLSTM (with GloVe, ELMo, and self-attention) or a fine-tuned BERT to generate contextualized word representations.
  2. Span Generator: This component enumerates all possible word sequences up to a predefined maximum length ($l_s$).
  3. Multi-Task Heads:
    • Term Scorer: Classifies each span as an Aspect Term (AT), Opinion Term (OT), or Null.
  4. Relation Scorer: Evaluates pairs of spans to determine if a relationship exists between an aspect and an opinion.
The SpanMlt architecture, showing the BERT/BiLSTM encoders, span generation, and the multi-task scoring heads.

By sharing underlying span representations, the model learns correlations between term identification and relationship extraction, allowing the two tasks to mutually reinforce each other.

Experimental Setup

The framework was evaluated on four benchmark datasets from SemEval 2014, 2015, and 2016, specifically the LAPTOP (technical reviews) and RESTAURANT (dining reviews) domains. These datasets were augmented with explicit aspect-opinion pair labels to facilitate the pair-wise extraction task.

Key Insights

  • Span-Based Units: Focusing on spans allows the model to handle multi-word terms (e.g., "nice friendly atmosphere") as single entities, avoiding fragmentation.
  • Joint Learning: The multi-task approach breaks the pipeline bottleneck. Strong signals from the relation scorer can assist the term scorer in identifying ambiguous aspect terms.
  • Handling Many-to-Many Relations: The span-based architecture naturally captures complex relationships, such as one opinion describing multiple aspects (e.g., "great service and prices").
  • Encoder Performance: While BERT is highly effective, a BiLSTM with ELMo and span-level attention proved remarkably competitive, highlighting the importance of specialized attention mechanisms.

Results

SpanMlt achieved state-of-the-art (SOTA) results across all benchmarks. In pair-wise extraction, the model demonstrated significant F1-score improvements, with absolute gains of up to 15.25% over previous methods. Ablation studies confirmed that the multi-task component is vital; training terms and relations separately resulted in a noticeable performance decline.

Conclusion and Future Work

SpanMlt represents a significant advancement in ABSA by successfully unifying term and relation extraction. While the model is computationally more intensive than sequence taggers due to span enumeration, its robustness and accuracy are superior. Future work will focus on integrating Aspect Category Classification and Sentiment Polarity to provide a complete end-to-end ABSA solution.

Summary updated

BibTeX
@inproceedings{zhao2020spanmlt,
  author = {He Zhao and Longtao Huang and Rong Zhang and Quan Lu and Hui Xue},
  title = {{SpanMlt: A Span-based Multi-Task Learning Framework for Pair-wise Aspect and Opinion Terms Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.296},
}
Figure