Circumventing spin glass traps by microcanonical spontaneous symmetry breaking
Abstract
The planted -spin interaction model is a paradigm of random-graph systems possessing both a ferromagnetic phase and a disordered phase with the latter splitting into many spin glass states at low temperatures. Conventional simulated annealing dynamics is easily blocked by these low-energy spin glass states. Here we demonstrate that, actually this planted system is exponentially dominated by a microcanonical polarized phase at intermediate energy densities. There is a discontinuous microcanonical spontaneous symmetry breaking transition from the paramagnetic phase to the microcanonical polarized phase. This transition can serve as a mechanism to avoid all the spin glass traps, and it is accelerated by the restart strategy of microcanonical random walk. We also propose an unsupervised learning problem on microcanonically sampled configurations for inferring the planted ground state.
I Introduction
The planted -spin interaction model on a finite-connectivity random graph is a representative ferromagnetic system with many coexisting spin glass states. This model system has played an important role in understanding the physics of structural glasses Franz et al. (2001); Montanari and Ricci-Tersenghi (2004). This system is also quite relevant and challenging to the field of statistical inference Zdeborová and Krzakala (2016); Mézard and Montanari (2009). It is equivalent to the generalized Sourlas code problem in information science Sourlas (1989); Huang and Zhou (2009) and the planted maximum XORSAT problem in computer science Watanabe (2013). The large number of low-energy disordered spin glass configurations pose a huge computational challenge to retrieve the planted ground state.
When the environmental temperature slowly decreases, as occurs in a simulated annealing (SA) dynamics Kirkpatrick et al. (1983), the system is predicted to experience an equilibrium phase transition from the disordered paramagnetic phase to the ordered ferromagnetic phase. But this equilibrium transition is extremely difficult to occur in practice when the interactions are many-body in nature (), as the free-energy barrier between these two phases is proportional to the system size and the crystal-nucleation mechanism then fails. The system instead remains in the paramagnetic phase as temperature further decreases Franz et al. (2001); Montanari and Ricci-Tersenghi (2004).
In typical SA simulations with a small but finite rate of temperature decreasing, the system will decrease its energy with an exceedingly smaller rate, and finally it will reach one of the many spin glass states at the bottom of the energy landscape (Fig. 1) and be trapped there for an exponentially long time (in ). Besides, we have checked that message-passing algorithms based on belief propagation also fail to retrieve the ferromagnetic ground state. Following the proposal of Ref. Xu et al. (2018), we clamped the objective energy to a value much below those of the spin glass phase to search for ferromagnetic states, but we found that the message-passing iteration process does not converge to the ferromagnetic fixed point. This is because the high gauge symmetry of the planted system makes it statistically indistinguishable from the unplanted purely disordered system Matsuda et al. (2011); Bandeira et al. (2018).
This tremendous computational difficulty is not specific only to the planted -spin system but is a common property of many large inference problems such as the planted satisfiability and coloring problems Li et al. (2009); Krzakala et al. (2014); Krzakala and Zdeborova (2009). When the ground state is completely masked by an exponential number of disordered spin glass configurations (for example through quiet planting as in the -spin system and the coloring problem Krzakala and Zdeborova (2009)), it becomes evident that searching by SA and other dynamical processes at the bottom of the energy landscape and at low temperatures is not a promising strategy.

In this work, we demonstrate the benefit of working at sufficiently high energy values. Especially we point out the existence of an alternative route to the planted ground state, the route of microcanonical spontaneous symmetry breaking (MSSB). This is a discontinuous transition from the paramagnetic (or disordered symmetric, DS) phase to the microcanonical polarized (MP) phase. Because the energy density of the system along the whole DS-to-MP transition trajectory is fixed at a high value much above those of the spin glass states, the difficulty of climbing huge energy barriers between the different spin glass states is completely avoided (Fig. 1). The microcanonically stable MP phase has so far been largely overlooked in the literature (except for a recent detailed analysis concerning the Potts model Zhou (2019a)), but we find that it actually is exponentially more dominant than the paramagnetic phase at intermediate energy density values.
The DS and MP phases are connected by many transition trajectories at energy densities , where is the spin glass ergodicity breaking point and is the critical energy density of the equilibrium MSSB phase transition. As a main result of this work, we find that . Since ergodicity is preserved for and the MP phase is entropically favored than the DS phase for , starting from an initial configuration residing in the DS phase, the system then is destined to arrive at the MP phase and then reach equilibrium within this phase. The MP phase is stable and meaningful only in the microcanonical ensemble of fixed energy density. Equilibrium MP configurations contain extensive information about the planted ground state as they are already quite similar to it. The ferromagnetic ground state is easily reachable from this intermediate microcanonical phase by gradually decreasing the energy of the system, or it may be inferred based on the statistical properties of the MP configurations. The MSSB route therefore serves as a conceptually straightforward mechanism to circumvent all the low-energy spin glass traps.
The MSSB transition between the DS and MP phases is a discontinuous process. This indicates that the DS-to-MP transition should be an extremely rare event in microcanonical simulations. We find that this process can be accelerated by the restart strategy of microcanonical random walk. We also compare the efficiency of this microcanonical fixed-energy route with that of the conventional canonical fixed-temperature Monte Carlo. We prove that if the two routes start from the same initial state (point A of Fig. 4), the canonical route is more efficient than the microcanonical one; while if they pass through the same intermediate state (point B of Fig. 4), the microcanonical route is more efficient than the canonical one. As a byproduct concerning the conventional SA algorithms, our work indicates that as the mean energy density of the sampled configurations is approaching the critical value of spin glass phase transition, the inverse temperature of the SA process should stop to be further elevated.
We also suggest the potential possibility of solving the planted -spin model by machine-learning methods. We sample a large number of independent microcanonical configurations of the DS phase for the the most studied systems of (each interaction involving three vertices).Very interestingly, we find that these DS configurations contain information about the unique planted ground state. It may then be possible to infer the planted solution from the sampled DS configurations through machine-learning techniques. We thus construct an unsupervised learning problem of inferring the planted ground state from the data generated by microcanonical samplings. In the future, we will try to solve this inference problem using machine-learning algorithms, and will also extend this work to other hard planted systems.
II Theoretical predictions
Consider a planted -spin interaction system in which each vertex participates in clauses (interactions) and each clause involves randomly chosen vertices. For simplicity and to be concrete, we set in all the following numerical computations. The total number of clauses is . The energy of a generic configuration is
(1) |
where is the spin of vertex and denotes the set of vertices constrained by clause . We denote by the energy density of the system, namely
(2) |
There is a planted spin configuration dictating the coupling constant of clause , such that
(3) |
The parameter is the noise level of the above planting rule. When model (1) can then be interpreted as the Sourlas code of -body interactions Sourlas (1989); Huang and Zhou (2009). When is sufficiently small the planted configuration is a ground state of Eq. (1) and it may lie extensively below all the other minimum-energy configurations (Fig. 1). We define the overlap (magnetization) of configuration with respect to as
(4) |
We introduce an inverse temperature as the conjugate of the energy . The partition function of the system is then defined as
(5) |
The equilibrium Boltzmann distribution of observing a particular configuration is then
(6) |
In the canonical statistical ensemble the system exchanges energy with the environment. Then is the inverse temperature of the environment, and the mean energy density of the system is determined by . The free energy density of the system is defined as
(7) |
And the entropy density is computed as
(8) |




In the microcanonical statistical ensemble, the system is isolated from the environment and its energy density is a fixed value, then is interpreted as the microcanonical (intrinsic) inverse temperature of the system. With respect to the Boltzmann distribution (6), in the microcanonical statistical ensemble serves as a Lagrange multiplier such that the mean energy of the sampled configurations according to Eq. (6) is equal to a prescribed value . In other words, is determined by in the microcanonical statistical ensemble.
This random-graph system has been intensively studied by the mean-field cavity method of statistical mechanics Mézard and Parisi (2001); Mézard and Montanari (2006); Matsuda et al. (2011); Zhou (2015). For the ensemble of regular random graph of vertex degree , the mean-field equations for the mean overlap , the mean energy density , the free energy density , and the entropy density are easy to solve. The detailed equations are listed in Appendix A.
The mean-field results obtained at and are demonstrated in Fig. 2, and the qualitatively identical results obtained for are shown in Fig. 7 of Appendix A. Some aspects of these theoretical results are similar to what were found for the Potts model Zhou (2019a), but there is a key qualitative difference to be discussed at the end of this section. First, let us interpret these theoretical predictions from the perspective of microcanonical thermodynamics Gross (2001).
The configuration space has a disordered symmetric phase whose mean magnetization is zero in the thermodynamic limit. This DS phase contains the paramagnetic spin configurations and it corresponds to the paramagnetic phase of the canonical ensemble. As the energy density decreases to the spin glass (SG) dynamical transition point this DS phase suddenly divides into an exponential number of ergodicity-broken macro-states, and the system then enters into the SG phase Franz et al. (2001). The value of is independent of because of gauge symmetry Matsuda et al. (2011) and can be determined by the tree-reconstruction method Mézard and Montanari (2006) (see also textbooks Mézard and Montanari (2009); Zhou (2015)).
Because of planting, a stable canonical polarized (CP) phase containing configurations similar to exist in the configuration space at sufficiently low energies. This CP phase is simply the conventional ferromagnetic phase and its overlap is close to unity.
The microcanonical polarized phase, corresponding to the unstable fixed point of the mean field theory with higher free energy density [Fig. 2], serves as the watershed between the DS and CP phases [Fig. 2]. Individual configurations of the MP phase have positive overlaps and therefore are similar to and to configurations of the CP phase, but they are unstable in the canonical ensemble due to entropic effect.
The entropy density of the MP phase as a function of energy density has two branches [Fig. 2]. The higher-entropy branch corresponds to the MP configurations that are stable at fixed , and its is convex. The MP phase starts to surpass the DS phase in entropy density at the critical energy density , leading to a kink of and indicating a discontinuous microcanonical spontaneous symmetry-breaking phase transition Zhou (2019a). This phase transition is characterized by a jump in the mean overlap and a drop in the microcanonical inverse temperature , which are verified by our simulation results [Fig. 2 and 2]. The lower-entropy MP branch, on the other hand, always has lower entropy than that of the DS phase and its is concave; it marks the watershed between the MP and DS phases in the microcanonical ensemble.
We observe that the MSSB transition energy density is located above the SG transition point when the noise level is low (Table 1), for all values of degree . This means that there is an energy density range within which the MP configurations are exponentially dominating over the DS configurations. In an infinitely slow microcanonical annealing process, the SG phase will then not be encountered, instead the system will jump from the DS phase to the MP phase at the higher energy density point . In principle, it is then possible to reach the MP phase by inducing a MSSB transition at fixed value of , avoiding the spin glass traps of the canonical ensemble. We will continue to discuss the practical feasibility of this proposal in the next section.
We find that the DS fixed point of the -spin model is always locally stable, down to the minimal energy density at which the entropy density becomes zero [Fig. 2]. Consequently, a gap of the overlap always exists between the DS and MP phases down to this minimal energy density [Fig. 2]. This feature is significantly different from what was observed in the Potts model (see Fig. 2(d) of Ref. Zhou (2019a)). The DS phase of the Potts model becomes unstable below certain threshold energy density, and by fixing the energy density below this threshold value, the system will then evolve from the DS phase to the MP phase gradually. Such a gradual evolution will not be possible for the -spin model because of the positive gap in the order parameter .
III Numerical simulation results
In this section, we discuss the numerical results obtained by two different microcanonical Monte Carlo (MMC) algorithms, and we also compare the efficiency of the MMC dynamics with that of the conventional canonical Monte Carlo (CMC) dynamics.
III.1 The single-flip MMC algorithm
We first implement a simple MMC algorithm to explore configurations at the vicinity of an objective energy , whose energy density . An initial configuration with energy can be sampled according to the equilibrium Boltzmann distribution (6) at a suitably chosen inverse temperature . Starting from this initial configuration, the following single-flip trial is performed at each elementary time interval of the MMC evolution: (1) a vertex is picked uniformly at random from the vertices and the flip is proposed; (2) if the new configuration energy does not exceed , this flip is accepted, otherwise it is rejected and the old spin is kept for vertex . One sweep (unit time) of this MMC process corresponds to consecutive single-flip trials.
This single-flip dynamics obeys detailed balance since the forward and backward transitions between two configurations are equally likely Creutz (1983); Rose and Machta (2019). This microcanonical detailed balance condition ensures that all the visited configurations along the evolution trajectory share the same statistical weight. We sample configurations at fixed time intervals and record their overlap values and energies . The microcanonical inverse temperature of the system at energy density is estimated through
(9) |
where is the averaged energy of the sampled configurations Creutz (1983).
Our MMC dynamics is an unbiased random walk within the microcanonical configuration space. The evolution trajectory is expected to be ergodic since the energy density is above the dynamical spin glass transition point . As evolution time goes to infinity every configuration of this space should have equal frequency to be visited, and the system will then certainly be in the MP phase since this phase is exponentially dominant in statistical weight. Empirically, we have observed that this MMC dynamics does indeed achieve MSSB in small-sized systems [Fig. 2 and Fig. 3], while the evolution time needed to witness such a transition increases quickly with system size [Fig. 3]. It is easier for the MSSB transition to occur in networks of larger degrees . This is consistent with the mean-field theoretical results, which reveal that the entropy barrier and the gap of the order parameter both decreases with (Table 1). The hardest RR problem instances are those with degree .
The MSSB transition is an entropy-barrier crossing process [Fig. 3, and the route in Fig. 4]. We can regard the MMC dynamics on the coarse-grained level of overlap as a one-dimensional random walk under a potential field , where is the entropy density of configurations at fixed energy density having overlap with the planted configuration . At each elementary trial, may change to with probability proportional to . Here the bias ratio is
(10) |
with being the slope of at . Because in with being the watershed point of [Fig. 3, and point of Fig. 4], the occurrence of MSSB is an exponentially rare first-passage event characterized by a waiting time of exponential order , where is the barrier height Weiss (1981); Khantha and Balakrishnan (1983). Consequently, this simple random walk strategy is practical only for systems of sizes
(11) |


The entropy barrier decreases with energy density [Fig. 4]. Therefore, we can decrease the entropy barrier by fixing of the MMC dynamics to a lower value. This will help reducing the waiting time of the MSSB transition. On the other hand, at lower energy density values the number of transition paths from point to point of Fig. 4 becomes much more rarer and then disappears at . This later kinetic effect will lead to an increase in the waiting time. There should be an optimal energy density , at which the MSSB transition is easiest to observe. We leave this interesting issue to future studies.



As a minor point, we notice that the watershed entropy density of Fig. 3 decreases as the energy density decreases and it will reach zero at certain critical energy density value (denoted as ) which marks the point of strong microcanonical ergodicity-breaking. When there will be an extended region of the intermediate overlap values within which there is no any configuration of energy density . In other words, it is impossible to reach from a disordered initial configuration to a highly ordered final configuration through a sequence of small changes of the configuration at fixed energy density . We find that is below for all the degrees (see Figs. 2, 7 and 8), so this strong microcanonical ergodicity-breaking is not really relevant for our MSSB mechanism which occurs at .
III.2 The hybrid-flip MMC and CMC algorithms
Besides the microcanonical route as depicted in Fig. 4, there is also the conventional canonical route () to escape the disordered symmetric phase. Will this canonical route be blocked by the low-energy disordered spin glass states? If the planted ground state could be successfully approached following either the microcanonical route or the canonical route, which of these two routes will be more efficient? We explore these two questions in this and the next subsections.
To be fair in comparing the MMC and CMC routes, we design a hybrid-flip Monte Carlo dynamics which is rejection-free both at fixed energy density (MMC) and at fixed inverse temperature (CMC). Besides the action of flipping a single spin, the hybrid-flip dynamics differs from the single-flip dynamics by allowing the action of flipping a pair of spins in one elementary updating step.
An elementary step of the hybrid-flip MMC dynamics goes as follows: (1) a vertex is picked uniformly at random from the vertices and its spin is flipped, causing a change to the energy; (2) if and only if the energy of the new configuration exceeds the objective value , an additional flip is performed on the spin of a vertex to bring the energy back to its original value ( is picked uniformly at random from all the vertices capable of causing a change to the energy). This microcanonical hybrid-flip rule obeys microcanonical detailed balance, so all the visited configurations on the MMC evolution trajectory have the same statistical weight.
An elementary step of the hybrid-flip CMC dynamics is quite similar: (1) a vertex is picked uniformly at random from the vertices and its spin is flipped, causing a change to the energy; (2) if is positive, then with probability an additional flip is performed on the spin of a vertex to bring the energy back to its original value ( is picked uniformly at random from all the vertices capable of causing a change to the energy). This canonical hybrid-flip rule obeys canonical detailed balance and the visited configurations on the CMC evolution trajectory are governed by the Boltzmann distribution (6).
We carry out hybrid-flip MMC and hybrid-flip CMC simulations on a single random graph instance of degree and size . A total number of independent MMC evolution trajectories and independent CMC evolution trajectories are sampled with the help of the TRNG pseudo-random number library Bauke and Mertens (2007), all of these trajectories start from the same initial equilibrium configuration which is located in the DS phase (inverse temperature and energy density ). We regard the DS phase as successfully escaped when the overlap with the planted configuration exceeds for the first time, and the evolution is then terminated and the total number of spin flips along the whole evolution trajectory is returned. We refer to as the effort to escape DS. Figure 4 shows the cumulative distribution profile of the effort over the samples, obtained at fixed inverse temperature (CMC) or fixed energy density (MMC).
We find that the effort (number of spin flips) fluctuates over a wide range from up to among repeated runs (all of which start from the same initial configuration). This indicates that restart might be an optimal strategy if the evolution trajectory fails to escape the DS phase within a certain threshold value of . The cumulative distribution function is concave in shape, both for the MMC dynamics and the CMC dynamics. For example, within an effort the success probability of escaping the DS phase is by the CMC dynamics, while this success probability only increases to when the effort is doubled to [Fig. 4]. This concave property of guarantees that restart is an optimal strategy. For example, we could restart the CMC or the MMC evolution from the fixed initial configuration if the effort of the current trajectory exceeds , and the resulting cumulative distribution of the effort will change to be approximately linear.
III.3 Entropy barrier and free energy barrier
Our CMC simulation results clearly demonstrate that the low-energy spin glass states are not encountered by the canonical route . This may be easy to understand: the canonical route occurs at a much lower inverse temperature than the critical value where the spin glass dynamical phase transition occurs, and the energy density of the watershed point separating the DS and the CP phases is considerably higher than the critical value of spin glass dynamical phase transition.
Figure 4 demonstrates that, when starting from the same initial configuration, the CMC dynamics is more efficient than the MMC dynamics. For example, the MMC dynamics needs a larger effort to achieve a success probability . The empirical observation of CMC being more efficient than MMC is consistent with the theoretical predictions on the entropy-barrier height and the rescaled free energy barrier height [Fig. 4]. We could prove that as follows.
The rescaled free energy barrier () of the canonical route is
(12) |
Here , , , and denote the inverse temperature, energy density, free energy density, and entropy density at the phase point of Fig. 4. The entropy barrier () of the microcanonical route ) is
(13) |
Becuase of the relationship (8) and the fact that and , we know that
(14) | |||||
In deriving this inequality, we have used the following approximation
(15) | |||||
assuming that is quite close to .
On the other hand, if we compare the CMC and MMC routes passing through the same intermediate state (say point of Fig. 4), namely the CMC route and the MMC route (points have the same energy density), we find that the entropy barrier
(16) |
is lower than the rescaled free energy barrier [Eq. (12)]. To prove this, we notice that
(17) | |||||
as and . This indicates that for all the transition trajectories passing through the same intermediate state , the MMC trajectories are more efficient than the CMC trajectories. Our simulation results confirm this prediction, see the dotted line and the solid line of Fig. 4.
III.4 Simulated energy annealing (SEA)


We do not need to fix the energy or the inverse temperature in the Monte Carlo simulations. Instead the energy or the inverse temperature can slowly change with time. Following some previous numerical efforts Alava et al. (2008); Ma and Zhou (2011); Rose and Machta (2019), we implement SEA (simulated energy annealing) as follows: (1) Start from an initial configuration of high energy value ; (2) perform MMC simulation with at objective energy for a total number of sweeps (each sweep corresponds to contiguous hybrid-flip updates); (2) decrease the objective energy by a small amount (say, ) and repeat step (2).
Some SEA evolution trajectories are shown in Fig. 5 in the and phase planes. As the waiting time at each energy density increases the MSSB transition occurs at higher energy values . This is consistent with expectations.
Similar results are also observed in the conventional simulated temperature annealing process, where the canonical inverse temperature gradually increases (but does not exceed ). The energy density will change dramatically during this annealing process.
In comparison with the SEA algorithm, the MMC algorithm (with restart) at a suitably chosen fixed energy density is more efficient.
III.5 A machine-learning challenge
Since it is exceedingly difficult to escape the DS phase by both the MMC dynamics and the CMC dynamics as the system size increases, might it be possible to retrieve the planted ground state without actually leaving the DS phase? Here we report a preliminary exploration of this interesting question.
Given a -spin problem instance, it is straightforward to sample a large set of independent equilibrium configurations of the DS phase at a given energy density by the hybrid-flip MMC algorithm. The overlaps of these configurations are of order , so a more convenient quantity is the rescaled overlap , namely
(18) |
An empirical probability distribution could be constructed as
(19) |
where denotes the total number of samples, is the -th sample, and for and for .
For the planted -spin systems of degree at zero noise (), we find that the overlap distribution is not symmetric in , see Fig. 6 for some representative examples. When the magnitude is small the rescaled overlap is more likely to be negative than to be positive, while it is more likely to be positive than to be negative as increases beyond certain moderate value [Fig. 6]. Overall, the rescaled overlap is more likely to be negative than to be positive. Our extensive empirical results suggest that the probabilities of being non-positive () and non-negative () scale with as
(20) |
where the asymmetry parameter is estimated to be through the bootstrap method Efron (1979). (Very surprisingly, our empirical results on the first moment suggest that it is identical to zero.)
We find that the empirical distribution could be precisely fitted by
(21) |
with being an odd function of the following form
(22) |
Both the linear-order coefficient and the third-order coefficient are positive [Fig. 6]. According to the pioneering theoretical work in the 1990s Van den Broeck and Reimann (1996); Reimann and Van den Broeck (1996), the anti-symmetric “potential energy” may make it possible to infer the planted ground state by unsupervised learning.


We can formulate an unsupervised learning task for the planted -spin model as follows: (1) Assume all the observed configurations are generated by the following generative model
(23) |
with Ising parameters . (2) Determine the optimal assignment for this set of model parameters so that these observed configurations will be most likely to be observed Engel and Van den Broeck (2001).
We expect the planted ground state to be the true optimal solution of this unsupervised learning problem. But it is also likely that this problem has many sub-optimal solutions, some of which being the spin glass minimal-energy configurations of Eq. (1). Whether the optimal solution could be efficiently achieved for this machine-learning problem is an open issue and deserves thorough investigations in the future.
Other statistical inference strategies, such as perceptron learning and principal components analysis may also help for the planted -spin model Engel and Van den Broeck (2001); Kabashima and Uda (2004); Braunstein and Zecchina (2006); Huang and Toyoizumi (2015); Zhou (2019b); Hu et al. (2019). For example, the asymmetric property (20) of the sampled configurations indicates the existence of an optimal hyperplane separating the configuration samples in the most asymmetric manner.
IV Summary
In summary, we studied the planted -spin interaction model as an example to explore the feasibility of microcanonical spontaneous symmetry breaking for solving hard inference problems. We confirmed the existence of a discontinuous MSSB phase transition in the regular random graph ensemble [Fig. 2]. Our numerical results demonstrated that both the canonical route and microcanonical route [Fig. 4] could circumvent the low-energy spin glass states to reach the planted ground state, and that the restart strategy is superior to the persistent random walk strategy [Fig. 4]. We also pointed out that inferring the planted ground state for this model system could be projected into an unsupervised learning problem [Fig. 6], which may serve as a hard bench-mark problem for various machine-learning algorithms.
The finite-size scaling behavior (20) and the potential function (22) are quite fascinating and they call for a thorough theoretical understanding. Numerical implementation of the machine-learning strategy (23) needs to be done in the future. We are also starting to work on other challenging planted ensembles of optimization problems, such as -satisfiability and -coloring Li et al. (2009); Krzakala and Zdeborova (2009); Krzakala et al. (2014), to get more insights on the MSSB mechanism.
Very recently, two preprints on solving the planted random -spin model of degree were posted Bellitti et al. (2021); Bernaschi et al. (2021). The numerical results of the quasi-greedy algorithm of these two studies are consistent with the physical picture offered in our present work. To be concrete, we include the theoretical results obtained for this special system in Fig. 8 of Appendix A.
Acknowledgements.
One of the authors (H.-J.Z.) thanks Erik Aurell, Yuliang Jin, Federico Ricci-Tersenghi, and Pan Zhang for helpful conversations. This work was supported by the National Natural Science Foundation of China Grants No. 11975295, No. 11947302 and No. 12047503, and the Chinese Academy of Sciences Grant No. QYZDJ-SSW-SYS018. Numerical simulations were carried out at the Tianwen clusters of ITP-CAS and the Tianhe-2 platform of the National Supercomputer Center in Guangzhou.Appendix A Mean field theoretical equations
We employed the replica-symmetric mean field theory of spin glasses to predict the MSSB phase transition for the planted -spin model. To serve as a quick reference, here we list the main theoretical equations of this theory Mézard and Parisi (2001); Mézard and Montanari (2006); Matsuda et al. (2011); Zhou (2015).
First, the marginal probability of vertex being in spin state is evaluated through
(24) |
where is a normalization constant to ensure , and contains all the clauses that are connected to vertex , and is defined as the probability of vertex being in spin state if it is affected only by clause but not by all the other attached clauses. We define a complementary quantity as the probability of vertex being in spin state if it is affected by all the attached clauses except clause . In the literature, both and are referred to as cavity probability distributions.
Let us assume that all the vertices in the set will be mutually independent if the energetic effect associated with clause is absent, then the following belief-propagation equation for the cavity probabilities could be derived:
(25a) | ||||
(25b) |
In these expressions, and are two normalization constants, () is the energy of clause , contains all the vertices which are attached to clause , denotes the residual vertex set obtained by deleting from , and similarly denotes the residual clause set obtained by deleting clause from .
The total free energy is computed as
(26) |
where , , and are, respectively, the free energy contribution of vertex , clause , and link between vertex and clause . The corresponding expressions are
(27a) | ||||
(27b) | ||||
(27c) |
The free energy density is . The mean value of the energy density is evaluated to be
(28) |








In a regular random graph each clause is connected to randomly chosen vertices () and each vertex is involved in randomly chosen clauses (). For such a uniform system, when the noise level , the cavity probability distribution functions will all be independent of the link indices and could be described by a single parameter as
(29) |
The parameter is the mean value of when vertex is affected only by (instead of ) attached clauses. The self-consistent equation for is derived from Eq. (25) as
(30) |
The mean value of the overlap [Eq. (4)], the mean energy density , and the free energy density , are computed at a fixed point of Eq. (30) as
(31a) | ||||
(31b) | ||||
(31c) |
And the entropy density is computed following Eq. (8). The relationship between and can be obtained by eliminating from the and curves.
Equation (30) always has a stable fixed point which corresponds to the disordered symmetric phase with zero overlap (). As the inverse temperature increases, another stable fixed point appears, which corresponds to the canonical polarized phase with quite close to unity. These two stable fixed points are separated by an unstable fixed point, which corresponds to the higher-entropy branch of the microcanonical polarized phase (when is relatively small) or to the lower-entropy branch of the microcanonical polarized phase (when is relatively large).
The mean-field theoretical results obtained for the planted -body spin model on a regular random network of degree are summarized in Fig. 7. Qualitatively speaking, these theoretical results are identical to the results shown in Fig. 2 for . But the interval between and is much smaller and the entropy barrier [defined by Eq. (13)] is much higher at .
The planted -body spin model with degree is special in that the minimum energy density of the ferromagnetic CP phase is identical to that of the paramagnetic DS phase. We show in Fig. 8 the mean-field theoretical results obtained for this system. The DS phase experiences a spin glass phase transition at the critical energy density Zhou (2015). At any fixed energy density the entropy density of the DS phase is higher than that of the MP or CP phase, therefore there is no MSSB phase transition in this special system. The MP phase and the CP phase do exist but they are only metastable as compared with the DS phase. The quasi-greedy algorithm of Refs. Bellitti et al. (2021); Bernaschi et al. (2021) relaxed the detailed balance condition to ensure that, once the CP phase is reached, the search process will not jump back to the DS phase.
References
- Franz et al. (2001) S. Franz, M. Mézard, F. Ricci-Tersenghi, M. Weigt, and R. Zecchina, “A ferromagnet with a glass transition,” Europhys. Lett. 55, 465–471 (2001).
- Montanari and Ricci-Tersenghi (2004) A. Montanari and F. Ricci-Tersenghi, “Cooling-schedule dependence of the dynamics of mean-field glasses,” Phys. Rev. B 70, 134406 (2004).
- Zdeborová and Krzakala (2016) L. Zdeborová and F. Krzakala, “Statistical physics of inference: thresholds and algorithms,” Adv. Phys. 65, 453–552 (2016).
- Mézard and Montanari (2009) M. Mézard and A. Montanari, Information, Physics, and Computation (Oxford Univ. Press, New York, 2009).
- Sourlas (1989) N. Sourlas, “Spin-glass models as error-correcting codes,” Nature 339, 693–695 (1989).
- Huang and Zhou (2009) H. Huang and H. J. Zhou, “Cavity approach to the sourlas code system,” Phys. Rev. E 80, 056113 (2009).
- Watanabe (2013) O. Watanabe, “Message passing algorithms for mls-3lin problems,” Algorithmica 66, 848–868 (2013).
- Kirkpatrick et al. (1983) S. Kirkpatrick, C. D. Gelatt Jr., and M. P. Vecchi, “Optimization by simulated annealing,” Science 220, 671–680 (1983).
- Xu et al. (2018) Y.-Z. Xu, C. H. Yeung, H.-J. Zhou, and D. Saad, “Entropy inflection and invisible low-energy states: Defensive alliance example,” Phys. Rev. Lett. 121, 210602 (2018).
- Matsuda et al. (2011) Y. Matsuda, H. Nishimori, L. Zdevorová, and F. Krzakala, “Random-field -spin-glass model on regular random graphs,” J. Phys. A: Math. Theor. 44, 185002 (2011).
- Bandeira et al. (2018) A. S. Bandeira, A. Perry, and A. S. Wein, “Notes on computational-to-statistical gaps: Predictions using statistical physics,” Portugaliae Mathematica 75, 159–186 (2018).
- Li et al. (2009) K. Li, H. Ma, and H. J. Zhou, “From one solution of a -satisfiability formula to a solution cluster: Frozen variables and entropy,” Phys. Rev. E 79, 031102 (2009).
- Krzakala et al. (2014) F. Krzakala, M. Mézard, and L. Zdeborová, “Reweighted belief propagation and quiet planting for random -sat,” Journal on Satisfiability, Boolean Modeling and Computation 8, 149–171 (2014).
- Krzakala and Zdeborova (2009) F. Krzakala and L. Zdeborova, “Hiding quiet solutions in random constraint satisfaction problems,” Phys. Rev. Lett. 102, 238701 (2009).
- Zhou (2019a) H.-J. Zhou, “Kinked entropy and discontinuous microcanonical spontaneous symmetry breaking,” Phys. Rev. Lett. 122, 160601 (2019a).
- Mézard and Parisi (2001) M. Mézard and G. Parisi, “The bethe lattice spin glass revisited,” Eur. Phys. J. B 20, 217–233 (2001).
- Mézard and Montanari (2006) M. Mézard and A. Montanari, “Reconstruction on trees and spin glass transition,” J. Stat. Phys. 124, 1317–1350 (2006).
- Zhou (2015) H.-J. Zhou, Spin Glass and Message Passing (Science Press, Beijing, China, 2015).
- Gross (2001) D. H. E. Gross, Microcanonical Thermodynamics: Phase Transitions in “Small” Systems (World Scientific, Singapore, 2001).
- Creutz (1983) M. Creutz, “Microcanonical monte carlo simulation,” Phys. Rev. Lett. 50, 1411–1414 (1983).
- Rose and Machta (2019) N. Rose and J. Machta, “Equilibrium microcanonical annealing for first-order phase transitions,” Phys. Rev. E 100, 063304 (2019).
- Weiss (1981) G. H. Weiss, “First passage time problems for one-dimensional random walks,” J. Stat. Phys. 24, 587–594 (1981).
- Khantha and Balakrishnan (1983) M. Khantha and V. Balakrishnan, “First passage time distribution for finite one-dimensional random walks,” Pramana 21, 111–122 (1983).
- Bauke and Mertens (2007) H. Bauke and S. Mertens, “Random numbers for large-scale distributed monte carlo simulations,” Phys. Rev. E 75, 066701 (2007).
- Alava et al. (2008) M. Alava, J. Ardelius, E. Aurell, P. Kaski, S. Krishnamurthy, P. Orponen, and S. Seitz, “Circumspect descent prevails in solving random constraint satisfaction problems,” Proc. Natl. Acad. Sci. USA 105, 15253–15257 (2008).
- Ma and Zhou (2011) H. Ma and H. Zhou, “Approaching the ground states of the random maximum two-satisfiability problem by a greedy single-spin flipping process,” Phys. Rev. E 83, 052101 (2011).
- Efron (1979) B. Efron, “Computers and the theory of statistics: Thinking the unthinkable,” SIAM Rev. 21, 460–480 (1979).
- Van den Broeck and Reimann (1996) C. Van den Broeck and P. Reimann, “Unsupervised learning by examples: On-line wersus off-line,” Phys. Rev. Lett. 76, 2188–2191 (1996).
- Reimann and Van den Broeck (1996) P. Reimann and C. Van den Broeck, “Learning by examples from a nonuniform distribution,” Phys. Rev. E 53, 3989–3998 (1996).
- Engel and Van den Broeck (2001) A. Engel and C. Van den Broeck, Statistical Mechanics of Learning (Cambridge University Press, Cambridge, UK, 2001).
- Kabashima and Uda (2004) Y. Kabashima and S. Uda, “A bp-based algorithm for performing bayesian inference in large perceptron-type networks,” Lect. Notes Comput. Sci. 3244, 479–493 (2004).
- Braunstein and Zecchina (2006) A. Braunstein and R. Zecchina, “Learning by message passing in networks of discrete synapses,” Phys. Rev. Lett. 96, 030201 (2006).
- Huang and Toyoizumi (2015) H. Huang and T. Toyoizumi, “Advanced mean-field theory of the restricted boltzmann machine,” Phys. Rev. E 91, 050101(R) (2015).
- Zhou (2019b) H.-J. Zhou, “Active online learning in the binary perceptron problem,” Commun. Theor. Phys. 71, 243–252 (2019b).
- Hu et al. (2019) G.-K. Hu, T. Liu, M.-X. Liu, W. Chen, and X.-S. Chen, “Condensation of eigen microstate in statistical ensemble and phase transition,” Science China Phys. Mech. Astron. 62, 990511 (2019).
- Bellitti et al. (2021) M. Bellitti, F. Ricci-Tersenghi, and A. Scardicchio, “Entropic barriers as a reason for hardness in both classical and quantum algorithms,” e-print arXiv:2021.00182 [cond-mat.dis-nn] (2021).
- Bernaschi et al. (2021) M. Bernaschi, M. Bisson, M. Fatica, E. Marinari, V. Martin-Mayor, G. Parisi, and F. Ricci-Tersenghi, “How we are leading a 3-xorsat challenge: from energy landscape to the algorithm and its efficient implementation on gpus,” e-print arXiv:2021.09510 [cond-mat.dis-nn] (2021).