A Multi-Task Dual-Tree Network for Aspect Sentiment Triplet Extraction

Yichun Zhao, Kui Meng, Gongshen Liu, Jintao Du, Huijia ZhuCOLING 2022

Abstract

Aspect Sentiment Triplet Extraction (ASTE) is a fine-grained task in sentiment analysis that requires the simultaneous identification of aspects, opinions, and their associated sentiment polarities. Current approaches often struggle with complex relations, conflicting polarities within a single sentence, and ambiguous term boundaries. This paper presents the Multi-Task Dual-Tree Network (MTDTN), which addresses these challenges by integrating constituency trees for boundary detection and modified dependency trees for relationship mapping. By strategically selecting BERT layers and employing a novel transition-based inference strategy, MTDTN achieves state-of-the-art performance across four benchmark datasets.

Introduction

Sentiment analysis has transitioned from coarse-grained document-level classification to fine-grained Aspect-Based Sentiment Analysis (ABSA). The most comprehensive form of ABSA is Aspect Sentiment Triplet Extraction (ASTE). In ASTE, the goal is to extract triplets consisting of an aspect (e.g., "service"), an opinion (e.g., "fast"), and a sentiment polarity (e.g., positive).

Despite recent progress, three primary hurdles persist in the field:

  1. Complex Relations: Sentences often contain one-to-many or many-to-one mappings between aspects and opinions.
  2. Multiple Polarities: A single sentence may express divergent sentiments toward different aspects (e.g., "Great food but terrible service").
  3. Boundary Ambiguity: Determining the exact span of multi-word aspects or opinions remains a significant challenge for standard sequence-labeling models.

Methodology

The MTDTN framework treats Aspect Opinion Co-Extraction (AOCE) as a supporting task to enhance the primary ASTE objective. The architecture is centered on three core pillars: dual-tree integration, strategic layer selection, and transition-based inference.

Overview of the MTDTN architecture, integrating constituency trees for boundary detection and modified dependency trees for relationship mapping.

Dual-Tree Integration

MTDTN leverages two distinct linguistic structures to capture different types of information. Constituency trees are utilized within the AOCE module to represent the phrase-level hierarchy of a sentence, which helps the model accurately identify the boundaries of multi-word terms. Simultaneously, dependency trees are used to model word-to-word relationships. To account for potential errors in standard dependency parsers, MTDTN employs a graph modification step that uses BERT's self-attention weights to prune weak links and strengthen relevant connections.

Strategic BERT Layer Selection

A key innovation of MTDTN is the recognition that different layers of a pre-trained BERT model encode different linguistic features. The authors utilize the highest layers, which are rich in semantic meaning, for the co-extraction task. Conversely, the middle layers are used to refine the dependency graph for triplet extraction, as these layers are known to capture more granular syntactic and grammatical information.

ASTE F1 score performance across different BERT layers, illustrating that middle layers (8-9) provide optimal syntactic information for dependency graph modification.

Transition-Based Inference Strategy (TBIS)

To facilitate knowledge transfer between tasks, the authors developed a Transition-Based Inference Strategy (TBIS). This strategy uses a transition matrix to map boundary tags from the AOCE task directly into the triplet extraction space. This alignment ensures that the model's understanding of term boundaries directly informs its ability to link those terms into triplets.

Experimental Results

The MTDTN model was evaluated on four standard ABSA benchmarks: 14res, 15res, 16res (restaurant reviews), and 14lap (laptop reviews).

Performance and Insights

MTDTN established new state-of-the-art (SOTA) results on all four datasets, outperforming strong baselines such as BMRC-BERT and GTS-BERT. Absolute F1 score gains ranged from 0.68% to 3.54% over the GTS-BERT baseline.

Ablation studies confirmed the importance of each component; removing the graph modification step or the TBIS led to significant performance degradation. Furthermore, the analysis of BERT layers demonstrated that layers 8 and 9 are consistently the most effective for modifying dependency graphs, confirming that BERT’s "internal grammar" is most accessible in its middle stages, while final layers focus on abstract meaning.

Conclusion

The Multi-Task Dual-Tree Network demonstrates that integrating heterogeneous linguistic structures—specifically constituency and dependency trees—significantly improves the extraction of aspect-sentiment triplets. By combining these structures with strategic BERT layer selection and a transition-based inference mechanism, MTDTN effectively addresses the complexities of boundary detection and relationship mapping. Future work may involve reducing the model's reliance on external parsers and exploring the integration of additional linguistic features like Part-of-Speech (POS) tags.

Summary updated

BibTeX
@inproceedings{zhao2022multi,
  author = {Yichun Zhao and Kui Meng and Gongshen Liu and Jintao Du and Huijia Zhu},
  title = {{A Multi-Task Dual-Tree Network for Aspect Sentiment Triplet Extraction}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure