CNF-based SAT and MaxSAT solvers are central to logic synthesis and verification systems. The increasing popularity of these constraint problems in electronic design automation encourages studies on different SAT problems and their properties for further computational efficiency. There has been both theoretical and practical success of modern Conflict-driven clause learning SAT solvers, which allows solving very large industrial instances in a relatively short amount of time. Recently, machine learning approaches provide a new dimension to solving this challenging problem. Neural symbolic models could serve as generic solvers that can be specialized for specific domains based on data without any changes to the structure of the model. In this work, we propose a one-shot model derived from the Transformer architecture to solve the MaxSAT problem, which is the optimization version of SAT where the goal is to satisfy the maximum number of clauses. Our model has a scale-free structure which could process varying size of instances. We use meta-path and self-attention mechanism to capture interactions among homogeneous nodes. We adopt cross-attention mechanisms on the bipartite graph to capture interactions among heterogeneous nodes. We further apply an iterative algorithm to our model to satisfy additional clauses, enabling a solution approaching that of an exact-SAT problem. The attention mechanisms leverage the parallelism for speedup. Our evaluation indicates improved speedup compared to heuristic approaches and improved completion rate compared to machine learning approaches.
翻译:以CNF为基础的SAT 和 MaxSAT 解决方案对于逻辑合成和核查系统至关重要。电子设计自动化中这些制约问题越来越受欢迎,这鼓励了对不同SAT问题及其特性的研究,以进一步实现计算效率。现代冲突驱动的条款学习SAT解决方案在理论和实践上都取得了成功,从而能够在相对较短的时间内解决非常大的工业案例。最近,机器学习方法为解决这一具有挑战性的问题提供了一个新的层面。神经象征模型可以作为通用解决方案,在数据基础上,在不改变模型结构的情况下,为特定领域专门设计。在这项工作中,我们建议了从变异器结构中衍生出来的一副模型,以解决最大SAT问题。这是沙特卫星的优化版本,其目标是满足最大数量的条款。我们的模型具有一个无规模的结构,可以处理不同规模的事件。我们使用元偏好和自留机制来捕捉同式节点之间的相互作用。我们在双面图上采用交叉使用机制来捕捉不同节点之间的相互作用。我们进一步对我们的模型应用一个迭代算法,以满足更多条款,从而达到最大数量的目标。我们比较其速度的方法是接近于超速化。