Abstract
This paper investigates whether explicitly teaching large-scale transformer models like BERT and RoBERTa supervised syntactic parsing through Intermediate Parsing Training (IPT) improves their performance on downstream Language Understanding (LU) tasks. Through extensive experiments on monolingual and cross-lingual benchmarks, including Natural Language Inference (NLI) and commonsense reasoning, the authors find that the benefits of formal syntax are largely redundant or inconsistent. While models successfully learn to parse, this knowledge often fails to translate into significant gains over standard pretraining or simple Masked Language Modeling (MLM) on the same data.
Introduction
For decades, a central tenet of Natural Language Processing (NLP) was that understanding the meaning of a sentence (semantics) required first understanding its structure (syntax). This led to complex pipelines where parsers mapped out grammatical relationships before any reasoning occurred. However, the success of "end-to-end" models like BERT, which learn from raw text without explicit grammar lessons, has challenged this paradigm. This research explores whether "force-feeding" these models explicit syntactic knowledge from human-curated datasets, such as Universal Dependencies, can further enhance their language understanding capabilities.
Methodology
The authors employ a technique called Intermediate Parsing Training (IPT), a three-step pipeline:
- Pretraining: Utilizing standard transformers (e.g., BERT, RoBERTa, mBERT, or XLM-R).
- Intermediate Training: Attaching a simplified "biaffine parsing head" to the model to perform dependency parsing using Universal Dependencies (UD) treebanks.
- Downstream Fine-tuning: Fine-tuning the syntactically-informed model on specific LU tasks.
To prevent the model from forgetting general knowledge during the parsing phase, the researchers also experiment with Adapters—small, trainable modules that allow the main weights to remain frozen. Additionally, they use Linear Centered Kernel Alignment (l-CKA) to compare the topological similarity of the model's internal representations before and after training, visualizing how the model's internal structure changes when learning grammar.
Datasets
- Syntactic Data: Universal Dependencies (UD) v2.5 treebanks for English, German, French, Turkish, and Chinese.
- LU Tasks: Multi-NLI and XNLI (Inference), HANS (Adversarial Syntax), PAWS and PAWS-X (Paraphrase Identification), and SIQA and XCOPA (Commonsense Reasoning).
Key Results and Insights
The Redundancy of Human-Defined Syntax
The l-CKA analysis revealed that the lower layers of transformers undergo minimal change when trained on parsing. This suggests that standard language model pretraining already captures the necessary structural information, making human-labeled syntax largely redundant for these models.
The "More Data" Illusion
In cross-lingual settings, initial gains observed after parsing training were found to be deceptive. When the authors performed Masked Language Modeling (MLM) on the same raw text without grammar labels, they achieved nearly identical improvements. This indicates that the benefit stems from exposure to more target-language data rather than the syntactic labels themselves.
Performance Metrics
- Monolingual Performance: For English BERT and RoBERTa, adding a parsing step resulted in negligible or inconsistent gains. While BERT saw a +3.4% improvement on the HANS dataset, the more robust RoBERTa saw no benefit.
- Cross-Lingual Transfer: Multilingual models (mBERT and XLM-R) showed limited and inconsistent gains from intermediate parsing.
- Parsing Accuracy: The simplified biaffine parser achieved state-of-the-art results (e.g., 93.0 UAS for RoBERTa on English EWT), confirming that the models successfully internalized the syntax even if they did not find it useful for downstream tasks.
Conclusion and Future Work
The study concludes that for high-resource languages and large-scale models, formal syntactic structure does not significantly improve semantic understanding. The authors suggest a "mismatch" exists between rigid linguistic syntax and the latent structure transformers use to solve semantic problems.
Future research may investigate whether supervised parsing is more beneficial for low-resource languages where data is scarce, or explore alternative structural injections that better align with transformer processing. While supervised parsing may not enhance general NLP applications like chatbots, it remains a vital tool for computational linguistics and the study of human language properties.
Summary updated