用子结构分词提升文本生成分子的全局结构理解能力。
Training Text-to-Molecule Models with Context-Aware Tokenization
- 以子结构为单位进行分词,捕捉分子全局上下文
- 仅用2%训练数据即超越现有最佳方法
- 适合药物发现等需要精准分子生成的任务
近期文本生成分子模型在药物发现等化学应用中展现出巨大潜力。这些模型通过将分子表示为原子序列来适配语言模型,但依赖原子级分词,主要关注局部连接性,难以捕捉分子的全局结构上下文。为此,我们提出新型文本生成分子模型——上下文感知分子T5(CAMT5)。受子结构(如环系)上下文重要性启发,引入子结构级分词。基于此分词方案,设计基于重要性的训练策略,优先学习关键子结构,增强模型对分子语义的捕捉能力。大量实验验证了CAMT5在各类文本生成分子任务中的优越性。有趣的是,仅使用2%的训练分词量,其性能就超过当前最优方法。此外,提出一种简单有效的集成策略,聚合多个模型输出以进一步提升生成效果。代码已开源:https://github.com/Songhyeontae/CAMT5.git。
原文摘要 · Abstract (English)
Recently, text-to-molecule models have shown great potential across various chemical applications, e.g., drug-discovery. These models adapt language models to molecular data by representing molecules as sequences of atoms. However, they rely on atom-level tokenizations, which primarily focus on modeling local connectivity, thereby limiting the ability of models to capture the global structural context within molecules. To tackle this issue, we propose a novel text-to-molecule model, coined Context-Aware Molecular T5 (CAMT5). Inspired by the significance of the substructure-level contexts in understanding molecule structures, e.g., ring systems, we introduce substructure-level tokenization for text-to-molecule models. Building on our tokenization scheme, we develop an importance-based training strategy that prioritizes key substructures, enabling CAMT5 to better capture the molecular semantics. Extensive experiments verify the superiority of CAMT5 in various text-to-molecule generation tasks. Intriguingly, we find that CAMT5 outperforms the state-of-the-art methods using only 2% of training tokens. In addition, we propose a simple yet effective ensemble strategy that aggregates the outputs of text-to-molecule models to further boost the generation performance. Code is available at https://github.com/Songhyeontae/CAMT5.git.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。