arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06788cs.SEmath.OC
收藏

我们能做到多低?最小化可配置系统的交互样本

How Low Can We Go? Minimizing Interaction Samples for Configurable Systems

Dominik Krupke, Ahmad Moradi, Michael Perk, Phillip Keldenich, Gabriel Gehrke, Sebastian Krieter, Thomas Thüm, Sándor P. Fekete

AI总结:

针对可配置系统测试中交互样本优化空间不明的问题,提出基于对偶原理的框架结合近优解与可证明下界,开发的SampLNS算法在多数案例中样本更小且常可证明最优,节省测试资源。

摘要:

现代软件系统通常是可配置的,这是其广泛适用性和可复用性的基本前提。这种灵活性给质量保证带来了极大挑战,因为可能的配置数量极其庞大,逐个测试并不现实。此时可采用t-wise交互采样(即t因子交互采样)来系统覆盖配置空间并检测未知的特征交互。过去二十年间,学界研究了大量用于计算小型交互样本的算法,在一系列启发式结果上取得了进展,但这些结果还有多大提升空间始终尚不明确。\n我们取得了一项重大突破:提出了一个基于对偶数学原理的基础框架,用于将近优解与所需样本量的可证明下界相结合。这意味着我们无需再研究提升幅度甚微或毫无提升的启发式方法,而是可以通过确定剩余差距的极限来验证解的质量;在很多情况下,我们甚至能证明所得解的最优性。这一理论贡献还带来了广泛的实际改进:我们的算法SampLNS在现有文献中的47个中小型可配置系统上进行了测试。在85%的案例中,SampLNS能可靠地找到比以往方法规模更小的样本;此外,我们能在63%的所有实例中得到并证明解的最优性。这使得研究人员和从业者都能省去繁琐的样本最小化工作,并为大多数可配置系统大幅节省测试资源。

英文摘要:

Modern software systems are typically configurable, a fundamental prerequisite for wide applicability and reusability. This flexibility poses an extraordinary challenge for quality assurance, as the enormous number of possible configurations makes it impractical to test each of them separately. This is where t-wise interaction sampling can be used to systematically cover the configuration space and detect unknown feature interactions. Over the last two decades, numerous algorithms for computing small interaction samples have been studied, providing improvements for a range of heuristic results; nevertheless, it has remained unclear how much these results can still be improved. We present a significant breakthrough: a fundamental framework, based on the mathematical principle of duality, for combining near-optimal solutions with provable lower bounds on the required sample size. This implies that we no longer need to work on heuristics with marginal or no improvement, but can certify the solution quality by establishing a limit on the remaining gap; in many cases, we can even prove optimality of achieved solutions. This theoretical contribution also provides extensive practical improvements: Our algorithm SampLNS was tested on 47 small and medium-sized configurable systems from the existing literature. SampLNS can reliably find samples of smaller size than previous methods in 85% of the cases; moreover, we can achieve and prove optimality of solutions for 63% of all instances. This makes it possible to avoid cumbersome efforts of minimizing samples by researchers as well as practitioners, and substantially save testing resources for most configurable systems.

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

↑