[Paper Review] How much pretraining data do language models need to learn syntax?
This study investigates how pretraining data size affects syntactic learning in RoBERTa models using MiniBERTas models trained on 1M to 1B words. It finds that while larger data improves syntactic encoding and downstream performance, gains are incremental and come at high financial and environmental costs, with smaller models sometimes outperforming larger ones on specific syntactic phenomena.
Transformers-based pretrained language models achieve outstanding results in many well-known NLU benchmarks. However, while pretraining methods are very convenient, they are expensive in terms of time and resources. This calls for a study of the impact of pretraining data size on the knowledge of the models. We explore this impact on the syntactic capabilities of RoBERTa, using models trained on incremental sizes of raw text data. First, we use syntactic structural probes to determine whether models pretrained on more data encode a higher amount of syntactic information. Second, we perform a targeted syntactic evaluation to analyze the impact of pretraining data size on the syntactic generalization performance of the models. Third, we compare the performance of the different models on three downstream applications: part-of-speech tagging, dependency parsing and paraphrase identification. We complement our study with an analysis of the cost-benefit trade-off of training such models. Our experiments show that while models pretrained on more data encode more syntactic knowledge and perform better on downstream applications, they do not always offer a better performance across the different syntactic phenomena and come at a higher financial and environmental cost.
Motivation & Objective
- To assess how increasing pretraining data size influences syntactic knowledge acquisition in RoBERTa models.
- To evaluate whether larger models generalize better across diverse syntactic phenomena.
- To compare downstream performance on POS tagging, dependency parsing, and paraphrase identification across data-scaled models.
- To analyze the financial and environmental cost-benefit trade-off of training larger models.
- To determine whether higher perplexity correlates with improved syntactic generalization.
Proposed method
- Training 12 RoBERTa models (MiniBERTas) on incremental data sizes from 1M to 1B words.
- Applying syntactic structural probes from Hewitt and Manning (2019b) to measure syntactic information encoding.
- Using SyntaxGym and Hu et al. (2020)’s syntactic test suites to evaluate syntactic generalization across 6 test circuits.
- Fine-tuning models on three downstream tasks: POS tagging, dependency parsing (LAS), and paraphrase identification (F1).
- Estimating training costs and CO2 emissions based on compute usage and number of pretraining runs per model.
- Conducting a cost-benefit analysis comparing performance gains against financial and environmental costs.
Experimental results
Research questions
- RQ1Does increasing pretraining data size lead to higher syntactic information encoding in RoBERTa models?
- RQ2Do models pretrained on more data generalize better across diverse syntactic phenomena?
- RQ3Are performance gains on downstream tasks proportional to the increase in pretraining data size?
- RQ4What is the financial and environmental cost of training larger models, and is it justified by performance gains?
- RQ5Is there a correlation between perplexity and syntactic generalization performance?
Key findings
- Models pretrained on more data encode significantly more syntactic information, as measured by Hewitt and Manning’s structural probes.
- Despite higher syntactic encoding, the largest model (1B words) underperformed smaller models on the Gross Syntactic State test circuit, with smaller models achieving better scores.
- Performance gains on downstream tasks (POS tagging, dependency parsing, paraphrase identification) were incremental, with the 1B model showing only 0.5%–2.02% improvement over the 100M model.
- The financial cost of training the 1B model was $20,000, with CO2 emissions of approximately 6,990 lbs, exceeding emissions from a transatlantic flight.
- The cost-benefit analysis revealed that small performance gains from larger models come at disproportionately high financial and environmental costs.
- No clear correlation was found between perplexity and SyntaxGym scores, indicating that lower perplexity does not guarantee better syntactic generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.