TL;DR
SciLitLLM introduces a hybrid adaptation framework that combines continual pre-training (CPT) and supervised fine-tuning (SFT) to specialize general large language models for scientific literature understanding. By leveraging a meticulous PDF-cleaning pipeline and a novel keyword-driven instruction synthesis method, the resulting 7B and 14B models outperform significantly larger models (such as 70B+ parameter variants) on specialized scientific benchmarks.
What Problem Does This Paper Address?
While general-purpose Large Language Models (LLMs) excel at standard natural language tasks, they frequently stumble when applied to scientific literature. They face two primary barriers: a lack of deep, domain-specific scientific knowledge and an unfamiliarity with specialized tasks (such as extracting complex tabular data or translating molecular structures).
Existing strategies typically choose one of two flawed paths: pre-training on massive scientific corpora (which is computationally expensive and lacks instruction-following capabilities) or fine-tuning on scientific instructions alone (which fails to instill deep foundational knowledge). Furthermore, scientific knowledge is often trapped in PDFs. Parsing these documents introduces messy formatting and syntax errors, while high-quality instruction data for niche fields like materials science remains scarce and prohibitively expensive to collect manually.
Methods
The authors propose a balanced, two-stage pipeline consisting of Continual Pre-training (CPT) followed by Supervised Fine-Tuning (SFT).
- CPT Stage (Knowledge Injection): Raw text is extracted from PDFs. To combat parsing artifacts, the authors use
Llama3-8B-Instructto perform automated format and grammar correction. To filter out low-quality text, they promptLlama3-70B-Instructto score a subset of the data, which is then used to train a lightweight text quality classifier (initialized from afineweb-edu-classifiercheckpoint) to filter out the lowest-scoring 25% of the corpus. - SFT Stage (Task Enhancement): To overcome data scarcity in less-represented domains, the authors introduce a three-step instruction synthesis pipeline. They extract domain keywords from high-impact papers to build a probability table, pair them with a diverse scientific task list, and prompt
GPT-4oto generate realistic scientific contexts alongside question-answer pairs. This is followed by fuzzy deduplication (via Levenshtein distance) and an LLM-based quality filter to ensure clarity and usefulness.
Datasets
- CPT Data: An in-house, copyright-compliant corpus consisting of 73k textbooks (10B tokens) and 625k academic papers (2.7B tokens). This is mixed with 11B tokens from RedPajama to preserve general knowledge and prevent catastrophic forgetting.
- SFT Data: The authors introduce SciLitIns, a new dataset containing 93,894 high-quality synthetic instructions covering underrepresented domains like biomedicine, materials science, and drug discovery. This is combined with SciRIFF (70k) and Infinity-Instruct (3M general instructions).
- Evaluation Benchmarks: Base models were evaluated on MMLU-Pro (Bio, Chem, Health) and MaScQA. Instruction-tuned models were evaluated on SciRIFF and SciAssess.
Key Insights and Ideas
- CPT and SFT are Synergistic: CPT injects foundational domain knowledge (the "what"), while SFT refines the model's ability to execute complex, domain-specific tasks (the "how"). Ablation studies show that skipping either stage significantly degrades performance.
- Quality Trumps Scale in PDF Parsing: Simply parsing PDFs is not enough. Spending compute to programmatically fix formatting errors and filter out low-educational-value text allows a relatively small corpus (12.7B tokens) to yield massive downstream performance gains.
- Targeted Synthesis Beats Niche Scarcity: By guiding a powerful teacher model (GPT-4o) with domain-specific keyword probability tables and explicit task lists, it is possible to generate highly diverse, high-quality training data for niche fields without relying on expensive human annotation.
Key Results
- Outperforming the Giants: SciLitLLM-7B (built on Qwen2.5-7B) achieved an average score of 60.6 on the SciRIFF benchmark, remarkably outperforming much larger open-source models including Llama3.1-70B (58.5) and Qwen2.5-72B (58.2).
- SciAssess Performance: SciLitLLM-7B achieved a 4.0% average improvement over similar-scale models, leading in 15 out of 27 sub-tasks.
- Scaling Up: SciLitLLM-14B achieved the leading results across both benchmarks, showing a 4.4% improvement on SciAssess and a 7.5% improvement on SciRIFF over the baseline Qwen2.5-14B.
Limitations and Future Work
The authors note three primary limitations:
- Data Volume: Compared to massive open-source web datasets, the CPT corpus size is relatively small, which may leave highly specialized scientific sub-disciplines underrepresented.
- Lack of Advanced Reasoning: The current pipeline does not explicitly integrate advanced reasoning techniques like Chain-of-Thought (CoT) or Tree-of-Thought (ToT) during data construction or model inference.
- No Preference Alignment: Due to budget constraints, the models lack Reinforcement Learning from Human Feedback (RLHF), which is planned for future iterations to improve safety and human preference alignment.
Summary updated