Lune

AAAI2026Top-tier venue

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

Jirí Navrátil, Jarret Ross, Payel Das, Youssef Mroueh, Samuel C. Hoffman, Vijil Chenthamarakshan, Brian Belgodere

2026Year
1Citations

Abstract

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 ∼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 structurebased 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. * Equal contribution Preprint. Under review.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext f5cb8b19-b7ff-4d8a-8201-473dbbcf9a0c

Builds on11

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines