Extracting Problem Structure with LLMs for Optimized SAT Local Search
André Schidler, Stefan Szeider
TL;DR
The paper tackles the problem of enhancing SAT solving by exploiting structure in problem encodings. It introduces a two-phase, LLM-driven pipeline that analyzes PySAT encodings to automatically generate encoding-specific local search procedures that seed CDCL solvers, with correctness guarantees and cross-instance applicability. Evaluations on Graph Coloring, Directed Feedback Vertex Set, and Bounded Depth Decision Trees demonstrate that encoding-aware preprocessing can outperform baseline preprocessing on hard instances, though performance varies by encoding and model. The work highlights the potential of automated, structure-aware algorithm generation and points to future directions in model distillation, diversity metrics, and deeper encoding comprehension to further boost practical SAT solving performance.
Abstract
Local search preprocessing makes Conflict-Driven Clause Learning (CDCL) solvers faster by providing high-quality starting points and modern SAT solvers have incorporated this technique into their preprocessing steps. However, these tools rely on basic strategies that miss the structural patterns in problems. We present a method that applies Large Language Models (LLMs) to analyze Python-based encoding code. This reveals hidden structural patterns in how problems convert into SAT. Our method automatically generates specialized local search algorithms that find these patterns and use them to create strong initial assignments. This works for any problem instance from the same encoding type. Our tests show encouraging results, achieving faster solving times compared to baseline preprocessing systems.
