Efficient solution of Boolean satisfiability problems with digital memcomputing

Sean R. B. Bearden, Yan Ru Pei, Massimiliano Di Ventra

TL;DR

This paper introduces a physics-inspired computing paradigm called Digital Memcomputing to tackle the notoriously difficult Boolean Satisfiability (3-SAT) problem. By mapping the problem into a continuous-time dynamical system equipped with "memory" variables, the authors demonstrate polynomial-time scaling on hard instances that typically force traditional algorithms into exponential time, all without relying on chaotic dynamics or exponential energy growth.

What Problem Does This Paper Address?

The Boolean Satisfiability problem (SAT) is the quintessential NP-complete problem. It asks whether there is an assignment of TRUE/FALSE values to a set of Boolean variables that makes a given logical formula evaluate to TRUE. While SAT solvers have immense practical applications in logistics, hardware design, and AI, worst-case and even typical "hard" instances require exponentially growing time to solve using standard algorithmic approaches (like local search or message-passing).

Recently, researchers have explored physics-inspired approaches, mapping SAT problems into continuous-time dynamical systems where the system naturally "falls" into an equilibrium state representing the solution. However, previous attempts at this relied on chaotic dynamics, which unfortunately require exponentially growing energy fluctuations as the problem size increases. This paper seeks to design a continuous-time physical system that can efficiently solve hard SAT problems without chaos and without blowing up the energy budget.

Methods

The authors propose a Digital Memcomputing Machine (DMM). Instead of discrete bits, the DMM uses continuous variables (e.g., voltages ranging from -1 to 1) to represent the Boolean states. The logical clauses of the 3-SAT problem are translated into dynamical constraint functions.

The secret sauce of the DMM is the introduction of memory variables:

  • Short-term memory acts as a switch, tracking the recent history of a clause to toggle between "gradient-like" search dynamics and "rigidity" (holding a satisfying value).
  • Long-term memory collects information over time to "remember" which clauses are the most frustrated. It dynamically weights the equations to force the system to prioritize historically stubborn constraints.

Because the memory variables continuously deform the "energy landscape" of the problem, local minima are dynamically transformed into saddle points. The system is modeled as a set of non-linear Ordinary Differential Equations (ODEs). For this paper, the authors simulated these ODEs algorithmically on a standard CPU using a basic forward-Euler numerical integration scheme.

Datasets

The authors evaluated their DMM solver on several benchmarks:

  • Clause Distribution Control (CDC) instances: Randomly generated 3-SAT instances with planted solutions, specifically tuned to be exponentially hard for local-search algorithms.
  • SAT Competition Benchmarks: "Small but hard" instances from the 2017 and 2018 SAT Competitions (Random Tracks).
  • General Random 3-SAT: Standard random instances without planted solutions, used previously to benchmark other physics-inspired solvers like AnalogSAT.

Key Insights and Ideas

  • No Chaos Required: By strictly bounding the voltage and memory variables, the DMM avoids the chaotic regimes that plagued earlier dynamical SAT solvers. This proves that transient chaos is not a necessary ingredient for solving hard optimization problems physically.
  • Dynamic Energy Landscapes: Traditional algorithms get stuck in local minima. The DMM's memory variables actively alter the landscape. If the voltages get stuck, the memory variables grow, shifting the landscape until the trap disappears, leaving the true solution as the only stable equilibrium point.
  • Collective Updates (Long-Range Order): Unlike local-search algorithms (e.g., WalkSAT) that flip one variable at a time, the DMM's continuous dynamics allow for collective, simultaneous updates across multiple variables, drastically speeding up the search.
  • Theoretical Continuous-Time Efficiency: Using topological field theory, the authors analytically prove that a physical, continuous-time implementation of this system would reach a solution in time that scales linearly or sub-linearly with the problem size ($O(N^\alpha)$ where $\alpha \le 1$).

Key Results

  • Polynomial Scaling on Hard Problems: On the notoriously difficult CDC instances, the DMM simulation exhibited power-law (polynomial) scaling in the median number of integration steps (e.g., $\sim N^{3.0}$). On the exact same instances, state-of-the-art algorithms WalkSAT and Survey Inspired Decimation (SID) scaled exponentially.
  • Competition Success: The DMM successfully solved all 285 tested competition instances from the 2017 and 2018 SAT competitions on its first attempt, well within the 5000-second timeout. (For context, the winning algorithmic solvers of those years failed to solve many of these specific instances).
  • Outperforming AnalogSAT: On general random 3-SAT instances, the DMM showed significantly better maximum wall-time scaling ($\sim N^{3.55}$) compared to the mean wall-time scaling of AnalogSAT ($\sim N^{4.35}$).

Limitations and Future Work

  • The Discretization Penalty: While the continuous-time physics scale linearly, simulating ODEs on a discrete Turing machine (a standard computer) requires time discretization. This introduces numerical noise and integration overhead, meaning the algorithmic simulation is polynomial, but not strictly linear.
  • Basic Integration Scheme: The authors used a very rudimentary forward-Euler integration method. For very large problem sizes, this method becomes unstable. Implementing more sophisticated numerical solvers (like Runge-Kutta) could vastly improve software performance.
  • Hardware Realization: To fully realize the theoretical $O(N)$ scaling and bypass the overhead of numerical simulation, the ultimate future work is to build the DMM as dedicated, physical analog/mixed-signal hardware.

Summary updated

BibTeX
@inproceedings{bearden2020efficient,
  author = {Sean R. B. Bearden and Yan Ru Pei and Massimiliano Di Ventra},
  title = {{Efficient solution of Boolean satisfiability problems with digital memcomputing}},
  booktitle = {Scientific},
  year = {2020},
  doi = {10.1038/s41598-020-76666-2},
}
Figure