Skip to main content
QUICK REVIEW

[Paper Review] Inducing Syntactic Trees from BERT Representations

Rudolf Rosa, David Mareček|arXiv (Cornell University)|Jun 27, 2019
Topic ModelingComputer Science7 references14 citations
TL;DR

This paper proposes a novel, training-free method to induce dependency syntactic trees from BERT representations by measuring how much a word's contextual embedding changes when it is removed from a sentence—defined as its 'reducibility' score. The approach leverages BERT's deep contextual representations to estimate syntactic roles: more reducible words (e.g., adjectives) tend to be leaves or children in dependency trees, while less reducible words (e.g., main verbs) are more likely to be heads or roots. The method achieves a 40.6% Unlabeled Attachment Score (UAS) using a simple parsing algorithm, significantly outperforming a strong right-chain baseline (29.5% UAS), demonstrating that syntactic structure can be induced directly from pre-trained language model representations without fine-tuning.

ABSTRACT

We use the English model of BERT and explore how a deletion of one word in a sentence changes representations of other words. Our hypothesis is that removing a reducible word (e.g. an adjective) does not affect the representation of other words so much as removing e.g. the main verb, which makes the sentence ungrammatical and of "high surprise" for the language model. We estimate reducibilities of individual words and also of longer continuous phrases (word n-grams), study their syntax-related properties, and then also use them to induce full dependency trees.

Motivation & Objective

  • To investigate whether syntactic reducibility—defined as the ability to omit a word without damaging grammatical correctness—can be estimated directly from BERT representations.
  • To explore whether reducibility scores derived from BERT can be used to induce projective dependency trees without any fine-tuning on syntactically annotated data.
  • To evaluate the correspondence between BERT-based reducibility and actual syntactic structure, particularly in terms of leaf nodes, heads, and root identification.
  • To develop and compare parsing algorithms that use reducibility scores to build dependency trees, aiming for higher accuracy than uninformed baselines.

Proposed method

  • The reducibility score $ r_{p,s} $ of a phrase $ p $ in sentence $ s $ is computed as the average Euclidean distance between BERT representations of words in the original sentence $ s $ and in the modified sentence $ s_{-p} $ with $ p $ removed.
  • BERT representations are extracted from the last layer of the BERT encoder at each word’s position, and the distance is calculated using L2 norm over all remaining words in the sentence.
  • A recursive headed bracket encoding is used in Algorithm D to build projective trees by greedily inserting the most reducible phrase that maintains structural constraints (non-crossing brackets, presence of a head).
  • Algorithm R builds on the right-chain baseline by enforcing that each node must be attached to the nearest subsequent node with higher reducibility, ensuring parent nodes are less reducible than children.
  • The method avoids any fine-tuning on syntactic data; all scores and parsing decisions are derived directly from the pre-trained BERT model.
  • Punctuation is optionally treated with reduced reducibility to improve performance, as it tends to be highly irreducible and disrupts parsing.

Experimental results

Research questions

  • RQ1Can BERT representations detect syntactic reducibility, where reducible words (e.g., adjectives) are more easily omitted without grammatical damage?
  • RQ2To what extent do BERT-based reducibility scores correlate with actual dependency tree structures, such as leaf nodes and parent-child relationships?
  • RQ3Can reducibility scores be used to construct accurate dependency trees without any fine-tuning on syntactic annotations?
  • RQ4How do the proposed parsing algorithms (D and R) compare to strong uninformed baselines like the right-chain in terms of Unlabeled Attachment Score (UAS)?
  • RQ5Is the root of a sentence consistently the least reducible word, as predicted by syntactic theory?

Key findings

  • The method achieves a 74.5% accuracy in distinguishing leaf nodes from non-leaf nodes in dependency trees, significantly outperforming a baseline of 66.4% that assumes all words are leaves.
  • The syntactic root is the least reducible word in 34% of sentences, or 46% when punctuation is excluded—far exceeding the 13% random baseline.
  • The dependency edge direction is predicted correctly with 70.6% accuracy by assuming the parent is less reducible than the child, surpassing the 65.8% accuracy of the right-chain baseline.
  • Algorithm R achieves a UAS of 40.6% when punctuation is treated with reduced reducibility, outperforming the right-chain baseline (29.5%) by 11.1 percentage points.
  • Algorithm D achieves 33.1% UAS when punctuation reducibility is reduced, showing that the method can improve baseline performance even with minimal structural constraints.
  • The average reducibility of words correlates with part-of-speech tags: adjectives and adverbs show high reducibility, while verbs show low reducibility, aligning with linguistic intuition.

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.