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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itBuilds 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
- Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and SamplingMate Soos, Stephan Gocht, Kuldeep S. MeelCAV 2020 · 102 citations
