Manuscript Offprint
arXiv:2610.42011The C-3PO Framework: Algorithms for -Hard Problems on Graphs with Low Threshold Rank or High Girth
The C-3PO Framework: Algorithms for #BIS-Hard Problems on Graphs with Low Threshold Rank or High Girth
Ijay Narang*
Abstract
We give approximate counting and sampling algorithms for spin models on graphs of low threshold rank or high girth. Given any -vertex graph , let count normalized-Laplacian eigenvalues strictly below . For , an -approximate counting algorithm outputs an estimate of the partition function satisfying with probability at least . An -approximate sampling algorithm outputs a configuration whose distribution is within total variation distance of the target distribution. We give the following results:
- Ferromagnetic Potts. Fix and . There exists such that, for every fixed inverse temperature , the zero-field -state Potts model admits approximate counting and sampling algorithms:
-
On arbitrary graphs in time poly.
-
Fix . On -regular graphs of girth in time poly.
- Bipartite hard-core. Fix and . There exists such that, for every fixed fugacity , the hard-core model admits approximate counting and sampling:
-
On -regular vertex-transitive bipartite graphs in time poly.
-
On -regular bipartite graphs of girth in poly.
All four results follow from verifying the hypotheses of a new framework we call C-3PO. At a high level, the C-3PO algorithm proceeds by enumerating small cuts and reconstructing the original measure through cluster expansion around each small cut. Underlying the algorithm is an improvement of subspace enumeration methods via active regression.
*School of Computer Science, Georgia Institute of Technology, inarang3@gatech.edu
where the nonnegative vertex weights and edge interactions specify the model. The associated partition function and Gibbs distribution of a spin model are
Spin models have received much attention in statistical physics and theoretical computer science, as they describe interacting particles and encode combinatorial structures. Two fundamental computational tasks are computing the partition function and sampling from the Gibbs distribution. Exact evaluation of the partition function is #P-hard in general [Val79], motivating the study of approximation algorithms.
For , a randomized, -approximate counting algorithm outputs a number satisfying with probability at least . An -approximate sampling algorithm outputs a configuration with distribution satisfying .
In this paper, we study approximate counting and sampling for “cut-based” spin models. Let denote the set of feasible configurations (where feasibility is not necessarily dependent on cuts). Cut-based models are models which take the form
We call the parameter the inverse temperature, since large corresponds to low temperature, as the model concentrates around configurations with small cuts. Note that this formulation encompasses a broad class of models such as the zero-field ferromagnetic Ising and Potts models with uniform interactions, and the hard-core model on regular bipartite graphs under the encoding given in Section 3.2.
Two prominent approaches to approximate counting and sampling exploit different temperature regimes. At high temperature, weak interactions often allow local Markov chains, such as Glauber dynamics, to mix rapidly. At low temperature, the Gibbs distribution can instead concentrate around competing ordered phases. Moving between them through local updates may require passing through configurations of very small probability, creating bottlenecks and causing exponentially slow mixing [BCF 99, MWW09].
Under suitable structural assumptions on the graph, polymer models and cluster expansions provide an alternative in the low temperature regime [HPR20, JKP20, JPP23, CHP26, NP26]. These approaches exploit additional structure (such as expansion) to identify a small explicit family of well-separated dominant configurations and represent deviations around each as collections of defects, called polymers. Examples include the monochromatic configurations for the low temperature ferromagnetic Potts model on lattice tori [HPR20], and the two configurations occupying either bipartition class for the high-fugacity hard-core model on bipartite expanders [JKP20, JPP23, NP26].
When these defects are sufficiently suppressed, a convergent cluster expansion allows the contribution of each phase to be approximated efficiently. In these settings, the corresponding polymer models represent nearly disjoint regions of the configuration space, allowing their contributions to be combined with almost no error from overlap, yielding efficient approximate counting and sampling algorithms.
On general graphs, this need not be the case. There may be exponentially many competing reference configurations, and their polymer expansions may overlap substantially. Our main contribution is a method of dealing with this more general case. In particular, our framework uses an improved subspace enumeration algorithm to construct a collection of reference configurations with small cuts. These references serve as the bases for polymer expansions that together capture almost all Gibbs mass. By combining their contributions (and carefully correcting for overlaps), we obtain algorithms for approximate counting and sampling in cut-based models.
For notation, let be an -vertex graph, and its adjacency and degree matrices and its normalized Laplacian. Write and for the degree of and the edge boundary of , respectively. For a fixed , define its threshold rank by
Let denote the class of graphs with threshold rank at most . We note that though low threshold rank is necessary for efficient subspace-enumeration algorithms [KT07, Kol11, ABS15], it is not too restrictive of a property, and holds for broad classes of graphs. For example, spectral expanders have , and high girth also gives low threshold rank (see Lemma 3.1). Additionally, dense graphs have low threshold rank, indeed, for fixed , a graph of minimum degree satisfies .
Informally, our main result is as follows.
Theorem 1.1 (Theorem 2.2, informal). Consider a spin model on whose feasible configurations have weights
If the following conditions are met:
-
(Threshold Rank) The graph has minimum degree and threshold rank satisfying .
-
(Local Symmetry) There exists a grouping of vertex-spin pairs into types such that pairs of the same type have matching radius- neighborhoods up to relabeling vertices and spins.
Then, for every sufficiently large fixed and every , there are -approximate counting and sampling algorithms on the class with running time
We remark that both the threshold-rank bound and symmetry conditions are critical to our algorithm. At a high level, the threshold-rank assumption enables us to find the dominant cut configurations efficiently, while the symmetry condition enables us to control their contributions using cluster expansion. Before we discuss the algorithm and proof underlying our main result, we demonstrate its utility through two examples.
1.1 Application I: The Ferromagnetic Potts Model
The zero-field ferromagnetic q-state Potts model assigns a spin in [q] to each vertex and rewards agreement across edges. For inverse temperature , its partition function and Gibbs distribution are
Thus, large inverse temperature corresponds to the low temperature regime considered by our framework.
The approximation complexity differs sharply between two and more than two spins. For , the model is equivalent to the ferromagnetic Ising model, for which Jerrum and Sinclair [JS93] gave an FPRAS on arbitrary graphs at every temperature. For , Galanis, Štefanković, Vigoda, and Yang [GŠVY16] proved that approximating the partition function on bipartite graphs of maximum degree at most is #BIS-hard whenever
where is referred to as the order-disorder threshold, at which the ordered and disordered phases have equal limiting pressure on random regular graphs. Expansion supports algorithms in this difficult regime. Using polymer models around the constant colorings, Jenssen, Keevash, and Perkins [JKP20] gave an FPTAS and an efficient sampler at low temperature on bounded-degree expanders. Carlson, Davies, Fraiman, Kolla, Potukuchi, and Yap [CDF24] later sharpened the sufficient temperature and expansion conditions on regular graphs, obtaining algorithms closer to the order-disorder threshold. Carlson, Davies, and Kolla [CDK24] gave related low temperature counting algorithms under a small-set expansion condition.
Our first result on the ferromagnetic Potts model gives algorithmic guarantees in terms of threshold rank alone.
Theorem 1.2. Fix , . There exists such that, for every fixed and every , the zero-field ferromagnetic -state Potts model admits -approximate counting and sampling algorithms on the class in time
We remark that, to the best of our knowledge, Theorem 1.2 gives the most general graph conditions for counting and sampling low-temperature ferromagnetic Potts. Indeed, previous work required additional assumptions such as bounded degree or small set expansion [CDK24].
Additionally, our algorithms naturally extend to -regular, high girth graphs. Let denote the class of -regular graphs with girth g.
Theorem 1.3. Fix and , and let be the threshold from Theorem 2.2. For every fixed and every , the zero-field ferromagnetic -state Potts model admits -approximate counting and sampling algorithms on the class in time
1.2 Application II: The Bipartite Hard-core Model
The hard-core model is a distribution on the independent sets of a graph . Given a fugacity , its partition function and Gibbs distribution are
Let denote the set of all graphs of maximum degree at most . On this class of graphs, the hard-core model exhibits a computational threshold at . When , there is no efficient approximate sampler or FPRAS on unless NP = RP [Sly10, SS14, GŠV16]; when , efficient approximate counting and sampling are possible through correlation decay and the self-avoiding-walk tree [Wei06]. The value corresponds to the uniqueness threshold on the infinite -regular tree, and is explicitly known to be .
For bipartite graphs, however, the situation is less well understood. At , approximately counting independent sets is the canonical problem #BIS, which is neither known to admit an FPRAS nor known to be NP-hard to approximate [DGGJ04, DGJ10]. Moreover, many natural approximate counting problems have been shown to be #BIS-hard [DGGJ04, DGJ10], making the complexity of #BIS a central open problem in approximate counting. Additionally, let denote the class of bipartite graphs with maximum degree at most . Cai, Galanis, Goldberg, Guo, Jerrum, Štefanković, and Vigoda [CGG+16] showed that, for every fixed and , approximating on graphs is #BIS-hard. This hardness also extends to the non-uniqueness regime on , the class of -regular bipartite graphs [Nar26].
Nevertheless, progress on approximate counting and sampling beyond uniqueness has been made for special classes of bipartite graphs, including lattices [HPR20, CHP26], bipartite expanders [JKP20, CGG+21, JPP23, NP26], and random regular bipartite graphs [LLLM22, CGŠV22, KOT26]. Such algorithms proceed by observing that at low temperature, independent sets corresponding to an entire bipartition class give explicit reference configurations, with deviations from each described by a polymer model. Most recently, Narang and Perkins [NP26] refined the high-fugacity polymer analysis to give algorithms under the spectral expansion condition . For a -regular bipartite graph with bi-adjacency matrix , the bound is equivalent to . Our first hard-core result can thus be viewed as an extension of polymer models for bipartite graphs beyond the second largest eigenvalue.
Recall that a graph automorphism of is a bijection such that if and only if . We say that is vertex-transitive if, for every , there exists an automorphism of satisfying . Let denote the set of -regular, vertex-transitive bipartite graphs with threshold rank at most .
Theorem 1.4. Fix , . There exists such that, for every fixed and every , the hard-core model admits -approximate counting and sampling algorithms on the class in time
We remark that, in contrast to our Potts model results, our hard-core application requires vertex transitivity because of the asymmetry between spins. However, we can also get algorithms without such a strong notion of symmetry.
Indeed, our second hard-core result gives algorithms only dependent on girth. This is because in a regular graph of sufficiently large girth, neighborhoods of a given radius are identical rooted trees. These local symmetries (together with the fact that large girth gives good threshold rank) allow us to remove the vertex transitivity condition.
For notation, let denote the set of all -regular bipartite graphs of girth .
Theorem 1.5. Fix . For every fixed and every , the hard-core model admits -approximate counting and sampling algorithms on the class in time
2 The C-3PO Framework
Our algorithms are based on the observation that at low temperatures, “cut-based” models place most of their Gibbs mass near small cuts, and that on graphs with low threshold rank, we can efficiently find such cuts via subspace-enumeration based methods. Thus, the C-3PO method proceeds in three stages. We begin by constructing a list of all small reference cuts ( stage). We then utilize a polymer model to approximate local deviations around each reference cut ( stage), and then finally correct for overlaps ( stage) through rejection sampling.
We begin by defining the local symmetry and type balance that our algorithms require. Write for the vertices within distance of , or its connected component when .
Definition 2.1 (Local symmetry and type balance). Let and . A pairwise -spin model on has local symmetry and type balance if there are a finite type set and a map such that:
(a) (Local symmetry) Whenever , there are an isomorphism preserving degrees in and a permutation of with and . For each edge in the first ball and , is permitted at if and only if is permitted at .
(b) (Type balance) Write and fix an ordering of each edge's endpoints. There exists a constant configuration and functions such that:
(i) Every feasible configuration satisfies
(ii) For every edge uv and permitted spin pair ,
Roughly speaking, the above conditions state that for any vertex-spin pairs of the same type, their radius- neighborhoods look identical after a relabeling of vertices and spins. The reason for this condition is that while we utilize subspace enumeration to identify low energy regions, the fluctuations around each cut may vary significantly. This local symmetry prevents that from happening. We remark that despite its technical nature, the above condition is quite easy to satisfy, as we will see in the proofs of Theorems 1.2, 1.3, 1.4, and 1.5.
Indeed, we note that the zero-field ferromagnetic Potts model satisfies these conditions on every graph with and . Take and , so that all spins at a given vertex have the same type. The identity map on vertices, together with a spin permutation sending to , gives the required local symmetry. Moreover, under this choice, each type occurs exactly once in every configuration, and so for every . Taking every therefore gives type balance.
We may now state our main result.
Theorem 2.2. Fix , , and . There exists such that, for every , , and fixed , there are -approximate counting and sampling algorithms for every on graphs for pairwise cut-based -spin models satisfying the following conditions.
-
For every , the constant configuration is feasible.
-
For every feasible configuration , every , and every connected component of , recoloring all vertices of to any spin appearing on a neighbor outside preserves feasibility.
-
The spin model on satisfies Definition 2.1 with parameters .
Furthermore, the run-time of our approximation algorithms is
where and are the number of vertices and minimum degree of the input graph, respectively, and when .
Before we present the inner workings of the , , and steps, we describe the high-level ideas gluing them all together.
2.1 Overview of the Technical Ideas
Let us begin by briefly recalling how polymer models are utilized in the algorithms of [JKP20, HPR20, JPP23, CHP26, NP26] for #BIS. In the regimes considered by these algorithms, expansion (either combinatorial or spectral) ensures that almost all Gibbs mass comes from independent sets described as deviations around one of the two configurations occupying an entire side of the bipartition . Thus, one may approximate the partition function by
where and are the weights of the two reference configurations, and and account for the deviations around these configurations.
We generalize this approach to cut-based models. Let b be a cut budget, specified below. At low temperature, we aim to approximate using the sum
We therefore need two ingredients: a collection of small-cut references whose polymer models represent all but a small fraction of the Gibbs mass, and an efficient way to count and sample the deviations around each reference.
For the latter, we must choose a polymer model so that the weights decay rapidly enough in the degree-volume of the vertices they change to compensate for the number of possible polymers (and thus ensure convergence of the cluster expansion). In our model, a change from h to z has relative weight . Thus, a natural way to obtain this decay is therefore to require each polymer to increase the cut by an amount proportional to the degree-volume of the vertices it changes.
Such conditions, known as Peierls conditions, are classical in statistical physics [Pei36, FV17] and also appear in algorithmic work [CGG 21]. We shall use the following Peierls-type condition.
Set and write .
Definition 2.3 (Peierls-type condition). Let and let . We say that the change from to satisfies a Peierls condition with constant if
We may now state the polymer model that we shall utilize around each reference.
Definition 2.4 (Polymer model around a reference). Fix a feasible reference . A polymer around is a pair , with and , satisfying the following conditions. Let denote the configuration that agrees with on and with outside .
(i) T is nonempty and connected.
(ii) for every , and .
(iii) The change from h to satisfies the Peierls-type condition in Definition 2.3, namely
The weight of is . Additionally, we say that two polymers around are compatible if their supports are disjoint and no edge joins them. The polymer partition function and Gibbs distribution of the polymer model are then
In the above, applying to h means replacing the spins on its polymer supports by their assigned spins, leaving all other spins unchanged.
As is standard, we establish convergence of the above model by comparing the polymer weights with the number of possible polymers. Definition 2.3 bounds the weight of a polymer of degree-volume by . To bound the number of such polymers, we count connected supports from a fixed vertex, utilizing a branching argument to include each newly encountered vertex. As a support of degree-volume requires at most binary decisions, and admits at most spin assignments, there are at most such polymers that contain any fixed vertex.
Thus, for sufficiently large , the weight decay dominates this growth:
Every polymer incompatible with a polymer supported on contains a vertex in its closed neighborhood, which has size at most . Summing the preceding bound over this neighborhood allows us to verify the Kotecký–Preiss criterion (Lemma 4.5), giving absolute convergence of the cluster expansion for .
From the above, we now have a convergent polymer model around any feasible reference . The key point now, is to choose a collection of references so that their polymer models collectively represent every feasible configuration. Given any configuration , we want to assign it to a reference such that will be included in the polymer model around . Equivalently, every connected component on which and disagree defines a valid polymer. To achieve this (while simultaneously favoring references with small cuts), we consider the following function:
breaking ties by a fixed ordering. The map thus assigns a reference to each feasible configuration. We call a configuration stable if every monochromatic component of satisfies
Lemma 2.5 (Properties of ). Assume Condition 2. For every , let . Then:
- For every connected component of , the pair is a polymer around . In particular, and
- The reference is stable.
As we require our reference cuts to be both stable and small, let be a cut budget (to be chosen in (2.7)). The list of references we seek is therefore
Our algorithm will thus proceed by enumerating and computing the corresponding cluster expansions around each reference . We will then finish by combining these polymer expansions by a rejection sampling procedure which corrects for overlaps arising when the same configuration is represented in both and .
To show that this algorithm yields a good approximation, we must show that restricting to references with small cuts keeps almost all the Gibbs mass. Condition 1 supplies a feasible constant reference with , providing a baseline relative to which the factor suppresses references with large cuts. However, the contribution around also includes , so we must ensure that the contribution of deviations does not dominate. It is here that local symmetry plays a crucial role. Under Condition 3, the polymer models around and have similar local contributions away from the cut edges, and so we can control the ratio in terms of . The resulting bound (2.6) ensures that, for sufficiently large , the contribution of deviations cannot overwhelm the penalty for a large cut. Thus, the polymer models around references with small cuts capture almost all Gibbs mass and yield a good approximation to .
2.2 Refined Subspace Enumeration and the Algorithmic Details
A high-level outline of our algorithm is as follows.
Algorithm 1 The C-3PO framework
Require: A graph , a cut-weighted spin model satisfying Theorem 2.2, a sufficiently large fixed penalty , and accuracy .
1: : Constructing a Family of Reference Cuts. Use refined subspace enumeration to construct the set of all feasible stable references with cut size at most the cutoff in (2.7). At sufficiently large penalty, Conditions 1 and 3 ensure that their deviations capture all but of the Gibbs mass.
2: : Polymer Model Approximations. For every , construct a polymer model that represents deviations around . Utilize cluster expansion to estimate its partition function and sample its deviations. Set .
3: : Correcting overlaps. Propose a cut with probability proportional to , sample its deviations, and obtain a spin configuration . Fix an ordering of . Accept precisely when is the first reference in this order whose polymer model represents .
4: For sampling, return the first accepted configuration. For counting, estimate the acceptance probability and return , using the computed estimates.
The stage. We enumerate the references in defined by (2.4). Though threshold rank does not provide these references directly, it places their degree-weighted indicator vectors close to a common low-dimensional spectral subspace. For notation, let for , with orthonormal eigenvectors . Put
and let be the orthogonal projector onto . Given a -spin configuration , encode it by
Then
Thus, with denoting the Frobenius norm,
Every small-cut configuration therefore has its degree-weighted indicator vectors close to the same -dimensional subspace. Classical subspace-enumeration algorithms construct a net over the subspace and round its points to obtain discrete candidates [KT07, Kol11, ABS15]. A sufficiently fine net gives error controlled by the cut size, as in [CDKP24, Lemma 9], but enumerating it can require time. We instead improve upon subspace enumeration by replacing the net step by the response-oblivious active-regression procedure of Chen and Price [CP19].
Subspace Enumeration via Active Regression. Before we elaborate upon how we utilize active regression, let us briefly explain the problem setting.
Let be an unknown vector lying close to . Active regression asks, given only and oracle access to the coordinates of , can we find a prediction with error comparable to the optimal least-squares error using as few queries as possible? The algorithm of Chen and Price [CP19] selects and weights coordinates using only (without knowing ). Given the responses to the queries of , it computes a prediction satisfying (with constant probability)
To apply this to our setting, note that although we do not know , each queried vertex has only possible spin values. We apply regression to each , using the same queried vertices and weights for every color. Since the queried vertices are selected independently of , we can try all combinations of spin values at these vertices. Thus, each combination gives predicted indicator vectors . From these, we can obtain candidate configurations by setting
and breaking ties arbitrarily. For a small cut configuration , one combination agrees with at every queried vertex. Thus, with constant probability, its predictions give a candidate satisfying
Repeating the query selection independently polynomially many times and collecting the resulting candidates yields a family of poly(n) candidates which are close to all the required references with high probability. Denote this collection of candidates by Q.
Since contains a nearby candidate for every small-cut configuration, it contains one for every . It remains to recover these references exactly.
Combinatorial Search for Stable References. Fix a reference and a nearby candidate . By (2.5), the disagreement set has degree-volume . However, we do not know which vertices belong to , and trying all possible sets directly would take time. We will therefore work with the connected components of .
This is where stability becomes useful. It lets us find vertices meeting the monochromatic components of each reference. Indeed, (2.3) gives each such component a small boundary relative to its volume, placing its degree-weighted indicator close to S. This allows us to use spectral sampling to find vertices meeting these components.
Specifically, sampling a vertex with probability hits each monochromatic component with probability . Furthermore, as we can also use stability and threshold rank to bound the number of these components by , sampling vertices at a time and repeating this procedure gives a family of poly sets. With high probability, every reference has a set in this family meeting all of its monochromatic components.
We then use these sampled vertices and the candidates' cut edges to guide a search over connected changes of total degree-volume . After pruning candidates with large cuts, this search recovers by retaining only feasible stable configurations with cut at most . Including active regression and spectral sampling, the total running time of the full stage is thus
with success probability at least .
The stage. We shall now consider polymer models around each reference . As discussed in Section 2.1, the Peierls-type condition ensures that a polymer supported on has weight at most . Since the number of polymers of a given degree-volume containing a fixed vertex grows at most exponentially in that volume, this decay ensures convergence of the cluster expansion for sufficiently large . Thus, truncating these expansions gives efficient sampling and approximation of .
It remains to choose the cutoff to ensure that . Although penalizes references with large cuts, their polymer contributions might offset this penalty. We shall therefore utilize the local symmetry provided by Condition 3 and Definition 2.1 to compare with the contribution around the constant reference (which is feasible by Condition 1). Let us now briefly discuss how we achieve this.
Controlling Polymer Mass through Local Symmetry. Let denote the term corresponding to a cluster in the cluster expansion of , and let denote the support of a polymer . Additionally, define
the portion of attributed to the vertex . By definition, we have . Additionally, for each vertex , let denote the constant reference with spin . We shall compare the cluster expansions through the following chain of inequalities:
where and . In the above, the first inequality follows by the triangle inequality and the third is by the type balance condition of Definition 2.1. The difficulty is in proving the second inequality.
To bound (a), observe that a cluster with no cut edges of included looks constant, and thus its contribution agrees with that around the constant reference by Definition 2.4. Thus, only clusters meeting the endpoints of cut edges remain in the difference. As there are at most such endpoints, we can utilize (5.5) to control the contribution through each one. Applying this bound to and the constant references gives an upper bound of .
To bound (b), we use the local symmetry provided by Condition 2.1(a) to compare the constant-reference contributions at vertex-spin pairs of the same type. For clusters within the symmetry radius, the corresponding terms agree by local symmetry, and so the difference in their total contributions comes only from the changes in their type counts, which, by Conditions 2.1(b)(i) and 2.1(b)(ii) are bounded by . For clusters extending beyond the symmetry radius, exponential decay in (5.5) bounds their total contribution by . Putting these together yields the desired upper bound.
Choosing the cut budget. The comparison above establishes that most Gibbs mass is placed around references that correspond to small cuts. We now combine the reference-count bound from the stage with our comparison of polymer contributions. Since the polymer model around the zero-cut reference represents a subset of the feasible configurations, we have . Writing , equation (2.6) gives
Because threshold rank lets us bound the number of stable cuts (as in the stage), it follows that for sufficiently large fixed , this tail decays exponentially in . In particular, we can choose
to make the omitted mass at most .
The O stage. We now have a collection of polymer models that together represent almost all Gibbs mass. It remains to combine them. The difficulty is that the same configuration may be represented around several references, so simply adding their contributions would count it more than once. To correct for this, we adapt the enumeration procedure of [KLM89] to our setting.
Let be the configurations represented around , and write . Since , it suffices to approximate the total weight in and sample from .
Consider the distribution resulting from choosing with probability proportional to and then sampling from the polymer model to produce the tuple . Writing for this distribution and for the normalizing constant gives
Thus, the resulting probability of proposing z is multiplied by the number of references representing it.
We correct this by keeping just one representation of each configuration. Fix an ordering of and accept a proposal only when its chosen reference is the first in this order whose polymer model contains . We check this efficiently using the conditions in Definition 2.4. Under this rule, exactly one proposal pair remains for each and so conditioning on acceptance gives .
3 Applications
We will now prove the four application theorems stated in the introduction by verifying the conditions of Theorem 2.2.
3.1 Ferromagnetic Potts model (Proof of Theorems 1.2 and 1.3)
Proof of Theorem 1.2. Rewrite
so that the normalized model has the required form. We now verify the conditions of Theorem 2.2. For Conditions 1 and 2, every constant configuration is feasible, and recoloring any monochromatic component preserves feasibility, since there are no forbidden spin pairs.
For Condition 3, take and . To verify 2.1(a), suppose , so . Choose the identity graph automorphism and any spin permutation with . A global spin permutation preserves every Potts interaction because
and thus Condition 2.1(a) holds with . For 2.1(b)(i), every type has for every configuration . Choose and set for every edge, type, and spin pair. Then
and so Condition 2.1(b)(ii) holds with . Take and apply Theorem 2.2 with . Multiplying the partition-function estimate by gives the desired result.
To show Theorem 1.3, we shall utilize the following lemma, which allows us to bound threshold-rank in terms of girth.
Lemma 3.1. Let be a -regular graph of girth , with . Set . For , write and set . Then
Proof. Put and let be normalized adjacency on the infinite -regular tree, with adjacency operator . The spectrum of lies in . Indeed, root the tree at and set . The neighbor sum satisfies , including at the root. Summing
over edges bounds the absolute quadratic form on finitely supported ; density gives the claimed operator-norm bound.
For every , closed walks of length based at a vertex of lift to closed walks on its universal covering tree. Otherwise, cancelling immediate edge reversals leaves a nonempty closed nonbacktracking walk, which contains a cycle of length at most . Thus for every . Let and , where is the Chebyshev polynomial. Its degree is , it is nonnegative on the real line, and it is at most one on the tree spectrum. With denoting the unit vector at , moment matching gives
Every eigenvalue of A greater than contributes at least . Hence
The proof of Theorem 1.3 now follows immediately.
Proof of Theorem 1.3. Set , which satisfies since . The proofs of conditions 1-3 follow exactly as in the proof of Theorem 1.2. Thus, the result follows from Theorem 2.2 and the fact that Lemma 3.1 gives .
3.2 Bipartite hard-core model (Proof of Theorems 1.4 and 1.5)
Proof of Theorem 1.4. Write for the bipartition. Relabeling the spin set [2] by , we can encode an independent set by
On an edge with and , the permitted pairs are 00, 01, 11. The only permitted disagreeing pair is 01, which corresponds to an edge with neither endpoint occupied. Therefore, we have that
and consequently,
We verify the conditions of Theorem 2.2. For Condition 1, the constant configurations and encode the independent sets and , respectively, and hence are feasible.
For Condition 2, every boundary neighbor of a monochromatic component has the opposite spin. Flipping the component makes each boundary pair diagonal, while its internal pairs remain diagonal. Both diagonal pairs are permitted, so the recolored configuration is feasible.
For Condition 3, take and define
To verify 2.1(a), suppose . Vertex transitivity gives an automorphism with . Since is connected and bipartite, either preserves both parts or exchanges them. Choose the identity spin permutation in the first case and the flip in the second. The equality of types ensures . The action transports the encoded independent set by , so it preserves every edge constraint. Thus the exact version of Condition 2.1(a) holds.
For 2.1(b)(i), choose . Both types occur times in . Order each edge with , , and define
For every feasible z, regularity gives
Negating this identity gives the corresponding identity for the vacant type. For 2.1(b)(ii), note that every permitted pair satisfies
Thus the balance bound holds with . All conditions are therefore satisfied. Taking
Theorem 2.2 gives the stated guarantees for the normalized model. Multiplying its partition function estimate by preserves relative error, and decoding the sampled configuration preserves total variation distance.
Proof of Theorem 1.5. Set . Since for , we have , and the exponent in Lemma 3.1 equals . We once again verify the conditions of Theorem 2.2. Choose a bipartition and use the encoding from Theorem 1.4: the permitted pairs from to are 00, 01, 11, and . Both constant configurations are feasible, and flipping a monochromatic component makes its boundary pairs diagonal. This proves Conditions 1 and 2.
Use occupied and vacant root types, exactly as in that application. Put . Since , every induced radius- neighborhood is the same rooted -regular tree truncated at depth . For roots of the same type, choose a rooted tree isomorphism; use identity spins if their roots lie in the same bipartition class and flip spins otherwise. Then , and all edge constraints are preserved, including when the bipartition is exchanged. All ambient vertex degrees equal . This proves the local version of 2.1(a).
For 2.1(b)(i)–2.1(b)(ii), choose and the same charges
Regularity gives their sum as and their combined absolute value is . Thus , without any use of transitivity.
The meta theorem gives time exponential in . Lemma 3.1 bounds the rank by . Since
the local-symmetry error is dominated by the stated girth exponent and so the result follows. ☐
4 Preliminaries
4.1 Polymer models and cluster expansions
We begin by defining a polymer model.
Definition 4.1 (Polymer Model). Fix a host graph . Choose a family of possibly labeled nonempty connected subsets of and assign each a weight . Throughout, distances, sizes, vertex membership, and unions of polymers refer to their supports.
We say that two polymers are compatible if and only if . We call a set of mutually compatible polymers a configuration and write to be the set of all configurations.
A polymer model is then defined by its partition function and associated Gibbs distribution:
We note that in the above definition, the empty configuration belongs to and contributes 1 to . A useful fact about polymer models is that they admit a cluster expansion.
Definition 4.2 (Cluster Expansion). Let be a tuple of polymers (with repetition allowed). Let be the incompatibility graph formed from on vertex set , with edges between positions if their polymers are incompatible.
We say that is a cluster when its graph is connected. We denote to be its size and associate the coefficient to each cluster:
The cluster expansion is the following identity
To justify evaluating the cluster expansion, we must verify its convergence. The Kotecký–Preiss criterion [KP86] gives a sufficient condition for this. The below version of the KP criterion is given by [JKP20, Theorem 6].
Theorem 4.3 (Kotecký–Preiss criterion). Consider a polymer model given by on host graph . Define the function and extend to tuples by . If the function satisfies
for all , the cluster expansion (4.3) is absolutely convergent. Furthermore, every vertex satisfies
To implement an efficient algorithm from a convergent cluster expansion, we must show that we can get a sufficiently good approximation from truncation. This is given by the following corollary.
Corollary 4.4. Suppose that the conditions of Theorem 4.3 are met and further that there exists some such that the function satisfies for every polymer.
Then, for every ,
Consequently, truncating the cluster expansion at depth approximates to additive error at most . For nonnegative real polymer weights and , choosing gives additive error at most . Exponentiating the truncated sum then gives an estimate satisfying
Proof. Since for every polymer, every cluster with satisfies
Thus,
where the final inequality follows from (4.5). Plugging in gives the additive-error bound. For nonnegative real weights, because the empty configuration contributes one. Applying the bound with accuracy and exponentiating gives the relative-error claim, since and for .
The above corollary gives us an algorithmic way to utilize the cluster expansion. Recall that our algorithm will leverage multiple cluster expansions over a family of reference cuts. The following lemma bounds the contribution of clusters meeting a specified vertex, which we will use to compare the cluster expansions in our analysis.
For notation, given a polymer and a tuple , write for the number of occurrences of in the tuple.
Lemma 4.5. Consider a polymer model on host graph , with for every . Let , and extend to tuples by . Suppose that
for every . Then, every satisfies
Additionally, for every vertex , it follows that
The same bounds hold for labeled polymers, with distances and vertex membership interpreted through their supports.
We note that the above lemma is a specialization of the standard tree sum argument with the Kotecký–Preiss condition (see [FP07, Section 2]). We include a proof for completeness.
Proof. Set , and let denote the number of spanning trees of . Then, we have that
where the first equality follows by expanding and using the definition of , and the second follows from invariance under permutations of the tuple positions.
We now apply a standard tree-graph inequality [FP07, Eq. (4.5)]. This states that
Plugging this bound into (4.7) gives that
Now, let denote the right-hand side above with the sum restricted to . We prove by induction on N that
for every . The case is trivial as and . For , removing vertex 1 from each spanning tree leaves an unordered collection of rooted subtrees. Each subtree has at most vertices, and its root carries a polymer incompatible with . Dropping the restriction that these subtrees together have at most vertices gives
where the first inequality follows by distributing the vertex labels among the subtrees and dropping the restriction on their combined size, with correcting for their ordering. The equality follows from the Taylor expansion of an exponential function, and the second and third inequalities follow from the induction hypothesis and the assumption of the lemma, respectively.
Finally, since all summands are nonnegative, letting bounds the full tree sum by , proving the first claim.
For the second claim, fix and observe that every tuple satisfies
Multiply by and sum over all tuples with connected. Applying the first claim to each polymer containing v then gives the desired bound.
4.2 Active regression
In active regression, we know a full-column-rank matrix and may query entries of an unknown response . The goal is to use few queries to construct a prediction whose squared error is as close as possible to the optimal least-squares error
where Q is the orthogonal projector onto .
Chen and Price [CP19] show that queries suffice for an expected squared error at most times this optimum. They select and weight coordinates using only and , then solve weighted least squares on the observed responses. The following theorem states their guarantee in terms of distance from the optimal prediction .
Theorem 4.6 (Chen-Price [CP19, Theorem 1]). Let have full column rank, and let be the orthogonal projector onto . For every , there is an efficient randomized procedure depending only on and that selects a set of size and positive weights .
These indices and weights are such that, for every fixed response , the weighted least-squares prediction
satisfies
where the expectation is over the choice of I and its weights.
The next lemma uses a common weighted sample to control the total regression error across several response vectors.
Lemma 4.7. Let have orthonormal columns, with . There is an efficient randomized procedure depending only on that selects a set of at most coordinates and positive weights , where is an absolute constant.
For every fixed , with probability at least 0.99 the procedure returns coordinates and weights such that fitting each column of by weighted least squares using this common sample yields a prediction satisfying
Proof. Apply Theorem 4.6 with and . This selects and weights at most coordinates depending only on , for an absolute constant . Use these same coordinates and weights to fit every column of .
For each fixed , linearity of expectation gives
The result follows by Markov's inequality.
5 Proof of Theorem 2.2
Recall the spectral subspace and the notation and for its orthogonal projector.
5.1 Part 1: Constructing via active regression
Fix a cut budget and recall the reference family from (2.4). We first construct an intermediate family of cuts close to . That is, for every , there is a candidate such that
The following algorithm describes how to use subspace enumeration (combined with active regression) to achieve this.
Algorithm 2 Constructing candidates by active regression
Require: An orthonormal basis of , vertex degrees , and .
Ensure: A candidate family as in Lemma 5.1.
1: Set and .
2: for independent repetitions do
3: Use the procedure in Lemma 4.7 to select coordinates and weights .
4: for each assignment do
5: for each color do
6: Set for .
7: Compute and .
8: end for
9: Add to , where for every , with fixed tie-breaking.
10: end for
11: end for
12: return .
Lemma 5.1. For every , Algorithm 2 runs in time and constructs a family of at most this size. With probability at least , every configuration has a candidate satisfying
Proof. Fix a configuration and let , where for and . Note that by construction,
since each bichromatic edge contributes twice to the sum. Because every eigenvalue of on is at least , we have that
In each repetition, algorithm 2 considers the assignment on the sampled coordinates . For this assignment, Lemma 4.7 gives, with probability at least 0.99, a prediction satisfying
Every column of lies in S. Thus, on this event, orthogonality gives
Now, let be the candidate obtained by taking a largest entry of each row of . If , then , and hence
Summing over misclassified vertices yields
A fixed configuration therefore has no suitable candidate after independent repetitions with probability at most . By the choice of and a union bound over the configurations,
Each repetition considers at most assignments, each taking polynomial time. Thus the family size and running time are bounded by .
5.2 Part 2: Recovering from Q
We now describe how to recover from . By Lemma 5.1, we have that with high probability, every reference in differs from some candidate in on a set of volume at most . We shall now utilize stability to enumerate the changes needed to recover these references.
We first prove Lemma 2.5: the reference from (2.2) is stable, and every connected component on which it differs from z defines a polymer.
Proof of Lemma 2.5. Let , and let be a connected component of . Write for the configuration that agrees with on and with outside .
Observe that is feasible. Clearly every edge with both endpoints in or both endpoints outside is satisfied. For a boundary edge with and , we have . Otherwise, would belong to the same connected component of the disagreement set as , contradicting . Thus the spin pair on in also agrees with that in . Since both and are feasible, is feasible.
Recoloring removes exactly its vertices from the disagreement set with . Therefore,
Since minimizes the defining objective, we have
Rearranging gives and thus is a polymer around . The connected components of the disagreement set are disjoint and nonadjacent, so these polymers are compatible.
We next prove that is stable. Let be a monochromatic component of . If , stability is immediate. Otherwise, at most spins occur across its boundary, so some spin occurs on at least boundary edges. Let be obtained by recoloring all of with this spin. Condition 2 ensures that is feasible.
Because every boundary edge of was a cut edge before this recoloring, we have that at least of these edges are no longer cut edges. Thus,
Moreover, as only vertices in can change their agreement with , the volume penalty increases by at most . Optimality of therefore gives
Consequently, as desired.
Although Lemma 2.5 guarantees a stable reference for every feasible configuration, it does not show how to find these references efficiently. In particular, though every reference in differs from some candidate in on a set of volume at most , directly searching over these changes can incur a factor of . We instead work with the connected components of the disagreement set. The following lemma shows that, once a vertex in a component is known, we can enumerate the possible components containing that vertex in time exponential in the volume budget and polynomial in .
Lemma 5.2. Fix a vertex and a budget . There are at most connected sets with and , and all such sets can be enumerated in time poly(n).
The following depth-first search branches over included and excluded vertices until the volume budget is exceeded. A state records the vertices included in T and those excluded in X.
Algorithm 3 Enumerating connected sets within a volume budget
Require: A graph , a vertex , and a budget .
Ensure: All connected sets containing with volume at most .
1: Fix an ordering of .
2: Set .
3: Initialize a stack with the state .
4: while is nonempty do
5: Pop a state from .
6: if then
7: Let be the vertices outside having a neighbor in .
8: if then
9: Add to .
10: else
11: Let be the first vertex of in the fixed ordering.
12: Push onto .
13: Push onto .
14: end if
15: end if
16: end while
17: return .
Proof of Lemma 5.2. Correctness of the included sets from Algorithm 3 follows immediately from the fact that every output is connected, contains , and has volume at most by the definition of the algorithm. To see that every such set is included, follow the branch that includes a queried vertex exactly when it belongs to . This branch is never pruned, and so connectedness ensures that it eventually outputs .
To bound the runtime and search tree, consider a node with included set . Each preceding decision queried a distinct vertex adjacent to an included vertex. Since included vertices are never removed, these decisions can be charged to distinct adjacency-list entries of vertices in . Thus every node passing the budget check has depth at most . Thus, the number of output sets is at most . As pruned nodes add at most one further level, the entire search tree has nodes. As each node takes polynomial time to process, the running-time bound follows immediately.
The preceding lemma enumerates a connected component once a root is specified. Choosing roots independently for components, however, introduces a factor of . However, we can avoid this factor by sampling vertices from which to start Algorithm 3. We now describe this sampling procedure.
Algorithm 4 Sampling roots for stable references
Require: The rank- projector , the number of spins , and .
Ensure: A list of ordered -tuples of vertices.
1: Set for each .
2: Set .
3: Set .
4: for do
5: Sample independently from the distribution .
6: Append to .
7: end for
8: return .
Lemma 5.3. Every stable reference has at most monochromatic components. Furthermore, for every , Algorithm 4 runs in time
and returns a list of at most this size. With probability at least , for every stable reference , the list contains a tuple with at least one vertex in each monochromatic component of .
Proof of Lemma 5.3. We first show that every has at most monochromatic components. Fix a stable reference , and let be its monochromatic components. For any coefficients , set
Edges within a component contribute zero to . On edges between components, using gives
where the second inequality uses the stability bound (2.3). Furthermore, since the components have disjoint supports, the above vectors form an -dimensional space. If , this space would contain a nonzero vector orthogonal to . Such a vector satisfies , a contradiction. Thus .
We now analyze the sampling procedure. For a monochromatic component , set
Since , we have . Thus,
where the first inequality follows from Cauchy–Schwarz (using that is supported on ), the second uses the eigenvalue bound on , and the last uses the stability bound (2.3).
Note that the probabilities in Algorithm 4 form a valid distribution as they sum to 1 since . Additionally, note that by (5.3), a single draw lands in any fixed component with probability at least . Thus, for a fixed stable reference with components, the first s entries of a tuple contain one vertex from each component with probability at least
as there are possible orders of the components. The second inequality holds because decreases for , and the last follows from the fact .
The algorithm samples independent tuples. Thus, by taking a union bound over the at most stable references, the probability that some reference has no tuple containing a vertex from each of its components is at most
by the choice of T as desired.
Having established Lemmas 2.5, 5.1, 5.2, and 5.3, we now have the ingredients needed to recover from . In particular, Lemma 2.5 shows that every feasible configuration can be represented by compatible polymers around some stable reference and Lemma 5.3 supplies a list of -tuples containing, for each stable reference, a tuple with a vertex in each monochromatic component. By repeatedly applying Lemma 5.2 at these vertices and the endpoints of the candidate's cut edges, we can enumerate the connected corrections within the volume budget and keep the resulting configurations that are feasible, stable, and have cut at most . Formally, this procedure is as follows.
Algorithm 5 Enumerating stable references with bounded cut
Require: , the model's feasibility constraints, the projector , an integer cut budget , , and the family returned by Algorithm 2 with parameter .
Ensure: A set , equal to with probability at least .
1: Set to the output of Algorithm 4 on , , and .
2: Set and .
3: for each with and each tuple do
4: Let consist of the distinct vertices in and the endpoints of the cut edges of .
5: for each with do
6: For each , set if ; otherwise, set to the output of Algorithm 3 on , , and .
7: for each choice whose nonempty sets are pairwise disjoint and nonadjacent do
8: Set .
9: for each with for all do
10: Let agree with on and with outside .
11: Add to if it is feasible, stable, and .
12: end for
13: end for
14: end for
15: end for
16: return , removing duplicates.
Lemma 5.4. For every integer and , Algorithms 2 and 5 output equal to with probability at least , in time and list size
Denote . There are constants , depending only on , such that, with ,
Proof of Lemma 5.4. Every output belongs to by the final test in Algorithm 5. To prove that every member of is output, assume the constructions in Lemmas 5.1 and 5.3 succeed, and set . Fix . There are a candidate with and a tuple containing a vertex in each monochromatic component of . Changing the spins on a set changes the cut by at most its volume, so
Thus the algorithm considers this candidate and tuple.
Let be their set of roots. We show that every connected component of contains a vertex of . If an edge incident to is a cut edge of , its endpoint in is a root. Otherwise, has a constant spin on and all its neighbors. Every vertex of has spin different from in , whereas every neighbor outside has spin : such a neighbor agrees in and , since otherwise it would belong to . Consequently, every monochromatic component of intersecting is contained in . The tuple contains a vertex in each such component, so contains a root in this case as well.
Fix an ordering of and assign each disagreement component to its first root. Give that root budget and all unused roots budget zero. These budgets total at most , so the algorithm considers this allocation. Algorithm 3 enumerates each assigned component by Lemma 5.2. The actual components are disjoint and nonadjacent, and the algorithm tries their replacement spins from . It therefore outputs . The two preliminary constructions each fail with probability at most , so a union bound gives the claimed success probability.
We next bound the running time and list size. For any candidate and tuple considered by the algorithm, the number of roots satisfies
There are allocations of nonnegative integer budgets totaling at most . For a positive budget w, Lemma 5.2 gives at most connected sets at a root; a zero budget gives only the empty set. Thus each allocation gives at most choices of sets. Their total volume is at most , so their replacement spins contribute at most choices. The number of refinements per candidate and tuple is therefore at most
where the last inequality uses . Algorithm 3 generates each rooted family in poly(n) time, and each refinement can be constructed and checked in polynomial time. Multiplying by the sizes of Q and A, which together are poly(n, ), proves the running-time and list-size bounds.
Finally, fix . A successful realization exists, and its output is exactly . The preceding refinement bound, together with the bounds on and , gives for constants depending only on .
5.3 P: Polymer Models and their Convergence
Having constructed the family , we now study the cluster expansion around each reference . Throughout, we use the polymer model from Definition 2.4, with partition function and distribution . We first verify the Kotecký–Preiss condition, then use the truncated expansion to approximate and sample from .
For notation, write for the support of a polymer , and set . Recall that the Peierls-type condition in definition 2.3 gives
For a cluster , define its union and total volume by and where total volume counts multiplicities. Additionally, we will write
for its contribution to the cluster expansion for .
Lemma 5.5. Suppose . For every , the polymer model from 2.4 satisfies the Kotecký–Preiss condition with . Moreover, for every vertex ,
where the sum is over clusters. Consequently, the cluster expansion for converges absolutely, and omitting clusters of total volume greater than incurs error at most .
Proof. We first verify the Kotecký–Preiss condition. Fix a vertex . The branching proof of Lemma 5.2 gives at most connected supports containing with volume , each of which is an output leaf at depth at most . As a binary tree has at most such leaves and each support has at most labelings (since ), we have that
Every polymer incompatible with contains a vertex in the closed neighborhood . Since , we obtain
verifying the Kotecký–Preiss condition with .
For the vertex bound, apply Lemma 4.5 to the polymer model around with . Since , the lemma gives
where the last inequality is the bound established above. This proves (5.5).
The following lemma gives efficient counting and sampling algorithms for this polymer model.
Lemma 5.6. Suppose . For every stable reference and every , the polymer model admits a deterministic -approximate counting algorithm and a -approximate sampling algorithm, each with runtime .
Proof. Fix a stable reference . We first construct the counting algorithm by grouping cluster contributions according to the union of their supports.
For , let be the partition function restricted to polymers supported in , with each weight replaced by . Thus , and the exponent of records the total degree volume. For every connected set , we have the formal power series identity
(5.6)
Indeed, a cluster with union contributes to exactly when . Its multiplier in the alternating sum is therefore , which equals one if and zero otherwise.
Set . Every cluster of total volume at most has a connected union of volume at most . Consequently, summing the degree- truncations of over connected sets with gives the degree- truncation of . By (5.5),
Since , exponentiating this bound gives
It remains to show that can be computed efficiently. Note that Lemma 5.2 provides an algorithm that, given a vertex and a volume bound , lists all connected sets containing with . There are at most such sets for each , and the enumeration takes time. Running this algorithm for every and removing duplicates therefore lists all connected sets of volume at most , of which there are at most .
For each enumerated set and each subset , we compute by enumerating all spin assignments on (extended by outside ). Let . Note that because the components of are disjoint and nonadjacent, we can efficiently check if a given configuration is valid. We can therefore obtain by summing the product of their component polymer weights multiplied by .
Since , the terms of through degree L are obtained by expanding
and discarding terms of degree greater than L. Combining these truncated logarithms using (5.6) gives the degree-L truncation of ; summing over the enumerated sets U gives F.
For each , the total number of assignments examined across all subsets is
and so the total running time is .
We will now explain how to sample. As before, we will truncate as to discard polymers of volume greater than . Because a polymer occurs with probability at most its weight. Applying (5.5) gives
and so this restriction changes the distribution by at most in total variation.
We sample from the truncated model by deciding, one polymer at a time, whether to include it. First, enumerate all connected supports of volume at most using Lemma 5.2. For each support, we enumerate the spin assignments that differ from h at every vertex. After removing duplicates, this gives a list of size
To sample from the truncated model, set . For , write for its polymer partition function and for a -relative approximation. Note that we can obtain this approximation by applying the same counting procedure above with the added constraint of keeping an assignment only when every disagreement component defines a polymer in .
The sampler proceeds as follows.
-
Initialize and , and fix an ordering of .
-
If , return . Otherwise, take its first polymer and set
- Compute
With probability , add to and replace by . Otherwise, delete from . Return to Step 2.
For correctness, fix a decision history with selected collection and remaining family . The compatible collections consistent with this history are precisely , where is compatible. Those containing correspond to compatible collections in . Consequently, under the truncated measure, the conditional probability of including is
Since both partition-function estimates have relative error at most , and clipping to [0,1] cannot increase the error,
Couple the sampler’s decisions with the target conditional decisions using a common uniform random number whenever their histories agree. At each such step, the probability of disagreement is . Each iteration removes at least one polymer, so there are at most decisions. A union bound therefore gives total variation error at most relative to the truncated model. Including the initial truncation error, the distance from is at most
as desired.
5.4 O: Overlap Correction and Approximating the Measure
For any cut budget , the preceding subsections construct and provide approximate counting and sampling algorithms for the polymer model around each reference . We now choose so that these models represent almost all Gibbs mass, then correct for configurations represented more than once.
We first compare the partition functions using Definition 2.1. For notation, let and recall the constant reference from that definition. Every constant reference is feasible by Condition 1 and stable because it has no cut edges. Set
with the convention that .
Lemma 5.7. Under the hypotheses of Lemma 5.5 and Definition 2.1, every polymer partition function around a stable reference h satisfies
Proof. Given a cluster , let count the occurrences of v in the cluster supports, and set
namely the part of assigned to vertex . Note that absolute convergence and (5.5) give the following:
Now, let be the endpoints of the cut edges (non-monochromatic edges) of so that . Our strategy will be to compare with
where is the constant reference with spin . We will then compare this sum with and apply the triangle inequality.
Fix a cluster of polymers around whose union is disjoint from . Then is connected and is constant with spin on . We compare the polymers around with those around the constant reference . For each in this cluster, apply the same recoloring on to either reference. The resulting configurations and agree on all edges incident to . Every other edge keeps its spins from the corresponding reference, which is feasible: by assumption and by Condition 1. Since the constraints are pairwise,
The references h and i also agree on all edges incident to T, so the recoloring changes their cut sizes by the same amount:
Since has the same volume, (2.1) allows around exactly when it allows around . The supports and incompatibility graphs are unchanged, so (4.2) gives . Since
these clusters contribute equally to and .
Only clusters meeting remain in the difference. Applying (5.5) to h and the q constant references therefore gives
(5.10)
We now compare the contributions from constant references. For each occurring type , choose with and set , so . Fix of the same type. For , take the isomorphism and spin permutation from Condition 2.1(a), with and . A cluster containing with has connected union contained in . Thus every edge incident to one of its supports lies in .
Map each polymer in the cluster by
For and , we have throughout . Condition 2.1(a) preserves the constraints on all affected edges, while Condition 1 makes the unchanged constant references feasible. Hence is feasible if and only if is. Condition 2.1(a) also preserves degrees, and preserves whether two spins differ, so it follows that
Together with (2.1), these equalities show that is a polymer around i exactly when is a polymer around j.
Applying this map to each entry of the cluster preserves support sizes, the incompatibility graph, and the number of occurrences of the root. The inverse is given by and , so this is a bijection between the clusters containing v and w of total support size at most R. By (4.2),
Their contributions to and therefore agree. Every omitted cluster has , so (5.5) gives, for either or ,
It follows that
For , this follows from . For , the isomorphism is defined on the entire connected component and applies to every cluster, giving equality of the two contributions.
By Conditions 2.1(b)(i) and 2.1(b)(ii), respectively,
Applying (5.14) to the spins of and incurs total error at most . Since is constant and , we obtain
Combining this with (5.10) gives
as desired.
We now show that, for sufficiently large , we can choose the cut budget so that the polymer models around represent almost all Gibbs mass. We use (5.7) and Lemma 5.4 to bound the mass of configurations whose reference has cut greater than .
For notation, recall that and that is the set of configurations represented by the polymer model around . For each , its representation is uniquely determined by the connected components of and the spins of on them. Summing (2.8) over compatible polymer collections therefore gives
With as in Lemma 5.4, set
Lemma 5.8. Suppose . For , choose
where is given by Lemma 5.4. Then .
Proof. By Lemma 2.5, every configuration is represented around its reference under the map , so . Since , (5.15) gives . Applying (5.7) gives
There are at most stable references with cut . Writing and summing over these references gives
where the last line uses (5.17) and .
Now, let . Note that even though sampling from would suffice, since (5.18) gives
this does not give us an algorithm. The issue is that the same configuration may be represented around several different references . If we choose with probability proportional to and sample its polymer model, then, by (2.8), the probability of proposing is therefore proportional to times the number of references representing it.
To get around this, we fix an ordering of the references and accept a proposal only when the chosen is the first reference representing . This retains exactly one contribution of weight per represented configuration.
Lemma 5.9. Let be a nonempty list of distinct references, and set
Consider the distribution on pairs induced by the following sampling procedure:
-
Choose with probability .
-
Sample and apply to h to obtain z.
-
Accept if h is the first reference in S representing z.
Then, conditional on acceptance, has distribution , and the acceptance probability satisfies
Proof. For each represented pair , let be its unique polymer collection. By (2.8), the probability of proposing this pair is
Exactly one pair is accepted for each , so
Conditioning on acceptance gives . If is the number of references representing , then
which proves .
We now combine these ingredients to give the counting and sampling algorithms in Theorem 2.2.
Algorithm 6 Approximate counting and sampling
Require: A graph and model as in Theorem 2.2, the radius , a fixed , and .
Ensure: An -approximate sample from , or an -approximation to .
1: Choose as in (5.17).
2: Run Algorithms 2 and 5 with .
3: Append to the output, remove duplicates, and arrange the references in a fixed order to obtain .
4: Set and .
5: Use the deterministic counting algorithm of Lemma 5.6 to obtain -approximations for all , and set .
6: For each trial: using fresh randomness, choose with probability and use Lemma 5.6 to draw a -approximate sample from . Apply to to obtain . Accept if is the first reference in representing .
7: For sampling: run at most trials and return the first accepted configuration. If every trial is rejected, return .
8: For counting: run trials and let be the fraction accepted. Return .
Proof of Theorem 2.2. Take as in (5.16) and fix . The local symmetry assumptions give (5.7), and the choice of ensures that Lemmas 5.6 and 5.8 apply.
By Lemma 5.4, the list is contained in and contains every reference in with probability at least . The constant reference is feasible by Condition 1 and has no cut edges, so appending it ensures that is nonempty. When the list is complete, Lemma 2.5 and (5.18) give
Condition on the ordered list . The estimates are then deterministic, and the trials are independent. Let be the distribution of the pair proposed in Lemma 5.9, and let be the distribution of the pair proposed in one trial of Algorithm 6. Each has relative error at most , so the same holds for . Combining the error in choosing with the error in sampling from gives
The acceptance rule is the same for both procedures. Writing and for their acceptance probabilities, (5.19) gives
We first verify the sampling guarantee for a fixed complete list . Conditioning on acceptance gives
By Lemma 5.9, the distribution of under , conditional on acceptance, is . The same error bound holds after discarding . By independence, conditional on at least one acceptance, the first accepted configuration has the law of a single trial conditioned on acceptance. The probability that all trials are rejected satisfies
Also, . Adding these errors and the probability that the list is incomplete gives total variation error at most .
For counting, again fix a complete list . Equation (5.19) gives , while the preceding estimates give
Each trial is accepted independently with probability . Thus Chebyshev's inequality gives
The output satisfies
With conditional probability at least 19/20, the first three factors lie in and . Consequently,
Including the probability that the list is incomplete, the estimate fails with probability at most .
It remains to bound the running time. By (5.17) and Lemma 5.4, constructing takes poly time, and is at most this large. Since , each call to Lemma 5.6 takes poly time. Each trial also checks at most references to determine whether to accept . For each reference , this amounts to finding the connected components of and checking Definition 2.4, which takes polynomial time. There are counting calls and at most or trials, so the total running time is
Substituting gives the claimed bound, with constants depending only on and the fixed .
Acknowledgements
The inspiration for this work originated from discussions between the author and Pedro Paredes on whether ideas from subspace enumeration could be used to tackle #BIS. The author is very thankful to Pedro for these (and many other) conversations. The author is also grateful to Will Perkins for helpful feedback on initial stages of this work and for many insightful conversations about #BIS (and sampling in general) over the last year.
Statement of AI use. All ideas originated from the author. AI was used primarily for computation and for testing whether proposed ideas and arguments worked. The project developed over more than 100 interactions with ChatGPT 5.6 Sol and, later, GPT-6 Astra.
The project began as a follow-up to [NP26], with the goal of obtaining subexponential algorithms for #BIS in the spirit of those for Unique Games. Since [NP26] provides algorithms on expanders, the initial idea was to go beyond via subspace enumeration.
Early AI-assisted attempts pointed the author to the idea of utilizing active regression to recover cut references. However, the suggested algorithms all required various ad hoc, graph-dependent conditions. In examining these arguments, we identified symmetry as the missing ingredient needed to compare the weights of deviations around different references. With AI assistance, we then developed the vertex-transitivity based algorithm for #BIS. We next attempted to weaken or remove the symmetry assumption, leading to the large-girth results.
These developments clarified the role of symmetry in balancing the energetic cost of a reference cut against the entropy of deviations around it. This naturally suggested the ferromagnetic Potts model, which also penalizes cuts but has a stronger spin symmetry than the hard-core model. After extending the approach to this setting, we abstracted the common ingredients into a general framework, from which the #BIS and Potts algorithms follow as applications of a single theorem. The author assumes responsibility for all content.
References
[ABS15] Sanjeev Arora, Boaz Barak, and David Steurer. Subexponential Algorithms for Unique Games and Related Problems. Journal of the ACM, 62(5):42:1–42:25, 2015.
[BCF+99] Christian Borgs, Jennifer T. Chayes, Alan Frieze, Jeong Han Kim, Prasad Tetali, Eric Vigoda, and Van Ha Vu. Torpid Mixing of Some Monte Carlo Markov Chain Algorithms in Statistical Physics. In Proceedings of the 40th Annual Symposium on Foundations of Computer Science (FOCS), pages 218–229. IEEE Computer Society, 1999.
[CDF+24] Charlie Carlson, Ewan Davies, Nicolas Fraiman, Alexandra Kolla, Aditya Potukuchi, and Corrine Yap. Algorithms for the Ferromagnetic Potts Model on Expanders. Combinatorics, Probability and Computing, 33(4):487–517, 2024. arXiv:2204.01923.
[CDK24] Charlie Carlson, Ewan Davies, and Alexandra Kolla. Efficient Algorithms for the Potts Model on Small-Set Expanders. Chicago Journal of Theoretical Computer Science, 2024(1):1–31, 2024. arXiv:2003.01154.
[CDKP24] Charlie Carlson, Ewan Davies, Alexandra Kolla, and Aditya Potukuchi. A Spectral Approach to Approximately Counting Independent Sets in Dense Bipartite Graphs. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of Leibniz International Proceedings in Informatics (LIPIcs), pages 35:1–35:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. arXiv:2307.09533.
[CGG+16] Jin-Yi Cai, Andreas Galanis, Leslie Ann Goldberg, Heng Guo, Mark Jerrum, Daniel Štefankovič, and Eric Vigoda. #BIS-Hardness for 2-Spin Systems on Bipartite Bounded Degree Graphs in the Tree Non-Uniqueness Region. Journal of Computer and System Sciences, 82(5):690–711, 2016. arXiv:1311.4451.
[CGG+21] Zongchen Chen, Andreas Galanis, Leslie Ann Goldberg, Will Perkins, James Stewart, and Eric Vigoda. Fast Algorithms at Low Temperatures via Markov Chains. Random Structures & Algorithms, 58(2):294–321, 2021. arXiv:1901.06653.
[CGŠV22] Zongchen Chen, Andreas Galanis, Daniel Štefankovič, and Eric Vigoda. Sampling Colorings and Independent Sets of Random Regular Bipartite Graphs in the Non-Uniqueness Region. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2198–2207. Society for Industrial and Applied Mathematics, 2022. arXiv:2105.01784.
[CHP26] Sarah Cannon, Tyler Helmuth, and Will Perkins. Pirogov–Sinai Theory for the Hard-Core Model beyond Lattices. Communications in Mathematical Physics, 407(6):129, 2026. arXiv:2411.07809.
[CP19] Xue Chen and Eric Price. Active Regression via Linear-Sample Sparsification. In Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pages 663–695. PMLR, 2019. arXiv:1711.10051.
[DGGJ04] Martin Dyer, Leslie Ann Goldberg, Catherine Greenhill, and Mark Jerrum. The Relative Complexity of Approximate Counting Problems. Algorithmica, 38(3):471–500, 2004.
[DGJ10] Martin Dyer, Leslie Ann Goldberg, and Mark Jerrum. An Approximation Trichotomy for Boolean #CSP. Journal of Computer and System Sciences, 76(3-4):267–277, 2010. arXiv:0710.4272.
[FP07] Roberto Fernández and Aldo Procacci. Cluster Expansion for Abstract Polymer Models. New Bounds from an Old Approach. Communications in Mathematical Physics, 274(1):123–140, 2007. arXiv:math-ph/0605041.
[FV17] Sacha Friedli and Yvan Velenik. Statistical Mechanics of Lattice Systems: A Concrete Mathematical Introduction. Cambridge University Press, 2017.
[GŠV16] Andreas Galanis, Daniel Štefankovič, and Eric Vigoda. Inapproximability of the Partition Function for the Antiferromagnetic Ising and Hard-Core Models. Combinatorics, Probability and Computing, 25(4):500–559, 2016. arXiv:1203.2226.
[GŠVY16] Andreas Galanis, Daniel Štefankovič, Eric Vigoda, and Linji Yang. Ferromagnetic Potts Model: Refined #BIS-Hardness and Related Results. SIAM Journal on Computing, 45(6):2004–2065, 2016. arXiv:1311.4839.
[HPR20] Tyler Helmuth, Will Perkins, and Guus Regts. Algorithmic Pirogov–Sinai Theory. Probability Theory and Related Fields, 176(3-4):851–895, 2020. arXiv:1806.11548.
[JKP20] Matthew Jenssen, Peter Keevash, and Will Perkins. Algorithms for #BIS-Hard Problems on Expander Graphs. SIAM Journal on Computing, 49(4):681–710, 2020. arXiv:1807.04804.
[JPP23] Matthew Jenssen, Will Perkins, and Aditya Potukuchi. Approximately Counting Independent Sets in Bipartite Graphs via Graph Containers. Random Structures & Algorithms, 63(1):215–241, 2023. arXiv:2109.03744.
[JS93] Mark Jerrum and Alistair Sinclair. Polynomial-Time Approximation Algorithms for the Ising Model. SIAM Journal on Computing, 22(5):1087–1116, 1993.
[KLM89] Richard M. Karp, Michael Luby, and Neal Madras. Monte-Carlo Approximation Algorithms for Enumeration Problems. Journal of Algorithms, 10(3):429–448, 1989.
[Kol11] Alexandra Kolla. Spectral Algorithms for Unique Games. Computational Complexity, 20(2):177–206, 2011. arXiv:1102.2300.
[KOT26] Nicholas Kocurek, Shayan Oveis Gharan, and Dante Tjowasi. Sampling from the Hard-core Model on Random Regular Bipartite Graphs above the Uniqueness Threshold, 2026. arXiv:2604.21847.
[KP86] Roman Kotecký and David Preiss. Cluster Expansion for Abstract Polymer Models. Communications in Mathematical Physics, 103(3):491–498, 1986.
[KT07] Alexandra Kolla and Madhur Tulsiani. Playing Random and Expanding Unique Games. Unpublished manuscript. Author-hosted full text, 2007.
[LLLM22] Chao Liao, Jiabao Lin, Pinyan Lu, and Zhenyu Mao. An FPTAS for the Hardcore Model on Random Regular Bipartite Graphs. Theoretical Computer Science, 929:174–190, 2022.
[MWW09] Elchanan Mossel, Dror Weitz, and Nicholas Wormald. On the Hardness of Sampling Independent Sets beyond the Tree Threshold. Probability Theory and Related Fields, 143(3-4):401–439, 2009. arXiv:math/0701471.
[Nar26] Ijay Narang. Separations between #BIS and #IS. arXiv preprint arXiv:2610.38164, 2026.
[NP26] Ijay Narang and Will Perkins. The Hard-Core Model on Bipartite Spectral Expanders: Counting and Sampling at All Fugacities, 2026. arXiv:2608.03848.
[Pei36] R. Peierls. On Ising's Model of Ferromagnetism. Mathematical Proceedings of the Cambridge Philosophical Society, 32(3):477–481, 1936.
[Sly10] Allan Sly. Computational Transition at the Uniqueness Threshold. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 287–296. IEEE Computer Society, 2010. arXiv:1005.5584.
[SS14] Allan Sly and Nike Sun. Counting in Two-Spin Models on d-Regular Graphs. The Annals of Probability, 42(6):2383–2416, 2014. arXiv:1203.2602.
[Val79] Leslie G. Valiant. The Complexity of Enumeration and Reliability Problems. SIAM Journal on Computing, 8(3):410–421, 1979.
[Wei06] Dror Weitz. Counting Independent Sets up to the Tree Threshold. In Proceedings of the Thirty-Eighth Annual ACM Symposium on Theory of Computing, pages 140–149. ACM, 2006.