Skip to main content
QUICK REVIEW

[Paper Review] Building astroBERT, a language model for Astronomy & Astrophysics

Félix Grèzes|arXiv (Cornell University)|Oct 29, 2021
Astronomy and Astrophysical ResearchPhysics and Astronomy1 references5 citations
TL;DR

This paper introduces astroBERT, a domain-specific language model fine-tuned on 395,499 astronomy papers from the NASA ADS database using BERT's transformer architecture. Trained on scientific text with masked language modeling and next sentence prediction, astroBERT achieves a 90.2% F1-score on named entity recognition for astronomy organizations—surpassing both BERT and SciBERT—demonstrating its effectiveness for semantic search in astrophysics.

ABSTRACT

The existing search tools for exploring the NASA Astrophysics Data System (ADS) can be quite rich and empowering (e.g., similar and trending operators), but researchers are not yet allowed to fully leverage semantic search.<br> For example, a query for "results from the Planck mission" should be able to distinguish between all the various meanings of Planck (person, mission, constant, institutions and more) without further clarification from the user.<br> At ADS, we are applying modern machine learning and natural language processing techniques to our dataset of recent astronomy publications to train astroBERT, a deeply contextual language model based on research at Google.<br> Using astroBERT, we aim to enrich the ADS dataset and improve its discoverability, and in particular we are developing our own named entity recognition tool. We present here our preliminary results and lessons learned.

Motivation & Objective

  • To develop a domain-adapted language model for astronomy and astrophysics to improve semantic understanding of scientific texts.
  • To address the limitations of existing ADS search tools that lack robust semantic search capabilities for ambiguous terms like 'Planck'.
  • To train a language model on high-quality, cleaned astronomy literature to enable better named entity recognition (NER) for facilities, missions, and organizations.
  • To outperform general-purpose models like BERT and SciBERT on NER tasks specific to the astrophysics domain.
  • To make the trained model publicly available via Huggingface for broader community use.

Proposed method

  • Pre-trained astroBERT using the BERT architecture on 16GB of cleaned English text from 395,499 astronomy papers in the ADS database.
  • Used a custom WordPiece tokenizer with a 30,000-token vocabulary, preserving case and removing accents to improve entity recognition.
  • Performed masked language modeling (MLM) and next sentence prediction (NSP) during pre-training to learn contextual representations.
  • Fine-tuned the model on a curated dataset of 1856 sentences from acknowledgment sections containing 6,279 annotated organization names.
  • Evaluated performance using 10-fold cross-validation on the NER task and compared perplexity across models on multiple datasets.
  • Trained using mixed-precision floating point to reduce memory and accelerate training on V100 GPUs.

Experimental results

Research questions

  • RQ1Can a BERT-based language model pre-trained on astronomy literature outperform general-domain models like BERT and SciBERT on named entity recognition in astrophysics?
  • RQ2How does the inclusion of the next sentence prediction (NSP) task during pre-training affect performance on downstream NER tasks?
  • RQ3To what extent does domain-specific pre-training on scientific astronomy texts improve semantic understanding compared to general Wikipedia-based BERT?
  • RQ4What is the impact of data cleaning and tokenizer design on model performance for scientific NLP tasks in astronomy?
  • RQ5Can a fine-tuned astroBERT model achieve high F1-scores on identifying organization acronyms and full names in scientific manuscripts?

Key findings

  • astroBERT(NSP+MLM) achieved an F1-score of 0.902 on the NER task, outperforming both BERT (0.859) and astroBERT(MLM) (0.893).
  • The model's perplexity on the ADS dataset was 5.71 for astroBERT(NSP+MLM), indicating strong language modeling performance on astronomy text.
  • astroBERT(MLM) showed a 24.5% vocabulary overlap with BERT and 35.3% with SciBERT, indicating significant domain-specific adaptation.
  • Training on the full ADS dataset of 3.8 billion tokens improved performance on scientific text, with perplexity scores dropping from 41.3 (BERT) to 4.16 (astroBERT) on the ADS dataset.
  • The NER fine-tuning process required only 3 epochs, with each epoch taking approximately 90 seconds, demonstrating efficient adaptation.
  • The model was successfully trained in 8 hours per epoch for MLM and 22 hours per epoch for NSP+MLM on a system with two V100 GPUs and 768GB RAM.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.