Towards Arbitrary Noise Augmentation - Deep Learning for Sampling from Arbitrary Probability Distributions

Felix Horger, Tobias Würfl, Vincent Christlein, Andreas MaierarXiv 2018

TL;DR

This paper presents a method to transform simple uniform noise into samples from any complex, known probability distribution using a fully connected neural network (FCNN). By minimizing the Jensen-Shannon divergence between the network's output and a target density function, the authors create a high-efficiency sampler that serves as a flexible alternative to traditional methods like MCMC or rejection sampling.

What Problem Does This Paper Address?

Sampling from a specific probability density function (PDF) is a cornerstone of modern computing, used in everything from Monte Carlo simulations and computer graphics to physics modeling. However, traditional sampling techniques often come with significant baggage:

  • Inversion Sampling requires calculating and inverting a Cumulative Distribution Function (CDF), which is often analytically impossible and numerically expensive.
  • Rejection Sampling can be incredibly inefficient if you can't find a "proposal distribution" that closely matches your target; you end up throwing away most of your generated samples.
  • Markov-Chain-Monte-Carlo (MCMC) methods produce samples that are highly dependent on one another and can take a long time to "burn in" before they accurately represent the target distribution.

The authors aim to create a "black box" sampler that is highly efficient (no wasted samples), flexible (works for any explicit PDF), and requires minimal manual derivation.

Methods

The authors propose using a simple FCNN to perform the mapping.

  • Architecture: The model consists of 10 layers with 500 units each, using Exponential Linear Unit (ELU) activations.
  • Input/Output: It takes a vector of $n$ samples from a uniform distribution ($U[-1, 1]$) and maps them to an output vector of the same size.
  • The Loss Function: This is the core innovation. The training process minimizes the Jensen-Shannon (JS) divergence between the target PDF and the distribution of the model's output. To estimate the output distribution during training, they use Kernel Density Estimation (KDE).
  • Diversity Promotion: To prevent the network from simply outputting the same "good" vector every time, the loss function also compares the distribution of individual elements across a mini-batch against the target PDF. This ensures that the model learns a general mapping rather than a static set of values.

Datasets

The paper evaluates the model using several synthetic target distributions designed to test different sampling challenges:

  1. Bimodal Asymmetric Gaussian: A distribution with two peaks of different heights and widths.
  2. Exponential Distribution: Used to compare against standard inversion sampling.
  3. Non-invertible PDF: A distribution ($y^2 \cdot \exp(-b|y|)$) that lacks an analytical inverse CDF, making it a prime candidate for rejection sampling or MCMC.
  4. 2D Bimodal Gaussian: A two-dimensional distribution used to demonstrate the model's ability to handle dependent variables.

Key Insights and Ideas

  • Interdependence as a Feature: When the network processes a vector of 500 samples at once, it makes the output values interdependent. The authors found that this actually helps the output distribution converge to the target PDF faster than if the samples were drawn independently.
  • Universal Approximation: Because neural networks are universal function approximators, the model effectively "learns" the necessary transformation (like an inverse CDF) without the user needing to perform any complex calculus or numerical integration.
  • 100% Efficiency: Unlike rejection sampling, every single uniform random number fed into the network results in a valid sample from the target distribution.

Key Results

The model successfully matched the target distributions across all tests, showing performance comparable to or better than traditional methods.

  • Bimodal Targets: As seen in Figure 1, the model's KDE estimation (red) almost perfectly overlays the target PDF (green), outperforming the standard Mixture of Gaussians approach in terms of fit quality for a limited number of samples.
Fig. 1: Comparison of the model to the mixture of Gaussians method on a bimodal Gaussian target, given by (4).
  • Comparison to Inversion Sampling: For the exponential target, the model produced a histogram nearly identical to the gold-standard inversion sampling method (Figure 2/4).
Fig. 2: Comparison of the model to the inversion sampling method on an exponential target given by (5).
  • Multi-dimensional Sampling: The model successfully captured the dependencies in a 2D bimodal Gaussian, demonstrating that it can learn complex spatial relationships between variables.

Limitations and Future Work

  • Normalization Required: Unlike rejection sampling or MCMC, this model requires the target PDF to be explicitly known and normalized.
  • The Curse of Dimensionality: The computational cost of calculating the KDE and JS divergence scales exponentially with the number of dimensions. For very high-dimensional problems, the authors suggest splitting the PDF into conditional one-dimensional parts and training separate models.
  • Hyperparameter Tuning: The width of the kernel function for the KDE still needs to be adjusted by hand, which remains a manual step in an otherwise automated process.

Summary updated

BibTeX
@misc{horger2018towards,
  author = {Felix Horger and Tobias Würfl and Vincent Christlein and Andreas Maier},
  title = {{Towards Arbitrary Noise Augmentation - Deep Learning for Sampling from Arbitrary Probability Distributions}},
  year = {2018},
  eprint = {1801.04211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.04211},
}
Figure