Coder as Editor: Code-driven Interpretable Molecular Optimization
Not on the map. Why?
Abstract (arXiv)
Molecular optimization is a central task in drug discovery that requires precise structural reasoning and domain knowledge. While large language models (LLMs) have shown promise in generating high-level editing intentions in natural language, they often struggle to faithfully execute these modifications-particularly when operating on non-intuitive representations like SMILES. We introduce MECo, a framework that bridges reasoning and execution by translating editing actions into executable code. MECo reformulates molecular optimization for LLMs as a cascaded framework: generating human-interpretable editing intentions from a molecule and property goal, followed by translating those intentions into executable structural edits via code generation. Our approach achieves over 98% accuracy in reproducing held-out realistic edits derived from chemical reactions and target-specific compound pairs. On downstream optimization benchmarks spanning physicochemical properties and target activities, MECo substantially improves consistency by 38-86 percentage points to 90%+ and achieves higher success rates over SMILES-based baselines while preserving structural similarity. By aligning intention with execution, MECo enables consistent, controllable and interpretable molecular design, laying the foundation for high-fidelity feedback loops and collaborative human-AI workflows in drug discovery.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 33 of its 48 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
33 of 48 references.
References · 33
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2021E(n) Equivariant Graph Neural Networkscited by 965
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2023Large Language Models as Optimizerscited by 864
- 2023StarCoder: may the source be with you!cited by 799
- 2016Automatic chemical design using a data-driven continuous representation of moleculescited by 765
- 2018Junction Tree Variational Autoencoder for Molecular Graph Generationcited by 652
21 more
- 2020ChemBERTa: Large-Scale Self-Supervised Pretraining for Molecular Property Predictioncited by 337
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2020GraphAF: a Flow-based Autoregressive Model for Molecular Graph Generationcited by 305
- 2017Molecular De Novo Design through Deep Reinforcement Learningcited by 267
- 2021Therapeutics Data Commons: Machine Learning Datasets and Tasks for Drug Discovery and Developmentcited by 264
- 2018Molecular Transformer - A Model for Uncertainty-Calibrated Chemical Reaction Predictioncited by 229
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 135
- 2023Language Model Crossover: Variation through Few-Shot Promptingcited by 122
- 2024ChemLLM: A Chemical Large Language Modelcited by 106
- 2017Predicting Organic Reaction Outcomes with Weisfeiler-Lehman Networkcited by 103
- 2018Multi-Objective De Novo Drug Design with Conditional Graph Generative Modelcited by 101
- 2020Molecular representation learning with language models and domain-relevant auxiliary taskscited by 94
- 2023MolXPT: Wrapping Molecules with Text for Generative Pre-trainingcited by 81
- 2024Efficient Evolutionary Search Over Chemical Space with Large Language Modelscited by 61
- 2023DrugAssist: A Large Language Model for Molecule Optimizationcited by 59
- 2025Beyond Chemical QA: Evaluating LLM's Chemical Reasoning with Modular Chemical Operationscited by 49
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 48
- 2024LICO: Large Language Models for In-Context Molecular Optimizationcited by 26
- 2025MolReasoner: Toward Effective and Interpretable Reasoning for Molecular LLMscited by 12
- 2024Small Molecule Optimization with Large Language Modelscited by 6
- 2025Benchmarking GPT-5 for biomedical natural language processingcited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.