Syntax-Enhanced Pre-trained Model

Zenan Xu, Daya Guo, Duyu Tang, Qinliang Su, Linjun Shou +5 more
12/28/2020
cs.CL
transformer-attention

Official code: Hi-ZenanXu/Syntax-Enhanced_Pre-trained_Model (11 stars, last commit 2021-06-01).

Abstract

We study the problem of leveraging the syntactic structure of text to enhance pre-trained models such as BERT and RoBERTa. Existing methods utilize syntax of text either in the pre-training stage or in the fine-tuning stage, so that they suffer from discrepancy between the two stages.

Show full abstract

Such a problem would lead to the necessity of having human-annotated syntactic information, which limits the application of existing methods to broader scenarios. To address this, we present a model that utilizes the syntax of text in both pre-training and fine-tuning stages. Our model is based on Transformer with a syntax-aware attention layer that considers the dependency tree of the text. We further introduce a new pre-training task of predicting the syntactic distance among tokens in the dependency tree. We evaluate the model on three downstream tasks, including relation classification, entity typing, and question answering. Results show that our model achieves state-of-the-art performance on six public benchmark datasets. We have two major findings. First, we demonstrate that infusing automatically produced syntax of text improves pre-trained models. Second, global syntactic distances among tokens bring larger performance gains compared to local head relations between contiguous tokens.

View on arXivView PDF

Code Implementations(1)

Source Data of ACL2021 paper "Syntax-Enhanced Pre-trained Model"

113May 11, 20215 years ago

Similar Papers

Cite this paper

@article{xu2020syntaxenhanced,
  title  = {Syntax-Enhanced Pre-trained Model},
  author = {Zenan Xu and Daya Guo and Duyu Tang and Qinliang Su and Linjun Shou and Ming Gong and Wanjun Zhong and Xiaojun Quan and Nan Duan and Daxin Jiang},
  year   = {2020},
  eprint = {2012.14116},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.14116}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.14116.svg)](https://codeofpaper.com/paper/2012.14116)

Discussion