TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Adversarial Training for Aspect-Based Sentiment Analysis w...

Adversarial Training for Aspect-Based Sentiment Analysis with BERT

Akbar Karimi, Leonardo Rossi, Andrea Prati

2020-01-30Sentiment AnalysisAspect ExtractionAspect-Based Sentiment AnalysisAspect-Based Sentiment Analysis (ABSA)Sentiment ClassificationLanguage Modelling
PaperPDFCodeCode(official)CodeCode

Abstract

Aspect-Based Sentiment Analysis (ABSA) deals with the extraction of sentiments and their targets. Collecting labeled data for this task in order to help neural networks generalize better can be laborious and time-consuming. As an alternative, similar data to the real-world examples can be produced artificially through an adversarial process which is carried out in the embedding space. Although these examples are not real sentences, they have been shown to act as a regularization method which can make neural networks more robust. In this work, we apply adversarial training, which was put forward by Goodfellow et al. (2014), to the post-trained BERT (BERT-PT) language model proposed by Xu et al. (2019) on the two major tasks of Aspect Extraction and Aspect Sentiment Classification in sentiment analysis. After improving the results of post-trained BERT by an ablation study, we propose a novel architecture called BERT Adversarial Training (BAT) to utilize adversarial training in ABSA. The proposed model outperforms post-trained BERT in both tasks. To the best of our knowledge, this is the first study on the application of adversarial training in ABSA.

Results

TaskDatasetMetricValueModel
Sentiment AnalysisSemEval-2014 Task-4Laptop (Acc)79.35BAT
Sentiment AnalysisSemEval-2014 Task-4Mean Acc (Restaurant + Laptop)82.69BAT
Sentiment AnalysisSemEval-2014 Task-4Restaurant (Acc)86.03BAT
Sentiment AnalysisSemEval-2014 Task-4Laptop (F1)85.57BAT
Sentiment AnalysisSemEval-2014 Task-4Mean F1 (Laptop + Restaurant)83.54BAT
Sentiment AnalysisSemEval-2014 Task-4Restaurant (F1)81.5BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Laptop (Acc)79.35BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Mean Acc (Restaurant + Laptop)82.69BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Restaurant (Acc)86.03BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Laptop (F1)85.57BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Mean F1 (Laptop + Restaurant)83.54BAT
Aspect-Based Sentiment Analysis (ABSA)SemEval-2014 Task-4Restaurant (F1)81.5BAT
Aspect ExtractionSemEval-2014 Task-4Laptop (F1)85.57BAT
Aspect ExtractionSemEval-2014 Task-4Mean F1 (Laptop + Restaurant)83.54BAT
Aspect ExtractionSemEval-2014 Task-4Restaurant (F1)81.5BAT

Related Papers

Visual-Language Model Knowledge Distillation Method for Image Quality Assessment2025-07-21AdaptiSent: Context-Aware Adaptive Attention for Multimodal Aspect-Based Sentiment Analysis2025-07-17Making Language Model a Hierarchical Classifier and Generator2025-07-17VisionThink: Smart and Efficient Vision Language Model via Reinforcement Learning2025-07-17The Generative Energy Arena (GEA): Incorporating Energy Awareness in Large Language Model (LLM) Human Evaluations2025-07-17Inverse Reinforcement Learning Meets Large Language Model Post-Training: Basics, Advances, and Opportunities2025-07-17Assay2Mol: large language model-based drug design using BioAssay context2025-07-16Describe Anything Model for Visual Question Answering on Text-rich Images2025-07-16