Papers › Diffusion Twigs with Loop Guidance for Conditional Graph Generation

Diffusion Twigs with Loop Guidance for Conditional Graph Generation

31 Oct 2024arXiv:2410.24012archive 2025-07-28

Giangiacomo Mercatali, Yogesh Verma, Andre Freitas, Vikas Garg

We introduce a novel score-based diffusion framework named Twigs that incorporates multiple co-evolving flows for enriching conditional generation tasks. Specifically, a central or trunk diffusion process is associated with a primary variable (e.g., graph structure), and additional offshoot or stem processes are dedicated to dependent variables (e.g., graph properties or labels). A new strategy, which we call loop guidance, effectively orchestrates the flow of information between the trunk and the stem processes during sampling. This approach allows us to uncover intricate interactions and dependencies, and unlock new generative capabilities. We provide extensive experiments to demonstrate strong performance gains of the proposed method over contemporary baselines in the context of conditional graph generation, underscoring the potential of Twigs in challenging generative tasks such as inverse molecular design and molecular optimization.

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="2410.24012")

Code

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

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

aalto-quml/diffusion_twigs officialmentioned in paperpytorchMIT 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; 7 ran; 1 honoured the contract we drafted; 14 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
1ran · violated contract
5ran · our draft was wrong
14unverified

Licence: 0 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 Aalto-QuML/Diffusion_twigs. “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.

interpolate_fn Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6a35b62fbc80f70a · report
unsorted_segment_sum aalto-quml/diffusion_twigs/cond_gen/model.py official repository ran · our draft was wrong MIT (permissive) · 00645c62afd4a2ec · report
compute_mmd aalto-quml/diffusion_twigs/evaluation/mmd.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 50a84a037f597f43 · report
expand_dims Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py official repository ran · our draft was wrong MIT (permissive) · e6110366588c5c65 · report
gaussian Aalto-QuML/Diffusion_twigs/models/layers.py official repository ran · violated contract MIT (permissive) · 294ba20b052bfbc7 · report
modulate Aalto-QuML/Diffusion_twigs/models/mol_gnn.py official repository ran · honoured contract fingerprinted MIT (permissive) · 62fcb3912a967a50 · report
unsorted_segment_sum Aalto-QuML/Diffusion_twigs/cond_gen/model.py official repository ran · our draft was wrong MIT (permissive) · dfdf6dc1a0720e57 · report
conv1x1 Aalto-QuML/Diffusion_twigs/models/cdgs.py official repository unverified MIT (permissive) · 40212f42656d386e · report
get_classifier aalto-quml/diffusion_twigs/cond_gen/model.py official repository unverified MIT (permissive) · 5c23bdb7b2567c43 · report
get_model aalto-quml/diffusion_twigs/cond_gen/model.py official repository unverified MIT (permissive) · 52783c0f24bea3b1 · report
get_model Aalto-QuML/Diffusion_twigs/cond_gen/model.py official repository unverified MIT (permissive) · 5b608e33b1979012 · report
get_optimizer Aalto-QuML/Diffusion_twigs/losses.py official repository unverified MIT (permissive) · f1b5f46eb8214d80 · report
get_polynomial_schedule Aalto-QuML/Diffusion_twigs/diffusion/noise_schedule.py official repository unverified MIT (permissive) · 615f5bcf927413ba · report
get_rw_feat Aalto-QuML/Diffusion_twigs/models/cdgs.py official repository unverified MIT (permissive) · aab71a74e206a559 · report
get_timestep_embedding Aalto-QuML/Diffusion_twigs/models/cdgs.py official repository unverified MIT (permissive) · 786fa26b045cbe1b · report
gradient_clipping Aalto-QuML/Diffusion_twigs/losses.py official repository unverified MIT (permissive) · 68f93962e8452c1b · report
merge_x Aalto-QuML/Diffusion_twigs/mix_dpm_solver.py official repository unverified MIT (permissive) · bf8a68c3c7c7d6d2 · report
optimization_manager Aalto-QuML/Diffusion_twigs/losses.py official repository unverified MIT (permissive) · d4922b3c3f09927a · report
rdmol_process Aalto-QuML/Diffusion_twigs/eval_rdkit_pkl.py official repository unverified MIT (permissive) · d028b89ba675432e · report
rdmol_to_data Aalto-QuML/Diffusion_twigs/build_geom_dataset.py official repository unverified MIT (permissive) · c0eaed94ea97d8bc · report
split_x Aalto-QuML/Diffusion_twigs/mix_dpm_solver.py official repository unverified MIT (permissive) · a49a3d3652f5b470 · report

Tasks

Graph Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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