Learning Better Representations From Less Data For Propositional Satisfiability

Read original: arXiv:2402.08365 - Published 5/30/2024 by Mohamed Ghanem, Frederik Schmitt, Julian Siber, Bernd Finkbeiner
Total Score

0

Learning Better Representations From Less Data For Propositional Satisfiability

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper presents NeuRes, a novel neural network-based system for learning proofs of propositional satisfiability (SAT) problems.
  • The key insight is to train a neural network to predict satisfying assignments to Boolean formulas, which can then be used to construct a proof of satisfiability.
  • The authors show that NeuRes can outperform state-of-the-art SAT solvers on a range of benchmark problems, demonstrating the potential of machine learning techniques for reasoning tasks.

Plain English Explanation

The paper describes a new system called NeuRes that uses machine learning techniques to solve a fundamental problem in computer science known as the Satisfiability (SAT) problem. The SAT problem involves determining whether a given Boolean formula (a statement made up of variables that can be either true or false, connected by logical operations) has a set of variable assignments that make the entire formula true.

NeuRes works by training a neural network to predict the variable assignments that satisfy a given Boolean formula. Once the neural network has learned to do this, it can then construct a "proof" that the formula is satisfiable by showing the specific set of variable assignments that make it true. This is an important capability, as being able to efficiently solve SAT problems has many practical applications, such as in hardware and software verification, planning and scheduling, and even in certain kinds of machine learning and reasoning tasks.

The key innovation of NeuRes is that it uses machine learning techniques, specifically neural networks, to learn how to solve SAT problems, rather than relying on traditional, rules-based approaches. The authors show that this can lead to better performance on a wide range of SAT problem instances, compared to state-of-the-art SAT solvers.

Technical Explanation

The core of the NeuRes system is a neural network that is trained to predict satisfying assignments for Boolean formulas. The network takes as input a representation of the formula, such as a sequence of variables and logical connectives, and outputs a predicted assignment of truth values to the variables.

To train the network, the authors use a dataset of SAT problem instances, along with their known satisfying assignments. They use a loss function that encourages the network to output assignments that satisfy the input formulas, and employ techniques like data augmentation and curriculum learning to improve the network's performance.

Once the network is trained, it can be used to solve new SAT problem instances. The authors describe a proof search algorithm that iteratively refines the network's predictions, exploring alternative variable assignments, until a satisfying assignment is found. This proof search process can be used to construct a certificate of satisfiability, which can be independently verified.

The authors evaluate NeuRes on a range of standard SAT problem benchmarks, and show that it can outperform state-of-the-art SAT solvers, both in terms of solution quality and runtime. They also provide ablation studies and visualizations to gain insights into the inner workings of the system.

Critical Analysis

The NeuRes system represents an interesting and promising application of machine learning techniques to a fundamental problem in computer science. By training a neural network to predict satisfying assignments, the authors have shown that it is possible to learn efficient SAT solving strategies, rather than relying on manually-designed algorithms.

However, the paper does not address some important limitations and potential issues with the approach. For example, the authors do not discuss the scalability of the system to larger and more complex SAT problems, or how it might perform on problems with different structures or distributions. Additionally, the interpretability and transparency of the neural network-based solutions may be a concern in applications where the ability to understand and verify the reasoning process is important, such as in safety-critical systems.

Furthermore, the authors acknowledge that their system is not yet competitive with the best specialized SAT solvers on the most challenging problem instances. Addressing this performance gap, and better understanding the strengths and weaknesses of the neural network-based approach, will be an important area for future research.

Overall, the NeuRes system represents an exciting step towards the integration of machine learning and symbolic reasoning, and the authors have demonstrated the potential for such techniques to improve the performance of fundamental reasoning tasks. However, further work is needed to address the limitations and expand the capabilities of this approach.

Conclusion

The NeuRes system presented in this paper is a novel approach to solving the Satisfiability (SAT) problem using machine learning techniques. By training a neural network to predict satisfying variable assignments, the authors have shown that it is possible to learn efficient SAT solving strategies, potentially outperforming traditional, rules-based SAT solvers.

The key contribution of this work is the demonstration that machine learning can be effectively applied to a fundamental reasoning task, opening up new avenues for research at the intersection of machine learning and symbolic logic. While the current system has some limitations, the authors' findings suggest that continued progress in this direction could lead to significant advancements in our ability to tackle complex reasoning problems, with a wide range of potential applications in fields like hardware and software verification, planning, and machine learning itself.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

Learning Better Representations From Less Data For Propositional Satisfiability
Total Score

0

Learning Better Representations From Less Data For Propositional Satisfiability

Mohamed Ghanem, Frederik Schmitt, Julian Siber, Bernd Finkbeiner

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.

Read more

5/30/2024

Neuro-symbolic Training for Reasoning over Spatial Language
Total Score

0

Neuro-symbolic Training for Reasoning over Spatial Language

Tanawan Premsri, Parisa Kordjamshidi

Recent research shows that more data and larger models can provide more accurate solutions to natural language problems requiring reasoning. However, models can easily fail to provide solutions in unobserved complex input compositions due to not achieving the level of abstraction required for generalizability. To alleviate this issue, we propose training the language models with neuro-symbolic techniques that can exploit the logical rules of reasoning as constraints and provide additional supervision sources to the model. Training models to adhere to the regulations of reasoning pushes them to make more effective abstractions needed for generalizability and transfer learning. We focus on a challenging problem of spatial reasoning over text. Our results on various benchmarks using multiple language models confirm our hypothesis of effective domain transfer based on neuro-symbolic training.

Read more

6/21/2024

On the Hardness of Probabilistic Neurosymbolic Learning
Total Score

0

On the Hardness of Probabilistic Neurosymbolic Learning

Jaron Maene, Vincent Derkinderen, Luc De Raedt

The limitations of purely neural learning have sparked an interest in probabilistic neurosymbolic models, which combine neural networks with probabilistic logical reasoning. As these neurosymbolic models are trained with gradient descent, we study the complexity of differentiating probabilistic reasoning. We prove that although approximating these gradients is intractable in general, it becomes tractable during training. Furthermore, we introduce WeightME, an unbiased gradient estimator based on model sampling. Under mild assumptions, WeightME approximates the gradient with probabilistic guarantees using a logarithmic number of calls to a SAT solver. Lastly, we evaluate the necessity of these guarantees on the gradient. Our experiments indicate that the existing biased approximations indeed struggle to optimize even when exact solving is still feasible.

Read more

6/10/2024

LinSATNet: The Positive Linear Satisfiability Neural Networks
Total Score

0

LinSATNet: The Positive Linear Satisfiability Neural Networks

Runzhong Wang, Yunhao Zhang, Ziao Guo, Tianyi Chen, Xiaokang Yang, Junchi Yan

Encoding constraints into neural networks is attractive. This paper studies how to introduce the popular positive linear satisfiability to neural networks. We propose the first differentiable satisfiability layer based on an extension of the classic Sinkhorn algorithm for jointly encoding multiple sets of marginal distributions. We further theoretically characterize the convergence property of the Sinkhorn algorithm for multiple marginals. In contrast to the sequential decision e.g. reinforcement learning-based solvers, we showcase our technique in solving constrained (specifically satisfiability) problems by one-shot neural networks, including i) a neural routing solver learned without supervision of optimal solutions; ii) a partial graph matching network handling graphs with unmatchable outliers on both sides; iii) a predictive network for financial portfolios with continuous constraints. To our knowledge, there exists no one-shot neural solver for these scenarios when they are formulated as satisfiability problems. Source code is available at https://github.com/Thinklab-SJTU/LinSATNet

Read more

7/22/2024