End-to-end Aspect-based Sentiment Analysis with Combinatory Categorial Grammar

Yuanhe Tian, Weidong Chen, Bo Hu, Yan Song, Fei Xia

Introduction

Aspect-based Sentiment Analysis (ABSA) is a fine-grained sentiment analysis task that involves identifying specific aspects of an entity and the sentiment expressed toward each. For instance, in the review "The food was great but the service was slow," a system must extract "food" with a positive sentiment and "service" with a negative sentiment. End-to-end ABSA (EASA) aims to perform aspect extraction and sentiment classification simultaneously, rather than as a multi-step pipeline.

While traditional approaches rely on dependency trees to capture syntactic relationships, these structures often lack the semantic depth required to link sentiment-bearing words to their targets accurately. Researchers from the University of Washington and USTC address this by incorporating Combinatory Categorial Grammar (CCG) supertags, which provide a richer, lexicalized representation of both syntax and semantics.

Methodology

The proposed framework enhances standard transformer-based encoders (e.g., BERT, XLNet) with CCG-informed features. The architecture is composed of four primary modules designed to integrate grammatical awareness without sacrificing the power of large-scale pre-trained models:

  1. Backbone Encoder: Generates contextualized hidden representations for the input sequence, serving as the primary feature extractor.
  2. Supertag Decoding: A dedicated branch that learns to predict CCG supertags (e.g., N/N for noun modifiers) in a multi-task learning setup. This internal prediction avoids the latency of external parsers.
  3. Supertag-driven Attention: Utilizes predicted supertags to compute attention weights, directing the model's focus toward words that are grammatically and semantically relevant to the aspect.
  4. Gate Mechanism: A "reset gate" that adaptively merges the original backbone features with the CCG-weighted contextual information. This prevents potential noise from the grammar branch from overwhelming the primary sentiment task.
Architecture of the proposed CCG-enhanced EASA model.

Experimental Setup

The model was evaluated on three benchmark datasets: REST (restaurant reviews from SemEval), LPTP (laptop reviews), and TWTR (Twitter data). These datasets provide a diverse range of linguistic structures and sentiment expressions, serving as a rigorous testbed for EASA performance. The use of standard benchmarks allows for a direct comparison with previous state-of-the-art models like DOER and various span-based approaches.

Key Results and Discussion

The integration of CCG supertags led to significant performance gains, establishing new state-of-the-art (SOTA) results across all benchmarks. The model's ability to leverage "lexicalized" grammar—where the function of a word is baked into its label—proved superior to purely syntactic dependency trees.

Comparison of F1 scores across different datasets and model backbones.

As shown in the results table, the XLNet-Large variant of the model achieved an F1 score of 78.24 on the REST dataset, significantly outperforming baseline models. Notably, the CCG-based approach consistently surpassed models utilizing standard dependency trees (processed via Graph Attention Networks), validating the hypothesis that CCG supertags provide superior guidance for sentiment-aspect linking.

Qualitative analysis confirmed that the model effectively used the supertags to identify sentiment-bearing words. Supertags such as N/N (noun modifiers) and S\NP (predicates/adjectives) consistently received the highest attention weights. Furthermore, the model maintains high inference speeds because it learns to predict supertags internally, making it practical for real-world applications.

Conclusion

By leveraging the rich syntactic and semantic information embedded in CCG supertags, this research demonstrates a more effective way to handle the complexities of end-to-end aspect-based sentiment analysis. The combination of multi-task learning for supertagging and a gating mechanism for feature fusion provides a robust framework for fine-grained sentiment tasks. Future work may explore the use of full CCG derivation trees and the application of this method to morphologically richer languages.

Summary updated

BibTeX
@inproceedings{tian2023end,
  author = {Yuanhe Tian and Weidong Chen and Bo Hu and Yan Song and Fei Xia},
  title = {{End-to-end Aspect-based Sentiment Analysis with Combinatory Categorial Grammar}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.859},
}
Figure