SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.13040 · AAAI · 2024

Text-Guided Molecule Generation with Diffusion Language Model

Qiang Liu, Liang Wang, Shu Wu, Haisong Gong

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 10 failures of our instrument; 7 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.13040.json · badge: /api/ran/2402.13040.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
deno-v/tgm-dlm canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
Deno-V/tgm-dlm community
Papers with Code archive
6 ran · 5 no recorded run
FunctionStatusWhere it lives
BertSelfOutput Ran
ran on a synthesized input
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("b628485b4544176e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Upsample Ran
ran on a synthesized input
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("14e6a43c9ced2404")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_pruneable_heads_and_indices Ran
ran; our contract draft was wrong, not the code
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("ffe4fa9032a930ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_samples Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py
pointer only (licence: NONE) · get_code("bd70407415c5ed19")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

layer_norm Ran
ran; our contract draft was wrong, not the code
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("8347681d84656d7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

levenshteinDistance Ran
ran, honoured the contract we drafted
deno-v/tgm-dlm/improved-diffusion/control_gen/eval_control.py
pointer only (licence: NONE) · get_code("ee1169ece28e0d9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_results_simple Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/anlg_infill/mbr_eval.py
pointer only (licence: NONE) · get_code("6690b1379e201b37")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mbr Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/anlg_infill/mbr_eval.py
pointer only (licence: NONE) · get_code("23e6db3ffd64425a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normal_kl Ran
ran, honoured the contract we drafted
deno-v/tgm-dlm/improved-diffusion/improved_diffusion/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prune_linear_layer Ran
ran; our contract draft was wrong, not the code
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("63bf3ad9c297ab92")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

remove_leaves Ran
ran; our contract draft was wrong, not the code
deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py
pointer only (licence: NONE) · get_code("8fc7161a00ae39b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

trans_nd Ran
ran; our contract draft was wrong, not the code
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("0fa17cc15d81b5a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertAttention Not yet run
unverified (harvested, no recorded run)
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("95d638062692e25c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

BertSelfAttention Not yet run
unverified (harvested, no recorded run)
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("c52c56e6b503ff9a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Downsample Not yet run
unverified (harvested, no recorded run)
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("6217144fde18c480")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TransUNetModel Not yet run
unverified (harvested, no recorded run)
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("4aabdb4f1e27436a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TransformerBlock Not yet run
unverified (harvested, no recorded run)
Deno-V/tgm-dlm/improved-diffusion/improved_diffusion/transformer_model.py
pointer only (licence: NONE) · get_code("85f117cd2c476a03")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Deno-V/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_samples_from_scratch Not yet run
unverified (harvested, no recorded run)
deno-v/tgm-dlm/improved-diffusion/control_gen/baseline_control.py
pointer only (licence: NONE) · get_code("cc6bf6f3b1388227")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_smis Not yet run
unverified (harvested, no recorded run)
deno-v/tgm-dlm/ev.py
pointer only (licence: NONE) · get_code("9f87c93b00243392")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, deno-v/tgm-dlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 3 the same month, 5 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normal_kl 160 other papers
81 dated earlier, 9 the same month, 68 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
77 dated earlier, 8 the same month, 67 later, 2 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
76 dated earlier, 5 the same month, 46 later, 1 same year, order not determinable · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
find_pruneable_heads_and_indices
brick of this paper's assembly: helper
11 other papers
9 dated earlier, 2 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2021.emnlp-main.154 (2021 (year only))
Reconstruction Attack on Instance Encoding for Language Understanding
2104.08066 (2021-04)
Effect of Visual Extensions on Natural Language Understanding in Vision-and-Language Models
and 8 more not named here
prune_linear_layer
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
2110.00855 (2021-10)
SurvTRACE: Transformers for Survival Analysis with Competing Events
2023.acl-long.264 (2023 (year only))
Towards Robust Low-Resource Fine-Tuning with Multi-View Compressed Representations
and 1 more not named here
levenshteinDistance 2 other papers
2 dated earlier
1805.07820 (2018-05)
Targeted Adversarial Examples for Black Box Audio Systems
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
generate_samples 1 other paper
1 dated earlier
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
generate_samples_from_scratch 1 other paper
1 dated earlier
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
load_results_simple 1 other paper
1 dated earlier
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
mbr 1 other paper
1 dated earlier
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation
remove_leaves 1 other paper
1 dated earlier
2205.14217 (2022-05)
Diffusion-LM Improves Controllable Text Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 twophase 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.13040")
get_code_for_paper("2402.13040")
have("2402.13040")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.13040.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.13040.svg)](https://syntology.ai/paper/2402.13040)

Connect an agent — have() is free.