Abstract
Maximum 2-satisfiability (MAX-2-SAT) is a type of combinatorial decision problem that is known to be NP-hard. In this paper, we compare LightSolver's quantum-inspired algorithm to a leading deep-learning solver for the MAX-2-SAT problem. Experiments on benchmark data sets show that LightSolver achieves significantly smaller time-to-optimal-solution compared to a state-of-the-art deep-learning algorithm, where the gain in performance tends to increase with the problem size.
Introduction
Maximum 2-satisfiability (MAX-2-SAT) is a fundamental problem in combinatorial optimization. It involves finding a binary variable assignment that satisfies the maximum number of logical clauses, where each clause contains exactly two literals. Despite its simple definition, MAX-2-SAT is NP-hard, meaning the computational effort required to find an optimal solution grows exponentially with the number of variables.
Efficiently solving MAX-2-SAT has significant implications for real-world applications such as scheduling, resource allocation, and logistics. Recently, Graph Neural Networks (GNNs) have emerged as a popular approach for these problems. However, researchers from LightSolver and Technion have proposed a quantum-inspired alternative that challenges the dominance of deep learning models in this domain.
Methods
The study compares two distinct algorithmic philosophies:
- RUN-CSP (Deep Learning): A state-of-the-art solver utilizing a recurrent graph neural network. It approaches optimization as a learning task, employing message-passing between variable nodes to converge on a solution.
- LightSolver (Quantum-Inspired): This approach reformulates the MAX-2-SAT problem into a Quadratic Unconstrained Binary Optimization (QUBO) framework. Logical clauses are mapped to mathematical expressions where satisfied clauses contribute zero to the cost function and unsatisfied ones contribute one. By minimizing this sum, the solver identifies the optimal configuration. LightSolver operates on a digital platform designed to simulate the physics of all-optical devices, allowing it to navigate complex energy landscapes more efficiently than traditional processors.
To ensure a controlled comparison, both algorithms were executed on identical hardware: an NVIDIA T4 GPU hosted on AWS.
Experimental Setup
The evaluation utilized the Max-Sat Evaluation 2016 benchmark (unweighted track). This dataset provides instances with known optimal solutions, enabling precise measurement of the "Time-to-Optimal-Solution" (TTOS).
The instances ranged from small-scale problems with 27 variables to medium-scale problems with 343 variables, as detailed in the table above.
Results and Discussion
The primary performance metric was TTOS—the time required to reach the optimal solution with a 99% success probability.
The results demonstrate a significant performance advantage for the quantum-inspired approach:
- Speedup: LightSolver was consistently faster than RUN-CSP, with the speedup factor ranging from 2x on the smallest instances to approximately 1000x on medium-sized problems.
- Scalability: As shown in the figure, the performance gap widens as the problem size ($N$) increases. While LightSolver reached the optimum for the largest instance ($N=343$) in less than a second, RUN-CSP struggled to converge, requiring over 400 seconds to reach a comparable state.
- Algorithmic Efficiency: Unlike deep learning models, which require a computationally expensive training phase, LightSolver is an "on-demand" solver. Furthermore, the QUBO formulation maintains a compact $N \times N$ matrix representation regardless of the number of constraints, contributing to its efficiency in dense problems.
Conclusion
This research highlights the potential of quantum-inspired digital platforms to outperform deep learning in specific combinatorial optimization tasks. By bypassing the training bottlenecks of neural networks and leveraging efficient QUBO mappings, LightSolver provides a scalable alternative for NP-hard problems.
Future work will focus on evaluating these solvers on industrial-scale problems with tens of thousands of variables and exploring higher-order constraints such as MAX-3-SAT. Additionally, a comprehensive "wall-clock" comparison including preprocessing and training times would provide further insights into the practical deployment of these technologies.
Summary updated