π€ AI Summary
This work addresses discrete sequence generation constrained by path structures in hierarchical graphsβa special case of directed acyclic graphs (DAGs). We propose the first discrete diffusion posterior sampling framework explicitly designed for generating valid paths. Our method ensures strict adherence to graph topology and hierarchical constraints without requiring post-hoc filtering or rejection sampling. Key contributions include: (1) a Path-Aware Linearized Matrix (PALM) representation that explicitly encodes path topology and layer-wise dependencies via a structured adjacency list; and (2) a classifier-free guidance mechanism enabling fine-grained, edge-level preference control without model retraining. Evaluated on multiple hierarchical graph benchmarks, our approach significantly outperforms structure-agnostic baselines, achieving simultaneous improvements in path validity, sequence diversity, and controllability. All generated sequences are guaranteed to be valid paths within the input graph.
π Abstract
Diffusion models form an important class of generative models today, accounting for much of the state of the art in cutting edge AI research. While numerous extensions beyond image and video generation exist, few of such approaches address the issue of explicit constraints in the samples generated. In this paper, we study the problem of generating paths in a layered graph (a variant of a directed acyclic graph) using discrete diffusion models, while guaranteeing that our generated samples are indeed paths. Our approach utilizes a simple yet effective representation for paths which we call the padded adjacency-list matrix (PALM). In addition, we show how to effectively perform classifier guidance, which helps steer the sampled paths to specific preferred edges without any retraining of the diffusion model. Our preliminary results show that empirically, our method outperforms alternatives which do not explicitly account for path constraints.