Abstract
Scientific literature understanding is crucial for extracting targeted information and garnering insights, thereby significantly advancing scientific discovery. Despite the remarkable success of Large Language Models (LLMs), they face challenges in scientific literature understanding, primarily due to (1) a lack of scientific knowledge and (2) unfamiliarity with specialized scientific tasks. To develop an LLM specialized in scientific literature understanding, we propose a hybrid strategy that integrates continual pre-training (CPT) and supervised fine-tuning (SFT), to simultaneously infuse scientific domain knowledge and enhance instruction-following capabilities for domain-specific tasks. In this process, we identify two key challenges: (1) constructing high-quality CPT corpora, and (2) generating diverse SFT instructions. We address these challenges through a meticulous pipeline, including PDF text extraction, parsing content error correction, quality filtering, and synthetic instruction creation. Applying this strategy, we present a suite of LLMs: SciLitLLM, specialized in scientific literature understanding. These models demonstrate promising performance on scientific literature understanding benchmarks.
Introduction
While general-purpose Large Language Models (LLMs) have achieved remarkable success, they often struggle with the nuances of scientific literature. This paper identifies two primary barriers: a knowledge gap in deep domain-specific foundations and a task unfamiliarity regarding specialized workflows like chemical entity extraction or complex table parsing.
SciLitLLM introduces a specialized framework to bridge these gaps. By combining a "cleaned" continual pre-training (CPT) pipeline with a novel synthetic instruction set (SciLitIns), the authors produced 7B and 14B models that punch significantly above their weight class, often outperforming 70B-parameter giants on scientific understanding benchmarks.
Methods
The authors propose a dual-stage adaptation strategy designed to address the "dirty data" problem inherent in scientific PDF extractions.
- Continual Pre-training (CPT) with a "Janitor" Pipeline: To inject domain knowledge, the team curated 73k textbooks and 625k papers. They utilized a smaller LLM (Llama3-8B) to correct formatting and grammar errors from PDF-to-text conversion before training. A BERT-based quality classifier was then used to filter out the bottom 25% of low-educational-value text.
- Supervised Fine-tuning (SFT) via Synthesis: To enhance instruction-following, they created SciLitIns. Using GPT-4o, they generated 93k diverse instructions guided by "keyword probability tables" from high-impact papers, ensuring coverage of less-represented fields like materials science.
- Model Architecture: The models are built upon the Qwen2.5 base (7B and 14B versions), resulting in SciLitLLM-7B and SciLitLLM-14B.
Datasets and Evaluation
The training process leveraged an in-house collection of 12.7 billion tokens for CPT. For SFT, the models were trained on a combination of the new SciLitIns dataset, the SciRIFF dataset, and general-purpose instructions from Infinity-Instruct. Evaluation was conducted across two major benchmarks:
- SciRIFF: Focused on short-context information extraction and QA.
- SciAssess: A comprehensive benchmark covering 28 tasks across biology, chemistry, medicine, and materials science.
Key Insights
- Quality Over Quantity: Simply increasing data volume is insufficient. Using an LLM to clean grammar and formatting in parsed PDFs significantly improved CPT efficiency.
- Educational Value Filtering: Filtering out references and boilerplate allowed the model to focus on high-signal knowledge.
- Synergy of CPT and SFT: Ablation studies confirmed that CPT provides the necessary background knowledge, while SFT provides the instruction-following capability. Removing either stage led to significant performance degradation.
Key Results
SciLitLLM-7B achieved a 4.0% average improvement on SciAssess and a 10.1% improvement on SciRIFF compared to other models under 10B parameters. Most notably, the model demonstrated "giant-killing" capabilities by outperforming much larger models.
As shown in the performance analysis, SciLitLLM-7B outperformed Llama 3.1-70B and Qwen2.5-72B on the SciRIFF benchmark. SciLitLLM-14B further pushed these boundaries, achieving leading results in long-document QA (Qasper) and fact verification (SciFact).
Limitations and Future Work
Despite these gains, the authors note that 12.7B tokens is relatively small compared to general pre-training corpora and plan to scale further. Additionally, the current pipeline does not explicitly incorporate advanced reasoning techniques like Chain-of-Thought (CoT) during data synthesis. Future iterations may also include Reinforcement Learning from Human Feedback (RLHF) to further align the models with researcher needs.
Summary updated