[Paper Review] Does BERT Understand Sentiment? Leveraging Comparisons Between Contextual and Non-Contextual Embeddings to Improve Aspect-Based Sentiment Models
This paper proposes a lightweight method, BERT-IL, that improves aspect-based sentiment classification by comparing BERT's contextual embeddings with non-contextual GloVe embeddings to infer sentiment polarity. By training a simple comparison network and fine-tuning only a subset of BERT layers, the model achieves state-of-the-art performance on SemEval 2014 and 2016 datasets while reducing model size by up to 65% and training time by up to 75% compared to prior methods.
When performing Polarity Detection for different words in a sentence, we need to look at the words around to understand the sentiment. Massively pretrained language models like BERT can encode not only just the words in a document but also the context around the words along with them. This begs the questions, "Does a pretrain language model also automatically encode sentiment information about each word?" and "Can it be used to infer polarity towards different aspects?". In this work we try to answer this question by showing that training a comparison of a contextual embedding from BERT and a generic word embedding can be used to infer sentiment. We also show that if we finetune a subset of weights the model built on comparison of BERT and generic word embedding, it can get state of the art results for Polarity Detection in Aspect Based Sentiment Classification datasets.
Motivation & Objective
- To investigate whether BERT inherently encodes sentiment information for aspect terms without full fine-tuning.
- To develop a lightweight model that leverages comparisons between BERT and GloVe embeddings for aspect polarity detection.
- To achieve state-of-the-art performance on standard ABSA benchmarks while minimizing computational cost and training time.
- To improve model efficiency and reduce carbon emissions by avoiding full BERT fine-tuning.
- To enable better domain generalization through a comparison-based sentiment inference mechanism.
Proposed method
- The model uses a comparison network that takes BERT contextual embeddings and GloVe non-contextual embeddings of aspect terms as input.
- A learned comparison mechanism computes a similarity or difference representation between the two embedding types to infer sentiment polarity.
- The comparison network is trained end-to-end with a small number of trainable parameters on top of frozen BERT and GloVe embeddings.
- For improved performance, the last five layers of BERT are fine-tuned in the BERT-IL Finetuned variant.
- Interaction layers such as AutoInt are used to enhance context resolution by combining representations from multiple BERT layers.
- The method is evaluated on SemEval 2014, SemEval 2016, and SentiHood datasets using standard ABSA metrics.
Experimental results
Research questions
- RQ1Does BERT inherently encode sentiment information for aspect terms, even without fine-tuning?
- RQ2Can a simple comparison between contextual (BERT) and non-contextual (GloVe) embeddings effectively infer aspect-level sentiment?
- RQ3Can a lightweight model based on this comparison achieve state-of-the-art performance with minimal computational cost?
- RQ4How does the performance of the comparison-based model compare to full BERT fine-tuning and other SOTA methods in terms of accuracy, size, and training time?
- RQ5Can this method generalize well across domains with limited data, especially when full fine-tuning is impractical?
Key findings
- BERT-IL Finetuned achieved state-of-the-art performance on SemEval 2014 and SemEval 2016, outperforming HAABSA by 0.7% on Sub-task 1 of SemEval 2016.
- On the SentiHood dataset, BERT-IL Finetuned achieved 90.8% accuracy, outperforming the BERT baseline and competing with more complex models like BERT-pair-QAM.
- The BERT-IL model achieved 84.6% accuracy on SemEval 2014 with only 1119 MB model size and 0.08 seconds per forward/backward pass, making it up to 3x smaller and 4x faster than prior methods.
- BERT-IL Finetuned reduced training time by up to 75% and model size by up to 65% compared to state-of-the-art models like BAT and BERT-PT.
- The comparison-based method demonstrated strong performance even without full BERT fine-tuning, indicating that sentiment information is implicitly captured in BERT's contextual representations.
- The method showed robustness across datasets, including SentiHood, which had a 3x larger training set due to data augmentation, suggesting scalability and generalization potential.
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.