Papers › Unifying Generation and Prediction on Graphs with Latent Graph Diffusion

Unifying Generation and Prediction on Graphs with Latent Graph Diffusion

4 Feb 2024arXiv:2402.02518archive 2025-07-28

Cai Zhou, Xiyuan Wang, Muhan Zhang

In this paper, we propose the first framework that enables solving graph learning tasks of all levels (node, edge and graph) and all types (generation, regression and classification) using one formulation. We first formulate prediction tasks including regression and classification into a generic (conditional) generation framework, which enables diffusion models to perform deterministic tasks with provable guarantees. We then propose Latent Graph Diffusion (LGD), a generative model that can generate node, edge, and graph-level features of all categories simultaneously. We achieve this goal by embedding the graph structures and features into a latent space leveraging a powerful encoder and decoder, then training a diffusion model in the latent space. LGD is also capable of conditional generation through a specifically designed cross-attention mechanism. Leveraging LGD and the ``all tasks as generation'' formulation, our framework is capable of solving graph tasks of various levels and types. We verify the effectiveness of our framework with extensive experiments, where our models achieve state-of-the-art or highly competitive results across a wide range of generation and regression tasks.

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.02518")

Code

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

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

zhouc20/latentgraphdiffusion 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

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 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 · violated contract
2ran · our draft was wrong
2ran
8unverified

Licence: 0 of the 13 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 zhouc20/LatentGraphDiffusion. “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.

disabled_train zhouc20/LatentGraphDiffusion/lgd/ddpm/LGD.py official repository ran · violated contract MIT (permissive) · 4cb732f513d69dfd · report
get_activation zhouc20/latentgraphdiffusion/lgd/layer/Exphormer.py official repository ran · our draft was wrong MIT (permissive) · b888018e8acd3f1d · report
get_final_pretrained_ckpt zhouc20/latentgraphdiffusion/lgd/finetuning.py official repository ran MIT (permissive) · 1bb331bf70a78136 · report
new_optimizer_config zhouc20/latentgraphdiffusion/pretrain.py official repository ran MIT (permissive) · 585566394225e457 · report
uniform_on_device zhouc20/LatentGraphDiffusion/lgd/ddpm/LGD.py official repository ran · our draft was wrong MIT (permissive) · d48d8354986e3b0e · report
apply_chunking_to_forward zhouc20/latentgraphdiffusion/lgd/layer/bigbird_layer.py official repository unverified MIT (permissive) · ae56bcfaae96da3c · report
create_model_custom zhouc20/latentgraphdiffusion/pretrain.py official repository unverified MIT (permissive) · 7267dc7d02fa739e · report
init_model_from_pretrained zhouc20/latentgraphdiffusion/lgd/finetuning.py official repository unverified MIT (permissive) · b8ea7231e959f164 · report
is_seed zhouc20/latentgraphdiffusion/lgd/agg_runs.py official repository unverified MIT (permissive) · c98a702be0660ac9 · report
is_split zhouc20/latentgraphdiffusion/lgd/agg_runs.py official repository unverified MIT (permissive) · 438635c08adfe2aa · report
join_list zhouc20/latentgraphdiffusion/lgd/agg_runs.py official repository unverified MIT (permissive) · 40e98e1ecbf39f34 · report
load_pretrained_model_cfg zhouc20/latentgraphdiffusion/lgd/finetuning.py official repository unverified MIT (permissive) · 28028986fdd293d2 · report
random_mask zhouc20/latentgraphdiffusion/utils.py official repository unverified MIT (permissive) · a7aa470daf7aba0e · report

Tasks

AllDecoderGraph Learningregression

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