SciInstruct: a Self-Reflective Instruction Annotated Dataset for Training Scientific Language Models

Dan Zhang, Ziniu Hu, Sining Zhoubian, Zhengxiao Du, Kaiyu Yang, Zihan Wang, Yisong Yue, Yuxiao Dong, Jie Tang

TL;DR

Researchers have introduced SciInstruct, a massive dataset of over 250,000 high-quality scientific instructions designed to bridge the gap between general-purpose LLMs and college-level scientific reasoning. By using a novel "self-reflective" annotation framework, they’ve trained SciGLM models that significantly outperform their base versions in physics, chemistry, and math without losing their general conversational abilities.

What Problem Does This Paper Address?

While Large Language Models (LLMs) like GPT-4 are impressive polymaths, they often stumble when faced with rigorous, college-level scientific problems. They might struggle to derive symbolic equations, perform complex numerical calculations, or apply the correct physical axioms.

The core issue isn't just a lack of knowledge; it's a lack of reasoning data. Most scientific data available on the web consists of simple Question-Answer (QA) pairs. To truly "understand" science, a model needs to see the "Chain-of-Thought" (CoT)—the step-by-step logical progression from a problem statement to its solution. However, high-quality CoT data for specialized fields like quantum mechanics or organic chemistry is incredibly scarce and expensive to produce via human experts.

Methods

The authors propose a Self-Reflective Instruction Annotation Framework. Instead of relying on humans to write out thousands of physics solutions, they leverage powerful existing LLMs (like GPT-4) to autonomously annotate, critique, and revise reasoning steps.

The SciInstruct Self-Reflective Instruction Annotation Framework.

The process follows a three-stage "critic-and-revise" loop:

  1. Generation: The LLM attempts to solve a raw scientific question using CoT.
  2. Self-Reflection: If the answer is wrong, the model is asked to identify its own error type (e.g., calculation mistake vs. false reasoning) and try again.
  3. Hint-Based Revision: If it still fails, the model is given the ground-truth answer as a "hint" to help it reconstruct the correct reasoning path.

To ensure the final dataset isn't full of "hallucinated" logic, the team built an instruction-quality classifier (based on ChatGLM3-6B) to filter out low-quality or incorrect reasoning traces.

Datasets

The primary contribution is SciInstruct, a dataset of 254,051 verified instructions. It is uniquely diverse, covering:

  • Physics & Chemistry (48.8%): College-level concepts and textbook problems.
  • Math (35.4%): Ranging from algebra to advanced calculus.
  • Formal Proofs (15.8%): Logic and theorem proofs written in the Lean programming language, which enforces rigorous symbolic deduction.

For evaluation, the authors tested their models on out-of-domain benchmarks including CEval-Hard, SciEval, SciBench, MATH, and SAT-Math.

Key Insights and Ideas

  • Cross-Domain Synergy: One of the most interesting "aha moments" was the discovery that training on one scientific domain helps others. For example, the authors found that including Physics and Chemistry data significantly improved the model's performance on Math benchmarks. This suggests that the model is learning general scientific reasoning skills rather than just memorizing facts.
  • Quality Over Quantity: The "filtering" step was non-negotiable. The authors showed that training on a smaller, "cleaned" dataset (filtered by their classifier) yielded better results than training on a larger, noisier one.
  • The Scaling Plateau: Their analysis of data scaling laws showed that while initial performance jumps are easy to get with a small amount of data (~10%), reaching "expert" levels of reasoning requires a much larger jump in data volume (surpassing the 50% threshold of their dataset).

Key Results

The researchers fine-tuned several models (including ChatGLM3, LLaMA-2, and Mistral) using SciInstruct to create the SciGLM series.

Performance of SciGLM models compared to baselines across scientific benchmarks.
  • Performance Boost: SciGLM-6B showed a 4.87% improvement in average accuracy across scientific benchmarks compared to its base model.
  • State-of-the-Art: SciGLM-32B outperformed many larger models, including Galactica-30B and MAmmoTH-13B, on specialized math and science tasks.
  • No "Catastrophic Forgetting": Crucially, the models maintained their scores on general benchmarks like MMLU and CEval, proving that you can make a model "smarter" in science without making it "dumber" at general conversation.

Limitations and Future Work

The authors acknowledge that while 254k instructions is a great start, it is still small compared to the massive datasets used for general pre-training. Their models are currently capped at the 32B parameter scale; testing these techniques on 70B+ models remains an open challenge.

Additionally, the framework currently uses an Outcome Reward Model (ORM)—it checks if the final answer is right. The authors suggest that moving toward a Process Reward Model (PRM)—which evaluates every single step of the reasoning—could further reduce logical errors and "hallucinations" in complex proofs.

Summary updated

BibTeX
@inproceedings{zhang2024sciinstruct,
  author = {Dan Zhang and Ziniu Hu and Sining Zhoubian and Zhengxiao Du and Kaiyu Yang and Zihan Wang and Yisong Yue and Yuxiao Dong and Jie Tang},
  title = {{SciInstruct: a Self-Reflective Instruction Annotated Dataset for Training Scientific Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure