Efficient and principled score estimation with Nyström kernel exponential families

Danica J. Sutherland, Heiko Strathmann, Michael Arbel, Arthur GrettonAISTATS 2018

Abstract

We propose a fast method with statistical guarantees for learning an exponential family density model where the natural parameter is in a reproducing kernel Hilbert space, and may be infinite dimensional. The method combines score matching with a Nyström approximation, achieving a significant reduction in computational complexity while maintaining optimal statistical convergence rates.

Introduction

Estimating a probability density from data is a fundamental task in statistics, but it becomes increasingly difficult when seeking models that are both flexible and principled. The exponential family is a classic choice, but it suffers from a major bottleneck: the partition function (normalization constant). Ensuring a density integrates to one often requires computing an intractable integral, particularly in high-dimensional spaces.

Recent advancements have utilized "Score Matching"—fitting the derivative of the log-density instead of the density itself—to bypass this constant. However, state-of-the-art kernel-based versions of this approach are computationally expensive, scaling at $O(n^3 d^3)$ where $n$ is the number of samples and $d$ is the dimension. This complexity renders them unusable for large datasets. Previous attempts to accelerate this process often relied on heuristics that lacked rigorous convergence proofs.

The Nyström Kernel Exponential Family

We introduce the Nyström kernel exponential family estimator, which rests on three pillars:

  1. Score Matching: We minimize the Fisher divergence, comparing the gradient of the model's log-density to the gradient of the true (unknown) log-density. This is calculated using only samples via integration by parts.
  2. Nyström Approximation: Instead of constructing a solution using all $n$ training points as basis functions, we select a smaller subset of $m$ basis points. This reduces computational complexity from $O(n^3)$ to approximately $O(nm^2)$.
  3. Dimension Subsampling: To further mitigate costs in high-dimensional settings, we demonstrate that subsampling the dimensions of the basis functions maintains accuracy.

Theoretically, we prove that if $m$ grows at a specific rate relative to $n$ (e.g., $m \sim n^{1/3} \log n$), the approximate model converges to the true density as fast as the full $O(n^3)$ model.

Experimental Evaluation

The method was evaluated on synthetic datasets ("Ring" and "Grid") and the UCI Glass dataset for Gradient-free Hamiltonian Monte Carlo (HMC) sampling.

Scalability and Performance

On the "grid" dataset—a mixture of Gaussians at the vertices of a $d$-dimensional hypercube—the Nyström approach demonstrated significant speedups. As shown in the following figure, the runtime for the Nyström variants scales much more favorably than the full kernel solution as dimensions increase, while maintaining competitive scores.

Scores and runtimes on the grid dataset.

Practical Application: HMC Sampling

In HMC experiments, where the goal is to sample from the posterior of a Gaussian Process classifier, the Nyström estimator achieved acceptance rates nearly identical to the full solution. Even with significantly fewer basis points ($m=100$ vs $n=500$), the performance remained robust.

HMC acceptance rates with 90% quantiles.

Key Insights and Results

The "aha moment" of this work is that a full $n \times n$ kernel matrix is not required for optimal statistical rates; a low-rank approximation captures the underlying geometry sufficiently. Score matching naturally prioritizes accuracy in regions with data, leading to strong convergence in Fisher distance. Compared to deep learning approaches like Denoising Autoencoders (DAEs), this kernel method is more data-efficient, faster to execute, and easier to tune due to fewer, more interpretable hyperparameters.

Limitations and Future Work

Despite its efficiency, the method still faces challenges as dimensionality $d$ becomes very large (e.g., $d > 20$), where the required sample size $n$ for any non-parametric method becomes prohibitive. Furthermore, theoretical guarantees assume the true density resides in the chosen RKHS. Future research could explore non-uniform basis point selection to further enhance efficiency.

Summary updated

BibTeX
@inproceedings{sutherland2018efficient,
  author = {Danica J. Sutherland and Heiko Strathmann and Michael Arbel and Arthur Gretton},
  title = {{Efficient and principled score estimation with Nyström kernel exponential families}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=6mj5Nj-4P-},
}
Figure