TL;DR
This paper demonstrates that syntactic dependency trees can be extracted directly from pretrained BERT representations without any training or fine-tuning on annotated data. By measuring "reducibility"—how much deleting a word alters the contextual embeddings of the remaining words—the authors uncover a zero-shot method for unsupervised dependency parsing.
What Problem Does This Paper Address?
Large language models like BERT are known to implicitly capture syntax, but extracting this structural knowledge usually requires training a supervised "probe" (a separate machine learning model) on top of the embeddings. This raises a fundamental question: is the probe actually finding syntax already present in BERT, or is it learning syntax from the training data?
To address this, the authors propose a fully unsupervised, zero-shot approach to induce syntactic trees. They leverage the linguistic concept of reducibility: the idea that optional, peripheral words (like adjectives or adverbs) can be removed from a sentence without destroying its core grammatical structure, whereas essential words (like main verbs) cannot.
Methods
The core idea is to measure how "surprised" BERT is when a word or phrase is deleted. The authors define a reducibility score ($r_{p,s}$) for a phrase $p$ in a sentence $s$ using the following steps:
- Run the original sentence through BERT and extract the embeddings from the final layer.
- Delete phrase $p$ from the sentence, run the shortened sentence through BERT, and extract the new embeddings.
- Compute the average Euclidean distance between the original and new embeddings for all remaining words.
Mathematically, it is expressed as: $$r_{p,s} = \frac{1}{|s-p|} \sum_{w \in s-p} ||b_{w,s} - b_{w,s-p}||_2$$
If removing a word barely changes the representations of the other words, the word is highly reducible (likely a leaf node in a dependency tree). If it causes a massive shift, it is structurally vital (likely a head node or the root verb).
The authors introduce two simple greedy algorithms to build dependency trees from these scores:
- Algorithm D: A phrase-based approach that recursively inserts brackets around the most reducible phrases to construct a projective dependency tree.
- Algorithm R: A word-based approach that modifies a standard "right-chain" baseline by enforcing a constraint: a parent node must be less reducible (more structurally essential) than its child node.
Datasets
The authors evaluated their approach using:
- Model: The pretrained
BERT-Large, uncasedmodel. - Data: Sentences from the development portion of the English Web Treebank (EWT) from Universal Dependencies 2.3. They filtered the dataset to include only sentences where all words were present in BERT's vocabulary.
Key Insights and Ideas
- Reducibility Correlates with Tree Depth: Highly reducible words strongly correlate with being leaf nodes (the tips of the branches) in syntactic trees, while structurally vital words correlate with internal nodes.
- Part-of-Speech Tendencies: Adverbs (
ADV) and adjectives (ADJ) consistently show high reducibility, meaning BERT's internal state is robust to their deletion. Conversely, nouns (NOUN) and verbs (VERB) show low reducibility, confirming their role as structural anchors.
- Finding the Root: The syntactic root of a sentence (usually the main verb) tends to be the least reducible word in the entire sentence. It correctly identifies the root in 46% of sentences (excluding punctuation), far outperforming a random baseline of 13%.
- Predicting Edge Direction: If you assume that a parent node should always be less reducible than its child node, you can predict the direction of a dependency edge with 70.6% accuracy.
Key Results
The authors evaluated their induced trees using the Unlabelled Attachment Score (UAS), which measures the percentage of words correctly assigned to their true syntactic parent.
While Algorithm D only marginally improved upon the baselines, Algorithm R achieved a UAS of 37.0, which jumped to 40.6 when explicitly handling punctuation. This significantly outperforms the uninformed right-chain baseline (29.5), proving that the raw perturbation of BERT embeddings contains genuine, exploitable syntactic signals.
Limitations and Future Work
- The Punctuation Problem: BERT treats punctuation marks (like periods and commas) as highly irreducible, meaning their deletion drastically alters surrounding embeddings. The authors had to manually adjust for this by artificially lowering punctuation reducibility scores.
- Simplistic Parsing Algorithms: The tree-building algorithms used (greedy heuristics) are quite rudimentary. The authors note that applying more sophisticated graph-based parsing algorithms to these reducibility scores could yield significantly higher accuracy.
- Language and Model Scope: The study was strictly limited to English and a single BERT architecture; verifying these properties across multilingual models and different transformer variants remains open for future exploration.
Summary updated