Logic-Guided Graph Denoising Diffusion Models

Samuel Cognolato, Luciano Serafini, Alessandro Sperduti, Andrea Cavallaro
10/16/2026
cs.LG
diffusion-flow

No confident code implementation found for this paper.

Abstract

Graph diffusion models are competitive approaches for generating complex graph-structured data. However, when such distributions have strict structural constraints, diffusion models may fail to capture them exactly, resulting in the generation of invalid graphs.

Show full abstract

In this paper, we propose a method for grounding graph diffusion models in domain-specific knowledge via First Order Logic (FOL), leveraging its expressive and interpretable formalism to impose structural constraints on the generative process. We incorporate domain knowledge using classifier guidance, a technique that conditions the diffusion model's distribution on external variables to exert control over the sampled data. During the generative process, classifier guidance steers the denoising trajectory to optimize an objective function, which we define as a fuzzy and differentiable relaxation of the logical rules. Our methodology requires only the specification of constraints in FOL, whose satisfaction is encouraged at inference time to guide a pre-trained generative model. We evaluate our approach by comparing the unconditional generation of knowledge graphs with our logic-guided framework, which incorporates domain ontologies as structural constraints during inference. This approach significantly increases the proportion of generated graphs that satisfy the ontological constraints.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cognolato2026logicguided,
  title  = {Logic-Guided Graph Denoising Diffusion Models},
  author = {Samuel Cognolato and Luciano Serafini and Alessandro Sperduti and Andrea Cavallaro},
  year   = {2026},
  eprint = {2610.23766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.23766v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.23766.svg)](https://codeofpaper.com/paper/2610.23766)

Discussion