Lune

EMNLP Findings2022

Syntax-guided Localized Self-attention by Constituency Syntactic Distance

Shengyuan Hou, Jushi Kai, Haotian Xue, Bingyu Zhu, Bo Yuan, Longtao Huang, Xinbing Wang, Zhouhan Lin

Abstract

Recent works have revealed that Transformers are implicitly learning the syntactic information in its lower layers from data, albeit is highly dependent on the quality and scale of the training data. However, learning syntactic information from data is not necessary if we can leverage an external syntactic parser, which provides better parsing quality with welldefined syntactic structures. This could potentially improve Transformer's performance and sample efficiency. In this work, we propose a syntax-guided localized self-attention for Transformer that allows directly incorporating grammar structures from an external constituency parser. It prohibits the attention mechanism to overweight the grammatically distant tokens over close ones. Experimental results show that our model could consistently improve translation performance on a variety of machine translation datasets, ranging from small to large dataset sizes, and with different source languages.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 1 top-tier paper that cites it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers1

  1. Causal Graphical Models for Vision-Language Compositional UnderstandingFiorenzo Parascandolo, Nicholas Moratelli, Enver Sangineto, Lorenzo Baraldi et al.ICLR 2025

Builds on3

  1. SG-Net: Syntax-Guided Machine Reading ComprehensionZhuosheng Zhang, Yuwei Wu, Junru Zhou, Sufeng Duan et al.AAAI 2020 · 192 citations
  2. Improving BERT with Syntax-aware Local AttentionZhongli Li, Qingyu Zhou, Chao Li, Ke Xu et al.ACL Findings 2021 · 33 citations
  3. Improving Neural Machine Translation with Soft Template PredictionJian Yang, Shuming Ma, Dongdong Zhang, Zhoujun Li et al.ACL 2020 · 29 citations

Related papers

  1. Leveraging Grammar Induction for Language Understanding and GenerationJushi Kai, Shengyuan Hou, Yusheng Huang, Zhouhan LinEMNLP Findings 2024 · 1 citation
  2. Syntax-guided Contrastive Learning for Pre-trained Language ModelShuai Zhang, Lijie Wang, Xinyan Xiao, Hua WuACL Findings 2022 · 11 citations
  3. Investigating Non-local Features for Neural Constituency ParsingLeyang Cui, Sen Yang, Yue ZhangACL 2022
  4. GiLT: Augmenting Transformer Language Models with Dependency GraphsTianyu Huang, Yida Zhao, Chuyan Zhou, Kewei TuACL 2026
  5. Grammar-Constrained Neural Semantic Parsing with LR ParsersArtur Baranowski, Nico HochgeschwenderACL Findings 2021 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines