Progressive Self-Supervised Attention Learning for Aspect-Level Sentiment Analysis

Jialong Tang, Ziyao Lu, Jinsong Su, Yubin Ge, Linfeng Song +2 more
6/4/2019
cs.CL
transformer-attentioncontrastive-ssl

Official code: XMUDeepLIT/PSSAttention (27 stars, Python, last commit 2022-02-04).

Abstract

In aspect-level sentiment classification (ASC), it is prevalent to equip dominant neural models with attention mechanisms, for the sake of acquiring the importance of each context word on the given aspect. However, such a mechanism tends to excessively focus on a few frequent words with sentiment polarities, while ignoring infrequent ones.

Show full abstract

In this paper, we propose a progressive self-supervised attention learning approach for neural ASC models, which automatically mines useful attention supervision information from a training corpus to refine attention mechanisms. Specifically, we iteratively conduct sentiment predictions on all training instances. Particularly, at each iteration, the context word with the maximum attention weight is extracted as the one with active/misleading influence on the correct/incorrect prediction of every instance, and then the word itself is masked for subsequent iterations. Finally, we augment the conventional training objective with a regularization term, which enables ASC models to continue equally focusing on the extracted active context words while decreasing weights of those misleading ones. Experimental results on multiple datasets show that our proposed approach yields better attention mechanisms, leading to substantial improvements over the two state-of-the-art neural ASC models. Source code and trained models are available at https://github.com/DeepLearnXMU/PSSAttention.

View on arXivView PDF

Code Implementations(1)

Codes for # ACL2019 paper "Progressive Self-Supervised Attention Learning for Aspect-Level Sentiment Analysis", which contains TNet-Att(+AS) and MN(+AS)

275Python, ShellJun 1, 20194 years ago

Similar Papers

Cite this paper

@article{tang2019progressive,
  title  = {Progressive Self-Supervised Attention Learning for Aspect-Level Sentiment Analysis},
  author = {Jialong Tang and Ziyao Lu and Jinsong Su and Yubin Ge and Linfeng Song and Le Sun and Jiebo Luo},
  year   = {2019},
  eprint = {1906.01213},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.01213}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.01213.svg)](https://codeofpaper.com/paper/1906.01213)

Discussion