Text Generation Model Enhanced with Semantic Information in Aspect Category Sentiment Analysis

Tu Tran, Kiyoaki Shirai, Natthawut KertkeidkachornACL 2023

Introduction

Aspect Category Sentiment Analysis (ACSA) is a fine-grained sentiment analysis task that aims to identify the sentiment polarity (positive, negative, or neutral) toward specific aspect categories in a given text. For instance, in a restaurant review, a model must distinguish between sentiments directed at "food" versus "service."

While generative approaches using pre-trained models like BART have advanced the field, they often struggle with sentences containing multiple, conflicting aspects. Standard models frequently exhibit "relational blindness," failing to capture explicit semantic links between opinion words and their targets. For example, in the sentence "The staff are rude but the food is great," a model might incorrectly associate "rude" with "food."

Methodology: Integrating AMR Graphs

To address these challenges, researchers have proposed a generative model that incorporates Abstract Meaning Representation (AMR) graphs. AMR provides a structured representation of a sentence's semantic meaning, identifying "who is doing what to whom" in a rooted, directed graph format.

Model Architecture

The proposed framework enhances the standard BART seq2seq architecture with a specialized AMR processing pipeline.

The proposed model architecture featuring an AMR Encoder and AMR Cross-Attention layers within the BART decoder.
  1. AMR Encoder: Input sentences are converted into AMR graphs and encoded using a Graph Attention Network (GAT).
  2. AMR Cross-Attention: A dedicated layer in the BART decoder allows the model to attend to the AMR graph during sentiment generation. The ReZero technique is employed to ensure stable integration of these new features.
  3. Dual Regularizers: To align textual attention with semantic structures, the authors introduced an Identical Regularizer (matching word-level and node-level attention) and an Entropy Regularizer (promoting focus on relevant nodes).
  4. Denoising Pre-training: A custom pre-training phase using noise-injection (masking, deletion) helps synchronize the graph modules with the pre-trained BART weights.

Experimental Results

The model was evaluated on three benchmark datasets: Rest14, Rest14-hard (sentences with multiple conflicting aspects), and MAMS-ACSA (large-scale multi-aspect dataset).

Performance Comparison

The proposed model achieved state-of-the-art (SOTA) results across all benchmarks, significantly outperforming baseline generative models, particularly on complex datasets.

Comparison of the proposed model against SOTA baselines across three benchmark datasets.

As shown in the results, the model reached 91.2% accuracy on Rest14 and demonstrated a notable jump to 78.1% on the challenging Rest14-hard subset. On the MAMS-ACSA dataset, it achieved 84.6% accuracy.

Discussion and Key Insights

The success of this approach highlights several key findings:

  • Semantic Normalization: AMR graphs help the model recognize logical structures (like contrast) regardless of specific vocabulary, mapping words like "but" or "although" to a unified semantic node.
  • Selective Attention: The entropy regularizer proved essential for isolating correct opinion words by forcing the model to focus on specific, relevant AMR nodes.
  • The Role of Pre-training: Pre-training was identified as the single most significant contributor to performance, bridging the gap between the pre-trained Transformer and the newly introduced graph components.

Conclusion

By fusing semantic graph information with generative language models, this research provides a robust solution for complex sentiment analysis tasks. While current limitations include one-hop constraints in the GAT encoder and potential error propagation from external AMR parsers, the model sets a new standard for ACSA performance. Future work will focus on capturing long-distance relations within the AMR graph and improving alignment robustness.

Summary updated

BibTeX
@inproceedings{tran2023text,
  author = {Tu Tran and Kiyoaki Shirai and Natthawut Kertkeidkachorn},
  title = {{Text Generation Model Enhanced with Semantic Information in Aspect Category Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.323},
}
Figure