Attention Visualization of Gated Convolutional Neural Networks with Self Attention in Sentiment Analysis

被引:5
|
作者
Yanagimto, Hidekazu [1 ]
Hashimoto, Kiyota [2 ]
Okada, Makoto [3 ]
机构
[1] Osaka Prefecture Univ, Coll Sustainable Syst Sci, Sakai, Osaka, Japan
[2] Prince Songkla Univ, Fac Technol & Environm, Phuket, Thailand
[3] Osaka Prefecture Univ, Coll Engn, Sakai, Osaka, Japan
关键词
Deep learning; Natural language processing; Gated CNN; Sentiment analysis; the self-attention mechanism;
D O I
10.1109/iCMLDE.2018.00024
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Deep learning is applied to many research topics; Natural Language Processing, Image Processing, and Acoustic Recognition. In deep learning, neural networks have a very complex and deep structure and it is difficult to discuss why they work well or not. So you have to take a trial-and-error to improve their performances. We develop a mechanism to show how neural networks predict final results and help you to design a new neural network architecture based on its prediction criteria. Speaking concrete, we visualize important features to predict the final results with an attentional mechanism. In this paper, we take up sentient analysis, which is one of natural language processing tasks. In image processing visualizing weights of a neural network is a major approach and you can obtain intuitive results; object outlines and object components. However, in natural language processing, the approach is not interpretable because a discriminate function constructed by a neural network is a complex and nonlinear one and it is very difficult to correlate weights and words in a text. We employ Gated Convolutional Neural Network (GCNN) and introduce a self-attention mechanism to understand how GCNN determines sentiment polarities from raw reviews. GCNN can simulate an n-gram model and the self-attention mechanism can make correspondence between weights of a neural network and words clear. In experiments, we used Amazon reviews and evaluated the performance of the proposed method. Especially, the proposed method was able to emphasize some words in the review to determine sentiment polarity. Moreover, when the prediction was wrong, we were able to understand why the proposed method made mistakes because we found what words the proposed method emphasized.
引用
收藏
页码:77 / 82
页数:6
相关论文
共 50 条
  • [1] Aspect Based Sentiment Analysis with Self-Attention and Gated Convolutional Networks
    Yang, Jian
    Yang, Juan
    [J]. PROCEEDINGS OF 2020 IEEE 11TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS 2020), 2020, : 146 - 149
  • [2] Visualization of Convolutional Neural Networks with Attention Mechanism
    Yuan, Meng
    Tie, Bao
    Lin, Dawei
    [J]. HUMAN CENTERED COMPUTING, HCC 2021, 2022, 13795 : 82 - 93
  • [3] Analysis of targeted sentiment by the attention gated convolutional network model
    Cao, Weidong
    Li, Jiaqi
    Wang, Huaichao
    [J]. Xi'an Dianzi Keji Daxue Xuebao/Journal of Xidian University, 2019, 46 (06): : 30 - 36
  • [4] Attention-Based Bidirectional Gated Recurrent Unit Neural Networks for Sentiment Analysis
    Yu, Qing
    Zhao, Hui
    Wang, Zuohua
    [J]. 2019 2ND INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND PATTERN RECOGNITION (AIPR 2019), 2019, : 116 - 119
  • [5] Leveraging contextual embeddings and self-attention neural networks with bi-attention for sentiment analysis
    Magdalena Biesialska
    Katarzyna Biesialska
    Henryk Rybinski
    [J]. Journal of Intelligent Information Systems, 2021, 57 : 601 - 626
  • [6] Leveraging contextual embeddings and self-attention neural networks with bi-attention for sentiment analysis
    Biesialska, Magdalena
    Biesialska, Katarzyna
    Rybinski, Henryk
    [J]. JOURNAL OF INTELLIGENT INFORMATION SYSTEMS, 2021, 57 (03) : 601 - 626
  • [7] Attention-based convolutional neural network for Bangla sentiment analysis
    Sharmin, Sadia
    Chakma, Danial
    [J]. AI & SOCIETY, 2021, 36 (01) : 381 - 396
  • [8] Attention-based convolutional neural network for Bangla sentiment analysis
    Sadia Sharmin
    Danial Chakma
    [J]. AI & SOCIETY, 2021, 36 : 381 - 396
  • [9] Attention-based convolutional neural network for Bangla sentiment analysis
    Sharmin, Sadia
    Chakma, Danial
    [J]. AI and Society, 2021, 36 (01): : 381 - 396
  • [10] An Attention Module for Convolutional Neural Networks
    Zhu, Baozhou
    Hofstee, Peter
    Lee, Jinho
    Al-Ars, Zaid
    [J]. ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING - ICANN 2021, PT I, 2021, 12891 : 167 - 178