Hard-Constrained Graph Generation with Discrete-Projection Diffusion

Xuesong Zhang, Haifeng Sun, Qi Qi, Shengkuan Li, Yuhao Li, Tianyi Kou, Zirui Zhuang, Bo He, Jianxin Liao, Jingyu Wang
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:158428-158456, 2026.

Abstract

Diffusion models have achieved remarkable success in graph generation, but enforcing hard constraints on generated graphs remains challenging, limiting their deployment in constraint-critical applications. Existing approaches either fail to guarantee strict constraint satisfaction or are limited to narrow constraint types, lacking the flexibility to handle diverse constraint specifications. To address this challenge, we exploit the discrete structure of graphs, which allows hard constraints to be formulated as symbolic reasoning problems. Building on this insight, we propose NSPSG, a framework that integrates unconstrained diffusion models with discrete projection operators. NSPSG employ an SMT (Satisfiability Modulo Theories)-based projector to ensure that the generated graphs strictly satisfy constraints while remaining within the training data distribution. To further accelerate generation, we employ a supervised auto-regressive neural projector to approximate the symbolic reasoning process. Across heterogeneous constraints and various graph generation datasets, NSPSG achieves 99%-100% validity rates, demonstrating state-of-the-art performance. Notably, for a complex non-linear constraint, it improves data validity by up to 43% and reaches 99% validity while maintaining comparable generation efficiency.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-zhang26fh, title = {Hard-Constrained Graph Generation with Discrete-Projection Diffusion}, author = {Zhang, Xuesong and Sun, Haifeng and Qi, Qi and Li, Shengkuan and Li, Yuhao and Kou, Tianyi and Zhuang, Zirui and He, Bo and Liao, Jianxin and Wang, Jingyu}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {158428--158456}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/zhang26fh/zhang26fh.pdf}, url = {https://proceedings.mlr.press/v306/zhang26fh.html}, abstract = {Diffusion models have achieved remarkable success in graph generation, but enforcing hard constraints on generated graphs remains challenging, limiting their deployment in constraint-critical applications. Existing approaches either fail to guarantee strict constraint satisfaction or are limited to narrow constraint types, lacking the flexibility to handle diverse constraint specifications. To address this challenge, we exploit the discrete structure of graphs, which allows hard constraints to be formulated as symbolic reasoning problems. Building on this insight, we propose NSPSG, a framework that integrates unconstrained diffusion models with discrete projection operators. NSPSG employ an SMT (Satisfiability Modulo Theories)-based projector to ensure that the generated graphs strictly satisfy constraints while remaining within the training data distribution. To further accelerate generation, we employ a supervised auto-regressive neural projector to approximate the symbolic reasoning process. Across heterogeneous constraints and various graph generation datasets, NSPSG achieves 99%-100% validity rates, demonstrating state-of-the-art performance. Notably, for a complex non-linear constraint, it improves data validity by up to 43% and reaches 99% validity while maintaining comparable generation efficiency.} }
Endnote
%0 Conference Paper %T Hard-Constrained Graph Generation with Discrete-Projection Diffusion %A Xuesong Zhang %A Haifeng Sun %A Qi Qi %A Shengkuan Li %A Yuhao Li %A Tianyi Kou %A Zirui Zhuang %A Bo He %A Jianxin Liao %A Jingyu Wang %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-zhang26fh %I PMLR %P 158428--158456 %U https://proceedings.mlr.press/v306/zhang26fh.html %V 306 %X Diffusion models have achieved remarkable success in graph generation, but enforcing hard constraints on generated graphs remains challenging, limiting their deployment in constraint-critical applications. Existing approaches either fail to guarantee strict constraint satisfaction or are limited to narrow constraint types, lacking the flexibility to handle diverse constraint specifications. To address this challenge, we exploit the discrete structure of graphs, which allows hard constraints to be formulated as symbolic reasoning problems. Building on this insight, we propose NSPSG, a framework that integrates unconstrained diffusion models with discrete projection operators. NSPSG employ an SMT (Satisfiability Modulo Theories)-based projector to ensure that the generated graphs strictly satisfy constraints while remaining within the training data distribution. To further accelerate generation, we employ a supervised auto-regressive neural projector to approximate the symbolic reasoning process. Across heterogeneous constraints and various graph generation datasets, NSPSG achieves 99%-100% validity rates, demonstrating state-of-the-art performance. Notably, for a complex non-linear constraint, it improves data validity by up to 43% and reaches 99% validity while maintaining comparable generation efficiency.
APA
Zhang, X., Sun, H., Qi, Q., Li, S., Li, Y., Kou, T., Zhuang, Z., He, B., Liao, J. & Wang, J.. (2026). Hard-Constrained Graph Generation with Discrete-Projection Diffusion. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:158428-158456 Available from https://proceedings.mlr.press/v306/zhang26fh.html.

Related Material