Watching the Cluster Count During Decimation

Many hard puzzles, such as Boolean satisfiability (SAT: finding a true/false assignment that satisfies every clause of a logical formula), are solved in practice by decimation. A message-passing algorithm estimates how strongly each variable "wants" to be true or false. The most confident variables are fixed permanently, the formula is simplified, and the loop repeats. This works well until it does not. One wrong fix, made while the formula still looks solvable, silently turns the remaining formula unsatisfiable, and nothing in the loop notices. Statistical physics has a precise account of why this happens: one-step replica symmetry breaking (1RSB), the theory that, past a critical constraint density, the solutions shatter into exponentially many isolated clusters. That theory gives a number, the complexity $\Sigma$, which is the log-count of clusters per variable. When $\Sigma$ of the remaining formula hits zero, no clusters are left to land in.

This note proposes treating that number as a live instrument rather than a theoretical endpoint. We compute $\Sigma$ of the residual formula after every decimation block, using the same survey messages the solver already computes. We then test, on finite instances where the truth can be checked exactly, whether it predicts the moment decimation commits a fatal error better than the cheap confidence signals solvers use today. If it does, we use it to decide when to stop decimating, when to undo the last block, and when to switch to a gentler move. The project addresses the third direction, the lack of empirical validation, directly. The asymptotic barriers for decimation proven by Gamarnik & Sudan and the tree analysis of Montanari et al. have never been confronted with what a real max-confidence solver does at $N = 10^3$ to $10^5$.

Core Claim

Let $F_t$ be the residual formula after $t$ decimation blocks. Let $\hat\Sigma_t$ be its 1RSB complexity estimated from converged survey propagation messages, at Parisi parameter $m=1$ for the clustering count and at $m=0$ for the frozen-cluster count used by survey propagation. Survey propagation is the message-passing algorithm that tracks distributions over clusters rather than over single solutions.

We claim three things. First, the trajectory $\hat\Sigma_t$ is a calibrated early warning of the event "$F_t$ just became unsatisfiable." Second, it beats bias-only signals such as maximum polarization or the fraction of near-frozen variables. Third, a controller built on it moves the empirical algorithmic threshold closer to the satisfiability threshold than unary decimation or streamlining alone.

The controller backs off whenever the estimated complexity drops too fast relative to the shrinking problem:

$$ \frac{\hat\Sigma_{t} - \hat\Sigma_{t+1}}{N_{t} - N_{t+1}} > \tau . $$

Here $N_t$ is the number of unassigned variables in $F_t$, and $\tau$ is a threshold tuned on held-out instances. The rationale is that fixing a variable consistently with a surviving cluster should cost little cluster entropy per fixed variable. A sudden drop signals that the solver has cut the measure down to clusters that will not survive.

Relation to Prior Work

Two papers supply the motivating evidence. Comparing Beliefs, Surveys, and Random Walks ran survey-guided decimation followed by the local search WalkSAT on random 3-SAT. It showed large speedups, but it stopped decimation with an uncalibrated heuristic before the messages diverged; we replace that heuristic with a measured signal. Survey Propagation Revisited showed that survey marginals match true "cover" marginals (partial assignments that summarize a cluster), but only through expensive offline sampling. We do not attempt to recover covers online; we only need the scalar complexity, which falls out of the messages.

Practitioners have long been able to compute complexity alongside surveys. What the literature summarized here lacks is any evaluation of it as a calibrated, step-wise failure predictor, or as a control signal compared against simpler ones.

Three papers constrain the design. Clusters of solutions and replica symmetry breaking in random k-satisfiability gives the transitions for $k=4$ (clustering $\alpha_d\approx9.38$, condensation $\alpha_c\approx9.547$, satisfiability $\alpha_s\approx9.931$). It also warns that 1RSB is incomplete for 3-SAT near threshold, so $\hat\Sigma$ may be biased there; we treat $k=3$ as a stress test, not a showcase. Montanari et al. predict belief-propagation decimation fails near $\alpha_{spin}\approx8.05$ for $k=4$, but under random decimation order and exact marginals. We measure the real max-bias order, which their tree model cannot describe, along with the $k=3$ case where no spinodal appears. Gamarnik & Sudan prove that local sequential algorithms of constant radius fail on NAE-$K$-SAT above roughly $2^{K-1}\log^2 K/K$. Their result has no experiments, and practical survey propagation's effective radius grows with iteration count, so whether the bound bites at finite $K$ and $N$ is an open empirical question we answer as a by-product.

One paper supplies the main competing method. Streamlining Variational Inference for Constraint Satisfaction Problems replaces fixing a variable with adding a two-variable "or" constraint, hedging against early errors. However, it never quantifies when hedging is worth the short loops it adds to the graph. Our controller can call streamlining only when the complexity signal flags danger, which directly tests the trade-off their paper leaves open. Counting and Hardness-of-Finding Fixed Points in Cellular Automata on Random Graphs shows that frozen 1RSB clusters coincide with message-passing solver collapse (success falling from 100% to 0–10%). That is evidence for the correlation we rely on, but it is static and per problem class, whereas we need it per step within one run.

Research Program

Instrumentation. We first build a survey-propagation decimation solver, with the belief-propagation to survey-propagation interpolation of Aurell et al. as a switch. After each block of fixes it logs the complexity estimates, the polarization statistics, the number of message iterations to converge, and the residual size.

Ground-truth labels. The second component is a labeling pipeline that records, for every step, whether $F_t$ is still satisfiable. On random $k$-SAT with moderate $N$ (a few thousand variables), a conflict-driven clause-learning solver, the standard industrial SAT method, can certify the residuals. For 3-XORSAT, a system of parity constraints, satisfiability of every residual is decided exactly by Gaussian elimination at any size. In addition, Cocco et al. give the rigorous clustering point $c_d\simeq0.818$ and frustration point $c_s\simeq0.918$ for it. XORSAT is therefore the cleanest place to check whether $\hat\Sigma_t$ is even estimated correctly before trusting it elsewhere.

Controllers. Third, we compare three controllers driven by the logged signals. The first only decides where to stop and hand off to WalkSAT or a clause-learning solver. The second also undoes the last block and refixes with smaller blocks. The third switches from fixing variables to streamlining when the signal fires. All thresholds are tuned on a held-out set of instances at a single density and then frozen.

Finite-size map. Finally, we produce a finite-size map of the algorithmic threshold, the density at which 50% of runs succeed, for $k=3$ to $6$ and NAE-$K$-SAT with $K=4$ to $8$, at $N$ from $10^3$ to $10^5$. We compare it against $\alpha_d$, $\alpha_c$, $\alpha_{spin}$ and the Gamarnik–Sudan scaling.

Baselines

The naive reference point is plain unary survey-guided decimation with fixed block size, stopped by the trivial-message criterion as in Aurell et al., followed by WalkSAT. Their reported result is that, on 100 random 3-SAT formulas at $\alpha=4.2$, WalkSAT alone needed over 27,000 seconds while survey-guided WalkSAT needed 300 seconds. Our controller must beat this pipeline in success rate at matched wall-clock, not merely match it.

The strongest existing method is Survey Inspired Streamlining from Grover et al.. It reports reducing the gap between algorithmic and theoretical thresholds by 16.3% on average over $k=3$ to $6$, and cutting local-search timeout failures from 36% with decimation to 24% with streamlining. We rerun it in our code base on the same instances, with the same message-passing iteration caps, the same downstream solver and timeout, and the same hyperparameter search budget as our controller. Beating it means a larger threshold-gap reduction on the same $(k, N)$ grid, with non-overlapping confidence intervals over at least five independent instance seeds, at no more than 1.5 times its wall-clock.

A modern clause-learning solver run directly on the full formula is the third reference, under the same timeout. The Random-track setting of SAT Competition 2016 supplies the protocol. For our specific instance grid we found no reported result on Lacuna for clause-learning solve rates near threshold, so we measure it ourselves.

The key ablation isolates the complexity signal. It runs the identical controller, with the same back-off and switching logic and the same tuning budget, but triggered by the cheapest competitive signals. These are the maximum survey bias, the fraction of variables polarized above 0.9, and the number of iterations survey propagation needed to converge. If any of these triggers matches the complexity trigger, the physics is not doing the work.

Why not just…?

Why not just trigger on the variables' confidence instead of computing complexity? This is the most serious threat. Bias and complexity come from the same messages, and a collapse in complexity may always coincide with a jump in polarization. We do not argue this away. The ablation above runs exactly that controller, and the calibration study compares how far in advance each signal fires before the true unsatisfiable step. If bias predicts failure with equal accuracy and lead time, the honest conclusion is that bias suffices, and the paper becomes an empirical map plus a negative result on complexity. We expect complexity to win specifically in the condensation window between $\alpha_c$ and $\alpha_s$ for $k\ge4$. There, a few clusters hold most solutions, so bias can stay high while the count of surviving clusters collapses. The effect should also be strongest for $k\ge6$, where freezing precedes condensation according to Montanari, Ricci-Tersenghi and Semerjian.

Why not just always streamline? Streamlining hedges every step, but Grover et al. report that the added constraints create short loops that degrade message convergence. Constant hedging therefore pays that cost even when fixing a variable is safe. Our third controller streamlines only when the signal fires. If always-streamlining matches it, the signal has no value as a switch, and the comparison will show that.

Why not just hand the formula to a clause-learning solver or WalkSAT? Aurell et al. show that WalkSAT's cost explodes past $\alpha\approx4.15$ on 3-SAT, consistent with shattering. Clause-learning solvers are tuned for structured industrial formulas, and the file offers no evidence that they reach near-threshold random instances at $N=10^5$. Both are run as baselines and also as the downstream stage. This makes the question precise: does better-timed decimation give the downstream solver an easier residual than no decimation at all?

Why not restart with a different random seed when decimation fails? Restarts help only if failures are independent across seeds. If max-bias decimation fails for structural reasons, near an algorithmic barrier of the kind Gamarnik and Sudan describe, restarts will fail together. We include a restart baseline matched in total compute; its success curve versus number of restarts directly tests that independence.

Proposed Experiments

The first decisive check is estimator validity on 3-XORSAT. Here, exact residual satisfiability is available by elimination, and Cocco et al. give rigorous thresholds. If $\hat\Sigma_t$ does not track the known clustering point $c_d\simeq0.818$, or does not precede elimination-certified unsatisfiability, the program stops there.

The second check is step-wise calibration on random 4-, 5- and 6-SAT at $N=2000$ to $5000$, labeled by a clause-learning solver on every residual. We report the area under the ROC curve for predicting "next block makes $F_t$ unsatisfiable" from each signal, plus the mean lead time in steps. Complexity must beat the best bias signal on both measures, particularly for densities between $\alpha_c$ and $\alpha_s$.

The third check is end-to-end performance at $N=10^4$ to $5\times10^4$. We measure threshold-gap reduction and timeout rate against Survey Inspired Streamlining under the matched protocol above, plus wall-clock against the plain survey-guided WalkSAT pipeline. Here $k=3$ is reported separately, since 1RSB is known to be incomplete there.

The fourth check is a finite-size comparison of measured algorithmic thresholds with $\alpha_{spin}\approx8.05$ for belief-propagation decimation at $k=4$, and with the Gamarnik–Sudan scaling on NAE-$K$-SAT. This gives the first empirical test of whether those asymptotic barriers describe max-bias solvers at realistic sizes.

As an out-of-distribution probe, we run the calibration study on quasigroup-with-holes instances, the structured setting where Hsu et al. report that EMBP-a solved $17\times17$ instances in 4,338 seconds versus 31,610 seconds for the dom/deg heuristic. Quasigroup instances violate the random-graph assumptions behind 1RSB. A calibration drop there is an expected and informative outcome, not a failure of the main claim.