arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.03753cs.LOcs.AIcs.LG
收藏

基于强化学习的CDCL SAT求解器重置策略

A Reinforcement Learning based Reset Policy for CDCL SAT Solvers

University of Waterloo(滑铁卢大学)

Chunxiao Li, Charlie Liu, Jonathan Chung, Zhengyang Lu, Piyush Jha, Vijay Ganesh

AI总结:

本文将CDCL SAT求解器的重置触发问题建模为多臂老虎机问题,提出基于UCB和Thompson sampling的强化学习自适应重置策略,并引入部分重置概念,实验证明该方法显著提升了求解性能。

摘要:

重启策略是现代冲突驱动子句学习(CDCL)求解器中使用的一项重要技术,在求解器运行期间,某些求解器状态会在特定间隔被擦除。在大多数求解器中,变量活动度在重启边界处会被保留,导致求解器继续搜索赋值树中距离重启前不远的部分。为了使求解器能够搜索赋值树中可能“遥远”的部分,我们研究了重置的效果,这是重启的一种变体,不仅擦除赋值轨迹,还在重置后随机化输入公式变量的活动度得分,从而可能实现对搜索空间的更好全局探索。在本文中,我们将是否触发重置的问题建模为多臂老虎机(MAB)问题,并提出了两种基于强化学习(RL)的自适应重置策略,分别使用上置信界(UCB)和Thompson sampling算法。这两种算法通过在求解器运行期间根据估计的奖励自适应地选择摇臂(重置与不重置)来平衡探索-利用权衡。我们在四个基线SOTA CDCL求解器中实现了重置策略,并在Satcoin基准和SAT竞赛实例上比较了基线与重置版本。结果表明,基于RL的重置版本在Satcoin和SAT竞赛实例上均优于相应的基线求解器,表明我们的RL策略有助于针对任何给定输入实例动态且有利地调整重置频率。我们还引入了部分重置的概念,即在重置边界处至少保留常数数量的变量活动度。基于先前结果,我们证明了O(1)与Ω(n)长度部分重置之间存在指数级分离。

英文摘要:

Restart policy is an important technique used in modern Conflict-Driven Clause Learning (CDCL) solvers, wherein some parts of the solver state are erased at certain intervals during the run of the solver. In most solvers, variable activities are preserved across restart boundaries, resulting in solvers continuing to search parts of the assignment tree that are not far from the one immediately prior to a restart. To enable the solver to search possibly "distant" parts of the assignment tree, we study the effect of resets, a variant of restarts which not only erases the assignment trail, but also randomizes the activity scores of the variables of the input formula after reset, thus potentially enabling a better global exploration of the search space. In this paper, we model the problem of whether to trigger reset as a multi-armed bandit (MAB) problem, and propose two reinforcement learning (RL) based adaptive reset policies using the Upper Confidence Bound (UCB) and Thompson sampling algorithms. These two algorithms balance the exploration-exploitation tradeoff by adaptively choosing arms (reset vs. no reset) based on their estimated rewards during the solver's run. We implement our reset policies in four baseline SOTA CDCL solvers and compare the baselines against the reset versions on Satcoin benchmarks and SAT Competition instances. Our results show that RL-based reset versions outperform the corresponding baseline solvers on both Satcoin and the SAT competition instances, suggesting that our RL policy helps to dynamically and profitably adapt the reset frequency for any given input instance. We also introduce the concept of a partial reset, where at least a constant number of variable activities are retained across reset boundaries. Building on previous results, we show that there is an exponential separation between O(1) vs. $Ω(n)$-length partial resets.

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

↑