1 Introduction
In this work, we formalize a general and deep connection between two intensely studied classes
of optimization problems: constraint satisfaction problems (CSPs), studied in computer science,
and spin glass models, studied in statistical physics. We demonstrate that as the clause density
of the random CSP increases, the geometric properties of the set of nearly-optimal solutions
converge to those of a corresponding spin glass model. In these spin glass models, the very same
geometric properties imply bounds on the average-case approximability achieved by broad classes
of algorithms [
AMS21b
,
GJW20
,
GJ21
]; these bounds are conjectured to be the best possible among
all polynomial-time algorithms [
Gam21
,
HS21
]. The correspondence we establish here implies that
the same lower bounds apply to average-case CSPs.
CSPs are paradigmatic computational tasks. Their study has led to foundational results in
computational hardness, approximability, and optimization [
Pas13
]. In recent years, we have learned
more about CSPs through methods inspired by statistical physics, especially when the clauses of
the CSP are chosen randomly [
DSS16b
,
DSS16a
,
DMS17
,
Sen18
,
DSS22
]. By identifying the solution
quality of a variable assignment with the energy of a configuration of particles, we can investigate
“physical” properties of the CSP, such as phase transitions or solution clustering at different
temperatures. Surprisingly, these physical properties can have computational consequences.
We study random CSP instances with Boolean variables, random literal signs, and number of
constraints which is a large constant times the number of variables, such that each constraint acts
on a constant number of variables. If
n
is the number of variables, then
m=αn
is the number
of constraints for some constant
α
. For large enough
α
, the CSP is unsatisfiable with probability
1
−on(
1
)
. Therefore the goal is to find a variable assignment that maximizes the number of satisfied
constraints, and we think of these as Max-CSPs.
Given a random Max-CSP, how many constraints can be satisfied? How are the best assignments
distributed around the hypercube? Can we find these assignments with efficient algorithms?
Statistical physicists use questions like these to investigate the solution geometry of a problem. Our
main result connects the solution geometry of a Max-CSP (with large enough
α
) to that of a spin
glass. As a consequence, much of our mathematical and algorithmic understanding of spin glasses
transfers to CSPs at large clause density.
Aspin glass (more properly a mixed mean-field spin glass) is a random system of
n
particles (variables)
specified by a mixture polynomial
ξ(s) = Pp≥1c2
psp
. In this model, the interaction strength between
every
p
-tuple of particles is an independent Gaussian with variance
c2
pn1−p
; this can be thought of
as a randomly-weighted CSP on the complete
p
-uniform hypergraph. We show that as the clause
density of any random CSP increases (
α→ ∞
), the solution space starts to resemble that of a spin
glass. For example, Max-Cut on random graphs with large constant average degree qualitatively
looks like the Sherrington-Kirkpatrick model, where
c2=
1,
{ci}i,2=
0 [
SK75
,
DMS17
]. (Note that our
proof applies to Max-2XOR instead of Max-Cut, so we do not recover this result exactly.)
1.1 Main results
Formally, we relate the free energy density of a random Max-CSP instance to that of a particular spin
glass. The associated spin glass is determined only by the Fourier weights of the CSP. In fact, the
mixture polynomial of the spin glass is, up to a constant, the noise stability polynomial of the CSP
1