AutoSAT: Automatically Optimize SAT Solvers via Large Language Models

Yiwen Sun, Furong Ye, Xianyin Zhang, Shiyu Huang, Bingzhen Zhang +2 more
2/16/2024
cs.AI

No official code found. Best implementation: YiwenAI/AutoSAT (30 stars, MIT, last commit 2024-12-08).

Abstract

Conflict-Driven Clause Learning (CDCL) is the mainstream framework for solving the Satisfiability problem (SAT), and CDCL solvers typically rely on various heuristics, which have a significant impact on their performance. Modern CDCL solvers, such as MiniSat and Kissat, commonly incorporate several heuristics and select one to use according to simple rules, requiring significant time and expert effort to fine-tune in practice. The pervasion of Large Language Models (LLMs) provides a potential solution to address this issue. However, generating a CDCL solver from scratch is not effective due to the complexity and context volume of SAT solvers. Instead, we propose AutoSAT, a framework that automatically optimizes heuristics in a pre-defined modular search space based on existing CDCL solvers. Unlike existing automated algorithm design approaches focusing on hyperparameter tuning and operator selection, AutoSAT can generate new efficient heuristics. In this first attempt at optimizing SAT solvers using LLMs, several strategies including the greedy hill climber and (1+1) Evolutionary Algorithm are employed to guide LLMs to search for better heuristics. Experimental results demonstrate that LLMs can generally enhance the performance of CDCL solvers. A realization of AutoSAT outperforms MiniSat on 9 out of 12 datasets and even surpasses the state-of-the-art hybrid solver Kissat on 4 datasets.

View on arXivView PDF

Code Implementations(1)

YiwenAI/AutoSATCommunity100%
MIT
307Shell, PythonMar 14, 20241 years agoMIT

Similar Papers

Cite this paper

@article{sun2024autosat,
  title  = {AutoSAT: Automatically Optimize SAT Solvers via Large Language Models},
  author = {Yiwen Sun and Furong Ye and Xianyin Zhang and Shiyu Huang and Bingzhen Zhang and Ke Wei and Shaowei Cai},
  year   = {2024},
  eprint = {2402.10705},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10705v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.10705.svg)](https://codeofpaper.com/paper/2402.10705)

Discussion