arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14079cs.LO
收藏

测试均匀随机采样器:方法、数据集与协议

Testing Uniform Random Samplers: Methods, Datasets and Protocols

Olivier Zeyen, Maxime Cordy, Martin Gubri, Gilles Perrouin, Mathieu Acher

AI总结:

本文针对布尔公式均匀随机采样器的质量评估问题,提出含五种统计测试的框架,并通过七个采样器实验展示测试用法及输入公式对结果的影响。

摘要:

布尔公式可以紧凑地编码庞大且受约束的搜索空间。因此,可变性密集型系统通常使用布尔公式进行编码。可变性密集型系统的搜索空间通常过大,若不借助统计推断(例如测试)便无法探索。对于大多数系统而言,测试每一个有效配置在计算上代价高昂(即使并非不可能)。这导致大多数测试方法在分析配置之前先采样少量配置。此类样本的一个理想属性是均匀性:每个解都应具有相同的被选择概率。均匀性是促进统计推断的属性。这一属性推动了均匀随机采样器的设计,这类采样器依赖 SAT 求解器和计数器,并在均匀性与可扩展性之间实现不同的权衡。尽管我们可以在实践中观察它们的性能,但判断所生成样本的质量则是另一回事。评估采样器的均匀性在本质上类似于评估伪随机数生成器(PRNG)的均匀性。然而,采样要慢得多,而且采样的本质还意味着包含样本的超空间是受约束的。这意味着测试 PRNG 比测试采样器受到的约束更少。我们提出了一个框架,其中包含五种适合测试均匀随机采样器的统计测试。此外,我们通过测试七个采样器展示了它们的用法。最后,我们展示了在被测采样器中作为输入给出的布尔公式对测试结果的影响。

英文摘要:

Boolean formulae compactly encode huge, constrained search spaces. Thus, variability-intensive systems are often encoded with Boolean formulae. The search space of a variability-intensive system is usually too large to explore without statistical inference (e.g. testing). Testing every valid configuration is computationally expensive (if not impossible) for most systems. This leads most testing approaches to sample a few configurations before analyzing them. A desirable property of such samples is uniformity: Each solution should have the same selection probability. Uniformity is the property that facilitates statistical inference. This property motivated the design of uniform random samplers, relying on SAT solvers and counters and achieving different trade-offs between uniformity and scalability. Though we can observe their performance in practice, judging the quality of the generated samples is different. Assessing the uniformity of a sampler is similar in nature to assessing the uniformity of a pseudo-random number (PRNG) generator. However, sampling is much slower and the nature of sampling also implies that the hyperspace containing the samples is constrained. This means that testing PRNGs is subject to fewer constraints than testing samplers. We propose a framework that contains five statistical tests which are suited to test uniform random samplers. Moreover, we demonstrate their use by testing seven samplers. Finally, we demonstrate the influence of the Boolean formula given as input to the samplers under test on the test results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑