用两阶段奖励机制提升分子SMILES生成的准确性和多样性。
TSSR: Two-Stage Swap-Reward-Driven Reinforcement Learning for Character-Level SMILES Generation
- 分两阶段奖励:先修语法,再调化学合理性。
- 生成1万条分子式,语法和化学有效率显著提升。
- 无需规则或标签,适合各类强化学习模型使用。
可靠的分子设计对现代药物发现至关重要,高效生成分子可拓展化学空间探索并降低早期研发成本。然而,现有以SMILES字符串形式生成分子的模型易出现累积的标记错误,导致大量结果无法解析或化学上不成立,而硬性约束又限制了探索范围。为此,本文提出TSSR——一种两阶段、基于交换奖励的强化学习框架,用于字符级SMILES生成。第一阶段通过奖励局部标记替换来修复语法错误,促进无效串向可解析串转化;第二阶段利用RDKit诊断提供化学感知反馈,奖励减少价态、芳香性和连通性问题。奖励分解为可解释项(交换效率、错误减少、距离有效性),模型无关,无需任务特定标签或手工语法规则。在MOSES基准上评估,采用GRU策略结合PPO算法,在纯强化学习(P-RL)与微调强化学习(F-RL)两种设置下,每轮生成10,000条SMILES。P-RL中,TSSR显著提升语法正确性、化学合理性和新颖性;F-RL中,保持类药性与可合成性的同时,提高有效性和新颖性。标记级分析显示,语法修正与化学修复协同作用,降低RDKit检测到的错误。TSSR将稀疏的终端目标转化为更密集且可解释的奖励信号,同时提升语法与化学质量而不牺牲多样性。该方法数据集无关,可适配多种强化学习范式。
原文摘要 · Abstract (English)
The design of reliable, valid, and diverse molecules is fundamental to modern drug discovery, as improved molecular generation supports efficient exploration of the chemical space for potential drug candidates and reduces the cost of early design efforts. Despite these needs, current chemical language models that generate molecules as SMILES strings are vulnerable to compounding token errors: many samples are unparseable or chemically implausible, and hard constraints meant to prevent failure can restrict exploration. To address this gap, we introduce TSSR, a Two-Stage, Swap-Reward-driven reinforcement learning (RL) framework for character-level SMILES generation. Stage one rewards local token swaps that repair syntax, promoting transitions from invalid to parseable strings. Stage two provides chemistry-aware feedback from RDKit diagnostics, rewarding reductions in valence, aromaticity, and connectivity issues. The reward decomposes into interpretable terms (swap efficiency, error reduction, distance to validity), is model agnostic, and requires no task-specific labels or hand-crafted grammars. We evaluated TSSR on the MOSES benchmark using a GRU policy trained with PPO in both pure RL (P-RL) from random initialization and fine-tuning RL (F-RL) starting from a pretrained chemical language model, assessing 10,000 generated SMILES per run. In P-RL, TSSR significantly improves syntactic validity, chemical validity, and novelty. In F-RL, TSSR preserves drug-likeness and synthesizability while increasing validity and novelty. Token-level analysis shows that syntax edits and chemistry fixes act jointly to reduce RDKit detected errors. TSSR converts a sparse terminal objective into a denser and more interpretable reward, improving both syntactic and chemical quality without reducing diversity. TSSR is dataset-agnostic and can be adapted to various reinforcement learning approaches.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。