Constrained Diffusion with Trust Sampling
William Huang, Yifeng Jiang, Tom Van Wouwe, C. Karen Liu
Abstract
Diffusion models have demonstrated significant promise in various generative tasks; however, they often struggle to satisfy challenging constraints. Our approach addresses this limitation by rethinking training-free loss-guided diffusion from an optimization perspective. We formulate a series of constrained optimizations throughout the inference process of a diffusion model. In each optimization, we allow the sample to take multiple steps along the gradient of the proxy constraint function until we can no longer trust the proxy, according to the variance at each diffusion level. Additionally, we estimate the state manifold of diffusion model to allow for early termination when the sample starts to wander away from the state manifold at each diffusion step. Trust sampling effectively balances between following the unconditional diffusion model and adhering to the loss guidance, enabling more flexible and accurate constrained generation. We demonstrate the efficacy of our method through extensive experiments on complex tasks, and in drastically different domains of images and 3D motion generation, showing significant improvements over existing methods in terms of generation quality. Our implementation is available at https://github.com/will-s-h/trust-sampling.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5c44349d-c83e-4f0c-a3a5-7816d009de96Cited by top-tier papers6
- Training-Free Constrained Generation With Stable Diffusion ModelsStefano Zampini, Jacob K. Christopher, Luca Oneto, Davide Anguita et al.NeurIPS 2025 · 21 citations
- Strictly Constrained Generative Modeling via Split Augmented Langevin SamplingMatthieu Blanke, Yongquan Qu, Sara Shamekh, Pierre GentineICLR 2026 · 7 citations
- Enhancing Diffusion Model Stability for Image Restoration via Gradient ManagementHongjie Wu, Mingqin Zhang, Linchao He, Ji-Zhe Zhou et al.ACM MM 2025 · 5 citations
- RODS: Robust Optimization Inspired Diffusion Sampling for Detecting and Reducing Hallucination in Generative ModelsYiqi Tian, Pengfei Jin, Mingze Yuan, Na Li et al.NeurIPS 2025 · 3 citations
- Linearly Constrained Diffusion Implicit ModelsVivek Jayaram, Ira Kemelmacher-Shlizerman, Steven M. Seitz, John ThickstunNeurIPS 2025 · 1 citation
Builds on33
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
- Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations
Related papers
- Guidance with Spherical Gaussian Constraint for Conditional DiffusionLingxiao Yang, Shutong Ding, Yifan Cai, Jingyi Yu et al.ICML 2024 · 82 citations
- Fast constrained sampling in pre-trained diffusion modelsAlexandros Graikos, Nebojsa Jojic, Dimitris SamarasNeurIPS 2025 · 9 citations
- Diffusing Differentiable RepresentationsYash Savani, Marc Finzi, J. Zico KolterNeurIPS 2024 · 1 citation
- TAG: Tangential Amplifying Guidance for Hallucination-Resistant SamplingHyunmin Cho, Donghoon Ahn, Susung Hong, Jee Eun Kim et al.ICML 2026
- Manifold Preserving Guided DiffusionYutong He, Naoki Murata, Chieh-Hsin Lai, Yuhta Takida et al.ICLR 2024 · 148 citations
