Testing Self-Reducible Samplers
Document Type
Conference Article
Publication Title
Proceedings of the Aaai Conference on Artificial Intelligence
Abstract
Samplers are the backbone of the implementations of any randomised algorithm. Unfortunately, obtaining an efficient algorithm to test the correctness of samplers is very hard to find. Recently, in a series of works, testers like Barbarik, Teq, Flash for testing of some particular kinds of samplers, like CNF-samplers and Horn-samplers, were obtained. But their techniques have a significant limitation because one can not expect to use their methods to test for other samplers, such as perfect matching samplers or samplers for sampling linear extensions in posets. In this paper, we present a new testing algorithm that works for such samplers and can estimate the distance of a new sampler from a known sampler (say, uniform sampler). Testing the identity of distributions is the heart of testing the correctness of samplers. This paper's main technical contribution is developing a new distance estimation algorithm for distributions over high-dimensional cubes using the recently proposed sub-cube conditioning sampling model. Given subcube conditioning access to an unknown distribution P, and a known distribution Q defined over {0, 1}n, our algorithm CubeProbeEst estimates the variation distance between P and Q within additive error ζ using O(n2/ζ4) subcube conditional samples from P. Following the testing-via-learning paradigm, we also get a tester which distinguishes between the cases when P and Q are ε-close or η-far in variation distance with probability at least 0.99 using O(n2/(η − ε)4) subcube conditional samples. The estimation algorithm in the sub-cube conditioning sampling model helps us to design the first tester for self-reducible samplers. The correctness of the testers is formally proved. On the other hand, we implement our algorithm to create CubeProbeEst and use it to test the quality of three samplers for sampling linear extensions in posets.
First Page
7952
Last Page
7960
DOI
10.1609/aaai.v38i8.28632
Publication Date
3-25-2024
Recommended Citation
Bhattacharyya, Rishiraj; Chakraborty, Sourav; Pote, Yash; Sarkar, Uddalok; and Sen, Sayantan, "Testing Self-Reducible Samplers" (2024). Conference Articles. 902.
https://digitalcommons.isical.ac.in/conf-articles/902
Comments
Open Access; Green Open Access