arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14328cs.SE
收藏

SolSearch:一个由 LLM 驱动、用于高效 SAT 求解代码生成的框架

SolSearch: An LLM-Driven Framework for Efficient SAT-Solving Code Generation

Junjie Sheng, Yanqiu Lin, Jiehao Wu, Yanhong Huang, Jianqi Shi, Min Zhang, Xiangfeng Wang

AI总结:

本文提出 SolSearch 框架,通过 LLM 基于课程的试错迭代自动生成和优化 SAT 求解器代码,以即插即用方式提升求解性能,并在通用基准及 Z3 上验证效果。

摘要:

可满足性(Satisfiability,SAT)问题是一项核心挑战,在软件工程中具有重要应用,包括自动化测试、配置管理和程序验证。本文提出 SolSearch,这是一个利用大语言模型(LLM)自动发现并优化 SAT 求解策略的新颖框架。借助基于课程的试错过程,SolSearch 使 LLM 能够迭代地修改并生成 SAT 求解器代码,从而提升求解效率与性能。这种自动化 SAT 求解范式具有即插即用的优势,可与任意 SAT 求解器集成,并加快新 SAT 求解器(新方法)的开发或设计过程。我们的初步实验结果令人鼓舞,表明这种由 LLM 驱动的范式在通用 SAT 基准测试上改进了最先进的 SAT 求解器,并显著增强了广泛使用的 Z3 求解器的性能(PAR-2 得分提升 11%)。这些结果凸显了使用 LLM 驱动方法提升求解器在现实软件工程挑战中的适应性和有效性的潜力。本文还讨论了进一步完善和验证该方法的未来研究方向,为将 AI 与传统软件工程任务相结合提供了一条有前景的途径。

英文摘要:

The Satisfiability (SAT) problem is a core challenge with significant applications in software engineering, including automated testing, configuration management, and program verification. This paper presents SolSearch, a novel framework that harnesses large language models (LLMs) to discover and optimize SAT-solving strategies automatically. Leveraging a curriculum-based, trial-and-error process, SolSearch enables the LLM to iteratively modify and generate SAT solver code, thereby improving solving efficiency and performance. This automated SAT-solving paradigm has the advantage of being plug-and-play, allowing integration with any SAT solver and accelerating the development or design process of new SAT solvers (new methods). Our preliminary experimental results are encouraging by demonstrating that the LLM-powered paradigm improves state-of-the-art SAT solvers on general SAT benchmarks and significantly enhances the performance of the widely used Z3 solver (11\% on PAR-2 score). These results highlight the potential for using LLM-driven methods to advance solver adaptability and effectiveness in real-world software engineering challenges. Future research directions are discussed to further refine and validate this approach, offering a promising avenue for integrating AI with traditional software engineering tasks.

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

↑