Papers › Text-Guided Molecule Generation with Diffusion Language Model

Text-Guided Molecule Generation with Diffusion Language Model

20 Feb 2024arXiv:2402.13040archive 2025-07-28

Haisong Gong, Qiang Liu, Shu Wu, Liang Wang

Text-guided molecule generation is a task where molecules are generated to match specific textual descriptions. Recently, most existing SMILES-based molecule generation methods rely on an autoregressive architecture. In this work, we propose the Text-Guided Molecule Generation with Diffusion Language Model (TGM-DLM), a novel approach that leverages diffusion models to address the limitations of autoregressive methods. TGM-DLM updates token embeddings within the SMILES string collectively and iteratively, using a two-phase diffusion generation process. The first phase optimizes embeddings from random noise, guided by the text description, while the second phase corrects invalid SMILES strings to form valid molecular representations. We demonstrate that TGM-DLM outperforms MolT5-Base, an autoregressive model, without the need for additional data resources. Our findings underscore the remarkable effectiveness of TGM-DLM in generating coherent and precise molecules with specific properties, opening new avenues in drug discovery and related scientific domains. Code will be released at: https://github.com/Deno-V/tgm-dlm.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.13040")

Code

Syntology Ran 14 of 21 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran · our draft was wrong; 8 ran with no contract checked.

By repository: official repository: 21 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

deno-v/tgm-dlm officialmentioned in papermentioned on GitHubjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 14 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
8ran
7unverified

Licence: 21 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Deno-V/tgm-dlm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BertSelfOutput Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran · metamorphic tier: invariant no licence file found · pointer only · b628485b4544176e · report
Upsample Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran fingerprinted no licence file found · pointer only · 14e6a43c9ced2404 · report
approx_standard_normal_cdf deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · cfd76fd0d89574a4 · report
discretized_gaussian_log_likelihood deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py official repository ran · our draft was wrong no licence file found · pointer only · cd33283d615fb3d7 · report
find_pruneable_heads_and_indices Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran · our draft was wrong no licence file found · pointer only · ffe4fa9032a930ff · report
generate_samples deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py official repository ran no licence file found · pointer only · bd70407415c5ed19 · report
layer_norm Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran · our draft was wrong no licence file found · pointer only · 8347681d84656d7d · report
levenshteinDistance deno-v/tgm-dlm/improved-diffusion/control_gen/eval_control.py official repository ran fingerprinted no licence file found · pointer only · ee1169ece28e0d9d · report
load_results_simple deno-v/tgm-dlm/improved-diffusion/anlg_infill/mbr_eval.py official repository ran no licence file found · pointer only · 6690b1379e201b37 · report
mbr deno-v/tgm-dlm/improved-diffusion/anlg_infill/mbr_eval.py official repository ran no licence file found · pointer only · 23e6db3ffd64425a · report
normal_kl deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · cf2798b666b231ca · report
prune_linear_layer Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran · our draft was wrong no licence file found · pointer only · 63bf3ad9c297ab92 · report
remove_leaves deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py official repository ran no licence file found · pointer only · 8fc7161a00ae39b0 · report
trans_nd Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository ran no licence file found · pointer only · 0fa17cc15d81b5a7 · report
BertAttention Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository unverified no licence file found · pointer only · 95d638062692e25c · report
BertSelfAttention Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository unverified no licence file found · pointer only · c52c56e6b503ff9a · report
Downsample Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository unverified no licence file found · pointer only · 6217144fde18c480 · report
TransUNetModel Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository unverified no licence file found · pointer only · 4aabdb4f1e27436a · report
TransformerBlock Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py official repository unverified no licence file found · pointer only · 85f117cd2c476a03 · report
generate_samples_from_scratch deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py official repository unverified no licence file found · pointer only · cc6bf6f3b1388227 · report
get_smis deno-v/tgm-dlm/ev.py official repository unverified no licence file found · pointer only · 9f87c93b00243392 · report

Tasks

Drug DiscoveryLanguage ModelingLanguage ModellingText-based de novo Molecule Generationmodel

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr BLEU 82.8 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Exact Match 24.2 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Frechet ChemNet Distance (FCD) 0.89 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Levenshtein 16.897 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr MACCS FTS 87.4 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Morgan FTS 72.2 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Parameter Count 180000000 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr RDK FTS 77.1 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Text2Mol 58.9 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM w/o corr Validity 78.9 #8 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM BLEU 82.6 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Exact Match 24.2 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Frechet ChemNet Distance (FCD) 0.77 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Levenshtein 17.003 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM MACCS FTS 85.4 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Morgan FTS 68.8 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Parameter Count 180000000 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM RDK FTS 73.9 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Text2Mol 58.1 #9 of 20 Archive leaderboard report
Text-based de novo Molecule Generation ChEBI-20 TGM-DLM Validity 87.1 #9 of 20 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections