This repository provides a very simple implementation of the stochastic interpolant method of Building Normalizing Flows with Stochastic Interpolants and Stochastic Interpolants: A Unifying Framework for Flows and Diffusions. Author contributions are equal and not reflected in the commit history; the code was primarily developed in a private repository before public release.
The intent of this repository is to provide the reader with an interactive tool to understand the mechanisms of the framework, as well as to reproduce any figures in [2].
A demonstration notebook for defining an interpolant notebooks/checker.ipynb
. This can be done with a score function model
Another demonstration is available to do mirror interpolation from a dataset to itself, whereby a diffusion can be learned that resamples the distribution! The interpolant here is
An exploratory script based on exact, analytically computed interflow/gmm.py
and notebooks/gmm.ipynb
.
ODE and SDE integrators (ODE based on torchdiffeq
, SDE hand-written), as well an interpolant class, are provided in interflow/stochastic_interpolant.py
With these tools, we are free to do simulation free generation from either deterministic or stochastic dynamics, with variable level of noise:
@inproceedings{
albergo2023building,
title={Building Normalizing Flows with Stochastic Interpolants},
author={Michael Samuel Albergo and Eric Vanden-Eijnden},
url={https://arxiv.org/abs/2209.15571},
booktitle={The Eleventh International Conference on Learning Representations },
year={2023},
}
@misc{albergo2023stochastic,
doi = {10.48550/ARXIV.2303.08797},
url = {https://arxiv.org/abs/2303.08797},
author = {Albergo, Michael S. and Boffi, Nicholas M. and Vanden-Eijnden, Eric},
title = {Stochastic Interpolants: A Unifying Framework for Flows and Diffusions},
publisher = {arXiv},
year = {2023},
}
@inproceedings{
liu2022,
title={Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow},
author={Xingchao Liu and Chengyue Gong and Qiang Liu},
booktitle={The Eleventh International Conference on Learning Representations },
year={2023},
url={https://openreview.net/forum?id=XVjTT1nw5z}
}
@inproceedings{
lipman2022,
title={Flow Matching for Generative Modeling},
author={Yaron Lipman and Ricky T. Q. Chen and Heli Ben-Hamu and Maximilian Nickel and Matthew Le},
booktitle={The Eleventh International Conference on Learning Representations },
year={2023},
url={https://openreview.net/forum?id=PqvMRDCJT9t}
}