DDPS: Discrete Diffusion Posterior Sampling for Paths in Layered Graphs
Hao Luan, See-Kiong Ng, Chun Kai Ling
TL;DR
DDPS tackles the problem of generating valid paths in layered graphs with diffusion models by introducing the padded adjacency-list matrix (PALM), a structured discrete representation that guarantees path feasibility. It adapts the D3PM framework for PALM-based training and sampling, and derives a discrete posterior-guided sampling procedure that uses the gradient of expected rewards to steer path generation toward preferred edges without retraining. Key contributions include the PALM representation, efficient training/inference for PALM-based diffusion, and a practical discrete guidance mechanism that improves reward attainment while preserving distributional fidelity. The results show DDPS outperforms naïve continuous-relaxation baselines in generating valid paths and reveals a trade-off between reward optimization and adherence to the learned diffusion prior, with a tunable guidance strength achieving near-optimal rewards in practice.
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.
