Computational Phase Transition Signature in Gibbs Sampling
H. Philathong, V. Akshay, I. Zacharov, J. Biamonte

TL;DR
This paper predicts and simulates a computational phase transition signature in Gibbs sampling distributions, which could be observed in physics-based processors, marking a milestone in the physical theory of computation.
Contribution
It introduces the concept of a computational phase transition signature in Gibbs distributions and proposes its physical observation in physics-based processors.
Findings
Simulated the phase transition signature in Gibbs sampling distributions
Predicted physical observation of the phase transition in future experiments
Highlights potential milestone in physical computation theory
Abstract
Gibbs sampling is fundamental to a wide range of computer algorithms. Such algorithms are set to be replaced by physics based processorsbe it quantum or stochastic annealing deviceswhich embed problem instances and evolve a physical system into an ensemble to recover a probability distribution. At a critical constraint to variable ratio, decision problemssuch as propositional satisfiabilityappear to statistically exhibit an abrupt transition in required computational resources. This so called, algorithmic or computational phase transition signature, has yet-to-be observed in contemporary physics based processors. We found that the computational phase transition admits a signature in Gibbs' distributions and hence we predict and prescribe the physical observation of this effect. We simulate such an experiment, that when realized experimentally, we believe would represent a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Computational Phase Transition Signature in Gibbs Sampling
H. Philathong
[email protected] http://quantum.skoltech.ru Deep Quantum Laboratory, Skolkovo Institute of Science and Technology, 3 Nobel Street, Moscow, Russia 121205
V. Akshay
Deep Quantum Laboratory, Skolkovo Institute of Science and Technology, 3 Nobel Street, Moscow, Russia 121205
I. Zacharov
Deep Quantum Laboratory, Skolkovo Institute of Science and Technology, 3 Nobel Street, Moscow, Russia 121205
J.D. Biamonte
Deep Quantum Laboratory, Skolkovo Institute of Science and Technology, 3 Nobel Street, Moscow, Russia 121205
(March 7, 2024)
Abstract
Gibbs sampling is fundamental to a wide range of computer algorithms. Such algorithms are set to be replaced by physics based processors—be it quantum or stochastic annealing devices—which embed problem instances and evolve a physical system into an ensemble to recover a probability distribution. At a critical constraint to variable ratio, decision problems—such as propositional satisfiability—appear to statistically exhibit an abrupt transition in required computational resources. This so called, algorithmic or computational phase transition signature, has yet-to-be observed in contemporary physics based processors. We found that the computational phase transition admits a signature in Gibbs’ distributions and hence we predict and prescribe the physical observation of this effect. We simulate such an experiment, that when realized experimentally, we believe would represent a milestone in the physical theory of computation.
As information is necessarily represented in physical media, the processing, storage and manipulation of information is governed by the laws of physics. Indeed, the theory of computation is intertwined with the laws governing physical processes deutsch1985quantum . Many physical systems and physical processes can be made to represent, and solve computational problem instances. Viewed another way, many variants of naturally occurring processes (such as protein folding) have been shown to represent computationally significant problems, such as NP-hard optimization problems. But how long does it take for a physical process to solve problem instances? How can difficult problem instances be generated?
The physical Church-Turning thesis church1936unsolvable ; turing1937computable asserts that a universal classical computer can simulate any physical process and vise versa (outside of quantum mechanical processes). It does not propose the algorithm, yet asserts its existence. One might wrongly suspect that undecidable problems can be embedded into physical systems: attempts at this fail, i.e. due to instabilities. What about the P vs. NP problem? If no physical process existed to solve NP-complete problems in polynomial time, then by the physical Church-Turning thesis, no algorithm would exist either. Hence if the laws of physics ruled out such a scenario, this would imply that P NP.
This distinction between polynomial and exponential resources is a course gaining that computational complexity theory is based around. We do not know if a physical process can be made to solve NP-complete problems in polynomial time or not. However, it is asserted that computational phase transitions are a feature of NP-complete problems—although specifics of the transition have yet to be formulated (proven) rigorously. We will turn to the theory of computational phase transitions to understand how physics responds to changes in the complexity landscape across the algorithmic phase transition.
This algorithmic phase transition occurs where randomly generated problem instances are thought to be difficult crawford1996experimental ; friedgut1999sharp ; selman1996critical . It is observed by the fact that computer algorithms experience a slowdown around this transition point. For example, let us consider the familiar problems of - (and )-satisfiability (detailed in the next section: the phase transition provably exists for -SAT and is only known to be inside a window for -SAT). If we let the number of variables be and uniformly generate random clauses over these variables, computer algorithms appear to slow down at a certain clause to variable ratio (clause density ).
What about physical systems that bootstrap physics to naturally solve problems instances? Instances of these problems can be embedded in the lowest energy configuration of physical models lucas2014ising ; biamonte2008nonperturbative ; whitfield2012ground . Hence, building such a physical system and cooling (annealing) this system can enable a process which solves such problems kirkpatrick1983optimization ; utsunomiya2011mapping ; inagaki2016coherent ; pierangeli2019large ; marandi2014network ; nixon2013observing ; berloff2017realizing ; dung2017variable ; kalinin2018global . For example, a system settling into its low-energy configuration can be programmed such that this low energy configuration represents the solution to (and )-SAT instances.
We found that the algorithmic phase transition has a statistical signature in Gibbs’ states of problem Hamiltonians generated randomly across the algorithmic phase transition. This was confirmed by exact calculations of 26 binary units (spins) on a mid-scale supercomputer. Physical observation of the effect is hence within reach of near term and possibly even existing physical computing hardware: such as Ising machines inagaki2016coherent ; pierangeli2019large , annealers kirkpatrick1983optimization and quantum enhanced annealers johnson2011quantum ; barends2016digitized ; harris2010experimental ; harris2018phase ; king2018observation .
Satisfiability Phase Transition Signature.
The Boolean satisfiability (SAT) problem is a decision problem determining satisfiability of Boolean formula. If the formula is evaluated to be TRUE for some assignments of its Boolean variables, the formula is called satisfiable. If there is no such assignment, the formula is unstaifiable. Deciding satisfiability of a formula in conjunctive normal form (CNF) where each clause is limited to at most literals is NP-complete for . It is known that every -SAT problem can be Karp-reduced to the NP-complete -SAT problem cook1971complexity . We consider optimization of an underlying decision problem. Hence we seek to determine the maximum number of clauses that can be satisfiable over all assignments of input variables. This problem is called MAX -SAT which is a canonical NP-hard optimisation problem.
We will let a -SAT instance consist of clauses in conjunctive normal form over Boolean variables. The clause density of an instance is defined by the simple faction . For example, consider the -SAT problem instance
[TABLE]
The instance (1) has variables, clauses () and is satisfiable, as . -SAT clauses are randomly generated to form random instances by uniformly selecting unique -tupels from the union of a variable set (cardinality ) and its element wise negation.
For random -SAT instances, an abrupt transition in the probability of satisfiability has been numerically observed (though not formally proven) to be around clause density crawford1996experimental ; friedgut1999sharp ; selman1996critical ; selman1996generating . Most instances on the left (right) of the transition are satisfiable (unsatisfiable). It is statistically observed that computational time of SAT solvers peak at the same point (see Fig. 1 (top right)). These two features indeed show the signature of the so called computational (or algorithmic) phase transition. The requirement of increasing computational resources to solve instances at and around this transition point suggests that hard instances for the -SAT problems are concentrated around a critical density.
The computational phase transition signature has better theoretical footing when considering the -SAT problem, which can be solved in polynomial time krom1967decision . Both theoretical and numerical results bollobas2001scaling ; chvatal1992mick ; goerdt1996threshold firmly position the transition at clause density (see Fig. 1 (top left)). The further advantage is that additional slack bits are not required to embed 2-SAT into the Ising model. In other words, 2-SAT instances can be embedded directly into 2-body generalized Ising Hamiltonians (see Appendix).
We randomly generate instances of 2 (and 3)-SAT then calculate the percent of satisfiability (see Fig. 1 (middle)) and run-time (see Fig. 1 (bottom)) using a SAT solver, PycoSat package in Python 3 biere2008picosat . The sharp transition at the critical point can be observed in infinite limit of a ratio. In practice, finite sized effects broaden the transition region.
For 2-SAT, the theoretical results bollobas2001scaling establish a finite-size scaling window for the transition region. For , this window is defined by , where such that the probability of satisfiablity is greater than , similarly, such that the probability of satisfiablity is less than . As the width of the window tends to zero, , as for all .
For 3-SAT, it is still unknown where the exact transition point is. However, upper and lower bounds have been proven. The best lower bound at this time appears to be hajiaghayi2003satisfiability and the best upper bound is maneva2008satisfiability .
In Fig. 1 (middle and bottom), we can see that, as the number of variables increase, the transition sharpens and becomes closer to clause density 1 for 2-SAT (left) and for 3-SAT (right).
Ground State Occupancy of Thermal States.
Let us develop a technique to witness the computational phase transition in physical systems. We simulate a physical systems that encodes solution(s) of 2 (and 3)-SAT instances into the ground state space of their corresponding Hamiltonians. This is done by considering the corresponding Gibbs state. We explore the difficulty to sample correct solutions of the problems from the thermal distribution at a finite temperature as a function of clause density. This technique can be formulated as follows.
Let denote (possibly degenerate) lowest eigenstates of . We label these possibly degenerate states by letting range from up to and call the lowest eigenvalue of
[TABLE]
Physical systems at thermal equilibrium are said to be ideally described by a Gibbs state,
[TABLE]
where is the system Hamiltonian (in our case 2 (and 3)-SAT Hamiltonian), is an inverse temperature where the partition function is
[TABLE]
Occupancy in the low-energy subspace for a system at equilibrium for fixed finite inverse temperature becomes
[TABLE]
In the zero temperature limit we have
[TABLE]
The quantity in Eq. (5) provides our means to access the difficulty of sampling the right solution from a thermal state. as a function of clause density for different number of variables and is illustrated in Fig. 2 (top). For each clause density, we randomly generated -SAT instances from variables. We then applied the embedding procedure from appendix A and calculated .
Surprisingly—on average—the lowest values of are around densities to for -SAT and to for -SAT which means that it is difficult to ascertain the optimal solution when sampling around the critical point. The most difficult instances appear near the point where of the formulas are satisfiable.
On average, what inverse temperature is required to ensure that the occupancy of the ground thermal state, , is greater than 0.9? We plot the value of (inverse temperature) satisfying the above condition versus clause density (see Fig. 2 (bottom)) for both -SAT and -SAT.
In Fig. 2 (bottom), the peaks of the plots are around critical densities for -SAT and -SAT which appear around the same critical points as for standard algorithms. For physical systems preparing Gibbs distributions, this informs us of the significance that temperature plays obtain above 90 percent ground state occupancy. The hardest instances are around the critical point (the peaks) which require lower temperatures for sufficient ground state occupancy.
Conclusion.
We predict that the algorithmic phase transition signature is observable in thermal Gibbs’ states, which has implications for contemporary physical computing systems. The computational phase transition signature has strong theoretical footing when considering the -SAT problem—a problem which offers a direct embedding into 2-body generalized Ising Hamiltonians. The 3-SAT problem on the other hand requires additional slack bits to create the 3-body projectors to embed the problem.
For the purpose of comparison, we randomly generate both -SAT (-SAT) instances and embed these instances in the generalized Ising Hamiltonian such that the ground-eigenspace is spanned by solutions to the problem instance. Then we calculate occupancy of ground state of thermal states across the algorithmic phase transition signature. We found that the occupancy of ground state(s) decreases around the phase transition point for both -SAT and -SAT (see Fig. 2 (top)). This finding indicates a difficulty in sampling solutions of the -SAT and -SAT problems concentrated around a critical point. Moreover one infers that temperature of the Gibbs state is the fleeting computational resource. Indeed, one argues that for any fixed inverse temperature , there exists problem instances that would require significant sampling time to recover the ground-state.
Our prediction connects the computational phase transition signature, which exhibits an importantly unsolvable feature in the theory of computational complexity, with physical processes that naturally reveal this feature in observable quantities. Since these SAT instances can be directly embedded onto the generalize Ising Hamiltonian, and recently Ising devices have been built with increasing programability, the computational phase transition signature has the potential to be physically observed.
Numerical Methods.
The large calculations were performed on the Skoltech’s supercomputer “Zhores” zach2019 . We thank the CDISE-HPC team. The code is written in C with nested OpenMP parallelism. The Hamiltonian is expanded in the shared memory of each node and we compute in parallel several clauses. Multiple nodes run the procedure concurrently with different random sequence to sample the statistics with MPI collectives. This implementation can use all the operational memory of each server. In practice we have compared results for up to 34 variables and found no qualitative differences that would affect our conclusions. In Fig. 2 (top) we illustrate results for ; the program run on 8 nodes to collect statistics for around 13 hours. We also used the SAT solver, PycoSat in Python 3 biere2008picosat .
Appendix A Ising Spin Embedding
Finding ground energy and ground state configurations of physical systems such as spin glasses is NP-hard barahona1982computational . 2-SAT and 3-SAT instances can be directly mapped onto the Hamiltonian minimization problem, see e.g. lucas2014ising ; biamonte2008nonperturbative . The standard procedure is as follows.
We convert logical bits to spins
[TABLE]
The penalty Hamiltonian is constructed by real linear extension of by means of the following invertible mapping between Boolean variables and projectors,
[TABLE]
and
[TABLE]
where and acting on the spin.
By this construction, clauses in a SAT instance are mapped onto projectors . Hence, the Hamiltonian can be constructed by summing over all the clauses in an instance,
[TABLE]
where assigns the value of corresponding to the clause. The ground state space is spanned by solutions of the SAT problem, and the ground energy is equal to minimal number of unsatisfiable clauses.
Substituting the projectors in Eq. (10), where is the Pauli matrix along the quantization axis, the Hamiltonian can be written in the form of the generalized Ising Hamiltonian with k-body interaction. In case of MAX 2-SAT, the Hamiltonian is a sum over projectors onto -SAT clauses
[TABLE]
The coefficient indicates the local field of the spin and the couplings encode the 2-body interaction between the spin and the spin.
This method provides a way to physically realize SAT instances as spin Hamiltonians. If such a physical system is built, cooling the system into its ground state is equivalent to solving the SAT problems.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) David Deutsch. Quantum theory, the Church–Turing principle and the universal quantum computer. Proceedings of the Royal Society of London. A. Mathematical and Physical Sciences , 400(1818):97–117, 1985.
- 2(2) Alonzo Church. An unsolvable problem of elementary number theory. American journal of mathematics , 58(2):345–363, 1936.
- 3(3) Alan Mathison Turing. On computable numbers, with an application to the Entscheidungsproblem. Proceedings of the London mathematical society , 2(1):230–265, 1937.
- 4(4) James M Crawford and Larry D Auton. Experimental results on the crossover point in random 3-SAT. In Artificial Intelligence , volume 81, pages 31–57, 1996.
- 5(5) Ehud Friedgut, Jean Bourgain, et al. Sharp thresholds of graph properties, and the k-SAT problem. Journal of the American mathematical Society , 12(4):1017–1054, 1999.
- 6(6) Bart Selman and Scott Kirkpatrick. Critical behavior in the computational cost of satisfiability testing. Artificial Intelligence , 81(1-2):273–295, 1996.
- 7(7) Andrew Lucas. Ising formulations of many np problems. Frontiers in Physics , 2:5, 2014.
- 8(8) JD Biamonte. Nonperturbative k-body to two-body commuting conversion Hamiltonians and embedding problem instances into Ising spins. Physical Review A , 77(5):052331, 2008.
