一句话:将 SMT 求解器调度建模为超参数优化,用贝叶斯优化与集成代理实现多求解器序列组合。
SMT 广泛用于程序验证、符号执行与测试生成,但不同求解器表现差异大,单一求解器难以稳定胜出。本文将 SMT 求解视为算法调度问题,把求解器序列建模为超参数优化问题,提出 SMTgazer:用贝叶斯优化进行黑盒搜索,并将数据集作为整体优化以获得全局鲁棒策略。方法还用无监督 X-means 聚类构建语义一致的实例组做局部训练,并以 boosting/bagging 集成增强代理模型,改善泛化并缓解过拟合。在六个真实基准上,SMTgazer 优于现有最优方法;相比 Sibyl,PAR-2 降低 44.65%,未解实例减少 69.11%,并展现鲁棒性与泛化能力。
Satisfiability Modulo Theories (SMT) plays a critical role in various software engineering applications, including program verification, symbolic execution, and automated test generation. Over the years, a wide range of SMT solvers has been developed, typically designed for general purposes or tailored to specific background theories, such as bit-vectors or nonlinear arithmetic. Due to the diversity and complexity of SMT instances, no single solver consistently outperforms others across all problem domains. This motivates the need for algorithm selection strategies that can adaptively choose solvers based on the characteristics of the instances.To overcome the limitations of single-solver selection, solving SMT as a scheduling problem, enabling a more fault-tolerant and effective use of multiple solvers in sequence. We model algorithm scheduling as a hyperparameter optimization problem, enabling efficient black-box search over solver sequences while treating the dataset as a whole, thus achieving globally optimized and robust scheduling strategies. The resulting scheduler called SMTgazer. To further enhance scheduling efficiency and solver performance, we propose two optimizations: leveraging unsupervised X-means clustering to create semantically coherent instance groups for localized model training, and augmenting the Bayesian optimization surrogate with boosting and bagging ensembles to improve generalization and mitigate overfitting, thereby yielding more reliable performance predictions for the sequential portfolio scheduler.Extensive experiments are conducted to evaluate the performance of SMTgazer, utilizing six SMT benchmarks derived from real-world applications. It shows that our approach consistently outperforms current state-of-the-art methods. Particularly, SMTgazer achieves a 44.65% reduction in PAR-2 score and 69.11% decrease in the number of unsolved instances, compared to the strongest competitor, Sibyl, demonstrating the effectiveness of formulating SMT algorithm scheduling as a hyperparameter optimization problem. We further analyze the generated scheduling sequences to uncover the design principles that explain the success of our method. Finally, we also empirically show that our approach is both robust and generalizable, and the proposed strategies are effective.
DOI 原文 ·
@inproceedings{paperbot9230,
title = {SMTgazer: Learning to Schedule SMT Algorithms via Bayesian Optimization},
author = {Chuan Luo and Shaoke Cui and Jianping Song and Xindi Zhang and Wei Wu and Chanjuan Liu and Shaowei Cai and Chunming Hu},
booktitle = {ASE},
year = {2025},
doi = {10.1109/ase63991.2025.00109}
}