Skip to content

MolLean: A Process-Verifiable Language for Chemical ReasoningMolLean: A Process-Verifiable Language for Chemical Reasoning

Hugging Face Daily Papers· arXiv:2610.20459· Jiatong Li, Yatao BianNational University of SingaporeIndexed by this site · 2026-10-23· Originally publishedAlignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose MolLean, a process-verifiable chemical reasoning language that uses the Lean kernel to check molecular state operations; on Qwen3.6-27B, full-trajectory revision exceeds direct CoT on all 12 tasks.

Questions
Chemical chain-of-thought may contain confabulated structural and property claims even when the answer is correct. The authors want every step of chemical reasoning to be checkable, rather than remaining in free-text explanation.
Methods
We propose MolLean: built on a maintained molecular state, operations are divided into transition, readout, and assertion; native structural assertions are checked by the Lean kernel, and external measurements are connected via a typed witness protocol; it supports three reasoning interfaces: One-pass, Refinement, and MolLean-MCP.
Experiments and results
On 8,800 samples and 12 tasks, Refinement with Qwen3.6-27B exceeds direct CoT on all of them (improvement of 12.0–48.2 percentage points); MCP is highest on reaction tasks (forward 66.4%, retrosynthesis 27.4%); on ChEBI-20, 79.0% soundness corresponds to 33.1% accuracy.
Limitations and future work
The authors point out that soundness does not imply task fidelity: ChEBI-20 has 1,533 sound but incorrect outputs, and instruction-to-constraint grounding is the next challenge; Qwen3-4B remains near 0% on reference-dependent tasks; only two models were tested, and MCP was not evaluated on the 4B model.
Experimental setupQwen3.6-27B、Qwen3-4B · S2-Bench、USPTO-50k et al. · trace soundness、answer accuracy et al.
Evaluated models
Qwen3.6-27BQwen3-4B
Benchmarks
S2-BenchUSPTO-50kChEBI-20
Metrics
trace soundnessanswer accuracysuccess-weighted similaritydirection-only success
AI summaryMolLean is a process-verifiable chemical reasoning language that anchors chemical reasoning in explicit molecular states and uses a layered Lean kernel to check state transitions and assertions, reducing hallucination; the MolLean-MCP tool interface provides verification feedback step by step during generation. On 12 tasks covering molecule generation, editing, optimization, and reactions, with 8,800 matched samples, Qwen3.6-27B's full-trajectory refinement outperformed direct chain of thought on all 12 tasks, and MolLean-MCP performed better on reaction tasks.

MolLean is a process-verifiable chemical reasoning language that anchors chemical reasoning in explicit molecular states and uses a layered Lean kernel to check state transitions and assertions, reducing hallucination; the MolLean-MCP tool interface provides verification feedback step by step during generation. On 12 tasks covering molecule generation, editing, optimization, and reactions, with 8,800 matched samples, Qwen3.6-27B's full-trajectory refinement outperformed direct chain of thought on all 12 tasks, and MolLean-MCP performed better on reaction tasks.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Structural and property claims in chemical CoT cannot be verified; the authors propose a step-by-step checkable reasoning language built on molecular state.

    Core question: structural and property claims in chemical chain-of-thought cannot be verified step by step, and the model may confabulate functional groups, drop bonds, or falsely claim property improvements.

    • Problem setting: the authors state that chemical CoT may contain confabulated structural claims even when it gives the correct answer (Li et al., 2026b), and broader evaluations also show uneven chemical capability and overconfidence (Mirza et al., 2025). Such errors concern the stated chemical content itself, which the authors consider a complementary failure mode to causal unfaithfulness (explanations distorting how the answer was produced, Turpin et al., 2023).
    • Shortcomings of existing methods: according to the paper, chemical tools already support capable agents (ChemCrow, Coscientist), but what is missing is letting successive operations and claims share one molecular referent with explicit acceptance conditions; external feedback is more reliable than intrinsic self-correction (Huang et al., 2024; Gou et al., 2024), but it needs to be explicit about what the feedback points to and when changes are committed.
    • Core observation: Lean provides a precedent—the model proposes derivations and the proof assistant checks formal obligations; a chemical reasoning language needs a maintained molecular state so that the referent of each edit, the object of each property reading, and the accepted prefix available after a failure are all explicit.
    • What the paper proposes: MolLean, a process-verifiable chemical reasoning language in which state transitions and assertions are checked by the Lean kernel, and external measurements are connected through a typed witness protocol; plus MolLean-MCP, a stateful tool interface supporting three reasoning modes—One-pass, Refinement, MCP—evaluated on 8,800 samples and 12 tasks.
  2. What related research exists?

    Related work falls into four groups: chemical languages and benchmarks, formalization and executable reasoning, feedback and tool use, and chemical agents.

    Chemical languages and molecular benchmarks

    • Text2Mol (Edwards et al., 2021) proposes text-molecule retrieval and introduces ChEBI-20; MolT5 (Edwards et al., 2022) studies translation between molecular and natural language representations; Speak-to-Structure (Li et al., 2026a) evaluates instruction-driven molecule generation, editing, and optimization.
    • SELFIES (Krenn et al., 2020) addresses molecular string validity; structural reasoning work (Jang et al., 2025) targets molecular understanding; ChemBench (Mirza et al., 2025) evaluates chemical knowledge and reasoning more broadly.
    • XDL (Mehr et al., 2020) is an executable chemical language that compiles synthesis procedures into experimental instructions.

    Formalization and executable reasoning

    • Lean (Moura & Ullrich, 2021) separates proof construction from proof checking; Draft, Sketch, and Prove (Jiang et al., 2023) connects informal planning to formal proofs; LeanDojo (Yang et al., 2023) supports programmatic interaction with Lean.
    • Learned process supervision (Lightman et al., 2024) uses a trained verifier to evaluate intermediate reasoning; PAL and Program of Thoughts (Gao et al., 2023; Chen et al., 2023) ground generated computations in execution.

    Feedback and tool use

    • Self-Refine (Madaan et al., 2023) uses model self-generated feedback; CRITIC (Gou et al., 2024) grounds revision in external tools; the paper cites Huang et al. (2024) as stating that tool-grounded critique is more reliable than intrinsic self-correction.
    • ReAct (Yao et al., 2023) alternates reasoning and acting.

    Chemical agents

    • ChemCrow (M. Bran et al., 2024) integrates specialized chemistry tools; Coscientist (Boiko et al., 2023) connects planning with experimental automation; ChemReasoner (Sprueill et al., 2024) uses computational chemistry feedback to guide catalyst search.

    Baselines and benchmarks: the comparison baseline is Direct CoT (free reasoning plus a final SMILES answer); the evaluation benchmarks are the 9 tasks of S2-Bench, forward/retrosynthesis of USPTO-50k, and the ChEBI-20 test set.

    The authors position this paper as: unlike string validity or tool integration, MolLean gives successive operations and claims a shared molecular reference and explicit acceptance conditions, applying validation directly to the commitments the model declares.

  3. How does the paper address this problem?

    MolLean centers on a maintained molecular state, operations are checked by the Lean kernel, external measurements go through typed witnesses, and it comes with three reasoning interfaces.

    Overall approach: MolLean is built around one contract—every operation points to the current molecular state, validation decides whether it is acceptable, and only accepted transitions commit a new state; readout and assertion only observe the state and do not modify it. Lean implements the chemical core, and Python handles parsing, state transfer, reference resolution, and reasoning control (Figure 1).

    State and execution contract

    • Execution starts from S0 = init(x); the state contains the active molecule, the leaving pool, atom references, and bookkeeping counters; a molecule is a graph with element, bond, charge, radical, and aromaticity annotations.
    • A single step is written as VΓ,W(St−1, at): if the operation passes the check, it is accepted and the new state is committed; otherwise it is rejected and the state remains S(t−1); an accepted readout/assertion returns the original state, and only an accepted transition commits a new state.
    • Bond formation across molecules merges the atom index spaces; whole-trace execution remaps subsequent references after merging, and MCP provides the current atom map in feedback.

    State transitions at different granularities

    • Seven primitives: add/delete atom, form/break bond, change bond order, charge, radical; they check preconditions and affected valences; intermediates are allowed to be unsaturated for construction.
    • Construction macros (Chain, Ring, AttachGroup) reduce index operations; compound actions express joint bond changes, proton transfers, and fragment separation (Fragment splits into two active molecules, Eject moves into the leaving pool); named reactions expand into these operations.
    • Granularity determines the validation unit: Concerted applies a group of edits atomically and checks the resulting valences at once; propose introduces a structurally checked candidate in a single step. Charge and radical balance are closing obligations, and termination checks realizability of valences, connectivity, aromaticity, and closed-shell rules.

    Readouts and external witnesses

    • Native checks cover seven structural families: atom counts, bond counts, ring counts, molecular formula, aromaticity, built-in functional group patterns, and retained R/S stereocenter annotations; MCP distinguishes measure (returns a value) from check (tests a proposed value).
    • RDKit provides descriptors, fingerprints, and molecule comparison; knowledge providers supply query-dependent information. The typed witness protocol is written as q = request(S, a), w = W(q), accept(a) ⇔ Pa(w) = 1, i.e., Lean requests typed fields and applies a predicate to the returned value, separating evidence acquisition from claim checking.
    • The providers of PropertyChange and FGCountDelta bind the baseline to the task's initial molecule and use only the public task description.

    Process soundness and task fidelity

    • Trace soundness is operationalized as: all declared trace operations are accepted and the closing obligation GΓ(ST) holds; missing or unparseable traces count as unsound; MCP soundness counts only accepted traces, excluding read-only queries and rejected proposals.
    • The authors explicitly distinguish soundness from task fidelity: a trace that verifiably lowers QED is sound with respect to its own obligations but unfaithful to the instruction "improve QED"; therefore soundness does not imply a correct answer, and the two are reported separately.
    • Lean proves the soundness of valence and connectivity validation, one conditional aromaticity result, and six native assertion boundaries (Appendix A).

    Three reasoning interfaces

    • One-pass: execute one complete generation trace until acceptance or the first rejection.
    • Refinement: starting from the same initial completion, return rejection feedback and the indexed state, revise within a fixed budget, restarting from S0 each time, and stop on acceptance.
    • MolLean-MCP: exposes transition, check, and readout as stateful tools (function-calling schema); the model can inspect the state before choosing an operation, rejected proposals do not change the state, and finish triggers the closing check.
    • Validation compares only against the input or self-proposed candidates; dataset reference answers enter only the independent scorer. Each task declares initialization, allowed operations, closing obligations, and scorer.
  4. What experiments did the paper conduct?

    On 8,800 samples and 12 tasks, Refine exceeds CoT on all of them, with the MCP reaction task highest; the separation between soundness and accuracy exposes a task-faithfulness gap.

    Experimental setup

    • Models tested: the main evaluation uses Qwen3.6-27B; the additional small-model evaluation uses Qwen3-4B (whole-trace protocols only; the authors state that the 4B model's interaction capability is relatively poor, so MCP was not run).
    • Data: 8,800 matched samples in total across 12 tasks—500 examples each for the nine S2-Bench tasks, 500 examples each for USPTO-50k forward and retrosynthesis (deterministic reaction-level split, MD5(reaction key) mod 100 ≥ 90), and the full 3,300-example ChEBI-20 test set; all protocols provide the reaction class.
    • Protocols: CoT (free reasoning plus final SMILES), One-pass (a single trace without feedback), Refine (up to 8 whole-trace revisions starting from the same initial completion), MCP (at most 2 attempts, 30 count calls per attempt, a cap of 10 rejections).
    • Metrics: S2-Bench generation/editing uses structural counts and functional group change success criteria; optimization tasks report success-weighted input similarity (property improvement multiplied by Tanimoto similarity, radius 2, 2048-bit Morgan fingerprint), and also report direction-only success; ChEBI-20 compares the first block of the InChIKey; reactions require the component skeleton bond sets to be exactly equal.
    • Scoring: scored by task rules (structural counts, InChIKey/skeleton bond matching, RDKit descriptors), with no LLM judge; invalid answers and failed episodes remain in the denominator and score zero.
    • Statistics: paired 95% bootstrap intervals for the Refine−CoT main scores, 4,000 resamples (Table 2).

    Main results

    Qwen3.6-27B performance by task (%, per Table 1; optimization tasks are 100× success-weighted similarity):

    Swipe horizontally to read the table

    TaskNCoTOne-passRefineMCP
    Atom counts50042.061.488.882.6
    Bond counts50020.839.869.056.2
    Functional groups50025.638.841.837.2
    Add component50055.893.6100.0100.0
    Delete component50085.094.697.097.0
    Substitute component50081.094.296.095.4
    logP opt. †50024.065.769.570.1
    MR opt. †50022.560.266.165.6
    QED opt. †50024.841.159.049.4
    Forward reaction50035.023.662.866.4
    Retrosynthesis5003.011.620.827.4
    ChEBI-203,30018.125.333.123.5
    • The authors report that Refine exceeds CoT on all 12 tasks, improving by 12.0–48.2 percentage points under the binary success criterion; the paired bootstrap intervals exclude zero on every task (Table 2).
    • Exception: on Forward reaction, One-pass (23.6%) is lower than CoT (35.0%), and Refine rises to 62.8%; the authors state that feedback is most valuable when the initial plan does not satisfy the validation obligations.
    • The authors state that the gains come from two complementary sources: expressing candidates as executable traces, and revising candidates using failed checks.

    Repairs and losses, revision budget

    • Paired comparison (Table 8): forward reaction repairs 207 and loses 11; retrosynthesis repairs 48 and loses 2; ChEBI-20 repairs 290 and loses 33. Repair rates among initially failed answers: forward 54.2%, retrosynthesis 10.9%, ChEBI-20 11.8%. The authors state that repairs outnumber losses on every task (Figure 2a).
    • Budget analysis (Figure 3): most gains arrive within two revisions—forward reaction rises from 23.6% at k=0 to 58.0% at k=2 and 62.8% at k=8; Add component reaches 100.0% already at k=2. For retrosynthesis and ChEBI-20, acceptance continues to rise between k=2 and k=8 (57.4%→88.2%, 67.3%→79.0%) while accuracy barely moves (20.4%→20.8%, 31.1%→33.1%); the authors state that later revisions mainly repair already-expressed obligations.

    Separation of soundness and task fidelity

    • Table 2: Refine improves soundness on all 12 tasks; MCP matches or exceeds Refine on 10, with forward reaction 98.6% and retrosynthesis 98.0%.
    • Joint results (Table 7): on ChEBI-20, 1,075 are sound and correct, 1,533 are sound but incorrect, 17 are correct but uncertified, and 675 are neither; on Atom counts, 444 of 467 accepted traces satisfy the task criterion. The authors state that counts map directly to predicates, whereas textual descriptions require the model to select and combine the correct structural obligations, and that instruction-to-constraint grounding is the main lever for further improvement.

    MCP vs. Refine, small model

    • Figure 2c: MCP is best on reaction tasks (forward 66.4% vs. 62.8%, retrosynthesis 27.4% vs. 20.8%); Refine leads on Atom counts, Bond counts, QED optimization, and ChEBI-20; the two tie on Add/Delete component. The authors state that immediate feedback helps maintain references across dependent edits, restarting allows larger plan changes, and the two interfaces are complementary.
    • Qwen3-4B (Table 3): Refine vs. CoT gives Atom counts 15.8%→56.8%, Add component 13.4%→91.4%, Substitute 15.2%→53.4%, logP optimization 14.7→60.0; but reference-dependent tasks remain poor—after Refine, forward reaction 1.6% (One-pass 2.2%), ChEBI-20 1.4%, retrosynthesis 0.0% under all protocols. The authors state that validation is most effective when paired with a capable candidate generator.

    Other ablations and analyses

    • Optimization direction success rates (Table 6, Qwen3.6-27B): logP CoT 59.8%, Refine 99.8%; MR 60.6%→99.8%; QED 54.2%→92.2% (MCP 77.0%).
    • MCP interaction length (Figure 5): median 3 calls for editing and descriptor optimization (5 for Substitution), 4 for forward reaction, 5 for retrosynthesis, and median 6 with interquartile range 4–10 for ChEBI-20.
    • Case studies (Figure 4, Appendix C): show valence repair (switching to BondFormBreak), attachment-site repair (AttachGroup changing anchor), a QED direction error rejected by the witness (0.674→0.573 rejected, 0.767 after revision), count obligations guiding correction (27 carbons changed to 25 carbons), repair within the same MCP episode, and the salt case—after revision drops the chloride ion and its count obligation, an accepted but incorrect cation results.
  5. What are some points that can be further explored?

    The authors note that grounding instructions into constraints is the next challenge; the experiments cover only two models, and MCP was not tested on 4B.

    Limitations and future directions noted by the authors

    • Task fidelity gap (Section 3.3, 4): soundness concerns only the expressed process; on ChEBI-20, 1,533 outputs are sound but incorrect, and the salt case (Figure 4f, Appendix C.6) shows that revision may drop a required component and its obligation, yielding an accepted but incorrect answer. The authors state that instruction-to-constraint grounding is the main lever for further improvement.
    • Next step (Conclusion): the authors state that grounding instructions in explicit constraints is the "natural next step" toward chemical reasoning that is both verifiable and faithful to the task.
    • Validation depends on candidate generation capability (Section 3.5): Qwen3-4B is near zero on reference-dependent tasks (0.0% for retrosynthesis under all protocols); the authors state that these tasks depend on chemical knowledge supplied by the proposer itself, and that validation is most effective when paired with a capable candidate generator.
    • Small-model interaction capability (Appendix E.5): no MCP experiments were run on Qwen3-4B; the authors state the reason is that the 4B model's interaction capability is relatively poor.

    Scope of experiments

    • The models tested are Qwen3.6-27B (all four protocols) and Qwen3-4B (only CoT, One-pass, Refine), 2 in total.
    • Evaluation covers 12 tasks and 8,800 samples: 500 examples each for the nine S2-Bench tasks, 500 examples each for the two USPTO-50k directions, and 3,300 examples from the ChEBI-20 test set.
    • Statistical uncertainty is reported only for the Refine−CoT main scores as paired 95% bootstrap intervals (4,000 resamples, Table 2); the paper does not report intervals for MCP comparisons or other differences.
    • The paper does not report multiple repeated runs; each sample is evaluated once under each protocol, and failures and invalid answers remain in the denominator.
    • The paper does not report inference time or API cost; the MCP call budget is 30 count calls per attempt and at most 2 attempts (Appendix D.2).
  6. Summarize the main content of the paper

    MolLean grounds chemical reasoning in checkable molecular states; Refine improves task performance across the board, but soundness is not equal to task fidelity.

    MolLean is a process-verifiable chemical reasoning language, targeting the problem that fabricated structural and property claims in chemical CoT cannot be checked.

    • Method: centered on a maintained molecular state, operations are divided into transition, readout, and assertion; the Lean kernel checks native structural assertions (valence, counts, aromaticity, etc.), and external measurements such as RDKit are connected via a typed witness protocol; three interfaces are provided: One-pass, Refinement (up to 8 whole-trace revisions), and MolLean-MCP (stateful tools, 30 count calls per attempt).
    • Main results: on 8,800 samples and 12 tasks, Refine with Qwen3.6-27B exceeds direct CoT on all of them, improving by 12.0–48.2 percentage points under the binary criterion, and the paired bootstrap intervals all exclude zero (Table 1, 2).
    • Interface comparison: MCP is highest on reaction tasks (forward 66.4%, retrosynthesis 27.4%), and Refine leads on counting, QED optimization, and ChEBI-20; the authors state that the two interfaces are complementary.
    • Key distinction: soundness does not imply correctness—on ChEBI-20, Refine reaches 79.0% soundness but only 33.1% accuracy, with 1,533 outputs sound but incorrect; the authors state that instruction-to-constraint grounding is the main challenge for the next step.
    • Small model: Qwen3-4B gains substantially on structural tasks (Add component 13.4%→91.4%), but remains near 0% on reference-dependent tasks; the authors state that validation needs to be paired with a capable candidate generator.
    • Authors' conclusion: these results constitute an executable foundation for chemical reasoning, where explicit chemical commitments can be checked and revised rather than remaining in free-text explanations.
Read originalhuggingface.co