Skip to content

"How to Trust Your Diffusion Models: A Convex Optimization Approach to Conformal Risk Control"

License

Notifications You must be signed in to change notification settings

Sulam-Group/k-rcps

 
 

Repository files navigation

How to Trust Your Diffusion Model:
A Convex Optimization Approach to Conformal Risk Control

zenodo

This is the official implementation of the paper How To Trust Your Diffusion Model: A Convex Optimization Approach to Conformal Risk Control @ ICML 2023

by Jacopo Teneggi, Matt Tivnan, J Webster Stayman, and Jeremias Sulam.


$K$-RCPS is a high-dimensional extension of the Risk Controlling Prediction Sets (RCPS) procedure that provably minimizes the mean interval length by means of a convex relaxation.

It is based on $\ell^{\gamma}$: a convex upper-bound to the $01$ loss $\ell^{01}$

Demo

The demo is included in the demo.ipynb notebook. It showcases how to use the $K$-RCPS calibration procedure on dummy data.

which reduces the mean interval length compared to RCPS on the same data by $\approx 9$%.

Reproducibility

All model checkpoints are available on Zenodo alongside the perturbed images used in the paper. checkpoints.zip and denoising.zip should both be unzipped in the experiments folder.

References

@article{teneggi2023trust,
  title={How to Trust Your Diffusion Model: A Convex Optimization Approach to Conformal Risk Control},
  author={Teneggi, Jacopo and Tivnan, Matt and Stayman, J Webster and Sulam, Jeremias},
  journal={arXiv preprint arXiv:2302.03791},
  year={2023}
}

About

"How to Trust Your Diffusion Models: A Convex Optimization Approach to Conformal Risk Control"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.9%
  • Jupyter Notebook 17.3%
  • Cuda 6.1%
  • C++ 0.7%