{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/digress-discrete-denoising-diffusion-for","title":"DiGress: Discrete Denoising diffusion for graph generation","arxiv_id":"2209.14734","date":"2022-09-29","proceeding":null,"authors":["Clement Vignac","Igor Krawczuk","Antoine Siraudin","Bohan Wang","Volkan Cevher","Pascal Frossard"],"abstract":"This work introduces DiGress, a discrete denoising diffusion model for generating graphs with categorical node and edge attributes. Our model utilizes a discrete diffusion process that progressively edits graphs with noise, through the process of adding or removing edges and changing the categories. A graph transformer network is trained to revert this process, simplifying the problem of distribution learning over graphs into a sequence of node and edge classification tasks. We further improve sample quality by introducing a Markovian noise model that preserves the marginal distribution of node and edge types during diffusion, and by incorporating auxiliary graph-theoretic features. A procedure for conditioning the generation on graph-level features is also proposed. DiGress achieves state-of-the-art performance on molecular and non-molecular datasets, with up to 3x validity improvement on a planar graph dataset. It is also the first model to scale to the large GuacaMol dataset containing 1.3M drug-like molecules without the use of molecule-specific representations.","url_abs":"https://arxiv.org/abs/2209.14734v4","url_pdf":"https://arxiv.org/pdf/2209.14734v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"digress-discrete-denoising-diffusion-for","repo_url":"https://github.com/cvignac/digress","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"digress-discrete-denoising-diffusion-for","repo_url":"https://github.com/lingxiaoshawn/pard","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"digress-discrete-denoising-diffusion-for","repo_url":"https://github.com/xinyangATK/GraphBetaDiffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"edge-classification","task_name":"Edge Classification"},{"task_slug":"graph-generation","task_name":"Graph Generation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"graph-transformer","method_name":"Graph Transformer"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"lapeigen","method_name":"LapEigen"},{"method_slug":"laplacian-pe","method_name":"Laplacian PE"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2209.14734","atlas_url":"https://app.syntology.ai/?focus=2209.14734","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2209.14734"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xinyangATK/GraphBetaDiffusion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lingxiaoshawn/pard","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cvignac/digress","reach":null}],"summary":{"ran":10,"ran_fixture":4,"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":4,"ran":0,"repositories":1},"listed":{"samples":21,"ran":15,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f4e42e3306130e06","entry":"CrossEntropyMetric","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f4e42e3306130e06"}},{"code_sha256_prefix":"551ec09673d49e88","entry":"DiscreteUniformTransition","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"551ec09673d49e88"}},{"code_sha256_prefix":"7e3fab9a98573ff0","entry":"Etoy","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7e3fab9a98573ff0"}},{"code_sha256_prefix":"9ce4bfced7e6004c","entry":"MarginalUniformTransition","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9ce4bfced7e6004c"}},{"code_sha256_prefix":"a7e50774a4e4f675","entry":"NLL","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a7e50774a4e4f675"}},{"code_sha256_prefix":"e9400f315259c7be","entry":"NodeEdgeBlock","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9400f315259c7be"}},{"code_sha256_prefix":"295f1f304ea8e1f4","entry":"SumExceptBatchKL","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"295f1f304ea8e1f4"}},{"code_sha256_prefix":"5a0e207d75121664","entry":"SumExceptBatchMetric","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a0e207d75121664"}},{"code_sha256_prefix":"0eeeb63ec7b09fb3","entry":"TrainLossDiscrete","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0eeeb63ec7b09fb3"}},{"code_sha256_prefix":"d7bb782f9e70779e","entry":"Xtoy","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d7bb782f9e70779e"}},{"code_sha256_prefix":"cd574a170c2b72b8","entry":"index_last_dim","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd574a170c2b72b8"}},{"code_sha256_prefix":"01627b4b65b502c9","entry":"noise_schedule","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"01627b4b65b502c9"}},{"code_sha256_prefix":"0d129fbf2733355c","entry":"sample_bernoulli","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d129fbf2733355c"}},{"code_sha256_prefix":"9d8f3764aca720ec","entry":"sample_categorical","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9d8f3764aca720ec"}},{"code_sha256_prefix":"ea18929480741b1e","entry":"set_last_dim","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea18929480741b1e"}},{"code_sha256_prefix":"2e0a2b9a6b44de63","entry":"DiscreteDenoisingDiffusion","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e0a2b9a6b44de63"}},{"code_sha256_prefix":"f9e50edf64cad6ca","entry":"DiscreteDenoisingDiffusion","repo":"cvignac/digress","repo_kind":"official","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/cvignac/digress/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9e50edf64cad6ca"}},{"code_sha256_prefix":"ae40c21213aba78e","entry":"DiscreteDiffusion","repo":"lingxiaoshawn/pard","repo_kind":"listed","path":"pard/diffusion.py","file_url":"https://github.com/lingxiaoshawn/pard/blob/HEAD/pard/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae40c21213aba78e"}},{"code_sha256_prefix":"19aa05716c3273ce","entry":"GraphTransformer","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"19aa05716c3273ce"}},{"code_sha256_prefix":"02efa89bd5962590","entry":"GraphTransformer","repo":"cvignac/digress","repo_kind":"official","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/cvignac/digress/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"02efa89bd5962590"}},{"code_sha256_prefix":"3913b8a35ac72188","entry":"NodeEdgeBlock","repo":"cvignac/digress","repo_kind":"official","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/cvignac/digress/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3913b8a35ac72188"}},{"code_sha256_prefix":"354be05e0f965a4b","entry":"PredefinedNoiseScheduleDiscrete","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"354be05e0f965a4b"}},{"code_sha256_prefix":"a8bf4eb62fe3ecd9","entry":"XEyTransformerLayer","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a8bf4eb62fe3ecd9"}},{"code_sha256_prefix":"52d0bb0f479c428c","entry":"XEyTransformerLayer","repo":"cvignac/digress","repo_kind":"official","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/cvignac/digress/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"52d0bb0f479c428c"}},{"code_sha256_prefix":"1717b7476aced94e","entry":"masked_softmax","repo":"xinyangATK/GraphBetaDiffusion","repo_kind":"listed","path":"src/diffusion_model_discrete.py","file_url":"https://github.com/xinyangATK/GraphBetaDiffusion/blob/HEAD/src/diffusion_model_discrete.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1717b7476aced94e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}