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

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

Zihan Zhao, Ziping Wan, Lu Chen, Xuanze Lin, Shiyang Yu, Situo Zhang, Da Ma, Zichen Zhu, Danyang Zhang, Huayang Wang, Zhongyang Dai, Liyang Wen, Bo Chen, Xin Chen, Kai Yu

TL;DR

ChemDFM-R is a new 14-billion-parameter chemical reasoning LLM that overcomes the superficial pattern-matching of traditional models by learning "atomized chemical knowledge"—specifically, functional groups and their transformations. Through a novel four-stage training pipeline combining domain pre-training, mixed-source distillation, and reinforcement learning, it outperforms much larger general-domain and specialized chemical models on core chemistry benchmarks while delivering concise, verifiable reasoning chains.

What Problem Does This Paper Address?

While large language models (LLMs) excel at general reasoning, their grasp of chemistry often remains skin-deep. They can regurgitate literature text or predict high-level phenomena, but they struggle to connect a molecule's specific structural features to its underlying reactivity and properties.

The missing link is atomized chemical knowledge: the fine-grained understanding of functional groups (like phenols, esters, or ketones) and how they transform during a reaction. General-domain reasoning models (such as DeepSeek-R1 or OpenAI's o1/o3 series) frequently hallucinate chemical logic or fail to accurately parse structural representations like SMILES strings. Conversely, existing domain-specific chemical LLMs lack explicit multi-step reasoning capabilities. The authors introduce ChemDFM-R to bridge this gap, teaching an LLM to explicitly "think" through functional group mechanics before answering.

Methods

The researchers built ChemDFM-R on top of the open-source Qwen2.5-14B architecture, developing a comprehensive four-stage training pipeline:

  1. Domain Pre-training: The model is trained on a massive, newly curated corpus containing both chemical literature and explicit functional group breakdowns to establish foundational domain knowledge.
  2. Instruction Tuning: The model undergoes supervised fine-tuning on 16 diverse chemical tasks, yielding an intermediate model called ChemDFM-I.
  3. Mixed-Source Distillation: To initialize reasoning without the instability of starting reinforcement learning from scratch, the authors distilled chains-of-thought (CoT) from teacher models (DeepSeek-R1 and o3-mini). Crucially, they used a context-enriched distillation technique: teachers were supplied with the ground-truth answers and functional group data beforehand, ensuring the distilled rationales were chemically accurate. This data was mixed with pseudo-reasoning data and standard instruction data to prevent catastrophic forgetting.
  4. Reinforcement Learning (RL): Finally, the model was optimized using the Decoupled Clip and Dynamic sAmpling Policy Optimization (DAPO) algorithm. The reward system combined format rewards (enforcing <think>...</think> tags) and correctness rewards based on canonicalized SMILES strings.
The four-stage training pipeline of ChemDFM-R, transitioning from base LLM to a specialized chemical reasoning model.

Datasets

The authors introduced several key data resources:

  • ChemFG Corpus: A 101-billion-token dataset spanning 12 million literature papers, 30 million molecules, and 7 million reactions.
  • ChemFG-Tool: A customized functional group identification toolkit (extending the open-source thermo library) capable of identifying 241 distinct functional group types via SMARTS rules while handling complex structural overlaps.
  • Instruction Tuning Dataset: Comprising over 7.5 million instructions across molecule-centric, reaction-centric, and knowledge-centric tasks.

For evaluation, the model was tested against two comprehensive benchmarks: SciKnowEval (19 tasks) and ChemEval (35 tasks).

Key Insights and Ideas

  • Atomized Knowledge is Highly Efficient: Ablation studies revealed that pre-training a model solely on fine-grained functional group data yields comparable or superior performance gains to traditional text-based literature corpora, despite using only 20% of the token count. This highlights that how domain knowledge is structured matters as much as data volume.
  • Teachers Need Tutors: Standard frontier models like o3-mini generate deeply flawed chemical rationales when asked to reason from a prompt alone. Providing the teacher model with structural hints (functional group lists) during data generation drastically elevates the quality of the distilled data.
  • Conciseness Over Verbosity: Unlike general reasoning models that generate thousands of tokens exploring every tangential possibility, ChemDFM-R naturally favors high-density, concise reasoning focused on the primary chemical mechanism. This significantly reduces the cognitive burden on human researchers verifying the output.

Key Results

ChemDFM-R achieved state-of-the-art results among models of similar scale and frequently rivaled or surpassed proprietary commercial giants:

  • On the challenging ChemEval benchmark, ChemDFM-R scored an average of 73.8%, comfortably beating GPT-4o (63.3%), DeepSeek-R1 (57.6%), o4-mini (67.3%), and its own successor generation baseline Qwen3-14B (55.7%).
  • It dramatically outperformed existing domain-specific chemical LLMs (like ChemLLM and MolInst), which scored below 50% on ChemEval.
  • Human evaluations by chemistry PhDs confirmed that ChemDFM-R provided superior chemical correctness and answer accuracy, particularly on structural tasks involving SMILES strings.
Performance comparison of ChemDFM-R against ten baseline models on SciKnowEval and ChemEval benchmarks.

Limitations and Future Work

Despite its strong reasoning capabilities, the authors noted a few clear limitations:

  • Weak Numerical Reasoning: ChemDFM-R underperformed on tasks requiring exact mathematical calculations or numerical predictions, such as Yield Extraction and Molecular Property Calculation.
  • Narrow Analytical Coverage: Because the model's reasoning chains are concise, it occasionally focuses on a single major reaction pathway while failing to enumerate alternative side-reactions or minor possibilities.
  • RL Constraints: The reinforcement learning stage currently relies on rigid, rule-based reward functions. Developing more flexible, chemistry-context-aware reward mechanisms is a primary target for future iterations.

Summary updated

BibTeX
@misc{zhao2025chemdfm,
  author = {Zihan Zhao 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 Bo Chen 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