面向SMT策略合成的分层分阶段蒙特卡洛树搜索
Layered and Staged Monte Carlo Tree Search for SMT Strategy Synthesis
AI总结:
本文提出基于分层分阶段蒙特卡洛树搜索的SMT策略自动合成方法Z3alpha,以低成本高效探索策略空间,在多个基准上超越FastSMT、默认Z3和CVC5。
摘要:
现代SMT求解器(如Z3)提供用户可控的策略,使用户能够为其独特的实例集定制求解策略,从而大幅提升求解器在其使用场景下的性能。然而,这种策略定制方法带来了一个重大挑战:为某一类SMT实例手工设计优化策略,对求解器开发者和用户而言仍然是一项复杂且困难的任务。本文通过一种新颖的基于蒙特卡洛树搜索(MCTS)的方法来解决SMT策略自动合成问题。我们的方法将策略合成视为一个序贯决策过程,其搜索树对应于策略空间,并利用MCTS在这一庞大的搜索空间中进行导航。使我们的方法能够在保持低成本的同时识别有效策略的关键创新在于分层和分阶段MCTS搜索的思想。这些新颖的启发式方法允许对策略空间进行更深层、更高效的探索,使我们能够合成出比最先进(SOTA)SMT求解器中的默认策略更有效的策略。我们将该方法实现为Z3 SMT求解器的一部分,命名为Z3alpha。通过在六个重要的SMT逻辑上进行广泛评估,Z3alpha在大多数基准测试上展现出优于SOTA合成工具FastSMT、默认Z3求解器以及CVC5求解器的性能。值得注意的是,在一个具有挑战性的QF_BV基准测试集上,Z3alpha比Z3 SMT求解器中的默认策略多求解了42.7%的实例。
英文摘要:
Modern SMT solvers, such as Z3, offer user-controllable strategies, enabling users to tailor solving strategies for their unique set of instances, thus dramatically enhancing solver performance for their use case. However, this approach of strategy customization presents a significant challenge: handcrafting an optimized strategy for a class of SMT instances remains a complex and demanding task for both solver developers and users alike. In this paper, we address this problem of automatic SMT strategy synthesis via a novel Monte Carlo Tree Search (MCTS) based method. Our method treats strategy synthesis as a sequential decision-making process, whose search tree corresponds to the strategy space, and employs MCTS to navigate this vast search space. The key innovations that enable our method to identify effective strategies, while keeping costs low, are the ideas of layered and staged MCTS search. These novel heuristics allow for a deeper and more efficient exploration of the strategy space, enabling us to synthesize more effective strategies than the default ones in state-of-the-art (SOTA) SMT solvers. We implement our method, dubbed Z3alpha, as part of the Z3 SMT solver. Through extensive evaluations across six important SMT logics, Z3alpha demonstrates superior performance compared to the SOTA synthesis tool FastSMT, the default Z3 solver, and the CVC5 solver on most benchmarks. Remarkably, on a challenging QF_BV benchmark set, Z3alpha solves 42.7% more instances than the default strategy in the Z3 SMT solver.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。