SciBERT: A Pretrained Language Model for Scientific Text

Iz Beltagy, Kyle Lo, Arman Cohan · DOI

TL;DR

Researchers have developed SciBERT, a new language model specifically pre-trained on a massive corpus of scientific literature. This specialized training allows SciBERT to significantly outperform general-purpose models like BERT on a variety of scientific Natural Language Processing (NLP) tasks, achieving new state-of-the-art results.

What Problem Does This Paper Address?

Extracting knowledge and understanding complex information from the ever-growing volume of scientific literature is a major challenge. While NLP models like BERT have revolutionized general text understanding, they are typically trained on broad datasets like news articles and Wikipedia. This general training doesn't fully capture the nuances, specialized vocabulary, and unique structures found in scientific texts. Consequently, applying these models directly to scientific NLP tasks often leads to suboptimal performance. The core problem is the lack of high-quality, large-scale annotated data for scientific NLP tasks, making it difficult to train models that can effectively process scientific content.

Methods

The paper introduces SciBERT, a language model built upon the architecture of BERT (Bidirectional Encoder Representations from Transformers). The key innovation lies in the pre-training corpus: instead of general text, SciBERT is trained on a vast collection of scientific papers. Specifically, they used 1.14 million papers from the Semantic Scholar corpus, covering both computer science and biomedical domains.

They also introduce SCIVOCAB, a new vocabulary derived from this scientific corpus using the SentencePiece library. This specialized vocabulary, with a 42% overlap with BERT's general vocabulary, better represents the terms frequently used in scientific literature.

SciBERT was trained using the same BERT architecture and objectives (masked language modeling and next sentence prediction) but with the scientific corpus and vocabulary. The authors explored two main approaches for downstream tasks:

  1. Finetuning BERT: Adapting the pre-trained SciBERT model by training it further on specific scientific NLP tasks.
  2. Frozen BERT Embeddings: Using SciBERT as a source of contextualized word embeddings, feeding them into simpler task-specific models (like BiLSTMs) without updating SciBERT's weights.

Datasets

The paper evaluates SciBERT on a range of scientific NLP tasks using several datasets:

  • Biomedical Domain:
    • BC5CDR: For Named Entity Recognition (NER) of chemicals and diseases.
  • JNLPBA: For NER in biomedical literature.
  • NCBI-disease: For NER of disease names.
  • EBM-NLP: For PICO (Participants, Interventions, Comparisons, Outcomes) extraction in clinical trial abstracts.
  • ChemProt: For Relation Classification (REL) between chemicals and proteins.
  • Computer Science Domain:
    • SciERC: For NER and Relation Classification in computer science abstracts.
  • ACL-ARC: For Text Classification (CLS) of sentences from scientific papers.
  • Multidomain:
    • Paper Field: For Text Classification (CLS) assigning papers to one of seven fields of study.
  • SciCite: For Text Classification (CLS) of citation intents.
  • Dependency Parsing (DEP):
    • GENIA: A dataset for dependency parsing of biomedical text.

Key Insights and Ideas

  • Domain-Specific Pre-training Matters: The most significant finding is that pre-training a language model on a large corpus of scientific text (like SciBERT) leads to substantial improvements over models pre-trained on general text (like BERT) for scientific NLP tasks. This highlights the importance of domain-specific knowledge for effective language understanding.
  • Specialized Vocabulary is Helpful, but Secondary: While the custom SCIVOCAB vocabulary provided a performance boost, the paper suggests that the scientific corpus pre-training itself was the primary driver of improvement. This implies that learning the patterns and context of scientific language is more crucial than just having the right words.
  • Finetuning Outperforms Frozen Embeddings: Finetuning the SciBERT model on downstream tasks consistently yielded better results than using its embeddings with simpler, frozen models. This indicates that adapting the entire model's parameters to the specific task is more effective.
  • New State-of-the-Art Achieved: SciBERT demonstrated statistically significant improvements across many tasks and datasets, setting new state-of-the-art benchmarks in several areas, particularly in computer science and biomedical domains.

Key Results

SciBERT achieved notable improvements over BERT-Base:

  • Overall: +2.11 F1 with finetuning and +2.43 F1 without finetuning.
  • Biomedical Domain: +1.92 F1 with finetuning and +3.59 F1 without. SciBERT achieved new SOTA on BC5CDR, ChemProt, and EBM-NLP.
  • Computer Science Domain: +3.55 F1 with finetuning and +1.13 F1 without. SciBERT achieved new SOTA on ACL-ARC and the NER part of SciERC.
  • Multidomain: +0.49 F1 with finetuning and +0.93 F1 without. SciBERT outperformed SOTA on SciCite.
  • SCIVOCAB vs. BASEVOCAB: Using the SCIVOCAB vocabulary improved performance by an average of +0.60 F1 compared to using BERT's BASEVOCAB.

Limitations and Future Work

  • Computational Cost: Training large language models like SciBERT is computationally expensive. The authors note that training their models took approximately one week on a single TPU v3 with 8 cores.
  • Future Work: The authors plan to release a version of SciBERT analogous to BERT-Large for potentially even better performance. They also aim to experiment with different proportions of papers from various scientific domains to build a single resource useful across multiple fields. They also acknowledge the cost of training these models and aim to create a unified resource.

Summary updated

BibTeX
@misc{beltagy2019scibert,
  author = {Iz Beltagy and Kyle Lo and Arman Cohan},
  title = {{SciBERT: A Pretrained Language Model for Scientific Text}},
  year = {2019},
  eprint = {1903.10676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.10676},
}
Figure