Neural Inverse Transform Sampler

Henry Li, Yuval Kluger
6/22/2022
cs.LG

Official code: lihenryhfl/NITS (4 stars, Python, MIT, last commit 2023-09-10).

Abstract

Any explicit functional representation $f$ of a density is hampered by two main obstacles when we wish to use it as a generative model: designing $f$ so that sampling is fast, and estimating $Z = \int f$ so that $Z^{-1}f$ integrates to 1. This becomes increasingly complicated as $f$ itself becomes complicated.

Show full abstract

In this paper, we show that when modeling one-dimensional conditional densities with a neural network, $Z$ can be exactly and efficiently computed by letting the network represent the cumulative distribution function of a target density, and applying a generalized fundamental theorem of calculus. We also derive a fast algorithm for sampling from the resulting representation by the inverse transform method. By extending these principles to higher dimensions, we introduce the \textbf{Neural Inverse Transform Sampler (NITS)}, a novel deep learning framework for modeling and sampling from general, multidimensional, compactly-supported probability densities. NITS is a highly expressive density estimator that boasts end-to-end differentiability, fast sampling, and exact and cheap likelihood evaluation. We demonstrate the applicability of NITS by applying it to realistic, high-dimensional density estimation tasks: likelihood-based generative modeling on the CIFAR-10 dataset, and density estimation on the UCI suite of benchmark datasets, where NITS produces compelling results rivaling or surpassing the state of the art.

View on arXivView PDF

Code Implementations(1)

lihenryhfl/NITSOfficial100%
MIT

Neural Inverse Transform Sampler

41Python, Jupyter NotebookDec 27, 20213 years agoMIT

Similar Papers

Cite this paper

@article{li2022neural,
  title  = {Neural Inverse Transform Sampler},
  author = {Henry Li and Yuval Kluger},
  year   = {2022},
  eprint = {2206.11172},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.11172}
}

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/2206.11172.svg)](https://codeofpaper.com/paper/2206.11172)

Discussion