On Scalable Testing of Samplers

Yash Pote, Kuldeep S. Meel
2/12/2026

No official code found. Best implementation: meelgroup/barbarik (14 stars, MIT, last commit 2025-03-27).

Abstract

In this paper we study the problem of testing of constrained samplers over high-dimensional distributions with $(\varepsilon,\eta,\delta)$ guarantees. Samplers are increasingly used in a wide range of safety-critical ML applications, and hence the testing problem has gained importance. For $n$-dimensional distributions, the existing state-of-the-art algorithm, $\mathsf{Barbarik2}$, has a worst case query complexity of exponential in $n$ and hence is not ideal for use in practice. Our primary contribution is an exponentially faster algorithm that has a query complexity linear in $n$ and hence can easily scale to larger instances. We demonstrate our claim by implementing our algorithm and then comparing it against $\mathsf{Barbarik2}$. Our experiments on the samplers $\mathsf{wUnigen3}$ and $\mathsf{wSTS}$, find that $\mathsf{Barbarik3}$ requires $10\times$ fewer samples for $\mathsf{wUnigen3}$ and $450\times$ fewer samples for $\mathsf{wSTS}$ as compared to $\mathsf{Barbarik2}$.

View on arXivView PDF

Code Implementations(1)

meelgroup/barbarikCommunity100%
MIT

The first efficient procedure to test whether a sampler is uniform

141PythonNov 11, 20181 years agoMIT
musesatisfiabilityuniform-distributionunigen

Similar Papers

Cite this paper

@article{pote2026scalable,
  title  = {On Scalable Testing of Samplers},
  author = {Yash Pote and Kuldeep S. Meel},
  year   = {2026},
  eprint = {2306.13958},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.13958},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.13958.svg)](https://codeofpaper.com/paper/2306.13958)

Discussion