TL;DR
This paper investigates which pre-training objectives best equip neural networks with syntactic understanding. They found that bidirectional language modeling (BiLM) pre-training significantly outperforms translation and other methods in learning syntactic features, even with less data. This suggests BiLMs are a superior choice for transfer learning tasks requiring syntactic knowledge.
What Problem Does This Paper Address?
Deep learning models, particularly LSTMs, have revolutionized NLP. Pre-trained representations from models like ELMo and CoVe have proven highly effective, but the exact linguistic information these representations capture, and how different pre-training objectives influence this, remains unclear. Specifically, the authors want to understand how pre-training tasks like language modeling, translation, skip-thought, and autoencoding affect a model's ability to learn syntactic and part-of-speech (POS) information. This knowledge is crucial for selecting the best pre-training strategy for downstream NLP tasks that rely on syntactic understanding.
Methods
The core of the study involves training LSTM models with various pre-training objectives and then evaluating the learned representations using auxiliary classification tasks. To ensure a fair comparison, the authors controlled for:
- LSTM Architecture: They used a consistent, deep, bidirectional LSTM architecture.
- Training Data Quantity and Genre: They used the same news-based parallel English-German corpus and a large English monolingual corpus, varying the amount of data used for pre-training.
- Auxiliary Task Evaluation: They trained classifiers on the hidden states of the pre-trained LSTMs to perform POS tagging and Combinatorial Categorical Grammar (CCG) supertagging. CCG supertagging is particularly interesting as it's a strong indicator of syntactic structure.
- Random Initialization Baseline: They also included randomly initialized LSTMs as a baseline to understand how much of the performance is due to learned features versus simply memorizing patterns.
Datasets
- Pre-training Data:
- English-German (En-De) parallel corpus from the 2016 WMT shared task (news translation).
- English monolingual news discussion dataset from the 2015 WMT shared task.
- Corpora sizes used for pre-training: 1 million, 5 million, 15 million, and 63 million sentences.
- Auxiliary Task Evaluation Data:
- Penn Treebank (PTB) Wall Street Journal (WSJ) portion for POS tagging.
- CCG Bank (based on PTB WSJ) for CCG supertagging.
- For classifier training, they sampled 10% and 1% of the PTB and CCG Bank datasets to study the effect of auxiliary data volume.
Key Insights and Ideas
- Language Modeling Reigns Supreme for Syntax: Bidirectional language models (BiLMs) consistently outperformed all other pre-training objectives (translation, skip-thought, autoencoding) on both POS and CCG tagging tasks. This held true even when BiLMs were trained on significantly less data than other models.
- BiLMs' Per-Token Loss Advantage: The authors hypothesize that BiLMs' per-token loss objective, compared to sentence-level objectives in other tasks, might contribute to their superior performance on token-level syntactic tasks like POS and CCG tagging.
- Random Initialization is Surprisingly Strong (with caveats): Randomly initialized, frozen LSTMs performed remarkably well on the syntactic auxiliary tasks, sometimes approaching the performance of trained models. However, this advantage vanished when the amount of data used to train the auxiliary classifiers was reduced.
- Memorization vs. True Understanding: The strong performance of randomly initialized models on auxiliary tasks with ample classifier data suggests they might be memorizing word identity and patterns rather than truly learning syntactic structure. This is further supported by their superior performance on a "word identity prediction" task.
- Depth Matters for Context: The study found that deeper LSTM layers (upper layers) are better at capturing more distant contextual information, which is crucial for understanding complex syntactic structures, while lower layers focus more on immediate neighbors.
Key Results
- BiLMs Outperform Translation: BiLM representations achieved higher accuracy on POS and CCG tagging compared to translation encoder representations, even when trained on the same amount of data. For example, BiLMs trained on 1 million sentences outperformed translation models trained on up to 5 million sentences.
- Robustness to Data Size: BiLMs and translation models showed more robustness to decreases in pre-training data volume compared to other methods.
- Word Identity Prediction: Trained models (including BiLMs) underperformed randomly initialized models on predicting the identity of neighboring words. This strongly suggests that trained models are learning syntactic features beyond simple word co-occurrence.
- CCG Supertagging Sensitivity: The gap between bidirectional and forward language models was larger for CCG supertagging than for POS tagging, indicating that bidirectional context is more critical for identifying complex syntactic structures.
Limitations and Future Work
- Genre Mismatch: While the pre-training data (news) and evaluation data (news) were generally aligned, there was a slight genre mismatch between the PTB/CCG Bank (news) and the WMT datasets.
- Auxiliary Classifier Data Impact: The performance of randomly initialized models was highly dependent on the amount of data available for training the auxiliary classifiers. This suggests that while they can "memorize" well with enough data, they don't inherently learn robust syntactic features.
- Future Work: The authors suggest further exploring the specific syntactic features captured by different pre-training objectives and investigating how these representations generalize to a wider range of downstream tasks and genres. They also hint at the potential of combining different pre-training objectives.
Summary updated