Skip to main content
QUICK REVIEW

[Paper Review] Retrofitting Structure-aware Transformer Language Model for End Tasks

Hao Fei, Yafeng Ren|arXiv (Cornell University)|Sep 16, 2020
Topic ModelingComputer Science22 citations
TL;DR

This paper proposes a retrofitting method for structure-aware Transformer language models by integrating syntactic distance to encode both constituency and dependency structures via middle-layer multi-task training. The approach improves language modeling perplexity and significantly boosts performance on both semantic- and syntactic-dependent NLP tasks through task-adapted, interpretable syntactic phrase induction.

ABSTRACT

We consider retrofitting structure-aware Transformer-based language model for facilitating end tasks by proposing to exploit syntactic distance to encode both the phrasal constituency and dependency connection into the language model. A middle-layer structural learning strategy is leveraged for structure integration, accomplished with main semantic task training under multi-task learning scheme. Experimental results show that the retrofitted structure-aware Transformer language model achieves improved perplexity, meanwhile inducing accurate syntactic phrases. By performing structure-aware fine-tuning, our model achieves significant improvements for both semantic- and syntactic-dependent tasks.

Motivation & Objective

  • To address the limitation of vanilla BERT in capturing sufficient syntactic structure for downstream tasks.
  • To resolve the conflict between semantic and structural learning in deep Transformer models by focusing structure integration on middle layers.
  • To enable end-task adaptation through structure-aware fine-tuning that aligns induced syntactic knowledge with task-specific needs.
  • To demonstrate that different NLP tasks rely on distinct types and granularities of syntactic structure.

Proposed method

  • Introduce a syntax distance metric to jointly encode phrasal constituency and dependency relations in the Transformer architecture.
  • Propose a middle-layer structural learning strategy that integrates syntactic structure into the main language modeling task via multi-task learning.
  • Train the model using a multi-task objective that jointly optimizes for language modeling and syntactic structure prediction at intermediate layers.
  • Apply structure-aware fine-tuning during end-task adaptation to align induced syntactic structures with task-specific requirements.
  • Use linear normalization of syntax distance deviations to analyze structural preferences across different NLP tasks.
  • Induce task-relevant syntactic phrases by analyzing phrase length distributions and syntax distance variance in fine-tuned models.

Experimental results

Research questions

  • RQ1Can syntactic distance effectively encode both constituency and dependency structures in a unified framework within a Transformer language model?
  • RQ2Does middle-layer multi-task training better preserve and utilize syntactic structure compared to full-layer training?
  • RQ3How does structure-aware fine-tuning improve performance on both semantic- and syntactic-dependent NLP tasks?
  • RQ4What types and granularities of syntactic phrases are most beneficial for different NLP tasks?
  • RQ5To what extent do supervised and unsupervised pre-training contribute differently to syntactic- vs. semantic-dependent tasks?

Key findings

  • The retrofitted structure-aware Transformer achieves improved language modeling perplexity compared to baseline models.
  • The model induces high-quality, task-adapted syntactic phrases, with phrase lengths varying according to task needs—longer for sentiment classification, shorter for SRL.
  • Structure-aware fine-tuning leads to significant performance gains on both semantic-dependent (e.g., SST) and syntactic-dependent (e.g., SRL, Rel) tasks.
  • Dependency structures are more dominant in tasks like SRL and Rel, while constituency structures are more relevant for SST and TopConst, as shown by syntax distance variance.
  • The method successfully induces phrase types (e.g., NP, VP) that are more aligned with task-specific requirements, with higher proportions of relevant phrases compared to baseline Tree+Trm.
  • Unsupervised pre-training benefits semantic-dependent tasks more, while supervised structured pre-training provides greater gains for syntactic-dependent tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.