TL;DR
ImitSAT is a novel branching policy for SAT solvers that uses imitation learning to mimic "KeyTraces"—compact, conflict-free sequences of expert decisions. By training a Transformer-based model to predict these high-quality branches, it significantly reduces redundant computations and speeds up wall-clock solving time compared to both traditional heuristics and modern reinforcement learning approaches.
The Bottleneck in SAT Solving
Boolean Satisfiability (SAT) is a fundamental problem in computer science, acting as the engine for everything from formal hardware verification to complex planning. Modern solvers rely on the Conflict-Driven Clause Learning (CDCL) framework. Within this framework, the "branching rule"—deciding which variable to assign next—is the most critical heuristic. A good choice can lead straight to a solution, while a poor one can trap the solver in an exponential search space.
Currently, solvers use hand-crafted heuristics like VSIDS. While effective, these are "blind" to the deeper structural patterns of a specific problem. Recent attempts to use Machine Learning (ML) have mostly relied on Reinforcement Learning (RL), which is notoriously difficult to train due to sparse rewards and the need for extensive exploration. Furthermore, profiling reveals that unit propagation (the process of deducing assignments) accounts for nearly 89% of a solver's runtime. There is a critical need for a method that provides dense, high-quality supervision to a learner so it can make decisions that minimize these costly propagations.
ImitSAT: Imitation Learning for Branching
The authors introduce ImitSAT, shifting the paradigm from reinforcement learning to imitation learning.
- KeyTrace Construction: This is the core innovation of the paper. Instead of training on raw solver logs—which are full of dead ends and backtracks—the authors "collapse" a successful solver run into a KeyTrace. This trace contains only the decisions that survived until the end. Replaying a KeyTrace is nearly conflict-free, providing a clean, optimal path to the solution.
- Autoregressive Learning: Branching is naturally prefix-conditioned; the next choice depends on previous ones. The authors formulate this as a sequence modeling problem, utilizing a Perceiver AR (a type of Transformer) to predict the next literal given the CNF formula and the current sequence of decisions.
- Plug-and-Play Integration: ImitSAT is integrated directly into the CDCL loop. At each decision point, the solver queries the model. To keep overhead low, the model is only queried a limited number of times (a "query budget") before falling back to standard heuristics.
Key Insights
- Dense Supervision over Exploration: By using KeyTraces, the model gets a clear signal of exactly what to do at every step, avoiding the stability issues of RL. Replaying these traces reduces propagations to just ~4% of a standard run.
- Propagation is the Bottleneck: The goal isn't just to solve the problem, but to do so with the minimum number of wasted steps. ImitSAT's objective directly aligns with reducing the dominant cost of SAT solving.
- Front-Loading is Key: Early decisions are the most impactful. Using the model's query budget at the very beginning of a search is far more effective than spreading queries out or saving them for later.
- Surprising Generalization: Despite being trained only on simple random 3-SAT instances, ImitSAT transfers remarkably well to structured problems (like those in SATLIB) and even unsatisfiable (UNSAT) instances without any fine-tuning.
Results
ImitSAT consistently outperforms state-of-the-art learned approaches like SATformer and Graph-Q-SAT across various benchmarks.
- Reduced Propagations: On the 61–100 variable test set, ImitSAT achieved a Median Relative Propagation Percentage (MRPP) of 0.78 (with 3 calls), meaning it required 22% fewer propagations than the standard MiniSAT solver.
- Wall-Clock Speedup: While neural networks add inference overhead, the reduction in propagation is so significant that on harder instances, ImitSAT is faster in total wall-clock time than pure MiniSAT and all other ML baselines.
- Win Rate: In head-to-head comparisons, ImitSAT with just 3 queries achieved the highest "one-percent win rate" (W1%) across almost all tested ranges.
Limitations and Future Work
While highly effective, the current model is limited to instances with roughly 100 variables due to the context window of the Transformer and the computational cost of training. Additionally, for very small or easy problems, the inference overhead of the neural network can exceed the time saved by better branching.
Future directions include scaling the architecture to handle larger industrial instances, exploring hybrid imitation-reinforcement learning schemes, and utilizing even richer expert demonstrations to further refine the branching policy.
Summary updated