TL;DR
This paper introduces Mining4SAT, a novel approach that leverages data mining techniques, specifically frequent itemset mining, to discover hidden structural patterns within propositional logic formulas (CNF). By exploiting these patterns, Mining4SAT aims to create more compact representations of these formulas, potentially leading to faster and more efficient SAT solving.
What Problem Does This Paper Address?
Propositional satisfiability (SAT) is a fundamental problem with wide-ranging applications. Formulas are typically represented in Conjunctive Normal Form (CNF). However, converting general boolean formulas into CNF, often using Tseitin's encoding, can lead to significantly larger formulas. This "structural explosion" can hinder SAT solvers due to increased memory requirements and longer input processing times. The paper addresses this by seeking to reduce the size of CNF formulas by uncovering and utilizing their inherent structural properties, which are often lost during standard CNF conversion.
Methods
The core of the proposed approach, Mining4SAT, is to apply data mining techniques to CNF formulas. Specifically, it treats CNF formulas as transaction databases where clauses are transactions and literals are items. The key steps involve:
- Frequent Itemset Mining: Identifying frequently occurring sets of literals (sub-clauses) within the CNF formula. This is done by treating clauses as transactions and literals as items, and then applying standard frequent itemset mining algorithms.
- Compact Representation: Using the discovered frequent itemsets to rewrite the CNF formula more compactly. This is achieved by introducing new propositional variables that represent these frequent itemsets, effectively replacing multiple literals with a single variable and a new clause.
- Tseitin's Encoding: The paper leverages Tseitin's encoding not only for the initial conversion but also for introducing new variables to represent the discovered frequent itemsets, ensuring the transformed formula remains equivalent in terms of satisfiability.
- Closed and Maximal Itemsets: The paper explores using condensed representations of frequent itemsets, specifically closed and maximal itemsets, to further reduce the number of new variables and clauses introduced. The authors investigate the trade-offs between using closed versus maximal itemsets for optimal reduction.
- CNF2RED Algorithm: A specialized algorithm is proposed for compacting sets of binary clauses (2-CNF formulas), which are common in real-world problems. This algorithm adapts the general Mining4SAT approach to specifically handle B-implications and their associated transaction databases.
Datasets
The paper evaluates its approaches on benchmarks taken from the SAT challenge 2012. They selected 100 instances from the application category, ensuring at least one instance from each family. The experiments were conducted on a Xeon 3.2GHz cluster with 2 GB RAM, with a timeout of 4 hours.
Key Insights and Ideas
- Data Mining for SAT: The paper demonstrates that data mining techniques, particularly frequent itemset mining, are surprisingly well-suited for uncovering structural information within propositional logic formulas.
- Structural Knowledge is Key: The size reduction is achieved not just by removing redundant literals, but by exploiting recurring structural patterns (frequent itemsets) that are often obscured in standard CNF representations.
- Compactness via New Variables: Introducing new propositional variables to represent frequent sub-clauses is an effective way to achieve significant size reduction while preserving satisfiability.
- Closed vs. Maximal Itemsets Matter: The choice between using closed or maximal frequent itemsets can impact the effectiveness of the reduction, with closed itemsets sometimes offering better compression.
- Specialized Handling for Binary Clauses: Binary clauses, being prevalent, require a tailored approach (CNF2RED) to achieve efficient compaction.
Key Results
The experimental results, presented in Tables 2 and 3, show promising size reductions for CNF formulas.
- Mining4SAT (General Approach): For general CNF formulas, the approach achieved size reductions of over 20% on the majority of instances, with some instances seeing reductions as high as 65.28% (e.g.,
minand128). The paper notes that for this approach, frequent closed itemsets of size 4 or greater were considered, thus excluding binary clauses. - CNF2RED (2-CNF Approach): For compacting only binary clauses, CNF2RED also demonstrated significant size reductions, with some instances showing reductions over 40% (e.g.,
7pipe_kat 59.66%). - Impact on Solving Time: The effect on SAT solving time was mixed. While some instances showed real improvements, others performed worse. This suggests that while size reduction is achieved, the impact on solver performance can be instance-dependent.
Limitations and Future Work
- Greedy Algorithm: The Mining4SAT approach uses a greedy algorithm for selecting itemsets, meaning it does not guarantee an optimal size reduction.
- Optimal Transformation: An open question is how to optimally use closed frequent itemsets within an overlap class to achieve the absolute best reduction.
- Integrating Binary Clauses: The general Mining4SAT approach currently excludes binary clauses. Integrating their reduction into the general framework is a future research direction.
- Solver Performance: The inconsistent impact on SAT solving time suggests further investigation into how the generated compact formulas interact with different SAT solvers.
Summary updated