Skip to main content
QUICK REVIEW

[Paper Review] PDP: A General Neural Framework for Learning Constraint Satisfaction Solvers

Saeed Amizadeh, Sergiy Matusevych|arXiv (Cornell University)|Mar 5, 2019
Constraint Satisfaction and OptimizationComputer Science50 references7 citations
TL;DR

This paper proposes PDP, a general neural framework for learning constraint satisfaction problem (CSP) solvers by unifying probabilistic inference with differentiable message passing. It enables end-to-end, unsupervised training via energy minimization, allowing the model to learn non-greedy search strategies beyond traditional heuristics, and achieves performance competitive with state-of-the-art solvers on k-SAT problems, especially when trained on domain-specific distributions.

ABSTRACT

There have been recent efforts for incorporating Graph Neural Network models for learning full-stack solvers for constraint satisfaction problems (CSP) and particularly Boolean satisfiability (SAT). Despite the unique representational power of these neural embedding models, it is not clear how the search strategy in the learned models actually works. On the other hand, by fixing the search strategy (e.g. greedy search), we would effectively deprive the neural models of learning better strategies than those given. In this paper, we propose a generic neural framework for learning CSP solvers that can be described in terms of probabilistic inference and yet learn search strategies beyond greedy search. Our framework is based on the idea of propagation, decimation and prediction (and hence the name PDP) in graphical models, and can be trained directly toward solving CSP in a fully unsupervised manner via energy minimization, as shown in the paper. Our experimental results demonstrate the effectiveness of our framework for SAT solving compared to both neural and the state-of-the-art baselines.

Motivation & Objective

  • To address the limitation of existing neural solvers that lack interpretable search strategies and are restricted to greedy search.
  • To develop a generic, unsupervised training framework for CSP solvers that can adapt to domain-specific problem distributions.
  • To unify probabilistic inference with deep learning in a differentiable, end-to-end trainable architecture that supports non-greedy search strategies.
  • To enable the learning of efficient, domain-specific inference algorithms without relying on supervised supervision or handcrafted features.
  • To bridge the gap between neuro-symbolic methods and classical solvers by embedding classical inference principles into a learnable neural framework.

Proposed method

  • The PDP framework is structured around three core operations: Propagation, Decimation, and Prediction, modeled as differentiable components.
  • Propagation spreads messages across the constraint graph using a message-passing mechanism, analogous to belief propagation in graphical models.
  • Decimation selects variable assignments based on learned confidence scores, with the potential to deviate from greedy selection through trainable components.
  • Prediction generates initial variable assignments or message priors, enabling the model to handle diverse problem instances.
  • The entire framework is trained via unsupervised energy minimization, where the energy function encodes the satisfaction of constraints and the consistency of variable assignments.
  • The framework supports hybrid configurations, such as using fixed classical propagators (e.g., SP) with trainable decimators, enabling flexible model design.

Experimental results

Research questions

  • RQ1Can a neural framework learn non-greedy, efficient search strategies for CSPs while maintaining interpretability through probabilistic inference?
  • RQ2How effective is an unsupervised, energy-based training objective in enabling a neural solver to generalize across different CSP distributions?
  • RQ3Can the PDP framework adapt to non-uniform, domain-specific problem structures—such as modular k-SAT—beyond uniform random instances?
  • RQ4To what extent can a differentiable, end-to-end trainable solver match or exceed the performance of state-of-the-art CDCL solvers like Glucose?
  • RQ5How does the PDP framework support the integration of classical techniques such as restarts and backtracking in a neural setting?

Key findings

  • The PDP framework outperforms classical and neural baselines on uniform random k-SAT problems, demonstrating strong generalization and learning capability.
  • When trained on modular 4-SAT problems, the PDP solver significantly outperforms a model trained on uniform 4-SAT, indicating effective adaptation to domain-specific structures.
  • Despite being trained in an unsupervised manner, the PDP model achieves performance close to the highly optimized Glucose solver on modular k-SAT instances.
  • The framework successfully learns non-greedy search strategies, as evidenced by its ability to surpass greedy baselines in performance on structured problem sets.
  • The PDP framework enables the formulation of classical message-passing algorithms (e.g., SP, BP) as differentiable, parallelizable components, suitable for GPU acceleration.
  • The model exhibits multiple solution-finding behavior depending on initial message values, enabling natural integration of restart strategies through batch replication.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.