Lune

NeurIPS2021Top-tier venue

Testing Probabilistic Circuits

Yash Pote, Kuldeep S. Meel

Abstract

Probabilistic circuits (PCs) are a powerful modeling framework for representing tractable probability distributions over combinatorial spaces. In machine learning and probabilistic programming, one is often interested in understanding whether the distributions learned using PCs are close to the desired distribution. Thus, given two probabilistic circuits, a fundamental problem of interest is to determine whether their distributions are close to each other. The primary contribution of this paper is a closeness test for PCs with respect to the total variation distance metric. Our algorithm utilizes two common PC queries, counting and sampling. In particular, we provide a poly-time probabilistic algorithm to check the closeness of two PCs, when the PCs support tractable approximate counting and sampling. We demonstrate the practical efficiency of our algorithmic framework via a detailed experimental evaluation of a prototype implementation against a set of 475 PC benchmarks. We find that our test correctly decides the closeness of all 475 PCs within 3600 seconds. * The accompanying tool, available open source, can be found at https://github.com/meelgroup/teq . The Appendix is available in the accompanying supplementary material. † The authors decided to forgo the old convention of alphabetical ordering of authors in favor of a randomized ordering, denoted by r . The publicly verifiable record of the randomization is available at https://www.aeaweb.org/journals/policies/random-author-order/search with confirmation code: icoxrj0sNB2L. For citation of the work, authors request that the citation guidelines by AEA for random author ordering be followed. encode non-identical distributions that are nonetheless close enough for practical purposes. Such situations may arise due to the use of approximate PC compilation [10] and sampling-based learning of PCs [26, 27] . As a concrete example, consider PCs that are learned via approximate methods such as stochastic gradient descent [27] . In such a case, PCs are likely to converge to close but nonidentical distributions. Given two such PCs, we would like to know whether they have converged to distributions close to each other. Thus, we raise the question: Does there exist an efficient algorithm to test the closeness of two PC distributions? In this work, we design the first closeness test for PCs with respect to TV distance, called Teq. Assuming the tested PCs allow poly-time approximate weighted model counting and sampling, Teq runs in polynomial time. Formally, given two PC distributions P and Q, and three parameters (ε,η,δ), for closeness(ε), farness(η), and tolerance(δ), Teq returns Accept if d T V (P, Q) ≤ ε and Reject if d T V (P, Q) ≥ η with probability at least 1 -δ. Teq makes atmost O((η -ε) -2 log(δ -1 )) calls to the sampler and exactly 2 calls to the counter.

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.

5 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 Testing of Samplers
  • Instance Dependent Testing of Samplers Using Interval Conditioning cites On Testing of Samplers
  • Instance Dependent Testing of Samplers Using Interval Conditioning cites Testing Self-Reducible Samplers
  • StarfishDB: A Query Execution Engine for Relational Probabilistic Programming cites Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuits
  • Assessing the Quality of Binomial Samplers: A Statistical Distance Framework cites On Testing of Samplers
  • Assessing the Quality of Binomial Samplers: A Statistical Distance Framework cites Testing Self-Reducible Samplers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Testing Self-Reducible SamplersRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2024 · 2 citations
  2. StarfishDB: A Query Execution Engine for Relational Probabilistic ProgrammingOuael Ben Amara, Sami Hadouaj, Niccolò MeneghettiSIGMOD 2024 · 2 citations
  3. Instance Dependent Testing of Samplers Using Interval ConditioningRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2026
  4. Assessing the Quality of Binomial Samplers: A Statistical Distance FrameworkUddalok Sarkar, Sourav Chakraborty, Kuldeep S. MeelCAV 2025
  5. Computational Explorations of Total Variation DistanceArnab Bhattacharyya, Sutanu Gayen, Kuldeep S. Meel, Dimitrios Myrisiotis et al.ICLR 2025

Builds on3

  1. Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic CircuitsRobert Peharz, Steven Lang, Antonio Vergari, Karl Stelzner et al.ICML 2020 · 155 citations
  2. On Testing of SamplersKuldeep S. Meel, Yash Pote, Sourav ChakrabortyNeurIPS 2020 · 20 citations
  3. When is approximate counting for conjunctive queries tractable?Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian RiverosSTOC 2021 · 1 citation

Related papers

  1. On Deterministically Approximating Total Variation DistanceWeiming Feng, Liqiang Liu, Tianren LiuSODA 2024 · 3 citations
  2. On the Expressive Power of Tree-Structured Probabilistic CircuitsLang Yin, Han ZhaoNeurIPS 2024 · 4 citations
  3. On the Hardness of Approximating Distributions with Tractable Probabilistic ModelsJohn Leland, YooJung ChoiNeurIPS 2025 · 2 citations
  4. Continuous Mixtures of Tractable Probabilistic ModelsAlvaro H. C. Correia, Gennaro Gala, Erik Quaeghebeur, Cassio P. de Campos et al.AAAI 2023 · 26 citations
  5. Efficient Distance Approximation for Structured High-Dimensional Distributions via LearningArnab Bhattacharyya, Sutanu Gayen, Kuldeep S. Meel, N. V. VinodchandranNeurIPS 2020 · 29 citations
Dusk over the sea between two cliffs drawn in fine vertical lines