TSSR:两阶段交换-奖励驱动强化学习用于字符级SMILES生成
TSSR: Two-Stage Swap-Reward-Driven Reinforcement Learning for Character-Level SMILES Generation
AI总结:
TSSR通过两阶段交换-奖励驱动强化学习提升字符级SMILES生成的语法和化学有效性,同时保持多样性。
摘要:
可靠、有效且多样的分子设计是现代药物发现的基础,因为改进的分子生成支持对潜在药物候选物的化学空间高效探索,并减少早期设计工作的成本。尽管有这些需求,当前生成分子作为SMILES字符串的化学语言模型容易产生复合标记错误:许多样本无法解析或化学上不成立,旨在防止失败的硬约束会限制探索。为了解决这一差距,我们引入了TSSR,一种两阶段交换-奖励驱动强化学习(RL)框架,用于字符级SMILES生成。第一阶段奖励局部标记交换以修复语法,促进从无效到可解析字符串的过渡。第二阶段提供来自RDKit诊断的化学意识反馈,奖励减少价键、芳香性和连接性问题。奖励分解为可解释的术语(交换效率、错误减少、距离有效性),是模型无关的,并且不需要任务特定的标签或手工编写的语法。我们在MOSES基准上评估了TSSR,使用GRU策略通过PPO进行训练,分别在纯RL(P-RL)从随机初始化和微调RL(F-RL)从预训练的化学语言模型开始,每运行生成10,000个SMILES。在P-RL中,TSSR显著提高了语法有效性、化学有效性和新颖性。在F-RL中,TSSR在保持药物性状和可合成性的同时,增加了有效性和新颖性。在标记级别分析中,语法编辑和化学修复共同作用以减少RDKit检测到的错误。TSSR将稀疏终端目标转换为更密集且更可解释的奖励,提高了语法和化学质量,而不减少多样性。TSSR是数据集无关的,可以适应各种强化学习方法。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。