[Paper Review] The Diminishing Returns of Masked Language Models to Science
This study evaluates the impact of model size, training data volume, and pretraining/fine-tuning duration on 14 science-specific BERT models, including the 770M-parameter SCHOLARBERT, across 12 scientific information extraction tasks. It finds that increasing these resources yields diminishing returns—gains exceeding 1% F1 are rare and highly task-dependent, challenging assumptions about scaling benefits in scientific NLP.
Transformer-based masked language models such as BERT, trained on general corpora, have shown impressive performance on downstream tasks. It has also been demonstrated that the downstream task performance of such models can be improved by pretraining larger models for longer on more data. In this work, we empirically evaluate the extent to which these results extend to tasks in science. We use 14 domain-specific transformer-based models (including ScholarBERT, a new 770M-parameter science-focused masked language model pretrained on up to 225B tokens) to evaluate the impact of training data, model size, pretraining and finetuning time on 12 downstream scientific tasks. Interestingly, we find that increasing model sizes, training data, or compute time does not always lead to significant improvements (i.e., >1% F1), if at all, in scientific information extraction tasks and offered possible explanations for the surprising performance differences.
Motivation & Objective
- To investigate whether scaling up model size, training data, and compute time improves performance on scientific information extraction tasks.
- To evaluate whether domain-specific pretraining on large, multidisciplinary scientific corpora provides consistent gains over general or smaller-domain models.
- To assess the effectiveness of pretraining on diverse scientific text (225B tokens) versus smaller or specialized corpora for downstream scientific NLP tasks.
- To determine whether the scaling laws observed in general-domain language models (e.g., GPT) extend to science-focused masked language models.
Proposed method
- Pretrained 14 BERT-based models, including 7 existing models (e.g., BERT-Base, SciBERT, PubMedBERT) and 7 new SCHOLARBERT variants, on a 225B-token multidisciplinary scientific corpus from Public.Resource.Org.
- Created SCHOLARBERT models using RoBERTa pretraining procedures with varying data subsets (1%, 10%, 100%) and with/without WikiBooks for domain adaptation.
- Trained and evaluated models on 12 downstream scientific tasks: 8 named entity recognition (NER) and 4 sentence classification tasks across biomedicine, chemistry, and materials science.
- Measured performance using F1 scores averaged over five random runs, with standard deviations reported to assess variance.
- Compared models across four dimensions: architecture, pretraining method, corpus, and casing, to isolate the effects of scale and domain specificity.
- Used standardized fine-tuning protocols across all tasks to ensure fair comparison of model performance.
Experimental results
Research questions
- RQ1Does increasing model size, training data, or pretraining time lead to consistent improvements in downstream scientific information extraction tasks?
- RQ2To what extent does domain-specific pretraining on a large, multidisciplinary scientific corpus (225B tokens) outperform general or smaller-domain pretraining?
- RQ3Are the scaling laws observed in general-domain language models (e.g., GPT) applicable to science-focused masked language models?
- RQ4How do performance gains from scaling compare across different scientific domains and task types?
Key findings
- Increasing model size or pretraining data did not yield consistent improvements: only 15% of the 12 tasks showed gains exceeding 1% F1 from larger models or more data.
- SCHOLARBERT-XL (770M parameters) achieved the highest F1 on 5 out of 12 tasks, but gains were marginal (≤1% F1) compared to smaller models on most tasks.
- On the NCBI-Disease and SciERC NER tasks, models pre-trained on general corpora (e.g., BERT-Base) performed comparably or better than domain-specific models like SciBERT and PubMedBERT.
- For the Coleridge and ChemProt sentence classification tasks, models pre-trained on smaller or non-scientific corpora (e.g., SB_1) showed comparable or better performance than larger science-specific models.
- The addition of WikiBooks to pretraining (e.g., SB_10_WB, SB_100_WB) led to performance degradation on several tasks, suggesting domain mismatch or overfitting risks.
- Significant overlap in standard deviations across models (evident in error bars of Figures 2 and 3) indicates that performance differences were often not statistically robust, especially for larger models.
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.