Abstract
Neuro-symbolic AI seeks to combine the learning capabilities of deep neural networks with the transparency of symbolic logic. SATNet, a differentiable MaxSAT solver, represents a significant step in this direction by embedding logical constraints within a neural architecture. However, the internal representations learned by SATNet are typically continuous and uninterpretable, preventing direct verification of the learned logic. This paper presents a novel framework for extracting reliable, human-readable logical rules from SATNet. By shifting the focus to a "maximum equality" specification and employing Iterative Hard Thresholding, the authors demonstrate that it is possible to decode sparse, weighted MaxSAT formulas that achieve perfect accuracy when paired with exact solvers and are functionally equivalent to ground-truth logic.
1. Introduction
The "black box" nature of deep learning remains a primary barrier to its adoption in safety-critical domains where transparency and formal guarantees are paramount. In contrast, symbolic logic offers a gold standard for interpretability. SATNet was introduced to bridge this gap, allowing neural networks to learn the underlying logic of combinatorial problems—such as Sudoku—from examples. Despite its success, SATNet’s internal "clause matrix" ($S$) consists of continuous weights that do not easily map to discrete logical rules. Previous attempts to interpret these weights through simple rounding have largely failed, producing rules that lack predictive power.
2. The Interpretability Challenge in SATNet
SATNet operates by minimizing an energy function based on a learned clause matrix $S$. While $S$ is intended to represent logical constraints, the training process often results in a dense matrix of floating-point values. The authors observe that these weights do not correspond directly to the -1, 0, or 1 values required for standard propositional logic. Furthermore, even when SATNet achieves high accuracy, it may not have learned the exact logical structure, instead relying on statistical approximations that fail when subjected to formal verification or exact symbolic solvers.
3. Methodology: From Weights to Rules
To address these limitations, the researchers introduce a multi-stage framework designed to extract verifiable logic.
3.1 Maximum Equality Specification
The core innovation lies in the realization that the logic of SATNet is better captured by the variable correlation matrix $C = S^T S$ rather than the raw clause matrix $S$. The authors prove that $C$ represents a "weighted equality" specification. In this view, the optimization objective is to maximize the agreement between variables according to these learned weights. This representation is more robust and provides a mathematically sound basis for rule decoding.
3.2 Rule Decoding and Sparsity
The framework provides a systematic recipe to transform the weights in $C$ into standard Weighted MaxSAT clauses. To ensure the resulting rules are human-readable and not an over-parameterized mess, the authors integrate Iterative Hard Thresholding (IHT) into the training loop. IHT enforces sparsity, pruning insignificant weights and forcing the model to concentrate its logic into a smaller set of essential rules.
3.3 Formal Verification
A key contribution of this work is the definition of "Functional Equivalence." This allows the researchers to mathematically prove whether the extracted rules behave identically to the ground-truth rules (e.g., the actual rules of Sudoku). This moves beyond mere accuracy metrics toward formal guarantees of correctness.
4. Experimental Evaluation
The framework was tested on two distinct categories of logical problems:
- Stream Transformations: Tasks such as the Parity function (chained XOR), Binary Addition, and Symbol Counting. These serve as benchmarks for "pure" logic where the rules are absolute and non-probabilistic.
- Sudoku: Evaluated on 4×4 and 9×9 grids. While 4×4 Sudoku allows for exhaustive verification, the 9×9 version tests the framework's ability to scale to more complex rule sets.
5. Key Results
The experiments yielded several significant insights:
- Neural vs. Exact Solvers: While the original SATNet model (using a neural solver) occasionally made errors due to the "fuzziness" of gradient descent, the extracted rules achieved 100% accuracy when executed by an exact symbolic solver like Gurobi.
- Successful Reconstruction: For stream transformation tasks, the authors formally verified that the decoded rules were functionally equivalent to the ground truth, proving that the model had truly captured the underlying logic.
- Interpretability through Sparsity: The IHT method successfully produced clean logic. In the case of 4×4 Sudoku, 53% of the elements in the $C$ matrix were reduced to zero without sacrificing performance, making the resulting MaxSAT formula significantly more interpretable.
6. Discussion and Future Work
While this framework represents a major advancement in neuro-symbolic interpretability, several challenges remain. The current method is limited to propositional logic, meaning it cannot yet extract higher-order concepts or quantifiers (e.g., "For all $x$"). Additionally, the number of potential rules scales quadratically ($O(n^2)$) with the number of variables, which may pose scalability issues for very large-scale problems.
Future research will focus on exploring more expressive rule representations and optimizing the decoding process to handle even larger and more complex logical domains. By turning the "black box" of SATNet into a "clear box," this work paves the way for more reliable and verifiable AI systems.
Summary updated