[Paper Review] Understanding Pre-trained BERT for Aspect-based Sentiment Analysis
This paper investigates how BERT's masked language modeling (MLM) pre-training captures features for aspect-based sentiment analysis (ABSA), revealing that BERT dedicates most representation capacity to domain-specific semantics and aspect identity, while using minimal features for opinion summarization. Despite strong performance on aspect extraction, MLM is a weak pretext task for sentiment classification due to insufficient modeling of opinion polarity in aspect representations.
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. 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.
Motivation & Objective
- To understand how BERT’s self-supervised pre-training on unlabeled reviews supports downstream ABSA tasks.
- To investigate whether the masked language modeling (MLM) objective learns features critical for aspect extraction and sentiment classification.
- To determine if pre-trained BERT representations encode opinion polarity or are primarily sensitive to aspect semantics and domain context.
- To evaluate the feasibility of zero-shot or unsupervised ABSA by analyzing the generalizability of learned representations across domains.
- To identify limitations of MLM as a pretext task for ABSA and suggest directions for improved self-supervised learning.
Proposed method
- Pre-trained BERT on a 20+ GB corpus combining Amazon and Yelp reviews to enhance domain coverage.
- Used SemEval-2014 and SemEval-2016 datasets for analysis, without fine-tuning, to examine hidden representations and attention heads.
- Applied t-SNE visualization to analyze the latent space of aspect and non-aspect tokens in the final BERT layer.
- Trained L1-normed logistic regression probes on frozen BERT representations to identify salient neurons for aspect and sentiment classification.
- Averaged token representations for multi-word aspects and analyzed their clustering in the latent space.
- Compared opinion word representations across polarities to assess whether sentiment is encoded in distinct sub-spaces.
Experimental results
Research questions
- RQ1To what extent does BERT’s MLM pre-training learn features that distinguish aspects from non-aspects in ABSA?
- RQ2How well do BERT’s learned representations encode sentiment polarity for aspects, and are these features concentrated in specific neurons?
- RQ3Are there generalizable, cross-domain neurons in BERT that can detect aspects without fine-tuning?
- RQ4Does the latent space of aspect representations reflect semantic similarity or opinion polarity more strongly?
- RQ5Why is MLM a weak pretext task for end-to-end ABSA, especially for sentiment classification?
Key findings
- BERT dedicates most of its representation capacity to domain-specific semantics and aspect identity, with minimal features allocated to opinion summarization.
- Aspect representations cluster based on semantic similarity and domain, indicating strong encoding of aspect meaning and context, but not sentiment.
- No single neuron in BERT’s latent space is consistently salient for aspect extraction, with F1 dropping from 79% (all neurons) to 31% (one neuron) when using only a single neuron.
- Sentiment classification achieves 83% F1 on aspect polarities using a probe on frozen BERT representations, but no dominant neuron emerges, indicating distributed sentiment encoding.
- Opinion words from different polarities occupy overlapping regions in the latent space, suggesting that sentiment is not encoded in distinct sub-spaces but rather through semantic and contextual cues.
- The MLM objective fails to strongly associate aspect representations with their associated opinions, indicating a fundamental limitation for end-to-end ABSA tasks requiring opinion summarization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.