Constrained Diffusion with Trust Sampling

William Huang, Yifeng Jiang, Tom Van Wouwe, C. Karen Liu
11/17/2024
cs.LGcs.CV

Official code: will-s-h/trust-sampling (12 stars, last commit 2024-12-18).

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.

View on arXivView PDF

Code Implementations(1)

Constrained Diffusion with Trust Sampling

120PythonApr 6, 20241 years ago

Similar Papers

Cite this paper

@article{huang2024constrained,
  title  = {Constrained Diffusion with Trust Sampling},
  author = {William Huang and Yifeng Jiang and Tom Van Wouwe and C. Karen Liu},
  year   = {2024},
  eprint = {2411.10932},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.10932},
  url    = {http://arxiv.org/abs/2411.10932v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.10932.svg)](https://codeofpaper.com/paper/2411.10932)

Discussion