NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledge

Zihan Zhao, Bo Chen, Ziping Wan, Lu Chen, Xuanze Lin, Shiyang Yu, Situo Zhang, Da Ma, Zichen Zhu, Danyang Zhang, Huayang Wang, Zhongyang Dai, Liyang Wen, xin chen, Kai Yu · Submission to ICLR 2026 · Rejected

TL;DR

ChemDFM-R is a 14-billion-parameter chemical reasoning model that bridges the gap between high-level chemical text and underlying chemical logic. By grounding model training in "atomized" functional-group transformations, using prompt-augmented mixed-source distillation, and fine-tuning with reinforcement learning (RL), ChemDFM-R matches or outperforms massive models like DeepSeek-R1 and GPT-4o on core chemical benchmarks while generating concise, verifiable reasoning chains.

What Problem Does This Paper Address?

While general-purpose large language models (LLMs) and specialized reasoning models excel in math and coding, they frequently fall flat in chemistry. The authors identify two primary bottlenecks:

  1. Superficial domain knowledge: Existing chemical LLMs are typically trained on literature text or whole-molecule properties, completely bypassing the fundamental "grammar" of chemistry: how functional groups dictate molecular properties and reaction mechanisms.
  2. Failure of naive distillation: Off-the-shelf reasoning models (e.g., DeepSeek-R1, o3-mini) often produce flawed chemical rationales when generating from scratch, making traditional rationale distillation noisy and counterproductive.

Methods

The authors introduce a structured two-stage training paradigm:

[Qwen2.5-14B] 
      │ 
      ▼  (Pretraining on ChemFG + Instruction Tuning)
 [ChemDFM-I]
      │ 
      ▼  (Mixed-Source Distillation: ~70% SFT, ~22% Pseudo-CoT, ~8% Teacher CoT)
      │ 
      ▼  (Reinforcement Learning via DAPO on verifiable chemistry tasks)
 [ChemDFM-R]
  1. Atomized Chemical Knowledge Enhancement (ChemFG): The authors developed a toolkit expanding SMARTS matching from 83 to 241 functional group types. It automatically tags reaction centers, tracking functional group transformations, bond cleavages, and ring formations.
  2. Pretraining & Instruction Tuning: Pretrained on ChemFG alongside general text, followed by instruction tuning across molecule-, reaction-, and literature-centric tasks to create an intermediate checkpoint (ChemDFM-I).
  3. Mixed-Source Distillation: To teach the model how to reason without falling prey to teacher hallucinations, teacher models (o3-mini, DeepSeek-R1) were prompted with the ground truth answer and explicitly extracted functional-group annotations. The resulting dataset mixes:
  4. 70% direct instruction-tuning data (prevents catastrophic forgetting).
  5. 22% pseudo-reasoning data focusing on functional group identification.
  6. 8% high-quality distilled teacher rationales.
  7. Domain-Specific RL: Optimized via DAPO (Direct Alignment Preference Optimization) using rule-based format and accuracy rewards (canonicalizing SMILES strings before scoring).

Datasets

  • ChemFG Pretraining Corpus: Over 101 billion tokens comprising 12M papers/textbooks (79B tokens), 30M molecules from PubChem & PubChemQC (22B tokens), and 7M reaction instances from USPTO-FULL (0.6B tokens).
  • Instruction & RL Datasets: 7.5M instruction-tuning examples (2.5M chemistry, 5.0M general) and 121,811 verifiable chemistry instances across 7 tasks (e.g., reaction completion, property ordering, molecular design) for RL.
  • Evaluation Benchmarks: Evaluated on standard chemical benchmarks—SciKnowEval, ChemEval, FGBench, and ChemCOTBench—as well as expert-evaluated multi-turn interactive dialogues.

Key Insights and Ideas

  • Guiding the Teacher Prevents Hallucination: Directly asking models like o3-mini to explain a reaction often yields incorrect mechanism assumptions (e.g., confusing an α-chloro-ketone with an acyl chloride). Providing the teacher with ground-truth functional group transformations enables it to generate valid, step-by-step rationales.
  • Pure Distillation Underperforms "No Distillation": Ablations revealed that naive rationale distillation actually degraded chemical performance compared to pure RL. Distillation only worked once mixed with atomic pseudo-reasoning and regular instruction data.
  • High-Density Rationales Beat Long Rambling Chains: Rather than generating thousands of tokens exploring dead ends, ChemDFM-R produces concise, mechanism-focused thinking processes. In expert human evaluations, it scored significantly higher in effective information density (4.70/5.00) than DeepSeek-R1 (3.62) and Qwen3-14B (3.00).

Key Results

  • ChemEval Benchmark (RPS metric): ChemDFM-R achieved an overall score of 73.8, dramatically outperforming its base model Qwen2.5-14B-Instruct (57.7), domain specialist ChemLLM-20B-DPO (42.2), and larger frontier reasoning models like DeepSeek-R1 (57.6) and GPT-4o (63.3).
  • Sub-task Strengths: On ChemEval molecule-centric tasks, ChemDFM-R scored 83.5 (vs. 24.8 for Qwen2.5-14B and 60.7 for o4-mini). On reaction-centric tasks, it reached 58.5 (vs. 46.8 for Qwen2.5-14B).
  • Human Study on Expert Inquiries: Evaluated by five chemistry PhD-level experts across 10 graduate-level problems, ChemDFM-R led all baselines in Chemical Correctness (4.52/5) and Answer Accuracy (4.28/5).

Limitations and Future Work

  • Weak Numerical Prediction: ChemDFM-R still lags behind base models on tasks requiring intensive numerical reasoning or regression (e.g., reaction yield extraction, precise logP/molar mass calculation, reaction temperature prediction).
  • Narrower Analytical Breadth: Because the model aims for concise reasoning chains, it sometimes focuses on a single mechanism hypothesis rather than surveying multiple alternative pathways, resulting in lower analytical coverage scores.
  • Reasoning-Answer Mismatches: Like many reasoning LLMs, it occasionally exhibits internal disconnects where a valid mechanism in the <think> trace does not carry over cleanly into the final <answer>.

Summary updated

BibTeX
@misc{zhao2025chemdfm,
  author = {Zihan Zhao and Bo Chen and Ziping Wan and Lu Chen and Xuanze Lin and Shiyang Yu and Situo Zhang and Da Ma and Zichen Zhu and Danyang Zhang and Huayang Wang and Zhongyang Dai and Liyang Wen and xin chen and Kai Yu},
  title = {{ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledge}},
  year = {2025},
  eprint = {2507.21990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21990},
}
Figure