Lune

ACL Findings2021

Improving BERT with Syntax-aware Local Attention

Zhongli Li, Qingyu Zhou, Chao Li, Ke Xu, Yunbo Cao

Abstract

Pre-trained Transformer-based neural language models, such as BERT, have achieved remarkable results on varieties of NLP tasks. Recent works have shown that attention-based models can benefit from more focused attention over local regions. Most of them restrict the attention scope within a linear span, or confine to certain tasks such as machine translation and question answering. In this paper, we propose a syntax-aware local attention, where the attention scopes are restrained based on the distances in the syntactic structure. The proposed syntax-aware local attention can be integrated with pretrained language models, such as BERT, to render the model to focus on syntactically relevant words. We conduct experiments 1 on various single-sentence benchmarks, including sentence classification and sequence labeling tasks. Experimental results show consistent gains over BERT on all benchmark datasets. The extensive studies verify that our model achieves better performance owing to more focused attention over syntactically relevant words.

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 · 8 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers8

  1. LasUIE: Unifying Information Extraction with Latent Adaptive Structure-aware Generative Language ModelHao Fei, Shengqiong Wu, Jingye Li, Bobo Li et al.NeurIPS 2022 · 114 citations
  2. Rethinking Positional Encoding in Tree Transformer for Code RepresentationHan Peng, Ge Li, Yunfei Zhao, Zhi JinEMNLP 2022 · 10 citations
  3. Improving Chinese Pop Song and Hokkien Gezi Opera Singing Voice Synthesis by Enhancing Local ModelingPeng Bai, Yue Zhou, Meizhen Zheng, Wujin Sun et al.EMNLP 2023 · 4 citations
  4. Cross-modal Attention Congruence Regularization for Vision-Language Relation AlignmentRohan Pandey, Rulin Shao, Paul Pu Liang, Ruslan Salakhutdinov et al.ACL 2023 · 3 citations
  5. Extracting Linguistic Information from Large Language Models: Syntactic Relations and Derivational KnowledgeTsedeniya Kinfe Temesgen, Marion Di Marco, Alexander FraserEMNLP 2025 · 2 citations

Builds on4

  1. ERNIE 2.0: A Continual Pre-Training Framework for Language UnderstandingYu Sun, Shuohuan Wang, Yu-Kun Li, Shikun Feng et al.AAAI 2020 · 885 citations
  2. A Unified MRC Framework for Named Entity RecognitionXiaoya Li, Jingrong Feng, Yuxian Meng, Qinghong Han et al.ACL 2020 · 617 citations
  3. SG-Net: Syntax-Guided Machine Reading ComprehensionZhuosheng Zhang, Yuwei Wu, Junru Zhou, Sufeng Duan et al.AAAI 2020 · 192 citations
  4. Differentiable Window for Dynamic Local AttentionThanh-Tung Nguyen, Xuan-Phi Nguyen, Shafiq R. Joty, Xiaoli LiACL 2020 · 12 citations

Related papers

  1. Syntax-Enhanced Pre-trained ModelZenan Xu, Daya Guo, Duyu Tang, Qinliang Su et al.ACL 2021
  2. Syntax Matters: Towards Spoken Language Understanding via Syntax-Aware AttentionYifeng Xie, Zhihong Zhu, Xuxin Cheng, Zhiqi Huang et al.EMNLP Findings 2023 · 6 citations
  3. Syntax-guided Localized Self-attention by Constituency Syntactic DistanceShengyuan Hou, Jushi Kai, Haotian Xue, Bingyu Zhu et al.EMNLP Findings 2022 · 2 citations
  4. Integrating Task Specific Information into Pretrained Language Models for Low Resource Fine TuningRui Wang, Shijing Si, Guoyin Wang, Lei Zhang et al.EMNLP Findings 2020 · 6 citations
  5. Syntax-guided Contrastive Learning for Pre-trained Language ModelShuai Zhang, Lijie Wang, Xinyan Xiao, Hua WuACL Findings 2022 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines