Learning Better Representations From Less Data For Propositional Satisfiability

Training neural networks on NP-complete problems typically demands very large amounts of training data and often needs to be coupled with computationally expensive symbolic verifiers to ensure output correctness. In this paper, we present NeuRes, a neuro-symbolic approach to address both challenges for propositional satisfiability, being the quintessential NP-complete problem. By combining certificate-driven training and expert iteration, our model learns better representations than models trained for classification only, with a much higher data efficiency -- requiring orders of magnitude less training data. NeuRes employs propositional resolution as a proof system to generate proofs of unsatisfiability and to accelerate the process of finding satisfying truth assignments, exploring both possibilities in parallel. To realize this, we propose an attention-based architecture that autoregressively selects pairs of clauses from a dynamic formula embedding to derive new clauses. Furthermore, we employ expert iteration whereby model-generated proofs progressively replace longer teacher proofs as the new ground truth. This enables our model to reduce a dataset of proofs generated by an advanced solver by ~32% after training on it with no extra guidance. This shows that NeuRes is not limited by the optimality of the teacher algorithm owing to its self-improving workflow. We show that our model achieves far better performance than NeuroSAT in terms of both correctly classified and proven instances.

Paper

References (51)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer hPQb6/10 · confidence 2/52024-07-09

Summary

The paper presents NeuRes, a neural symbolic system designed to solve the Boolean satisfiability problem of CNF (Conjunctive Normal Form). NeuRes utilizes a message-passing graph neural network to embed the information contained in CNF and attempts to predict clause pairs for propositional resolution and value assignments for satisfiability. NeuRes proposes three novel attention mechanisms to better select clause pairs for resolution and employs expert iteration to progressively optimize the generated proofs. The experimental results demonstrate the effectiveness of the proposed NeuRes system.

Strengths

- The approach proposed in the paper is novel, featuring a parallel mechanism for concurrently proving unsatisfiability and attempting to find a truth value assignment. This mechanism is expected to speed up the proving process significantly. - The three proposed attention variants each have distinct characteristics and are suitable for different situations. The expert iteration process effectively shortens the proof length. - The paper is well-written and easy to follow.

Weaknesses

- The paper does not include a thorough ablation study to evaluate the effectiveness of each proposed component. i.e. It lacks an assessment of the true value assignment task’s effectiveness. - As noted in the Limitation (Section 9), the efficiency of the neural method is concerning. It adds substantial computational overhead for clause selection using the neural network. However, overall, I believe this work represents a solid advancement in neuro-symbolic approaches for SAT solvers.

Questions

- Is there a comparison of the efficiency of the three different attention mechanisms as well as the baseline method (NeuroSAT)? It appears that full attention produces the most promising results, but it is also the least efficient.

Rating

6

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes, the authors adequately addressed the limitations and posed no negative societal impact.

Reviewer tfEq7/10 · confidence 3/52024-07-09

Summary

The paper integrates attention-based neural networks into the SAT solving process based on resolution. The neural networks aim to predict pairs of disjunctive clauses to merge. The paper proposes several variants of neural networks for this task and conducted experiments to check their performance. Although the resolution is the algorithm to check unsatisfiability, the proposed framework simultaneously addresses the satisfiability task by decoding the embeddings of formulas.

Strengths

+ The address problem, the unsatisfiability of propositional formulas, is a fundamental, important problem in computer science. + Unifying resolution, a classic SAT solving algorithm, and attention-based neural networks. + The paper considers extensive variants of the neural models and checks their experimental performance. + It is experimentally demonstrated that the proposed approach outperforms the previous work, NeuroSat, and the expert iteration can shorten generated unsatisfiability proofs.

Weaknesses

- It is not clear how big the gap between the proposed approach and the highly-engineered SAT solvers is. It is not critical that the highly-engineered SAT solvers work better, but revealing the gap in the current state clarifies the current position of neural SAT solvers. - Some aspects of the proposed approach and experiment design are unclear (see the below question).

Questions

* How big is the gap between the proposed approach and the highly-engineered SAT solvers? * What is $\overline{E^L}$? How different is it from $E^L$? * The advantage of Casc-Attn is claimed to be "it ... can be used to select a tuple of arbitrary length." Does this advantage is utilized in the implementation? * The paper says that at train time only the positive literal embeddings are used to derive truth assignments, but at test time, the negative literal embeddings are used. Why is this okay although the derivation of truth assignments from the negative embeddings should not be learned? * What is the ratio between sat and unsat problems in the synthesized dataset? * At the beginning of Section 6, the paper mentions the training and test datasets, but does not the validation dataset. I think it should be used because hyperparameters should be adjusted. What validation dataset is used? * (Minor) What is Res-Aided model (mentioned at the beginning of Section 8)? I find this terminology only there.

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

I think the limitations are discussed appropriately.

Reviewer 64Vk6/10 · confidence 2/52024-07-13

Summary

The paper presents NeuRes, a system to solve SAT/UNSAT problems. In particular, it is able to provide UNSAT certificates via resolution proofs. The system constructs a resolution proof by iteratively selecting two clauses from all clauses, producing the resolvent from the two clauses, and adding it back to the clause formula. The selection of two clauses is done by a selector network. They experiment with different attention mechanisms in the selector network, including full attention, selecting an anchor variable and then doing full attention on the subset of clauses including the anchor variable, etc. When training, they use an off-the-shelf symbolic solver to generate resolution proofs and train to predict the clause selection with a teacher forcing style. The experiments show that NeuRes is able to generate resolution proofs for UNSAT problems (99.6% problems solved) for small problems with 40 variables, and also shows some generalizability to larger problems.

Strengths

* The method is able to generate resolution proofs for UNSAT problems, which is a certificate for UNSAT problems, unlike previous methods such as NeuroSAT. * The method shows some generalizability to larger problems, which is a good sign for the method to be applied to larger problems. * The method is sometimes able to generate shorter resolution proofs than the teacher, and they propose a bootstrapping method to further improve the performance based on those shorter proofs.

Weaknesses

* Resolution-based UNSAT certification may not be as useful or practical as clausal proofs like the DRAT format, due to resolution-based proofs potentially being too large for large SAT instances.

Questions

* Could you explain how the method applies to SAT problems? If it's an UNSAT problem, then I can see that it terminates at deriving an empty clause, but how does it work for SAT problems? * How does the model size of NeuRes compare to the baseline NeuroSAT on the SAT problems? How does the solving time compare between the two methods?

Rating

6

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

The limitation about the performance of neural methods on SAT solving still lags behind symbolic solvers is discussed.

Reviewer R9jd8/10 · confidence 4/52024-07-13

Summary

The authors proposed an attention-based architecture that autoregressively selects pairs of clauses for propositional resolution. The framework can generate proofs of unsatisfiability and accelerate the process of finding satisfying truth assignments simutaneously. Emprical evaluation shows that the resulting model achieves better performance than NeuroSAT in terms of both correctly classified and proven instances.

Strengths

+ The model learns to pick resolution pairs rather than naively predicts binary satisfiability, resulting in an overall elegant approach that combines classic symbolic reasoning and machine learning. An unsat "prediction" always comes with a valid proof, and a sat prediction is alway correct. + Detailed attention mechanisms are presented in a progressive manner. Each attention mechanism is accompanied by proper motivation and explanation. The approach is clearly well thought-out and optimized carefully. Again, not applying pretrained language models blatantly stands out in the flooded submissions today. + I like the idea of predicting additionally the truth assignment. Although in principle the assignment can be read off once the resolution is complete, it's always better to terminate early. And by learning to pick the resolution pairs and assigning truth values simultaneously, more semantics can hopefully be injected into the models. Well done!

Weaknesses

- Speed can potentially be an issue since every resolution step invokes a forward pass of the model, and for large problems, the calls can be quite numerous.

Questions

- How easy do you think the approach can be combined with traditional SAT optimization? - Have you thought about extending the approach to anything beyond propositional SAT?

Rating

8

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

The authors discussed the limitation in section 9 and I agree with them.

Reviewer MVHU4/10 · confidence 4/52024-07-16

Summary

This paper presents a deep-learning-based approach for generating resolution proofs for SAT formulas. The proposed method outperforms NeuroSAT on proving/predicting satisfiability on a family of benchmarks.

Strengths

- Instead of directly learning to predict satisfiability, this paper proposes to learn the strategy to apply the resolution rule. I like this general approach, as it can provide actual proofs of both satisfiability and unsatisfiability. - Breaking down the resolution strategy prediction task to two steps (i.e., choosing a variable and then choosing two clauses) is a nice optimization that reduces the computational cost. - The approaches are explained clearly and the paper is relatively self-contained.

Weaknesses

- At its core, the key technical contribution of the paper is that instead of learning an end-to-end SAT solver, the paper proposes to learn a resolution strategy that selects the clauses to resolve for a given formula. This is a fine idea and similar in spirit to many existing lines of work in ML applied to constraint solving, where the goal is to learn a particular heuristics (e.g., branching, restart) to replace some hand-crafted ones. However, to evaluate the proposed method, the paper should compare with existing resolution strategies (potentially including learning-based ones if they exist already) on statistics such as proof lengths and runtime. The comparison with NeuroSAT to me is quite apple-to-orange. - Related to the point above, the paper is entitled "learning better representations from less data", instead of something along the line of "learning to perform resolution". The current title can be a little misleading because words like "better" and "less" do not make much sense when the underlying learning task changes (from satisfiability prediction to resolution clause selection). - The paper only considers very simple SAT instances and it seems difficult to scale the presented approach to much larger real-world instances.

Questions

1. Could you compare the learned resolution strategy with existing ones? 2. Have you conducted ablation studies of the effect of the model architecture to proof length/success rate?

Rating

4

Confidence

4

Soundness

3

Presentation

1

Contribution

3

Limitations

The paper discusses the scalability/efficiency limitation of the proposed method. I do not see the potential negative societal impact of their work.

Reviewer MVHU2024-08-12

I thank the authors for their answers, which help me understand their perspective a little better. I would also like to re-emphasize that I like the general methodology this paper is taking. However, I still think that the paper has some serious presentation issues. To me, NeuRes is better categorized as an ML-based resolution heuristics to be installed in a well-established SAT-solving algorithm, i.e., the resolution-based *Davis-Putnam (DP) algorithm*. This is fundamentally different from NeuroSAT, which is tackling a different research question: to what extend can we learn a SAT-solving procedure completely from scratch? For this reason, it is quite odd that a large portion of the experimental evaluation is focused on comparison against NeuroSAT and the paper seems to position itself as an improved solution over NeuroSAT, while the two methods are **incomparable**. Consider the comparison on **Proven %** in Table 3. The configuration NeuRes is essentially running a DP-like algorithm (i.e., iteratively performing resolution) while repeatedly using a neural network as the heuristic to decide which variable and clauses to choose. This algorithm is guaranteed to generate a proof, *regardless of the heuristic*. On the other hand, the configuration NeuroSAT performs one inference of the neural network to generate a proof (of satisfiability). The fact that NeuRes generates a correct proof more frequently than NeuroSAT is not surprising and does not say much about NeuRes's effectiveness, because given a sufficient number of resolution steps, *any* resolution heuristic can generate a correct proof 100% of the time. The paper does try to make the comparison "fairer" by putting a upper bound on the number of resolution steps that the configuration NeuRes can perform in Table 3. However, this upper bound is **very loose** (e.g., 4 times the number of resolution steps the original solver takes for UNSAT instances). I also suspect NeuRes takes much longer time than NeuroSAT in the proof generation task. Overall, I don't see the left half of Table 3 adds value to the paper. Now if we move on to the second half of Table 3 (**Predicted %**). While it is true that NeuroSAT learns to predict satisfiability. This is not its ultimate goal. Therefore, I'm not sure whether it should be used as a strong baseline for the pure task of satisfiabiltiy prediction. To show that NeuRes performs better at satisfiability prediction task than previous method, one should probably consider comparing against methods dedicated for satisfiability prediction (e.g., [1]), on a wider/harder set of benchmarks. Finally, if we judge the effectiveness of NeuRes from the perspective of a resolution heuristics (which I think we should), I am concerned that the experimental result is not convincing enough. First, the paper only showed resolution step reduction on one simple benchmark set (SR-40); Second, it's not surprising that a more expensive resolution heuristic can reduce the proof length. The key question is whether the increase in time spent on making a heuristic choice is out-weighted by the reduction in the proof length. The paper does not provide a good answer to this question. To me, this paper is very similar in spirit to NeuroCore [2], which tries to reduce the overhead with by only calling the NN heuristic periodically. Perhaps something similar could be explored. Overall, I find the paper could have done a better job positioning itself in the broader literature of ML + SAT-solving and perform experimental evaluation that more directly validates the effectiveness of the proposed method. [1] https://ojs.aaai.org/index.php/AAAI/article/view/5733 [2] https://arxiv.org/abs/1903.04671 **Follow up question**: what is the total training time of NeuRes and NeuroSAT, respectively?

Authorsrebuttal2024-08-13

Thank you for your detailed reply, which we address in the following: > The paper seems to position itself as an improved solution over NeuroSAT, while the two methods are incomparable. NeuRes and NeuroSAT do not differ fundamentally in their research direction. While NeuroSAT explores the efficacy of learning a SAT solver by learning satisfiability prediction, NeuRes explores this problem by learning certificate/proof generation. Both approaches are capable of SAT assignment decoding while only NeuRes can prove unsatisfiability. Naturally, they are still comparable on their shared functionalities. In line with our 2nd contribution (lines 66-67), the comparison with NeuroSAT sheds light on the following: 1. Can certificate-based training improve the learnt representations over label-based training? We answer this question positively through our comparison of prediction accuracy of NeuroSAT. 2. Is certificate-based training more data-efficient than label-based training in terms of the number of training samples needed? We answer this question positively through the fact NeuRes was trained on two orders of magnitude fewer samples than NeuroSAT. That is, **{sample+certificate}** contains a much richer learning signal than **{sample+label}**. > Any resolution heuristic can generate a correct proof 100% of the time. The resolution calculus is complete through exhaustive application. We mention this in the introduction (lines 33-36, and 46-47). However, applying resolution naively is practically infeasible since it can easily result in an exponential blow-up in the size of the formula. Indeed, in our evaluation, not a single proof-by-exhaustion case is counted as a successful sample. This is also reflected in the reported $\text{p-Len}$ (ratio between NeuRes and teacher proof lengths). For example, the bootstrapped Full-Attn model has an average $\text{p-Len}$ of 1.15; hence, the proofs are far from the timeout (= 4). > I also suspect NeuRes takes much longer time than NeuroSAT in the proof generation task. NeuroSAT does not generate UNSAT proofs. If you are referring to SAT assignment decoding, then NeuRes is much more time-efficient as it generates a full assignment via a single MLP pass on literal embeddings while NeuroSAT performs an iterative k-means clustering on them (which is significantly costlier and could take hundreds of iterations to converge). > Overall, I don't see the left half of Table 3 adds value to the paper. The left half of that table shows that NeuRes notably outperforms NeuroSAT at finding SAT assignments. > While it is true that NeuroSAT learns to predict satisfiability \[...\] I'm not sure whether it should be used as a strong baseline for the pure task of satisfiabiltiy prediction. We find this argument quite surprising given the fact that NeuroSAT is trained purely as a SAT predictor. The assignment extraction is presented as a desirable byproduct of that learning objective. We used exactly the same prediction method as NeuroSAT to show that the improvement in prediction accuracy is not owed to any variation in the network architecture and can be mainly attributed to a higher quality/informativeness of representations. The prediction comparison serves as a proxy for representation quality. > It's not surprising that a more expensive resolution heuristic can reduce the proof length. The point of this experiment (Section 6.2) is that proof reductions done by bootstrapped NeuRes were learned without any extra supervision, which is fair evidence that NeuRes learns deeper insights into the problem as opposed to simply mimicking the teacher algorithm. > To me, this paper is very similar in spirit to NeuroCore. The NeuroCore paper is about augmenting a state-of-the-art CDCL-based SAT solver with NeuroSAT as a variable selection heuristic (where the *key question* raised by the reviewer would indeed be essential). This is a fundamentally different objective from our paper, which is about improving learned representations by training on proof certificates. Our better representations (from less data) can positively impact approaches like NeuroCore. As mentioned in our initial response to reviewer R9jd, using our representations in a hybrid solver is interesting future work. > Follow up question: what is the total training time of NeuRes and NeuroSAT, respectively? NeuRes takes roughly six days to fully train from scratch on a single NVIDIA A100 GPU (which could be notably sped up by using multiple GPUs). NeuroSAT does not report their total training time, so we do not have this information. We hope our arguments above have convinced the reviewer that the comparisons in our experimental evaluation are carefully chosen. This does require stepping away from looking at our approach through the lens of a resolution heuristic, and instead also valuing the impact of improved representations and data-efficiency on the overall progress of neural methods in this domain.

Reviewer MVHU2024-08-13

I thank the authors for their patient responses and further clarifications. I agree that the discovery that {sample+certificate} contains a much richer learning signal than {sample+label} is significant, and towards this end, this paper provides sufficient empirical data. However, my concern with the presentation issue remains. *A significant portion of the experimental evaluation--more specifically, half of Section 7 (Proven %) and all of Section 8--is comparing the successful solving rates of the learning-aided DP algorithm and NeuroSAT.* I explained above why this does not make much sense. Perhaps this is partially why I was distracted from the key message the paper is conveying, which, again, I believe is a valuable one. I increased my score to 4, as I still strongly believe this paper would benefit from a round of revision to address the presentation issues. However, I would not be opposed to this paper being accepted if the other reviewers believe that it is fine to include those not entirely fair comparisons in the paper.

Reviewer tfEq2024-08-09

Thank you for the response. I just hope my concerns are clarified also in the revision if possible.

Authorsrebuttal2024-08-11

Thank you again for your valuable feedback. We shall include clarifications on the highlights you mentioned mainly in form of a passage on the gap between neural and traditional solvers along with the full ablation experiment of literal assignment supervision.

Reviewer R9jd2024-08-12

Thank you for the rebuttal. I am happy to see that all my concerns are addressed. One more thing, can you please tell me how much time (in seconds) it took on average on the problems you tested? A rough estimate would be fine, and I won’t hold it against you even if it’s slower compared to traditional methods.

Authorsrebuttal2024-08-13

We would like to thank the reviewer again and are happy that all their concerns have been addressed. In the meantime, we performed a time profiling for our top-3 model to confirm that it shortens the runtime as well as the proof/episode lengths. In the following table, we compare the average runtimes of our top-1 Full-Attn, top-3 Full-Attn, and the traditional solver we used as a teacher (BooleForce) on our main SR(40) test dataset. For both Full-Attn models, we use our Python prototype implementation; for BooleForce, we use an official C implementation. | Solver | SAT (ms) | UNSAT (ms) | Combined (ms) | |-----------------|----------|------------|---------------| | Top-1 Full-Attn | 2.3 | 88 | 45.15 | | Top-3 Full-Attn | 3 | 54.4 | 28.7 | | BooleForce | 4 | 5 | 4.5 |

Reviewer R9jd2024-08-13

Thanks for the response. After reading the discussion between the authors and reviewer MVHU, I am inclined to believe that the authors did not misrepresent their contribution. I agree with reviewer MVHU that directly comparing the SAT solving capability of NeuroSAT and NeuRes isn’t entirely fair because NeuRes is built on resolution, which is by itself complete. That said, the authors made it clear in the title that the primary focus is on learning a better representation. This is achieved by using the same embedding architecture but learning from a different objective than NeuroSAT. In this context, I believe the title fits the paper very well, and perhaps it is the resulting resolution prover with learned heuristics that should be considered a byproduct here. Overall, the authors helped me understand their contribution better through the rebuttal. I would like to see this paper occur in this year’s NeurIPS, so I am raising my score to a strong accept.

Program Chairsdecision2024-09-25

Decision

Accept (spotlight)

© 2026 NYSGPT2525 LLC