TL;DR
BERT implicitly learns its own systematic grammar that diverges from standard human-designed syntactic annotations. By modifying Universal Dependencies (UD) to match BERT's internal preferences and ensembling complementary attention heads, this paper extracts full, labeled dependency trees with remarkably little supervision.
What Problem Does This Paper Address?
While large language models like BERT achieve state-of-the-art performance on NLP tasks, understanding how they represent syntax remains a major challenge. Previous research showed that individual self-attention heads track specific syntactic relations (like matching a subject to its verb). However, these internal representations rarely align one-to-one with standard linguistic frameworks like Universal Dependencies (UD).
Most existing methods use heavy "structural probes"—complex classifiers trained on top of embeddings—to extract syntax trees. This leaves open a critical question: Can we extract full, labeled syntax trees directly from BERT's raw attention weights without training a massive parser? The authors tackle this by bridging the gap between human linguistic theory and BERT's internal, emergent grammar.
Methods
The authors introduce a zero-shot/low-supervision pipeline consisting of three main components:
- Adapting UD to BERT: The authors identify three systematic linguistic phenomena where BERT's attention consistently disagrees with standard UD guidelines: copulas, expletives, and coordinations. They modify the target UD annotations to better align with BERT's internal "view" (which closely resembles Surface-Syntactic Universal Dependencies, or SUD).
- Head Ensembling: Instead of relying on a single attention head per relation, the authors introduce a greedy ensembling method. They combine up to four heads per relation type because individual heads often specialize in specific subtypes or positional distances of a relation.
- Dependency Tree Construction: To build full trees, attention matrices from the ensembles are averaged, directionally balanced, and max-pooled across all relation labels. Finally, the Chu-Liu-Edmonds maximum spanning tree algorithm is applied to generate a well-formed, labeled dependency tree.
Datasets
The approach was developed and evaluated using:
- Europarl: 1,000 parallel sentences across five European languages (automatically annotated with UDPipe) used for head selection.
- Google Universal Dependency Treebanks (GSD): Used for Indonesian, Korean, and Japanese head selection.
- UD Turkish Treebank (IMST-UD): Used for Turkish head selection.
- CoNLL 2017 Shared Task PUD Treebanks: Used as the gold-standard evaluation set across nine languages (English, German, French, Czech, Finnish, Indonesian, Turkish, Korean, and Japanese).
Key Insights and Ideas
- BERT's Syntax is Both More Specific and More General: The title reflects a fascinating duality. BERT is more specific because individual heads split up labor based on token distance or relation subtypes. For example, one head might handle short-range adjectival modifiers, while another handles long-range ones. Conversely, it is more general because "multipurpose heads" exist, tracking multiple related syntactic functions simultaneously across entirely different languages.
- Extreme Data Efficiency: Selecting which attention heads to ensemble requires very little supervision. Using as few as 10 to 20 annotated sentences is enough to surpass baseline performance, making this approach highly viable for low-resource languages.
- Cross-Lingual Universality: In multilingual BERT (mBERT), the exact same attention heads often encode the same syntactic relations across different languages, demonstrating that mBERT learns a genuinely language-independent structural representation.
Key Results
- State-of-the-Art Direct Extraction: On the English PUD treebank, the ensembling method achieved an Unlabeled Attachment Score (UAS) of 52.0% and a Labeled Attachment Score (LAS) of 21.7%. This significantly outperforms previous single-head extraction baselines (which topped out around 37.2% UAS).
- The SVO vs. SOV Gap: The method performs exceptionally well for Subject-Object-Verb (SVO) languages like English, French, and German. However, performance drops significantly for Subject-Object-Verb (SOV) languages like Turkish, Korean, and Japanese (a drop of ~14.7 percentage points in dependency accuracy), likely due to underrepresentation in mBERT's pretraining corpus.
Limitations and Future Work
While the model excels at local, non-clausal relations, its performance on clausal relations (like subordinate clauses) remains relatively weak because these dependencies span much longer token distances. Additionally, the stark performance drop in SOV languages highlights a limitation in how current multilingual models capture non-Western syntactic structures.
For future work, the authors suggest that this unsupervised head-selection method could be directly integrated into low-supervision dependency parsers to bootstrap performance in data-scarce environments.
Summary updated