Papers
Topics
Authors
Recent
Search
2000 character limit reached

Nyström KSD Estimator

Updated 23 February 2026
  • The technique leverages Nyström landmarks to project kernel Stein discrepancy estimates, maintaining √n-consistency under sub-Gaussian assumptions.
  • It reduces computational complexity from quadratic to near-linear by evaluating the kernel on a small subset of samples.
  • Empirical benchmarks show that its statistical power closely matches full KSD tests while enabling scalable goodness-of-fit testing.

The Nyström Kernel Stein Discrepancy (Nyström-KSD) estimator is a computationally efficient technique for assessing the goodness-of-fit between a sample distribution and a target density known up to a normalization constant. It accelerates the canonical quadratic-time kernel Stein discrepancy (KSD) statistic using a low-rank projection based on Nyström landmarks. This estimator maintains n\sqrt n-consistency under sub-Gaussian assumptions while dramatically reducing time and memory complexity, enabling large-scale goodness-of-fit testing in high-dimensional settings (Kalinke et al., 2024).

1. Kernel Stein Discrepancy: Foundation and Quadratic Bottleneck

Let PP denote a target probability density pp on Rd\mathbb{R}^d known up to normalization, and QQ a data distribution. The base kernel kk (e.g., Gaussian or IMQ) with RKHS Hk\mathcal{H}_k and feature map ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x) yields the Langevin Stein operator:

(Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))

for fHkdf \in \mathcal{H}_k^d. This operator satisfies:

PP0

where the Stein feature vector is

PP1

The induced Stein kernel is

PP2

The population KSD is thus

PP3

As PP4, it follows that PP5.

Given samples PP6, two classical estimators are used:

  • V-statistic:

PP7

  • U-statistic (unbiased):

PP8

Both approaches require construction and summation over the PP9 matrix pp0, resulting in pp1 time and memory, which is prohibitive for pp2 (Kalinke et al., 2024).

2. Nyström-Based KSD Estimation

2.1 Nyström Landmarks and Subspace Construction

The Nyström-KSD approach projects the empirical mean embedding

pp3

onto a subspace spanned by pp4 randomly selected "Nyström points." These are pp5, where the pp6 are chosen with replacement from pp7.

Define

pp8

Equivalently, in pp9,

Rd\mathbb{R}^d0

Projection of the empirical mean embedding onto this subspace yields the estimator.

2.2 Projection Formula and Computation

The projected mean is

Rd\mathbb{R}^d1

where Rd\mathbb{R}^d2. Its squared norm is

Rd\mathbb{R}^d3

with

Rd\mathbb{R}^d4

and Rd\mathbb{R}^d5 is the Moore–Penrose pseudoinverse.

Pseudocode

1

The time is dominated by Rd\mathbb{R}^d6 evaluations for Rd\mathbb{R}^d7 and Rd\mathbb{R}^d8 for the pseudo-inverse.

3. Computational and Memory Complexity

Estimator Time Complexity Memory Requirement
Quadratic-time KSD (V/U) Rd\mathbb{R}^d9 QQ0
Nyström-KSD QQ1 QQ2

For QQ3, Nyström-KSD achieves a strictly sub-quadratic runtime and memory. When QQ4, the cost becomes near-linear in QQ5, representing significant acceleration in large-scale applications (Kalinke et al., 2024).

4. Statistical Accuracy and QQ6-Consistency

Under Assumption A (the Stein features QQ7 are sub-Gaussian in QQ8), the Nyström-KSD estimator achieves a QQ9-rate:

Theorem 4.1 (kk0-consistency):

Let kk1 with kk2. For regularization parameter kk3, kk4, and kk5, with probability at least kk6,

kk7

where kk8.

If kk9 (polynomial decay, Hk\mathcal{H}_k0) or Hk\mathcal{H}_k1 (exponential decay), then setting Hk\mathcal{H}_k2 yields Hk\mathcal{H}_k3 estimation error, matching the quadratic estimator rate at sub-quadratic cost.

Proof Sketch:

Three contributions to the deviation are bounded: empirical mean error (Hk\mathcal{H}_k4 by Hilbert-space Bernstein), projection bias (Hk\mathcal{H}_k5 by operator-valued Bernstein), and subsampling error (analyzed via conditional concentration and sub-Gaussian tail bounds). Setting Hk\mathcal{H}_k6 balances the bias-variance tradeoff (Kalinke et al., 2024).

5. Implementation Recommendations

  • Choice of Hk\mathcal{H}_k7 (number of Nyström landmarks): For spectra with Hk\mathcal{H}_k8, Hk\mathcal{H}_k9 ensures ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)0 error. In empirical work, ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)1 or ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)2 yielded favorable results.
  • Kernel selection and tuning: For smooth distributions, the Gaussian kernel ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)3 with the "median heuristic" for ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)4 is effective. For heavy-tailed alternatives, the non-stationary IMQ kernel ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)5 with ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)6 generally increases test power. Parameters ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)7 can be set using median-distance heuristics or other established routines.
  • Algorithmic behavior: Landmarks are drawn uniformly (with replacement) from the data indices; increased ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)8 improves approximation but incurs higher cost.

6. Empirical Benchmarking and Comparative Performance

Kalinke et al. (2024) compared Nyström-KSD ("N-KSD") against:

  • Quadratic-time KSD with Gaussian and IMQ kernels,
  • Finite-set Stein discrepancy (FSSD-rand, FSSD-opt; linear time),
  • Random-feature Stein discrepancies (L¹-IMQ, L²-SechExp; near-linear time).

Test settings included Laplace vs. Normal (ϕk(x)=k(,x)\phi_k(x) = k(\cdot, x)9, (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))0 up to (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))1), Student-(Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))2 vs. Normal ((Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))3 up to (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))4), and non-normalized RBM goodness-of-fit ((Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))5). N-KSD (with (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))6) was orders of magnitude faster than full KSD and, for small (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))7, the fastest among all approaches. In statistical power, N-KSD closely matched full KSD (especially with IMQ kernel) and robustly outperformed other fast Stein discrepancy approximations in all tested dimensions (Kalinke et al., 2024).

The Nyström approximation traces to Williams and Seeger (2001) for kernel acceleration, while classical KSD tests stem from Chwialkowski et al. (2016) and Liu et al. (2016). This estimator leverages tools from operator concentration (Koltchinskii and Lounici, 2017) for statistical analysis. Its main innovation is enabling (Tpf)(x)=xlogp(x),f(x)+trace(xf(x))(T_p f)(x) = \langle \nabla_x \log p(x), f(x) \rangle + \mathrm{trace}(\nabla_x f(x))8-consistent KSD-based inference with subquadratic complexity, bridging kernel Stein methods and scalable approximation strategies for reproducing kernel Hilbert spaces.


References:

Kalinke et al., "Nyström Kernel Stein Discrepancy" (Kalinke et al., 2024); Chwialkowski et al. (2016); Liu et al. (2016); Williams & Seeger (2001); Koltchinskii & Lounici (2017).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Nyström KSD Estimator.