Understanding Pre-trained BERT for Aspect-based Sentiment Analysis

Hu Xu, Lei Shu, Philip S. Yu, Bing Liu
10/31/2020
56 citations
cs.CL

Official code: howardhsu/BERT-for-RRC-ABSA (461 stars, Python, Apache-2.0, last commit 2021-02-05).

Abstract

This paper analyzes the pre-trained hidden representations learned from reviews on BERT for tasks in aspect-based sentiment analysis (ABSA). Our work is motivated by the recent progress in BERT-based language models for ABSA.

Show full abstract

However, it is not clear how the general proxy task of (masked) language model trained on unlabeled corpus without annotations of aspects or opinions can provide important features for downstream tasks in ABSA. By leveraging the annotated datasets in ABSA, we investigate both the attentions and the learned representations of BERT pre-trained on reviews. We found that BERT uses very few self-attention heads to encode context words (such as prepositions or pronouns that indicating an aspect) and opinion words for an aspect. Most features in the representation of an aspect are dedicated to the fine-grained semantics of the domain (or product category) and the aspect itself, instead of carrying summarized opinions from its context. We hope this investigation can help future research in improving self-supervised learning, unsupervised learning and fine-tuning for ABSA. The pre-trained model and code can be found at https://github.com/howardhsu/BERT-for-RRC-ABSA.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

code for our NAACL 2019 paper: "BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis"

461110Python, ShellFeb 24, 20195 years agoApache-2.0
bertreading-comprehensionsentiment-analysis

Similar Papers

Cite this paper

@article{xu2020understanding,
  title  = {Understanding Pre-trained BERT for Aspect-based Sentiment Analysis},
  author = {Hu Xu and Lei Shu and Philip S. Yu and Bing Liu},
  year   = {2020},
  eprint = {2011.00169},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.00169}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.00169.svg)](https://codeofpaper.com/paper/2011.00169)

Discussion