Attentional Encoder Network for Targeted Sentiment Classification

25 Feb 2019  ·  Youwei Song, Jiahai Wang, Tao Jiang, Zhiyue Liu, Yanghui Rao ·

Targeted sentiment classification aims at determining the sentimental tendency towards specific targets. Most of the previous approaches model context and target words with RNN and attention. However, RNNs are difficult to parallelize and truncated backpropagation through time brings difficulty in remembering long-term patterns. To address this issue, this paper proposes an Attentional Encoder Network (AEN) which eschews recurrence and employs attention based encoders for the modeling between context and target. We raise the label unreliability issue and introduce label smoothing regularization. We also apply pre-trained BERT to this task and obtain new state-of-the-art results. Experiments and analysis demonstrate the effectiveness and lightweight of our model.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Aspect-Based Sentiment Analysis SemEval 2014 Task 4 Sub Task 2 AEN-GloVe Restaurant (Acc) 80.98 # 28
Laptop (Acc) 73.51 # 29
Mean Acc (Restaurant + Laptop) 77.25 # 27
Aspect-Based Sentiment Analysis SemEval 2014 Task 4 Sub Task 2 AEN-BERT Restaurant (Acc) 83.12 # 14
Laptop (Acc) 79.93 # 8
Mean Acc (Restaurant + Laptop) 81.53 # 11
Aspect-Based Sentiment Analysis SemEval 2014 Task 4 Sub Task 2 BERT-SPC Restaurant (Acc) 84.46 # 11
Laptop (Acc) 78.99 # 11
Mean Acc (Restaurant + Laptop) 81.73 # 10
Sentiment Analysis Twitter AEN-BERT Accuracy 74.71 # 1
Sentiment Analysis Twitter AEN-GloVe Accuracy 72.83 # 3
Sentiment Analysis Twitter BERT-SPC Accuracy 73.55 # 2

Methods