FORGE: Pre-Training Open Foundation Models for Science

Junqi Yin, Sajal Dash, Feiyi Wang, Mallikarjun Shankar

Abstract

Researchers at Oak Ridge National Laboratory (ORNL) have introduced FORGE, a suite of open-source foundation models (up to 22.4B parameters) specifically pre-trained on a massive corpus of 200 million scientific articles. By leveraging the Frontier exascale supercomputer, the team established best practices for large-batch training on AMD-based HPC systems. Their work demonstrates that domain-specific LLMs can significantly outperform much larger generic models on specialized scientific tasks, providing a more efficient and accurate path for AI-driven scientific research.

Introduction

While Large Language Models (LLMs) like GPT-4 have transformed general natural language processing, their adoption in the scientific community has been hindered by prohibitive training costs and domain misalignment. Most off-the-shelf models are trained on general web crawls, which lack the depth and specialized vocabulary—including formulas, symbols, and jargon—found in scientific literature. Furthermore, there is a lack of established protocols for training these models on leadership-class supercomputers using non-NVIDIA hardware. FORGE addresses these technical hurdles, providing a scalable framework for scientific foundation models on the AMD-based Frontier supercomputer.

Methodology

The FORGE models are built on the GPT-NeoX architecture, incorporating modern enhancements such as rotary positional embeddings and parallel attention/feed-forward layers. To utilize the massive scale of Frontier, the researchers implemented several key technical innovations:

  • Large-Batch Optimization: Using the LAMB optimizer, the team increased batch sizes to approximately 16 million tokens—ten times the standard training recipe—without sacrificing model accuracy. This significantly reduced the overall time-to-solution.
  • HPC Porting: Essential tensor fusion kernels for masking and softmax operations were "hipified" (ported to AMD's ROCm/HIP) to ensure high performance on AMD Instinct MI250X GPUs.
  • Scientific Tokenization: Unlike generic tokenizers that fragment chemical formulas, FORGE uses a byte-pair encoding (BPE) tokenizer trained specifically on scientific text to maintain the integrity of mathematical and chemical notation.
Compute requirements and ideal scaling for LLM training on Frontier and Summit supercomputers.

Data Corpus and Benchmarks

FORGE was pre-trained on a staggering 257 billion tokens derived from diverse scientific sources, including 52M full-text papers from CORE and 151M abstracts from the Open Academic Graph (OAG). To ensure high-quality domain partitioning, the team used a fine-tuned SciBERT model as a high-fidelity classifier to categorize the massive dataset into specific scientific fields.

Distribution of scientific domains across the CORE, Aminer, and MAG datasets used for training FORGE.

To evaluate the models, the authors introduced three science-centric benchmarks: domain classification across six fields, phase classification for alloy crystal structures, and energy regression for physical feature prediction.

Key Results and Insights

The performance of FORGE highlights that domain specificity often outweighs raw parameter count for scientific applications.

  • Performance: FORGE-S4 (1.44B parameters) achieved a 0.93 accuracy on domain classification, outperforming larger models like SciBERT and ScholarBERT.
  • Scientific Discovery: In energy regression tasks, injecting FORGE's language embeddings into existing physical models improved prediction accuracy by 7-9%.
  • Zero-Shot Success: On the SCIQ (Science Question Answering) benchmark, FORGE-M2 (13B) achieved an accuracy of 0.91, surpassing the 20B-parameter GPT-NeoX.
  • Energy Efficiency: Training LLMs on Frontier was found to be roughly 4x more energy-efficient than traditional double-precision scientific simulation campaigns.

Conclusion and Future Work

The FORGE project establishes a new path for scientific LLMs on exascale systems. While significant progress has been made in porting kernels to AMD hardware, future work will focus on integrating multimodal data (such as scientific images), more aggressive data de-duplication, and further refining optimizations like Flash Attention for non-NVIDIA architectures. The FORGE models and datasets have been released to the community to foster open scientific innovation.

Summary updated

BibTeX
@inproceedings{yin2023forge,
  author = {Junqi Yin and Sajal Dash and Feiyi Wang and Mallikarjun Shankar},
  title = {{FORGE: Pre-Training Open Foundation Models for Science}},
  booktitle = {SC},
  year = {2023},
  doi = {10.1145/3581784.3613215},
}
Figure