Molecule Design by Latent Prompt Transformer

Deqian Kong, Yuhao Huang, Jianwen Xie, Ying Nian Wu
2/12/2026

No official code found. Best implementation: deqiankong/Latent-Prompt-Transformer-Molecule-Design (8 stars, last commit 2025-03-22).

Abstract

This work explores the challenging problem of molecule design by framing it as a conditional generative modeling task, where target biological properties or desired chemical constraints serve as conditioning variables. We propose the Latent Prompt Transformer (LPT), a novel generative model comprising three components: (1) a latent vector with a learnable prior distribution modeled by a neural transformation of Gaussian white noise; (2) a molecule generation model based on a causal Transformer, which uses the latent vector as a prompt; and (3) a property prediction model that predicts a molecule's target properties and/or constraint values using the latent prompt. LPT can be learned by maximum likelihood estimation on molecule-property pairs. During property optimization, the latent prompt is inferred from target properties and constraints through posterior sampling and then used to guide the autoregressive molecule generation. After initial training on existing molecules and their properties, we adopt an online learning algorithm to progressively shift the model distribution towards regions that support desired target properties. Experiments demonstrate that LPT not only effectively discovers useful molecules across single-objective, multi-objective, and structure-constrained optimization tasks, but also exhibits strong sample efficiency.

View on arXivView PDF

Code Implementations(1)

Molecule Design by Latent Prompt Transformer, NeurIPS 2024 (Spotlight)

80PythonOct 19, 20241 years ago

Similar Papers

Cite this paper

@article{kong2026molecule,
  title  = {Molecule Design by Latent Prompt Transformer},
  author = {Deqian Kong and Yuhao Huang and Jianwen Xie and Ying Nian Wu},
  year   = {2026},
  eprint = {2402.17179},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.03253},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.17179.svg)](https://codeofpaper.com/paper/2402.17179)

Discussion