Skip to main content
QUICK REVIEW

[Paper Review] StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling

Yikang Shen, Yi Tay|arXiv (Cornell University)|Dec 1, 2020
Natural Language Processing TechniquesComputer Science40 references7 citations
TL;DR

StructFormer proposes a novel, end-to-end unsupervised framework that jointly induces dependency and constituency structures using a distance-based parsing mechanism and a dependency-constrained self-attention mechanism within a Transformer architecture. It achieves state-of-the-art performance in unsupervised dependency parsing (46.2 UAS) and masked language modeling while learning syntactic structure without gold POS tags or external supervision.

ABSTRACT

There are two major classes of natural language grammar -- the dependency grammar that models one-to-one correspondences between words and the constituency grammar that models the assembly of one or several corresponded words. While previous unsupervised parsing methods mostly focus on only inducing one class of grammars, we introduce a novel model, StructFormer, that can simultaneously induce dependency and constituency structure. To achieve this, we propose a new parsing framework that can jointly generate a constituency tree and dependency graph. Then we integrate the induced dependency relations into the transformer, in a differentiable manner, through a novel dependency-constrained self-attention mechanism. Experimental results show that our model can achieve strong results on unsupervised constituency parsing, unsupervised dependency parsing, and masked language modeling at the same time.

Motivation & Objective

  • To develop a unified, end-to-end unsupervised framework that jointly induces both dependency and constituency structures from raw text.
  • To eliminate reliance on gold POS tags or external linguistic supervision in unsupervised parsing.
  • To integrate syntactic structure induction directly into the self-attention mechanism of Transformers.
  • To evaluate whether induced dependency structures improve masked language modeling performance.
  • To demonstrate that a single model can simultaneously achieve strong performance in unsupervised parsing and pretraining tasks.

Proposed method

  • The model uses a distance-based parsing mechanism to predict syntactic distances (T) and syntactic heights (Δ) for each token, representing dependency and constituency structures jointly.
  • From T and Δ, it computes parent and dependent attention distributions in a differentiable manner to define directed dependency relations.
  • A novel dependency-constrained self-attention mechanism restricts each attention head to attend only on its parent or dependents, replacing the standard full-attention mechanism.
  • The attention mechanism combines weighted sums of parent and dependent relations, enabling the model to learn structured inductive bias during pretraining.
  • The model is trained end-to-end on masked language modeling, with syntactic structure emerging through gradient descent.
  • The final dependency graph is extracted via argmax over the predicted dependency distribution for each token.

Experimental results

Research questions

  • RQ1Can a single unsupervised model jointly induce both dependency and constituency structures from raw text?
  • RQ2Can a differentiable dependency-constrained attention mechanism effectively guide Transformers to learn directed syntactic graphs without gold labels?
  • RQ3Does the induced syntactic structure improve performance on masked language modeling tasks?
  • RQ4How do the relative contributions of parent and dependent attention relations affect parsing and pretraining performance?
  • RQ5Is the proposed framework competitive with existing unsupervised parsing methods that rely on gold POS tags or pre-trained embeddings?

Key findings

  • StructFormer achieves a UAS of 46.2 on the WSJ test set without using gold POS tags, outperforming most existing unsupervised models under the same setting.
  • The model recovers 61.6% of undirected dependency relations (UUAS), indicating strong recovery of syntactic connections.
  • Performance degrades significantly when only parent or dependent relations are used, showing that both relations are essential for balanced parsing performance.
  • The model learns to prioritize parent relations in early layers and gradually incorporates dependent relations in deeper layers, suggesting hierarchical attention learning.
  • The induced dependency structure enhances masked language modeling performance, demonstrating that syntactic inductive bias improves pretraining.
  • The framework successfully unifies dependency and constituency structure induction within a single, end-to-end differentiable architecture.

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.