This 2004 paper from the University of Washington is a foundational piece of research in the field of Boolean satisfiability (SAT). It bridges the gap between the theoretical "proof complexity" of SAT solvers and their practical performance, explaining why clause learning is so effective and how we can make it even better.
TL;DR
The authors provide the first formal characterization of clause learning as a mathematical proof system, proving it is exponentially more powerful than standard DPLL. They demonstrate that by using high-level problem structure (like graphs) to guide branching decisions, solvers can achieve exponential speedups on previously intractable problems.
What Problem Does This Paper Address?
Modern SAT solvers are incredibly fast, but for a long time, we didn't fully understand why. Most are based on the DPLL algorithm, a depth-first search through possible variable assignments. The "secret sauce" that made them practical for real-world hardware verification and planning was clause learning—the ability to record "conflict clauses" to avoid repeating the same mistakes.
However, theoretical gaps remained:
- Power: How does clause learning compare to other formal proof systems like Resolution (RES)?
- Guidance: Clause learning is highly sensitive to the order in which variables are chosen (branching). Can we use the original, high-level description of a problem (which is usually lost when converted to a flat list of logic constraints) to pick a better order?
Methods
The authors tackle these questions through both theoretical analysis and empirical experimentation.
Theoretical Framework
They define a formal proof system, CL, to represent clause learning. To compare CL to other systems, they use the concept of proof complexity: the size of the shortest possible proof of unsatisfiability for a given formula.
- FirstNewCut: They introduce a new learning scheme specifically designed to prove that CL can provide exponentially shorter proofs than many traditional refinements of resolution.
- Restarts: They show that a variant of clause learning (CL--) combined with unlimited restarts is as powerful as general Resolution (RES).
Structural Guidance
The authors argue that when we convert a high-level problem (like a scheduling task or a circuit design) into Conjunctive Normal Form (CNF), we lose vital structural information. They propose using the original high-level description (e.g., a task dependency graph) to generate a branching sequence. This sequence tells the solver which variables to prioritize to ensure it learns the most "useful" clauses first.
Datasets
The paper evaluates these ideas on three specific types of formulas known for their distinct structural properties:
- Grid Pebbling Formulas: Based on pyramid-shaped graphs; these are easy for resolution but hard for basic DPLL.
- Randomized Pebbling Formulas: More complex versions of pebbling graphs that test the robustness of branching sequences.
- $GT_n$ (Ordering) Formulas: Formulas based on the principle that any partial order must have a maximal element. These are notoriously difficult for standard solvers like
zChaff.
Key Insights and Ideas
- Clause Learning = Reuse: The fundamental weakness of basic DPLL is that it doesn't "reuse" derived information. Clause learning effectively turns a tree-like search into a Directed Acyclic Graph (DAG), allowing the solver to leverage previously discovered contradictions.
- The Power of Restarts: Restarts aren't just a heuristic to escape local minima; they are theoretically necessary for clause learning to reach the full power of general resolution.
- Bottom-Up is Better: For structured problems like pebbling, the most effective strategy is to learn clauses in a "bottom-up" fashion relative to the problem's dependency graph. This ensures that learned clauses have "maximal reuse" later in the search.
Key Results
The authors modified the popular zChaff solver to accept their custom branching sequences. The results were dramatic:
- Exponential Speedups: On grid pebbling formulas, the modified solver handled instances with 2.5 million variables in about 6 hours, while the standard
zChafftimed out or ran out of memory on instances with only 4,300 variables. - Solving the Unsolvable: For $GT_n$ formulas, the guided solver could solve instances that were previously impossible for unmodified clause-learning solvers.
- Satisfiable Instances: Even though the theory focuses on unsatisfiable proofs, the structural guidance also provided significant speedups for satisfiable instances by helping the solver navigate toward a solution faster.
Limitations and Future Work
- Sequence Generation: The branching sequences in this paper were generated using specialized algorithms for specific problem types (pebbling and ordering). A major challenge remains in automatically extracting these sequences from general high-level descriptions like PDDL (Planning Domain Definition Language).
- Nondeterminism: The theoretical results assume a "perfect" branching choice. In practice, finding that choice without the high-level graph is still a hard problem.
- General Resolution Simulation: While they proved CL with restarts can simulate RES, they note that the specific variant required (branching on already-assigned variables) is not standard in current solvers.
Summary updated