NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HardSATGEN: Understanding the Difficulty of Hard SAT Formula Generation and A Strong Structure-Hardness-Aware Baseline

Yang Li, Xinyan Chen, Wenxuan Guo, Xijun Li, Wanqian Luo, Junhua Huang, Hui‐Ling Zhen, Mingxuan Yuan, Junchi Yan

Abstract

The generation of synthetic Boolean Satisfiability (SAT) formulas that mimic real-world industrial instances is crucial for the development and tuning of high-performance solvers. However, existing generative models often suffer from "hardness collapse," producing formulas that are structurally similar to industrial ones but computationally trivial. This paper introduces HardSATGEN, a novel framework that preserves both structural realism and computational difficulty. By leveraging community detection and unsatisfiable core scrambling, HardSATGEN enables effective data augmentation, leading to significant performance gains in state-of-the-art SAT solvers.

Introduction

The Boolean Satisfiability Problem (SAT) is a cornerstone of combinatorial optimization, with applications ranging from circuit design to software verification. While SAT is NP-complete, modern industrial solvers efficiently handle massive real-world formulas by exploiting their inherent structural properties.

To further improve these solvers, researchers require large-scale datasets for training and hyperparameter optimization. Unfortunately, real-world industrial data is often proprietary and scarce. While previous generative models like G2SAT can replicate graph statistics, they fail to maintain the logical complexity that makes industrial problems difficult to solve—a phenomenon known as "hardness collapse." HardSATGEN addresses this challenge by producing instances that are both structurally and computationally representative of real-world problems.

Methodology

The authors identify that previous "split-merge" generative approaches fail because they over-split formulas into homogeneous, simple components, thereby losing the complex logical dependencies required for hardness. HardSATGEN introduces a multi-stage pipeline designed to preserve these critical features.

The HardSATGEN pipeline: integrating community detection and core detection to preserve both structural and computational properties.

The framework consists of four primary components:

  1. Core Scrambling: The model identifies the "unsatisfiable core"—the subset of constraints that makes a formula impossible to solve—and applies tunable randomization (shuffling variables and flipping literal phases) to create variety while preserving the "hard" logical kernel.
  2. Community-Aware Merging: Using community detection on the Variable Influence Graph (VIG), the model separates generation into in-community connections (dense local structures) and cross-community connections (linking those structures).
  3. Fine-Grained Control: A modularity parameter ($\alpha$) allows users to tune the distinctness of communities within the generated graph.
  4. Post-Processing: To prevent the accidental creation of small, easily solvable unsatisfiable cores, a post-processing step adds variables to "loosen" the core, ensuring global hardness remains dominant.

Experimental Results

HardSATGEN was evaluated on benchmarks from the 2021 and 2022 SAT Competitions (MP1 & SP4) and a private industrial dataset (LEC-CORP) from the electronic design automation (EDA) sector.

Comparison of structural embeddings between raw and generated formulas, demonstrating HardSATGEN's ability to maintain structural fidelity across different stages of node splitting and merging.

The model demonstrated significant improvements over both hand-crafted and deep-learning baselines:

  • Structural Fidelity: Reduced relative error in structural statistics by 38.5%.
  • Computational Hardness: Improved matching of solving times by 88.4%.
  • Solver Ranking: HardSATGEN was the only method capable of accurately reproducing the performance rankings of different solvers on specific problem classes.
  • Real-World Utility: Tuning the CaDiCaL solver using HardSATGEN-generated data resulted in a 15.03% performance gain on the LEC-CORP dataset, whereas data from other generators negatively impacted performance.

Discussion and Conclusion

HardSATGEN represents a significant advancement in synthetic SAT formula generation by prioritizing both structure and hardness. The authors highlight that "Structure $\neq$ Hardness"; maintaining modularity or power-law distributions is insufficient if the underlying logical "core" is destroyed.

While currently an augmentation tool requiring a reference "template," HardSATGEN provides a robust foundation for future research. Future work may explore generating logical kernels from scratch or extending the framework to other combinatorial problems such as MaxSAT or Quantified Boolean Formulas (QBF).

Summary updated

BibTeX
@inproceedings{li2023hardsatgen,
  author = {Yang Li and Xinyan Chen and Wenxuan Guo and Xijun Li and Wanqian Luo and Junhua Huang and Hui‐Ling Zhen and Mingxuan Yuan and Junchi Yan},
  title = {{HardSATGEN: Understanding the Difficulty of Hard SAT Formula Generation and A Strong Structure-Hardness-Aware Baseline}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure