Papers › Improving BERT Performance for Aspect-Based Sentiment Analysis

Improving BERT Performance for Aspect-Based Sentiment Analysis

22 Oct 2020ICNLSP 2021 11arXiv:2010.11731archive 2025-07-28

Akbar Karimi, Leonardo Rossi, Andrea Prati

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.11731")

Code

Syntology Ran 5 of 11 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 3 ran · our draft was wrong.

By repository: official repository: 11 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

IMPLabUniPr/BERT-for-ABSA officialmentioned in paperpytorchApache-2.0 report
akkarimi/Adversarial-Training-for-ABSA mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 5 ran; 2 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
3ran · our draft was wrong
6unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from IMPLabUniPr/BERT-for-ABSA. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

swish IMPLabUniPr/BERT-for-ABSA/src/modeling.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0f786c407fb1ee4c · report
whitespace_tokenize IMPLabUniPr/BERT-for-ABSA/src/tokenization.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · cf9ffa02a42184af · report
gelu IMPLabUniPr/BERT-for-ABSA/src/modeling.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · fdc64f4c72036ae4 · report
url_to_filename IMPLabUniPr/BERT-for-ABSA/src/file_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5eff22fa0a651276 · report
warmup_linear IMPLabUniPr/BERT-for-ABSA/src/run_ae.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · c58d57224530d17e · report
cached_path IMPLabUniPr/BERT-for-ABSA/src/file_utils.py official repository unverified Apache-2.0 (permissive) · cf9c448c96f48428 · report
convert_examples_to_features IMPLabUniPr/BERT-for-ABSA/src/absa_data_utils.py official repository unverified Apache-2.0 (permissive) · 2b7167d132905cdd · report
evaluate IMPLabUniPr/BERT-for-ABSA/eval/evaluate_ae.py official repository unverified Apache-2.0 (permissive) · aeb20ed962ccdd7f · report
filename_to_url IMPLabUniPr/BERT-for-ABSA/src/file_utils.py official repository unverified Apache-2.0 (permissive) · a6aab787fcf8b10d · report
load_tf_weights_in_bert IMPLabUniPr/BERT-for-ABSA/src/modeling.py official repository unverified Apache-2.0 (permissive) · b1a7180868dd8d6a · report
load_vocab IMPLabUniPr/BERT-for-ABSA/src/tokenization.py official repository unverified Apache-2.0 (permissive) · a4e183f24a5ad1a7 · report

Tasks

Aspect ExtractionAspect-Based Sentiment AnalysisAspect-Based Sentiment Analysis (ABSA)Sentiment AnalysisSentiment Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Aspect Extraction SemEval-2014 Task-4 PH-SUM Laptop (F1) 86.09 #3 of 6 Archive leaderboard report
Aspect Extraction SemEval-2014 Task-4 PH-SUM Mean F1 (Laptop + Restaurant) 84.215 #3 of 6 Archive leaderboard report
Aspect Extraction SemEval-2014 Task-4 PH-SUM Restaurant (F1) 82.34 #3 of 6 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval-2014 Task-4 PH-SUM Laptop (Acc) 79.55 #12 of 48 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval-2014 Task-4 PH-SUM Mean Acc (Restaurant + Laptop) 82.96 #12 of 48 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval-2014 Task-4 PH-SUM Restaurant (Acc) 86.37 #12 of 48 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections