Abstract
Density estimation is a cornerstone of machine learning, yet modern deep generative models are often computationally excessive for low-dimensional data. This paper presents a Gaussian Process (GP) tilted nonparametric density estimator trained via Fisher divergence score matching. By employing Random Fourier Features (RFF), the model is cast into a log-linear form, enabling analytical, closed-form solutions for training. This approach eliminates the need for iterative optimization while maintaining high scalability and accuracy. We introduce three variants: Fisher Divergence (FD), Noise Conditional Fisher Divergence (NCFD), and Fisher Variational Predictive Distribution (FVPD), demonstrating their effectiveness on various benchmarks.
Introduction
Learning the underlying probability distribution of a dataset is essential for tasks ranging from anomaly detection to data synthesis. While Normalizing Flows and Diffusion models offer significant power, they typically require extensive iterative training via Stochastic Gradient Descent (SGD). Score matching, which minimizes Fisher divergence, offers an alternative by avoiding the intractable normalizing constant. However, traditional score matching often struggles in low-density regions and still relies on iterative solvers. This work addresses these challenges by proposing a nonparametric density estimator that is both robust to sparse data and solvable analytically.
Methodology: The GP-Tilted Model
The core of the proposed approach is the GP-tilted density model (TGP). The model begins with a multivariate Gaussian base distribution to ensure mathematical stability. This base is then "tilted" by an exponentiated Gaussian Process, which refines the distribution's shape to better fit the observed data.
To achieve computational tractability, the GP is approximated using Random Fourier Features (RFF). As illustrated in the architecture diagram below, this transformation effectively represents the GP as a single-layer neural network with fixed, randomized hidden weights and a single learnable output vector $\theta$.
Because the Fisher divergence objective is quadratic with respect to the log-linear model parameters, the optimal weights can be determined through a system of linear equations. This leads to three distinct closed-form algorithms:
- Fisher Divergence (FD): A direct analytical solution for model weights.
- Noise Conditional Fisher Divergence (NCFD): A multi-scale approach that adds varying levels of Gaussian noise to the data to improve performance in low-density regions.
- Fisher Variational Predictive Distribution (FVPD): A Bayesian alternative that models parameter uncertainty via an ELBO-like objective, providing regularization without the need for explicit data noise.
Experimental Results
The authors evaluated the TGP framework on 10 low-dimensional datasets from the UCI repository, including Bikeshare, MIMIC2, and HIGGS. Performance was measured using Kolmogorov-Smirnov (KS) and Wasserstein distance (WD) metrics.
Speed and Efficiency
A primary advantage of the closed-form solution is its extreme speed. For instance, training the FVPD model on the "Power" dataset—comprising over 2 million samples—required only 22 seconds. Furthermore, FVPD was found to be approximately an order of magnitude faster than NCFD, as it avoids the repeated statistical computations required for multiple noise levels.
Qualitative Performance
Visualizations on 2D datasets demonstrate the model's ability to capture complex, multi-modal distributions. As shown in the comparison below, the NCFD and FVPD variants provide smoother and more accurate density estimates compared to the basic FD and MAP baselines.
Discussion and Conclusion
The TGP framework demonstrates that complex density estimation can be reduced to efficient linear algebra by carefully selecting the model architecture. Key insights include:
- Analytical Scalability: Bypassing SGD allows for single-pass processing of massive datasets.
- Uncertainty as Regularization: The success of FVPD suggests that modeling parameter uncertainty can effectively replace data-level noise injection (common in diffusion models) for smoothing score matching artifacts.
While highly effective for low-dimensional data, the method's reliance on base covariance matrix inversion limits its current applicability to high-dimensional spaces like image data. Future work will focus on automated hyperparameter tuning and extending these closed-form techniques to larger-scale AI architectures.
Summary updated