Assessing the Quality of Binomial Samplers: A Statistical Distance Framework
Uddalok Sarkar, Sourav Chakraborty, Kuldeep S. Meel
Abstract
Abstract Randomized algorithms depend on accurate sampling from probability distributions, as their correctness and performance hinge on the quality of the generated samples. However, even for common distributions like Binomial, exact sampling is computationally challenging, leading standard library implementations to rely on heuristics. These heuristics, while efficient, suffer from approximation and system representation errors, causing deviations from the ideal distribution. Although seemingly minor, such deviations can accumulate in downstream applications requiring large-scale sampling, potentially undermining algorithmic guarantees. In this work, we propose statistical distance as a robust metric for analyzing the quality of Binomial samplers, quantifying deviations from the ideal distribution. We derive rigorous bounds on the statistical distance for standard implementations and demonstrate the practical utility of our framework by enhancing APSEst, a DNF model counter, with improved reliability and error guarantees. To support practical adoption, we propose an interface extension that allows users to control and monitor statistical distance via explicit input/output parameters. Our findings emphasize the critical need for thorough and systematic error analysis in sampler design. As the first work to focus exclusively on Binomial samplers, our approach lays the groundwork for extending rigorous analysis to other common distributions, opening avenues for more robust and reliable randomized algorithms.
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.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Testing Self-Reducible Samplers cites On Testing of Samplers
- Testing Self-Reducible Samplers cites On Scalable Testing of Samplers
- Testing Self-Reducible Samplers cites Testing Probabilistic Circuits
- On Scalable Testing of Samplers cites On Testing of Samplers
- Testing Probabilistic Circuits cites On Testing of Samplers
Cited by top-tier papers1
Builds on4
- On Testing of SamplersKuldeep S. Meel, Yash Pote, Sourav ChakrabortyNeurIPS 2020 · 20 citations
- Testing Probabilistic CircuitsYash Pote, Kuldeep S. MeelNeurIPS 2021 · 10 citations
- On Scalable Testing of SamplersYash Pote, Kuldeep S. MeelNeurIPS 2022 · 8 citations
- Testing Self-Reducible SamplersRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2024 · 2 citations
Related papers
- Instance Dependent Testing of Samplers Using Interval ConditioningRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2026
- Verifying Exact Samplers for Continuous Distributions with a Discrete Program LogicMarkus de Medeiros, Puming Liu, Kwing Hei Li, Alejandro Aguirre et al.LICS 2026
- Probabilistic Precision and Recall Towards Reliable Evaluation of Generative ModelsDogyun Park, Suhyun KimICCV 2023 · 12 citations
- Partial (In)Completeness in abstract interpretation: limiting the imprecision in program analysisMarco Campion, Mila Dalla Preda, Roberto GiacobazziPOPL 2022 · 21 citations
- TestMC: Testing Model Counters using Differential and Metamorphic TestingMuhammad Usman, Wenxi Wang, Sarfraz KhurshidASE 2020 · 9 citations
