Abstract
The Fourier Basis Density Model (FBM) provides a robust framework for representing smooth, band-limited probability distributions. However, generating samples from FBMs has traditionally been computationally expensive or mathematically intractable. This paper introduces Discretized Approximate Ancestral Sampling (DAAS), a novel method that leverages discretization and interpolation techniques from digital signal processing to enable efficient, high-fidelity sampling. By employing cardinal B-splines for interpolation, DAAS achieves provable error bounds and significant speedups over traditional sampling methods like MCMC or Rejection Sampling.
Introduction
In probabilistic modeling, the Fourier Basis Density Model (FBM) is an attractive but underutilized tool. It represents a probability density function (PDF) as a truncated Fourier series, which naturally imposes smoothness and allows for efficient training using standard gradient-based optimization.
Despite these benefits, FBMs have historically lacked an efficient way to generate samples. Standard techniques like Inverse Transform Sampling are impossible because the FBM's cumulative distribution function (CDF) lacks a closed-form inverse. Rejection Sampling is often computationally wasteful due to low acceptance rates, and Markov Chain Monte Carlo (MCMC) methods can be slow to converge without proper initialization. DAAS bridges this "usability gap," making FBMs a viable choice for generative modeling and reinforcement learning.
Methods: Sampling via Discretization
The authors propose a two-step approach inspired by Digital Signal Processing (DSP) principles. The core idea is to treat a probability density like a signal that can be reconstructed from discrete samples.
- Discretization: The FBM density is evaluated at $K$ equally spaced points to create a discrete probability mass function (the "ancestor" distribution). Because the FBM is band-limited, this discrete version captures the essential information of the PDF.
- Interpolation and Noise: To transform these discrete points back into a continuous distribution, a sample is drawn from the discrete distribution and "dequantized" by adding a specific type of random noise.
The "secret sauce" of DAAS is the choice of noise. While simple uniform noise is a common baseline, the authors prove that using cardinal B-splines—specifically the triangular (tent) function—results in a piecewise linear interpolation of the density. This significantly reduces approximation error. For higher precision, DAAS samples can serve as a "warm start" for MCMC methods like the Unadjusted Langevin Algorithm (ULA), leading to near-instant convergence.
Key Results and Insights
- Massive Speedup: To draw $10^6$ samples, DAAS with triangular noise required only 50 FBM evaluations. In contrast, Rejection Sampling required 50,000,000 evaluations, and ULA required 40,000,000.
- Provable Quality: The authors provide a theoretical guarantee that the error (measured in Total Variation or Wasserstein distance) decreases at a rate of $O(1/K^2)$, where $K$ is the number of discretization points. This allows practitioners to precisely trade off computational cost for sample accuracy.
- High Fidelity: Even with a modest number of discretization points ($K$), the histograms of the generated samples were visually and statistically indistinguishable from the true target density.
Conclusion and Future Work
DAAS transforms the Fourier Basis Density Model from a theoretical curiosity into a practical tool. By treating density estimation through the lens of signal reconstruction, the authors provide a fast, reliable, and mathematically grounded sampling method.
While the current work focuses on 1D circular distributions, future research will address the "curse of dimensionality" to extend DAAS to higher-dimensional spaces. Integrating DAAS into large-scale deep learning architectures, such as using FBMs as the latent space distribution in Variational Autoencoders (VAEs), represents the next logical step for this framework.
Summary updated