Learning-Augmented Algorithms for Boolean Satisfiability

Idan Attias, Xing Gao, Lev ReyzinarXiv 2025 · DOI

Abstract

This paper explores the integration of the "algorithms with predictions" framework into the Boolean Satisfiability (SAT) problem. By leveraging partial or noisy hints from a machine learning oracle, the authors demonstrate significant improvements in the performance of state-of-the-art exponential-time solvers. Specifically, subset advice is shown to reduce the runtime complexity of the PPSZ algorithm to sub-exponential levels under certain conditions. Furthermore, the paper provides a black-box method to linearly enhance approximation ratios for MAX-SAT variants, bridging the gap between theoretical worst-case analysis and practical predictive capabilities.

Introduction

Boolean Satisfiability (SAT) is the foundational NP-complete problem. While it is widely believed that no polynomial-time algorithm exists for all instances ($P \neq NP$), decades of research have yielded "beyond worst-case" strategies. These include exponential-time algorithms that outperform brute force and approximation algorithms for MAX-SAT, the optimization variant of the problem.

Traditional theoretical models often overlook a practical reality: modern solvers frequently operate in environments where machine learning models can provide "hints" or "predictions" about potential solutions. This research adopts the learning-augmented framework to ask: If an ML oracle provides partial or noisy information about an optimal assignment, how much can algorithmic guarantees be improved?

Advice Models and Methodology

The authors investigate two primary models of advice provided by a prediction oracle:

  1. Subset Advice: The algorithm receives the correct values for a random $\epsilon$ fraction of the variables in an optimal assignment.
  2. Label Advice: The algorithm receives a noisy prediction for all variables, where each prediction is correct with probability $(1+\epsilon)/2$.

Algorithmic Approaches

For the k-SAT decision problem, the authors modify the PPZ and PPSZ algorithm families, which represent the current state-of-the-art for worst-case k-SAT. These algorithms typically select a random permutation of variables and "force" values based on logical implications. The introduction of subset advice increases the frequency of variables being "forced" rather than "guessed," thereby reducing the base of the exponential runtime.

For MAX-SAT optimization, two approaches are proposed:

  • Subset Advice: A "black-box" method where variables provided by the advice are fixed, the formula is simplified, and a standard $\alpha$-approximation algorithm is run on the remaining variables.
  • Label Advice: For MAX-2-SAT, the authors extend Quadratic Programming (QP) relaxation techniques—previously used for symmetric problems like MAX-CUT—to the non-symmetric domain of SAT.

Key Results

Algorithmic Improvements for k-SAT

The most significant finding is the potent effect of subset advice on the PPSZ algorithm. The base of the exponent for runtime is reduced by a multiplicative factor of $2^{-c}$, where $c$ depends on the advice quality $\epsilon$.

Comparison of runtime constants for PPZ and PPSZ algorithms with and without subset advice.

As shown in the table above, for 3-SAT, the base constant improves from approximately 1.308. Crucially, a "sub-exponential threshold" is discovered: if the oracle provides values for more than half the variables ($\epsilon \ge 1/2$ for 3-SAT, or more generally $\epsilon \ge \frac{k-2}{k-1}$), the runtime complexity of PPSZ drops from exponential to sub-exponential.

MAX-SAT Approximation Enhancements

The black-box approach for MAX-SAT demonstrates that any existing approximation algorithm can be augmented to achieve a strictly better ratio. Specifically, an $\alpha$-approximation is transformed into an $(\alpha + (1-\alpha)\epsilon)$-approximation.

  • MAX-2-SAT: Improved from 0.94 to $0.94 + 0.06\epsilon$.
  • MAX-3-SAT: Improved from 7/8 to $7/8 + 1/8\epsilon$.

For MAX-2-SAT with label advice, near-optimal approximations are achieved for "dense" instances (those with high average degree constraint graphs).

Discussion and Limitations

While the results show substantial gains, the problem remains fundamentally hard. The authors prove that for small amounts of advice, 3-SAT still cannot be solved in polynomial time unless the Exponential Time Hypothesis (ETH) is false.

Current limitations include the density requirement for label advice results in MAX-2-SAT, which currently does not extend to sparse instances. Future work may involve a more detailed comparison of the relative power of subset versus label advice and exploring models where oracle noise is non-persistent (i.e., the oracle might provide different answers upon repeated queries).

Summary updated

BibTeX
@misc{attias2025learning,
  author = {Idan Attias and Xing Gao and Lev Reyzin},
  title = {{Learning-Augmented Algorithms for Boolean Satisfiability}},
  year = {2025},
  eprint = {2505.06146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.06146},
}
Figure