Skip to main content
QUICK REVIEW

[Paper Review] Improving BERT Performance for Aspect-Based Sentiment Analysis

Akbar Karimi, Leonardo Rossi|arXiv (Cornell University)|Oct 22, 2020
Sentiment Analysis and Opinion MiningComputer Science28 references28 citations
TL;DR

This paper proposes two lightweight modules—Parallel Aggregation (P-SUM) and Hierarchical Aggregation (H-SUM)—that enhance BERT's performance for Aspect-Based Sentiment Analysis (ABSA) without fine-tuning BERT itself. By aggregating representations from the final BERT layers using CRFs for Aspect Extraction and cross-entropy for Aspect Sentiment Classification, the models achieve state-of-the-art results, outperforming BERT-PT by up to +2.00 Macro-F1 on ASC tasks with only four training epochs.

ABSTRACT

Aspect-Based Sentiment Analysis (ABSA) studies the consumer opinion on the market products. It involves examining the type of sentiments as well as sentiment targets expressed in product reviews. Analyzing the language used in a review is a difficult task that requires a deep understanding of the language. In recent years, deep language models, such as BERT \cite{devlin2019bert}, have shown great progress in this regard. In this work, we propose two simple modules called Parallel Aggregation and Hierarchical Aggregation to be utilized on top of BERT for two main ABSA tasks namely Aspect Extraction (AE) and Aspect Sentiment Classification (ASC) in order to improve the model's performance. We show that applying the proposed models eliminates the need for further training of the BERT model. The source code is available on the Web for further research and reproduction of the results.

Motivation & Objective

  • To improve BERT's performance on Aspect-Based Sentiment Analysis (ABSA) tasks without retraining the BERT backbone.
  • To address the limitations of standard BERT fine-tuning in sequence labeling and text classification for ABSA.
  • To explore whether deeper semantic representations from later BERT layers can enhance aspect extraction and sentiment classification.
  • To validate that longer training beyond standard epochs improves performance without overfitting.
  • To provide a plug-and-play enhancement framework compatible with existing BERT-based ABSA pipelines.

Proposed method

  • Proposes Parallel Aggregation (P-SUM), which computes losses independently from the last four BERT layers and combines them via element-wise averaging.
  • Introduces Hierarchical Aggregation (H-SUM), which stacks the last four BERT layers and computes a single loss from the final layer's output.
  • Uses Conditional Random Fields (CRFs) for Aspect Extraction (AE) to model label dependencies in sequences.
  • Applies cross-entropy loss for Aspect Sentiment Classification (ASC), using the [CLS] token representation from the final BERT layer.
  • Employs BERT-PT embeddings for initialization, leveraging domain-specific pretraining on restaurant and laptop datasets.
  • Trains the proposed modules end-to-end while keeping BERT parameters frozen, focusing on the added layers only.

Experimental results

Research questions

  • RQ1Can aggregating representations from deeper BERT layers improve performance on ABSA tasks without fine-tuning BERT?
  • RQ2Does hierarchical or parallel aggregation of BERT’s final layers yield better results for AE and ASC?
  • RQ3Can longer training schedules improve performance without causing overfitting in low-resource ABSA settings?
  • RQ4How does the use of CRFs for sequence labeling compare to standard CRF-free approaches in AE?
  • RQ5Can a plug-in module framework outperform standard BERT-PT fine-tuning with fewer training epochs?

Key findings

  • H-SUM achieved a Macro-F1 of 82.34 on AE for the restaurant dataset, outperforming BERT-PT (82.64) by 0.30 points.
  • For ASC on the laptop dataset, H-SUM reached 79.67 Macro-F1, surpassing BERT-PT (76.96) by 2.71 points.
  • On the restaurant dataset, H-SUM achieved 79.67 Macro-F1 for ASC, a +2.00 improvement over BERT-PT.
  • The models trained for only four epochs outperformed BERT-PT models trained for 30 epochs in all tasks and datasets.
  • Validation losses continued to decrease with more epochs, indicating no overfitting despite limited training data.
  • The best performance was observed when using the last four BERT layers, with deeper layers showing stronger semantic representation capacity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.