Skip to content

Code for paper "Compositional Sculpting of Iterative Generative Processes"

License

Notifications You must be signed in to change notification settings

timgaripov/compositional-sculpting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compositional Sculpting of Iterative Generative Processes

PyTorch implementation of the experiments from the paper

"Compositional Sculpting of Iterative Generative Processes" (NeurIPS 2023)

by Timur Garipov, Sebastiaan De Peuter, Ge Yang, Vikas Garg, Samuel Kaski, Tommi Jaakkola

Introduction

High training costs of generative models and the need to fine-tune them for specific tasks have created a strong interest in model reuse and composition. A key challenge in composing iterative generative processes, such as GFlowNets and diffusion models, is that to realize the desired target distribution, all steps of the generative process need to be coordinated, and satisfy delicate balance conditions. In this work, we propose Compositional Sculpting: a general approach for defining compositions of iterative generative processes. We then introduce a method for sampling from these compositions built on classifier guidance. We showcase ways to accomplish compositional sculpting in both GFlowNets and diffusion models. We highlight two binary operations — the harmonic mean ($p_1 \otimes p_2$) and the contrast ($p_1$$p_2$) between pairs, and the generalization of these operations to multiple component distributions. We offer empirical results on image and molecular generation tasks.

Please cite our paper if you find it helpful in your work:

@article{garipov2023compositional,
  title={Compositional Sculpting of Iterative Generative Processes},
  author={Garipov, Timur and De Peuter, Sebastiaan and Yang, Ge and Garg, Vikas and Kaski, Samuel and Jaakkola, Tommi},
  journal={Advances in Neural Information Processing Systems},
  volume={36},
  year={2023}
}

Experiment domains

Composition of GFlowNets (2D grid domain)

See gflownet/README.md

Composition of GFlowNets (fragment-based molecule generation domain)

See gflownet/README.md

Composition of diffusion models (colored MNIST)

See diffusion/README.md and diffusion_chaining/README.md

Code references

About

Code for paper "Compositional Sculpting of Iterative Generative Processes"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages