让AI像编辑代码一样精准修改分子结构,提升药物设计可解释性。
Coder as Editor: Code-driven Interpretable Molecular Optimization
- 将分子优化转化为生成可执行代码的两阶段框架,连接意图与操作。
- 在真实化学反应数据上准确率超98%,下游任务成功率提升38-86个百分点。
- 适合需要可解释、可控药物设计的科研人员与制药团队使用。
分子优化是药物发现的核心任务,需要精确的结构推理和领域知识。尽管大语言模型(LLMs)在自然语言中生成高层编辑意图方面表现出色,但在处理如SMILES等非直观表示时,往往难以忠实执行这些修改。我们提出MECo框架,通过将编辑动作转化为可执行代码,实现推理与执行的桥梁。MECo将分子优化重构为级联流程:从分子和属性目标生成人类可读的编辑意图,再通过代码生成将其转化为结构化修改。该方法在保留真实化学反应的测试集上重现准确率超过98%;在涵盖理化性质和靶点活性的下游优化基准测试中,一致性提升38-86个百分点至90%以上,且优于基于SMILES的基线模型,同时保持结构相似性。通过对齐意图与执行,MECo实现了可解释、可控、一致的分子设计,为高保真反馈环路和人机协作的药物发现流程奠定基础。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。