Lune

AAAI2020Top-tier venue

Multiple Positional Self-Attention Network for Text Classification

Biyun Dai, Jinlong Li, Ruoyi Xu

Abstract

Self-attention mechanisms have recently caused many concerns on Natural Language Processing (NLP) tasks. Relative positional information is important to self-attention mechanisms. We propose Faraway Mask focusing on the (2m + 1)-gram words and Scaled-Distance Mask putting the logarithmic distance punishment to avoid and weaken the self-attention of distant words respectively. To exploit different masks, we present Positional Self-Attention Layer for generating different Masked-Self-Attentions and a following Position-Fusion Layer in which fused positional information multiplies the Masked-Self-Attentions for generating sentence embeddings. To evaluate our sentence embeddings approach Multiple Positional Self-Attention Network (MPSAN), we perform the comparison experiments on sentiment analysis, semantic relatedness and sentence classification tasks. The result shows that our MPSAN outperforms state-of-the-art methods on five datasets and the test accuracy is improved by 0.81%, 0.6% on SST, CR datasets, respectively. In addition, we reduce training parameters and improve the time efficiency of MPSAN by lowering the dimension number of self-attention and simplifying fusion mechanism.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. ClusterFormer: Neural Clustering Attention for Efficient and Effective TransformerNingning Wang, Guobing Gan, Peng Zhang, Shuai Zhang et al.ACL 2022 · 24 citations
  2. Continuous Self-Attention Models with Neural ODE NetworksJing Zhang, Peng Zhang, Baiwen Kong, Junqiu Wei et al.AAAI 2021 · 24 citations
  3. On Scalar Embedding of Relative Positions in Attention ModelsJunshuang Wu, Richong Zhang, Yongyi Mao, Junfan ChenAAAI 2021 · 4 citations

Related papers

  1. Modelling Context and Syntactical Features for Aspect-based Sentiment AnalysisMinh-Hieu Phan, Philip O. OgunbonaACL 2020 · 190 citations
  2. Cascaded Semantic and Positional Self-Attention Network for Document ClassificationJuyong Jiang, Jie Zhang, Kai ZhangEMNLP Findings 2020 · 4 citations
  3. On Position Embeddings in BERTBenyou Wang, Lifeng Shang, Christina Lioma, Xin Jiang et al.ICLR 2021 · 129 citations
  4. UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-TrainingHangbo Bao, Li Dong, Furu Wei, Wenhui Wang et al.ICML 2020 · 423 citations
  5. Discourse Self-Attention for Discourse Element Identification in Argumentative Student EssaysWei Song, Ziyao Song, Ruiji Fu, Lizhen Liu et al.EMNLP 2020 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines