English

Training-Free Constrained Generation With Stable Diffusion Models

Machine Learning 2025-10-23 v4

Abstract

Stable diffusion models represent the state-of-the-art in data synthesis across diverse domains and hold transformative potential for applications in science and engineering, e.g., by facilitating the discovery of novel solutions and simulating systems that are computationally intractable to model explicitly. While there is increasing effort to incorporate physics-based constraints into generative models, existing techniques are either limited in their applicability to latent diffusion frameworks or lack the capability to strictly enforce domain-specific constraints. To address this limitation this paper proposes a novel integration of stable diffusion models with constrained optimization frameworks, enabling the generation of outputs satisfying stringent physical and functional requirements. The effectiveness of this approach is demonstrated through material design experiments requiring adherence to precise morphometric properties, challenging inverse design tasks involving the generation of materials inducing specific stress-strain responses, and copyright-constrained content generation tasks. All code has been released at https://github.com/RAISELab-atUVA/Constrained-Stable-Diffusion.

Keywords

Cite

@article{arxiv.2502.05625,
  title  = {Training-Free Constrained Generation With Stable Diffusion Models},
  author = {Stefano Zampini and Jacob K. Christopher and Luca Oneto and Davide Anguita and Ferdinando Fioretto},
  journal= {arXiv preprint arXiv:2502.05625},
  year   = {2025}
}

Comments

Spotlight at the 39th Conference on Neural Information Processing Systems (NeurIPS 2025)

R2 v1 2026-06-28T21:37:21.196Z