NukeBERT: A Pre-trained language model for Low Resource Nuclear Domain

Ayush Jain, Meenachi GanesamoortyarXiv 2020

TL;DR

This paper introduces NukeBERT, a specialized pre-trained language model for the nuclear domain, addressing the scarcity of high-quality data. By creating a custom vocabulary (NukeVocab) and a new question-answering dataset (NQuAD), NukeBERT significantly outperforms the general-purpose BERT model on nuclear-specific tasks, paving the way for advanced NLP applications in this critical field.

What Problem Does This Paper Address?

The field of Natural Language Processing (NLP) has seen remarkable progress, particularly in tasks like Question Answering (QA). However, most state-of-the-art models are trained on vast, general-domain datasets. This leaves specialized fields, such as nuclear and atomic energy, underserved. These domains possess unique jargon and require a deep understanding of technical concepts, but lack the large, annotated datasets needed to train robust NLP models. Consequently, applying advanced NLP techniques to extract knowledge and insights from nuclear research literature has been a significant challenge. This paper aims to bridge this gap by developing a domain-specific language model and associated resources.

Methods

The core of this work is the development of NukeBERT, a BERT-based model adapted for the nuclear domain. The authors recognized that standard BERT, trained on general text, would struggle with nuclear terminology. To address this, they introduced several key methodological innovations:

  • NText Dataset Creation: A substantial corpus of approximately 8 million words, termed NText, was compiled from 7000 internal reports, theses, and research papers from the Indira Gandhi Centre for Atomic Research (IGCAR). This involved extensive preprocessing, including Optical Character Recognition (OCR) for scanned documents and careful cleaning to remove non-English text and references.
  • NukeVocab Construction: A custom vocabulary, NukeVocab, was built to better represent nuclear terminology. This involved using SentencePiece to generate an initial vocabulary from NText and then identifying words that BERT's standard tokenizer struggled with (i.e., words that were heavily tokenized or not recognized). These "bad" words were then processed to group similar root words, creating a more efficient and domain-relevant vocabulary.
  • Domain-Specific Pre-training: Instead of training BERT from scratch (which is computationally prohibitive with limited data), NukeBERT was pre-trained using the custom NukeVocab on the NText corpus, starting from a pre-trained BERT checkpoint. This approach leverages existing knowledge while adapting it to the nuclear domain.
  • NQuAD Dataset Creation: To evaluate QA performance, a new dataset called NQuAD (Nuclear Question Answering Dataset) was created. This dataset consists of 612 question-answer pairs derived from 181 paragraphs, meticulously curated by nuclear domain experts. This ensures the questions and answers are relevant and accurately reflect nuclear concepts.

Datasets

  • NText: A newly created dataset of approximately 8 million words extracted from 7000 nuclear research papers, theses, and internal reports. This serves as the corpus for domain-specific pre-training.
  • NQuAD: A novel question-answering dataset containing 612 question-answer pairs derived from 181 paragraphs, developed by nuclear domain experts. This is used for evaluating the NukeBERT model's QA capabilities.
  • SQuAD (Stanford Question Answering Dataset): Used as a benchmark for fine-tuning and comparing NukeBERT's performance against the original BERT model.

Key Insights and Ideas

  • Domain-Specific Vocabularies are Crucial for Low-Resource Domains: The success of NukeBERT highlights that simply using a general-purpose language model is insufficient for highly specialized fields. Creating a tailored vocabulary that captures domain-specific jargon is essential for effective representation learning.
  • Leveraging Pre-trained Models with Custom Vocabularies is Efficient: Instead of retraining from scratch, adapting existing powerful models like BERT by incorporating a domain-specific vocabulary and continuing pre-training on a smaller, relevant corpus offers a practical and effective approach for low-resource domains.
  • Expert-Curated Datasets are Invaluable: The creation of NQuAD by nuclear domain experts underscores the importance of human expertise in generating high-quality, domain-relevant datasets, especially for tasks like question answering where nuanced understanding is critical.
  • OCR and Text Cleaning are Foundational for Legacy Data: For domains with older literature, robust OCR and meticulous text cleaning pipelines are indispensable steps to unlock the information contained within scanned documents.

Key Results

NukeBERT demonstrated significant improvements over the original BERT model on the NQuAD dataset:

  • Exact Match Score: NukeBERT achieved an exact match score of 88.31, a substantial improvement of 5.21 points over BERT.
  • F1 Score: NukeBERT attained an F1 score of 93.87, outperforming BERT by 1.22 points.

These results indicate that NukeBERT's domain-specific adaptations allow it to better understand and answer questions related to nuclear science and engineering. The paper also notes that the fine-tuning process for NukeBERT was computationally efficient, taking approximately 8 hours on a Google Cloud GPU.

Limitations and Future Work

  • Dataset Size: While NText is a significant contribution, its 8 million words are still considerably smaller than the billions of words used to train original BERT. The authors acknowledge that this is a limitation inherent to low-resource domains.
  • Generalization: The paper focuses on QA. Further research could explore NukeBERT's applicability to other NLP tasks within the nuclear domain, such as named-entity recognition and sentence segmentation.
  • Open-Sourcing: The authors plan to make NText, NQuAD, and the NukeBERT pre-trained weights publicly available. This is a crucial step to foster further research and development in this area.
  • Future Transformer Architectures: The authors suggest that the ideas presented in this paper can be adapted to newer transformer architectures as they emerge.

Summary updated

Abstract

Significant advances have been made in recent years on Natural Language Processing with machines surpassing human performance in many tasks, including but not limited to Question Answering. The majority of deep learning methods for Question Answering targets domains with large datasets and highly matured literature. The area of Nuclear and Atomic energy has largely remained unexplored in exploiting non-annotated data for driving industry viable applications. Due to lack of dataset, a new dataset was created from the 7000 research papers on nuclear domain. This paper contributes to research in understanding nuclear domain knowledge which is then evaluated on Nuclear Question Answering Dataset (NQuAD) created by nuclear domain experts as part of this research. NQuAD contains 612 questions developed on 181 paragraphs randomly selected from the IGCAR research paper corpus. In this paper, the Nuclear Bidirectional Encoder Representational Transformers (NukeBERT) is proposed, which incorporates a novel technique for building BERT vocabulary to make it suitable for tasks with less training data. The experiments evaluated on NQuAD revealed that NukeBERT was able to outperform BERT significantly, thus validating the adopted methodology. Training NukeBERT is computationally expensive and hence we will be open-sourcing the NukeBERT pretrained weights and NQuAD for fostering further research work in the nuclear domain.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
NQuADNukeBERTF1 score93.87Question Answering · split: test · fine-tuned
Source quote
L263: On testing, the NukeBERT achieved F1 score of 93.87 and exact match score of 88.31. Hence the model was able to achieve 5.21 improvement on exact match criteria and 1.22 improvement on F1 score (Figure - \ref{results}).
NQuADNukeBERTexact match score88.31Question Answering · split: test · fine-tuned
Source quote
L263: On testing, the NukeBERT achieved F1 score of 93.87 and exact match score of 88.31. Hence the model was able to achieve 5.21 improvement on exact match criteria and 1.22 improvement on F1 score (Figure - \ref{results}).
NQuAD · dev setBERTexact match score83.11Question Answering · split: val · fine-tuned
Source quote
L212: For the base model, BERT was fine-tuned on SQuAD using the same configurations used by original BERT paper. On testing on NQuAD dev set, it scored 83.11 on exact match score and 92.66 on F1 score. The fine-tuning took around 8 hours on Google Cloud's Tesla k80 GPU (It is the version of GPU provided for free by google colab).
NQuAD · dev setBERTF1 score92.66Question Answering · split: val · fine-tuned
Source quote
L212: For the base model, BERT was fine-tuned on SQuAD using the same configurations used by original BERT paper. On testing on NQuAD dev set, it scored 83.11 on exact match score and 92.66 on F1 score. The fine-tuning took around 8 hours on Google Cloud's Tesla k80 GPU (It is the version of GPU provided for free by google colab).
BibTeX
@misc{jain2020nukebert,
  author = {Ayush Jain and Meenachi Ganesamoorty},
  title = {{NukeBERT: A Pre-trained language model for Low Resource Nuclear Domain}},
  year = {2020},
  eprint = {2003.13821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.13821},
}
Figure