Lune

NeurIPS2020Top-tier venue

On Testing of Samplers

Kuldeep S. Meel, Yash Pote, Sourav Chakraborty

Abstract

Given a set of items F\mathcal{F} and a weight function wt:F↦(0,1)\mathtt{wt}: \mathcal{F} \mapsto (0,1), the problem of sampling seeks to sample an item proportional to its weight. Sampling is a fundamental problem in machine learning. The daunting computational complexity of sampling with formal guarantees leads designers to propose heuristics-based techniques for which no rigorous theoretical analysis exists to quantify the quality of generated distributions. This poses a challenge in designing a testing methodology to test whether a sampler under test generates samples according to a given distribution. Only recently, Chakraborty and Meel (2019) designed the first scalable verifier, called Barbarik1, for samplers in the special case when the weight function wt\mathtt{wt} is constant, that is, when the sampler is supposed to sample uniformly from F\mathcal{F} . The techniques in Barbarik1, however, fail to handle general weight functions. The primary contribution of this paper is an affirmative answer to the above challenge: motivated by Barbarik1 but using different techniques and analysis, we design Barbarik2 an algorithm to test whether the distribution generated by a sampler is ε\varepsilon-close or η\eta-far from any target distribution. In contrast to black-box sampling techniques that require a number of samples proportional to ∣F∣|\mathcal{F}| , Barbarik2 requires only O~(tilt(wt,φ)2/η(η−6ε)3)\tilde{O}(tilt(\mathtt{wt},\varphi)^2/\eta(\eta - 6\varepsilon)^3) samples, where the tilttilt is the maximum ratio of weights of two satisfying assignments. Barbarik2 can handle any arbitrary weight function. We present a prototype implementation of Barbarik2 and use it to test three state-of-the-art samplers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Testing Self-Reducible Samplers cites On Scalable Testing of Samplers
  • Testing Self-Reducible Samplers cites Testing Probabilistic Circuits
  • Monotonicity Testing of High-Dimensional Distributions with Subcube Conditioning cites Testing Self-Reducible Samplers
  • Monotonicity Testing of High-Dimensional Distributions with Subcube Conditioning cites On Scalable Testing of Samplers
  • Monotonicity Testing of High-Dimensional Distributions with Subcube Conditioning cites Tight Lower Bound on Equivalence Testing in Conditional Sampling Model
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Testing Probabilistic CircuitsYash Pote, Kuldeep S. MeelNeurIPS 2021 · 10 citations
  2. On Scalable Testing of SamplersYash Pote, Kuldeep S. MeelNeurIPS 2022 · 8 citations
  3. Testing Self-Reducible SamplersRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2024 · 2 citations
  4. Monotonicity Testing of High-Dimensional Distributions with Subcube ConditioningDeeparnab Chakrabarty, Xi Chen, Simeon Ristic, C. Seshadhri et al.STOC 2025 · 2 citations
  5. Tight Lower Bound on Equivalence Testing in Conditional Sampling ModelDiptarka Chakraborty, Sourav Chakraborty, Gunjan KumarSODA 2024 · 1 citation

Related papers

  1. Instance Dependent Testing of Samplers Using Interval ConditioningRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2026
  2. Sampling weights of deep neural networksErik Lien Bolager, Iryna Burak, Chinmay Datar, Qing Sun et al.NeurIPS 2023 · 36 citations
  3. Baital: an adaptive weighted sampling approach for improved t-wise coverageEduard Baranov, Axel Legay, Kuldeep S. MeelFSE 2020 · 40 citations
  4. Replicable Uniformity TestingSihan Liu, Christopher YeNeurIPS 2024 · 6 citations
  5. Approximating a Distribution Using Weight QueriesNadav Barak, Sivan SabatoICML 2021
Dusk over the sea between two cliffs drawn in fine vertical lines