Exploiting BERT for End-to-End Aspect-based Sentiment Analysis

Xin Li, Lidong Bing, Wenxuan Zhang, Wai Lam

Abstract

In this paper, we investigate the modeling power of contextualized embeddings from pre-trained language models, e.g. BERT, on the E2E-ABSA task. Specifically, we build a series of simple yet insightful neural baselines to deal with E2E-ABSA. The experimental results show that even with a simple linear classification layer, our BERT-based architecture can outperform state-of-the-art works. Besides, we also standardize the comparative study by consistently utilizing a hold-out validation dataset for model selection, which is largely ignored by previous works. Therefore, our work can serve as a BERT-based benchmark for E2E-ABSA.

Introduction

Aspect-Based Sentiment Analysis (ABSA) is a fine-grained sentiment analysis task that aims to identify user sentiment toward specific aspects in text. For instance, in the sentence "The food was great, but the service was dreadful," the goal is to identify "food" as a positive aspect and "service" as a negative one. The End-to-End ABSA (E2E-ABSA) variant is particularly challenging as it requires the joint extraction of aspect terms and the prediction of their sentiment polarities.

Historically, performance has been limited by the use of static, context-independent word embeddings like GloVe or Word2Vec. These embeddings fail to capture the nuances of words that change meaning or sentiment based on context. Furthermore, the small size of ABSA datasets makes it difficult to train complex, task-specific architectures without overfitting.

Methodology

The authors frame E2E-ABSA as a sequence labeling task. They utilize a pre-trained BERT model to generate contextualized embeddings, which are then fed into various downstream classification layers to predict tags (e.g., B-POS, I-NEG, O).

Architecture of the BERT-based E2E-ABSA model.

The investigated downstream layers include:

  • Linear Layer: A simple softmax classifier applied directly to BERT's token representations.
  • GRU: A Gated Recurrent Unit layer to capture sequential dependencies.
  • SAN / TFM: Self-Attention Networks and standard Transformer layers to refine token features.
  • CRF: A Conditional Random Field layer to model global tag dependencies.

A key contribution of this work is the standardization of the evaluation process. Unlike many previous works, this study strictly uses a hold-out development set for model selection, ensuring more reliable and reproducible results.

Experimental Setup

The models were evaluated on two standard benchmark datasets from SemEval (2014, 2015, 2016), re-standardized by Li et al. (2019a):

  • LAPTOP: Contains 4,245 sentences with 2,931 aspect terms.
  • REST: Contains 6,035 sentences with 6,593 aspect terms.

Results and Discussion

The experimental results demonstrate that BERT-based models significantly outperform previous state-of-the-art (SOTA) methods across both datasets.

Performance comparison of BERT-based models against existing state-of-the-art methods.

Key findings include:

  1. Simplicity and Power: The BERT+Linear model, despite its simplicity, outperforms highly engineered previous SOTA models. This suggests that BERT's pre-trained representations already capture the necessary semantic and sentiment information.
  2. Fine-Tuning is Critical: Experiments showed that using BERT as a static feature extractor (freezing weights) leads to significantly lower performance compared to fine-tuning the entire model for the specific task.
  3. Robustness: Despite the large number of parameters in BERT relative to the dataset size, the models showed remarkable stability and resistance to overfitting during training.

On the LAPTOP dataset, BERT+GRU achieved an F1 score of 61.12 (vs. 57.90 previous SOTA). On the REST dataset, BERT+SAN reached 74.72 (vs. 69.80 previous SOTA).

Conclusion

This work establishes a new benchmark for E2E-ABSA by demonstrating the effectiveness of BERT-based models. The results show that contextualized embeddings can overcome the limitations of static embeddings and complex task-specific architectures. Future research could explore model compression to reduce computational costs or domain-specific pre-training to further enhance performance.

Summary updated

BibTeX
@inproceedings{li2019exploiting,
  author = {Xin Li and Lidong Bing and Wenxuan Zhang and Wai Lam},
  title = {{Exploiting BERT for End-to-End Aspect-based Sentiment Analysis}},
  booktitle = {W-NUT @ EMNLP},
  year = {2019},
  url = {https://openreview.net/forum?id=laXuq3ps50k},
}
Figure