TL;DR
While open-source post-training has mastered coding and math, rigorous scientific reasoning has lagged behind due to noisy web data, benchmark contamination, and bloated chains-of-thought. To solve this, the authors introduce TextbookReasoning (650k verified questions mined from 12k university textbooks) and MegaScience (a 1.25M-instance curated mixture), delivering concise reasoning that outperforms official instruction-tuned models—such as Qwen3-30B-A3B—across diverse science benchmarks.
What Problem Does This Paper Address?
Post-training open-source Large Language Models (LLMs) for complex scientific reasoning faces four major bottlenecks:
- Unreliable Evaluations: Existing benchmarks rely heavily on multiple-choice formats, allowing models to game benchmarks while failing miserably on real scientific computations.
- Leaky Decontamination: Standard $n$-gram filtering easily misses rephrased or translated test questions, artificially inflating benchmark scores.
- Low-Quality References: Web-scraped questions and unfiltered LLM outputs suffer from hallucinations and factual inaccuracies.
- Superficial "Overthinking" Distillation: Directly distilling reasoning traces from models like DeepSeek-R1 often yields excessively verbose, inefficient solutions that degrade performance on smaller base models.
Methods
The authors introduce an automated, end-to-end data curation pipeline:
- Textbook Extraction: Filtered and digitized 12.8k university-level science textbooks using
olmOCR. Applied a dual-extraction prompt strategy (high-standard multi-step reasoning vs. low-standard reference answers) to capture 945k QA pairs. - LLM Refinement & Filtering: Used DeepSeek-V3 to add necessary document context to problems, format intermediate derivation steps, and attach
\boxed{}final answers. Low-quality, ungrounded, or contradictory instances were systematically filtered out. - Semantic Decontamination: Retrieved the top-5 nearest benchmark neighbors using dense embeddings (BGE-large-en-v1.5) and used Llama3.3-70B-Instruct to classify and purge semantic duplicates.
- Data Selection & Mixture: Tested selection strategies (response length, model-graded difficulty, and random selection) across open datasets to assemble MegaScience, pairing refined textbook questions with cleaned subsets of public data while stripping out repetitive reasoning paths (>4,096 tokens).
- Robust Evaluation Toolkit: Standardized evaluation over 14 benchmarks using strict unit matching and a two-stage answer extraction parser.
Datasets
- Newly Introduced:
- TextbookReasoning: 651k university-level reasoning instances across 7 scientific disciplines (biology, chemistry, physics, math, CS/AI, medicine, and economics).
- MegaScience: A 1.25M mixture combining TextbookReasoning (651.8k), filtered NaturalReasoning (436.4k), and filtered Nemotron-Science (173.3k).
- Evaluated Benchmarks (14 total):
- General Scientific Reasoning: GPQA-Diamond, MMLU-Pro, SuperGPQA, SciBench, OlympicArena.
- Discipline-Specific: ChemBench, CS-Bench, MedQA, MedMCQA, PubMedQA, PIQA.
- Mathematical Reasoning: GSM8K, MATH, MATH500.
Key Insights and Ideas
- Concise Training Traces Trump Verbosity: Distilling extremely long "overthinking" chains-of-thought correlates negatively with downstream performance. Training on concise, logically rigorous reasoning allows models to dynamically generate longer reasoning paths during inference only when necessary.
- Refinement is Non-Negotiable: Removing the QA refinement step caused model accuracy to collapse from 58.33% to 13.15%, demonstrating that raw textbook extractions without explicit context and step-by-step structuring are unusable for instruction tuning.
- $N$-Gram Decontamination Fails Silently: Semantic decontamination removed 66k leaked examples from NaturalReasoning and 164k from Nemotron-Science, revealing that standard $n$-gram checks leave substantial benchmark leakage intact.
- The "Proxy Model" Selection Trap: Optimizing data mixtures using a single model (here, Qwen2.5-7B) couples the data recipe to that capability tier. Smaller models (<3B) lack the conceptual foundation to digest advanced science without lower-difficulty warmup stages.
Key Results
- Surpassing Official Instruct Baselines: When fine-tuned on MegaScience, models consistently outperformed vendor-aligned chat models on overall averages:
- Qwen2.5-7B: 61.01% vs. 58.80% (Instruct baseline).
- Qwen3-8B: 67.87% vs. 65.82%.
- Qwen3-30B-A3B: 73.86% vs. 70.62% (+3.24%).
- Llama3.1-8B: 51.07% vs. 49.67%.
- Superiority in Scientific Computation: On complex computational benchmarks, Qwen2.5-7B trained on MegaScience reached 48.75% on SciBench (vs. 42.97% baseline and 23.44% on Nemotron-Science-DC) and 40.23% on OlympicArena (vs. 36.42% baseline).
- Scaling Benefits: Gains from MegaScience scaled monotonically with model parameter capacity across the Qwen3 suite.
Limitations and Future Work
- Proxy-Model Bias: Data recipes were selected via Qwen2.5-7B performance, which penalized smaller models (e.g., Qwen2.5-1.5B degraded by 2.99% compared to its official instruct version).
- Residual Model Hallucination: A human evaluation on TextbookReasoning revealed a 5–7% error rate post-refinement, including minor hallucinations, missing multiple-choice options, or unresolved external figure references.
- Licensing & Copyright: Sourcing material from crawled academic PDFs requires strict research-only protocols and content removal frameworks.
Summary updated