MolLean enables stepwise chemical reasoning with verification feedback
MolLean: A Process-Verifiable Language for Chemical Reasoning
Computation and LanguageComputational Engineering, Finance, and ScienceProgramming Languages
Summary
Chemical reasoning in AI models often makes mistakes about molecule structures or properties. The authors present MolLean, a language that tracks and verifies each step in chemical reasoning by maintaining a clear molecular state. They also build a tool, MolLean-MCP, that helps models decide their next actions by giving immediate feedback when a step is incorrect. Testing showed that using this verification method improves performance in tasks like molecule design and reaction prediction compared to straightforward reasoning.
What this means in practice
- •For chemical software developers: Integrate MolLean to enable stepwise verification during molecule design and reaction modeling workflows.
- •For automation engineers in pharmaceutical companies: Use MolLean-MCP to improve automated chemical synthesis planning by verifying reaction steps and molecular edits interactively.
Authors
Jiatong Li, Yatao Bian
Abstract
Chemical chain-of-thought can contain hallucinated structural and property claims. We thereby introduce MolLean, a process-verifiable language that grounds chemical reasoning in an explicit molecular state. A layered Lean-based kernel checks state transitions and assertions over molecular readouts, from primitive graph edits to compound transformations. Meanwhile, a typed witness protocol separates native structural checks from externally supplied measurements. We further introduce MolLean-MCP, a stateful tool interface that exposes these transitions, checks, and readouts during generation: the model receives feedback to decide its next action, and rejected actions leave the state unchanged. MolLean supports one-pass trace execution, whole-trace refinement, and interactive reasoning through MolLean-MCP. We evaluate these three modes with direct chain-of-thought on 8,800 matched examples across 12 tasks spanning molecular generation, editing, optimization, and reactions. With Qwen3.6-27B, whole-trace refinement outperforms direct chain-of-thought on all 12 tasks. MolLean-MCP complements whole-trace refinement with stepwise verification feedback, reaching better performance in reaction tasks. Together, these results highlight an executable foundation for chemical reasoning, in which explicit chemical commitments can be checked and revised rather than remaining solely in free-form explanations.