Lune

ACL2023Top-tier venue

Interpreting Positional Information in Perspective of Word Order

Xilong Zhang, Ruochen Liu, Jin Liu, Xuefeng Liang

Abstract

The attention mechanism is a powerful and effective method utilized in natural language processing. However, it has been observed that this method is insensitive to positional information. Although several studies have attempted to improve positional encoding and investigate the influence of word order perturbation, it remains unclear how positional encoding impacts NLP models from the perspective of word order. In this paper, we aim to shed light on this problem by analyzing the working mechanism of the attention module and investigating the root cause of its inability to encode positional information. Our hypothesis is that the insensitivity can be attributed to the weight sum operation utilized in the attention module. To verify this hypothesis, we propose a novel weight concatenation operation and evaluate its efficacy in neural machine translation tasks. Our enhanced experimental results not only reveal that the proposed operation can effectively encode positional information but also confirm our hypothesis.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Word Order Does Matter and Shuffled Language Models Know It cites Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Improve Transformer Models with Better Relative Position EmbeddingsZhiheng Huang, Davis Liang, Peng Xu, Bing XiangEMNLP Findings 2020 · 114 citations
  2. Out of Order: How important is the sequential order of words in a sentence in Natural Language Understanding tasks?Thang M. Pham, Trung Bui, Long Mai, Anh NguyenACL Findings 2021 · 81 citations
  3. On Scalar Embedding of Relative Positions in Attention ModelsJunshuang Wu, Richong Zhang, Yongyi Mao, Junfan ChenAAAI 2021 · 4 citations
  4. Word Order Does Matter and Shuffled Language Models Know ItMostafa Abdou, Vinit Ravishankar, Artur Kulmizev, Anders SøgaardACL 2022
  5. Scientific Credibility of Machine Translation Research: A Meta-Evaluation of 769 PapersBenjamin Marie, Atsushi Fujita, Raphael RubinoACL 2021

Related papers

  1. Attention Weights in Transformer NMT Fail Aligning Words Between Sequences but Largely Explain Model PredictionsJavier Ferrando, Marta R. Costa-jussàEMNLP Findings 2021 · 14 citations
  2. The Locality and Symmetry of Positional EncodingsLihu Chen, Gaël Varoquaux, Fabian M. SuchanekEMNLP Findings 2023 · 2 citations
  3. Modeling Concentrated Cross-Attention for Neural Machine Translation with Gaussian Mixture ModelShaolei Zhang, Yang FengEMNLP Findings 2021 · 12 citations
  4. Attention Calibration for Transformer in Neural Machine TranslationYu Lu, Jiali Zeng, Jiajun Zhang, Shuangzhi Wu et al.ACL 2021
  5. A Simple and Effective Positional Encoding for TransformersPu-Chin Chen, Henry Tsai, Srinadh Bhojanapalli, Hyung Won Chung et al.EMNLP 2021 · 51 citations
Dusk over the sea between two cliffs drawn in fine vertical lines