arXiv:2501.15392cs.SEcs.AI2025-01中稿 · ICSE 2025被引 11

用神经网络双层优先级加速配置性能缺陷检测

Faster Configuration Performance Bug Testing with Neural Dual-level Prioritization

  • 通过两个神经语言模型,从选项和取值范围两层预测缺陷可能性
  • 在多个系统上比现有工具快88.88倍,87%情况下准确识别缺陷类型
  • 适合需要高效测试复杂系统配置的开发者和测试工程师

随着软件系统日益复杂和可配置,配置设计常引发性能问题,即配置性能缺陷(CPBug),这类问题往往隐蔽且严重。现有测试工具因测试目标难设定、配置测量成本高及配置组合过多,效率低下或效果不佳。本文提出 NDP 框架,利用两个神经语言模型:一个用于自动估计缺陷类型作为测试目标,另一个用于推断配置选项与缺陷相关的概率,从而在选项和取值范围层面实现优先级排序。实验表明,在多个不同版本的广泛应用系统上,NDP 能在 87% 的情况下更准确预测缺陷类型,并在有限预算下以最高 88.88 倍的速度提升发现更多 CPBug。

原文摘要 · Abstract (English)

As software systems become more complex and configurable, more performance problems tend to arise from the configuration designs. This has caused some configuration options to unexpectedly degrade performance which deviates from their original expectations designed by the developers. Such discrepancies, namely configuration performance bugs (CPBugs), are devastating and can be deeply hidden in the source code. Yet, efficiently testing CPBugs is difficult, not only due to the test oracle is hard to set, but also because the configuration measurement is expensive and there are simply too many possible configurations to test. As such, existing testing tools suffer from lengthy runtime or have been ineffective in detecting CPBugs when the budget is limited, compounded by inaccurate test oracle. In this paper, we seek to achieve significantly faster CPBug testing by neurally prioritizing the testing at both the configuration option and value range levels with automated oracle estimation. Our proposed tool, dubbed NDP, is a general framework that works with different heuristic generators. The idea is to leverage two neural language models: one to estimate the CPBug types that serve as the oracle while, more vitally, the other to infer the probabilities of an option being CPBug-related, based on which the options and the value ranges to be searched can be prioritized. Experiments on several widely-used systems of different versions reveal that NDP can, in general, better predict CPBug type in 87% cases and find more CPBugs with up to 88.88x testing efficiency speedup over the state-of-the-art tools.

性能测试神经网络配置缺陷

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。