Tolerant Testing of High-Dimensional Samplers with Subcube Conditioning

Gunjan Kumar, Kuldeep S. Meel, Yash Pote · OpenReview

Introduction

Estimating the statistical distance between high-dimensional distributions is a fundamental challenge in generative AI and probabilistic programming. Specifically, calculating the Total Variation (TV) distance for distributions over $n$ bits typically requires an exponential number of samples—roughly $2^n/n$—due to the "curse of dimensionality." This makes testing distributions with even 70 dimensions physically impossible using standard black-box sampling.

The SUBCOND Model

To address this, the authors leverage the SUBCOND (Subcube Conditional) query model. Unlike standard sampling, this model allows an algorithm to request samples conditioned on specific dimensions being fixed (e.g., "provide a sample where the first five bits are 10110"). This model accurately reflects the behavior of autoregressive models like Large Language Models (LLMs) and Markov Chain Monte Carlo (MCMC) algorithms.

Methodology: The DistEstimate Algorithm

The proposed algorithm, DistEstimate, utilizes two primary techniques to achieve polynomial query complexity:

  1. Chain Rule Decomposition: The probability of a high-dimensional string is decomposed into a product of conditional marginals. The SUBCOND oracle is used to estimate these individual terms efficiently through a routine called SubToEval.
  2. Distribution Taming: To handle near-zero probabilities that could cause query complexity to explode, the algorithm "tames" the distributions by ensuring no conditional probability falls below a threshold ($\epsilon/8n$). This modification maintains an estimate within the desired tolerance.

The resulting complexity is $\tilde{O}(n^3/\epsilon^5)$, a significant improvement over exponential baselines.

Experimental Evaluation

The authors tested DistEstimate on both scalable random Boolean functions and real-world benchmarks from the ISCAS89 dataset. They compared the distance between distributions generated by state-of-the-art combinatorial samplers, STS and CMSGen.

Comparison of query complexity between classical sample-based estimators and DistEstimate across dimensions.

Key Results

DistEstimate demonstrates a massive theoretical and practical speedup. For $n=70$ dimensions, the algorithm requires approximately $10^7$ times fewer queries than non-conditional estimators, effectively bypassing the exponential growth that cripples traditional methods.

Empirical performance of DistEstimate on ISCAS89 benchmarks using STS and CMSGen samplers.

Empirical tests on benchmarks up to $n=37$ dimensions showed that the algorithm consistently finished within a 24-hour window, providing estimates within the specified tolerance ($\pm 0.3$) of the ground truth. This confirms that the SUBCOND model provides the necessary leverage to bypass traditional sampling limits.

Conclusion and Future Work

While DistEstimate represents a major breakthrough by achieving polynomial query complexity, a gap remains between the $O(n^3)$ upper bound and the known $\Omega(n/\log n)$ lower bound. Future work may also address the linear scaling with alphabet size, which could be a bottleneck for models with very large vocabularies. Regardless, this work bridges the gap between theoretical distance estimation and the practical needs of modern high-dimensional generative modeling.

Summary updated

BibTeX
@inproceedings{kumar2025tolerant,
  author = {Gunjan Kumar and Kuldeep S. Meel and Yash Pote},
  title = {{Tolerant Testing of High-Dimensional Samplers with Subcube Conditioning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=qDvOgPTtMe},
}
Figure