HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Adversarial Training for Aspect-Based Sentiment Analysis with BERT

Akbar Karimi Leonardo Rossi Andrea Prati

Adversarial Training for Aspect-Based Sentiment Analysis with BERT

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.

Code Repositories

IMPLabUniPr/BERT-for-ABSA
pytorch
Mentioned in GitHub
IMPLabUniPr/Adversarial-Training-for-ABSA
Official
pytorch
Mentioned in GitHub
leanhkhoi/AE_BERT_CROSS_SENTENCES
pytorch
Mentioned in GitHub
akkarimi/Adversarial-Training-for-ABSA
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
aspect-based-sentiment-analysis-on-semevalBAT
Laptop (Acc): 79.35
Mean Acc (Restaurant + Laptop): 82.69
Restaurant (Acc): 86.03
aspect-extraction-on-semeval-2014-task-4-sub-1BAT
Laptop (F1): 85.57
Mean F1 (Laptop + Restaurant): 83.54
Restaurant (F1): 81.50

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Adversarial Training for Aspect-Based Sentiment Analysis with BERT | Papers | HyperAI