A Window-Based Self-Attention approach for sentence encoding

被引:14
|
作者
Huang, Ting [1 ]
Deng, Zhi-Hong [1 ]
Shen, Gehui [1 ]
Chen, Xi [1 ]
机构
[1] Peking Univ, Sch Elect Engn & Comp Sci, Minist Educ, Key Lab Machine Percept, Beijing, Peoples R China
关键词
Window; Attention; Word embedding; Sentence encoding;
D O I
10.1016/j.neucom.2019.09.024
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Recently, much progress has been made in the representation of sentences for the task of natural language processing (NLP). Most of existing methods utilize deep learning methods with RNN/CNN to capture contextual information. These models typically treat each word in a sentence equally, which ignores the fact that keywords always play a leading role in expressing the sentence semantic. Especially, on the tasks of sentence classification and semantic relatedness prediction, we can judge through the information of several keywords, no need for the whole sentence. To this end, we propose a window-based intra-weighing approach to weigh words in the sentence. In calculating attentive weights, we take as input multi-window n-grams and use max-pooling for feature extraction. To evaluate our model, we conduct experiments on 6 benchmark data sets. The experimental results demonstrate the superiority of our model in calculating word importance. Although our model has fewer parameters and much lower computational complexity than state-of-the-art models, it achieves comparable results with them. (C) 2019 Published by Elsevier B.V.
引用
收藏
页码:25 / 31
页数:7
相关论文
共 50 条
  • [21] Small Object Detection in Remote Sensing Images Based on Window Self-Attention Mechanism
    Xu, Jiaxin
    Zhang, Qiao
    Liu, Yu
    Zheng, Mengting
    PHOTOGRAMMETRIC ENGINEERING AND REMOTE SENSING, 2023, 89 (08): : 489 - 497
  • [22] A neural machine translation method based on split graph convolutional self-attention encoding
    Wan, Fei
    Li, Ping
    PEERJ COMPUTER SCIENCE, 2024, 10
  • [23] WSGP: A Window-based Streaming Graph Partitioning Approach
    Li, Yunbo
    Li, Chuanyou
    Orgerie, Anne-Cecile
    Parvedy, Philippe Raipin
    21ST IEEE/ACM INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND INTERNET COMPUTING (CCGRID 2021), 2021, : 586 - 595
  • [24] Multiple sequence alignment based on deep reinforcement learning with self-attention and positional encoding
    Liu, Yuhang
    Yuan, Hao
    Zhang, Qiang
    Wang, Zixuan
    Xiong, Shuwen
    Wen, Naifeng
    Zhang, Yongqing
    BIOINFORMATICS, 2023, 39 (11)
  • [25] A cooperative approach based on self-attention with interactive attribute for image caption
    Dexin Zhao
    Ruixue Yang
    Zhaohui Wang
    Zhiyang Qi
    Multimedia Tools and Applications, 2023, 82 : 1223 - 1236
  • [26] Enhancing Learned Image Compression via Cross Window-Based Attention
    Mudgal, Priyanka
    Liu, Feng
    ADVANCES IN VISUAL COMPUTING, ISVC 2024, PT II, 2025, 15047 : 410 - 423
  • [27] Self-Attention Based Video Summarization
    Li Y.
    Wang J.
    Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao/Journal of Computer-Aided Design and Computer Graphics, 2020, 32 (04): : 652 - 659
  • [28] Gaze Estimation Based on Convolutional Structure and Sliding Window-Based Attention Mechanism
    Li, Yujie
    Chen, Jiahui
    Ma, Jiaxin
    Wang, Xiwen
    Zhang, Wei
    SENSORS, 2023, 23 (13)
  • [29] A cooperative approach based on self-attention with interactive attribute for image caption
    Zhao, Dexin
    Yang, Ruixue
    Wang, Zhaohui
    Qi, Zhiyang
    MULTIMEDIA TOOLS AND APPLICATIONS, 2023, 82 (01) : 1223 - 1236
  • [30] A Local Self-Attention Sentence Model for Answer Selection Task in CQA Systems
    Liu, Donglei
    LuO, Hao
    Yuan, Yong
    Qin, Rui
    Zhu, Yifan
    Zhang, Chunxia
    Niu, Zhendong
    IEEE TRANSACTIONS ON COMPUTATIONAL SOCIAL SYSTEMS, 2023, 10 (06) : 3283 - 3294