Saved in:
Bibliographic Details
Main Authors: Zeyen, Olivier, Cordy, Maxime, Gubri, Martin, Perrouin, Gilles, Acher, Mathieu
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.14079
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917959521271808
author Zeyen, Olivier
Cordy, Maxime
Gubri, Martin
Perrouin, Gilles
Acher, Mathieu
author_facet Zeyen, Olivier
Cordy, Maxime
Gubri, Martin
Perrouin, Gilles
Acher, Mathieu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_14079
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Testing Uniform Random Samplers: Methods, Datasets and Protocols
Zeyen, Olivier
Cordy, Maxime
Gubri, Martin
Perrouin, Gilles
Acher, Mathieu
Logic in Computer Science
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.
title Testing Uniform Random Samplers: Methods, Datasets and Protocols
topic Logic in Computer Science
url https://arxiv.org/abs/2503.14079