LGAIJun 5, 2025

GP-MoLFormer-Sim: Test Time Molecular Optimization through Contextual Similarity Guidance

arXiv:2506.05628v21 citationsh-index: 26
Originality Incremental advance
AI Analysis

This work addresses molecular design challenges in drug discovery and chemical design, offering an incremental improvement over existing training-free methods.

The paper tackles the problem of designing molecules while preserving similarity to a target by introducing GP-MoLFormer-Sim, a training-free method that uses contextual similarity guidance with a generative Chemical Language Model to adjust sampling, and it outperforms existing baseline methods in molecular optimization benchmarks.

The ability to design molecules while preserving similarity to a target molecule and/or property is crucial for various applications in drug discovery, chemical design, and biology. We introduce in this paper an efficient training-free method for navigating and sampling from the molecular space with a generative Chemical Language Model (CLM), while using the molecular similarity to the target as a guide. Our method leverages the contextual representations learned from the CLM itself to estimate the molecular similarity, which is then used to adjust the autoregressive sampling strategy of the CLM. At each step of the decoding process, the method tracks the distance of the current generations from the target and updates the logits to encourage the preservation of similarity in generations. We implement the method using a recently proposed $\sim$47M parameter SMILES-based CLM, GP-MoLFormer, and therefore refer to the method as GP-MoLFormer-Sim, which enables a test-time update of the deep generative policy to reflect the contextual similarity to a set of guide molecules. The method is further integrated into a genetic algorithm (GA) and tested on a set of standard molecular optimization benchmarks involving property optimization, molecular rediscovery, and structure-based drug design. Results show that, GP-MoLFormer-Sim, combined with GA (GP-MoLFormer-Sim+GA) outperforms existing training-free baseline methods, when the oracle remains black-box. The findings in this work are a step forward in understanding and guiding the generative mechanisms of CLMs.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes