Abstract 1 Introduction 2 Preliminaries 3 Grand Coupling via Bounding Chains 4 Design of Grand Couplings 5 CFTP for 𝒒-Colorings with 𝒒>2.5𝚫 References

Tight Bounds for Sampling q-Colorings via Coupling from the Past

Tianxing Ding ORCID State Key Laboratory for Novel Software Technology, New Cornerstone Science Laboratory, Nanjing University, China    Hongyang Liu ORCID State Key Laboratory for Novel Software Technology, New Cornerstone Science Laboratory, Nanjing University, China    Yitong Yin ORCID State Key Laboratory for Novel Software Technology, New Cornerstone Science Laboratory, Nanjing University, China    Can Zhou ORCID State Key Laboratory for Novel Software Technology, New Cornerstone Science Laboratory, Nanjing University, China
Abstract

The Coupling from the Past (CFTP) paradigm is a canonical method for perfect sampling. For uniform sampling of proper q-colorings in graphs with maximum degree Δ, the bounding chains of [Huber, STOC ’98] provide a systematic framework for efficiently implementing CFTP algorithms within the classical regime q(1+o(1))Δ2. This was subsequently improved to q>3Δ by [Bhandari and Chakraborty, STOC ’20] and to q(83+o(1))Δ by [Jain, Sah, and Sawhney, STOC ’21].

In this work, we establish the asymptotically tight threshold for bounding-chain-based CFTP algorithms for graph colorings. We prove a lower bound showing that all such algorithms satisfying the standard contraction property require q2.5Δ, and we present an efficient CFTP algorithm that achieves this asymptotically optimal threshold q(2.5+o(1))Δ via an optimal design of bounding chains.

Keywords and phrases:
perfect sampling, coupling from the past, graph coloring, bounding chains, Markov chains
Category:
Track A: Algorithms, Complexity and Games
Copyright and License:
[Uncaptioned image] © Tianxing Ding, Hongyang Liu, Yitong Yin, and Can Zhou; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysis
; Theory of computation Random walks and Markov chains ; Mathematics of computing Graph coloring ; Mathematics of computing Markov-chain Monte Carlo methods
Related Version:
Full Version: https://arxiv.org/abs/2511.04982
Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis

1 Introduction

Uniform sampling of graph colorings is a fundamental problem that has attracted extensive attention in combinatorics, probability theory, and theoretical computer science. Given a graph G=(V,E) and an integer q1, a proper q-coloring (or simply a q-coloring) is a mapping ω:V[q] such that ω(u)ω(v) for every edge (u,v)E. The set of all proper q-colorings of G is

Ω={ω:V[q](u,v)E,ω(u)ω(v)}.

Let Δ=Δ(G) denote the maximum degree of G. It is well known that the condition qΔ+1 guarantees the existence of a proper q-coloring, i.e., Ω.

A canonical approach to sampling from Ω is the Markov chain Monte Carlo (MCMC) method, in which a Markov chain (Xt) is designed to mix rapidly to the uniform distribution π over Ω. Starting from an arbitrary initial state X0Ω, simulating the chain for a sufficiently long time T yields a sample XT approximately distributed as π. A well studied chain is the Glauber dynamics, which at each step selects a vertex uniformly at random and recolors it with a color not currently used by its neighbors. When qΔ+2, the chain is ergodic and converges to the uniform distribution π over Ω. Determining the critical threshold on q for rapid mixing is a long-standing open problem. Over the past decades, a sequence of works has progressively improved this threshold, from the classical bound q>2Δ [36, 45, 5] to the current best bound q>1.809Δ [46, 7, 6].

1.1 Coupling from the past and grand coupling

The coupling from the past (CFTP) technique, introduced by Propp and Wilson [43], provides a general framework for the perfect simulation of the stationary distribution of a Markov chain. The key idea is to consider an idealized Markov chain that has been running from time up to time 0, so that its final state X0π is an exact (perfect) sample from the stationary distribution π. To generate such a sample, the CFTP algorithm searches for a (possibly random) time T in the past such that, when the chain is simulated forward from every possible initial state at time T using the same random bits, all trajectories

XTXT+1X1X0

coalesce into the same state at time 0. Once such a coalescence time is identified, the final state X0π is completely determined by the random bits used in the simulation, independent of the initial state at time T. Consequently, X0 is a perfect sample from the stationary distribution π.

At the heart of CFTP lies the notion of a grand coupling, which provides a unified probabilistic construction that simultaneously drives the evolution of the chain from all possible initial states. Formally, for a Markov chain with transition kernel P(x,y)=PrXt+1=yXt=x on state space Ω, a grand coupling is a mapping g:Ω×[0,1]Ω, such that for UUniform[0,1] and every x,yΩ,

Prg(x,U)=y=P(x,y). (1)

In other words, g(,U) simulates a single Markov chain transition under shared randomness U, thereby coupling all trajectories in a common probability space. This notion extends naturally to the T-step transitions, represented by a grand coupling F:Ω×[0,1]Ω for the evolution XTX0. The CFTP algorithm identifies a time T in the past and terminates once F(,U) becomes constant, that is, when all trajectories coalesce into a single state at time 0.

Designing grand couplings that achieve fast coalescence is therefore the central problem in CFTP. Beyond CFTP, grand couplings have found applications in a variety of contexts, including derandomization of MCMC [15], analytic stability (absence of complex zeros) [41], and local algorithms for sampling [39]. Despite being a natural and fundamental concept, their systematic design and analysis remain poorly understood. While fast-coalescing grand couplings immediately imply rapid mixing of the underlying Markov chain, essentially nothing is known about the converse in general. This raises a fundamental question:

Does fast coalescence of grand couplings require stronger conditions than rapid mixing?

1.2 Bounding chains for 𝒒-colorings

A key algorithmic challenge in implementing CFTP lies in detecting coalescence, that is, determining whether the induced random mapping on the state space Ω has become a constant function. Formally, let ΩtΩ denote the set of all possible states of Xt that can be reached from different initial configurations XTΩ under the same randomness. Specifically,

Ωt:={gtgt1gT(ω):ωΩ},

where each gt=gt(,U) denotes the grand coupling for the transition XtXt+1 with UUniform[0,1]. Initially, ΩT=Ω, and clearly |Ωt+1||Ωt| since gt is a function. Coalescence occurs once |Ωt|=1 for some t0. In certain special cases, most notably in monotone systems such as the ferromagnetic Ising model, where a natural partial order on Ω is preserved by the grand coupling, checking coalescence is straightforward. In contrast, for general systems, verifying coalescence is substantially more intricate and can be computationally intractable.

The bounding chains method, introduced by Huber [30, 31] and independently by Häggström and Nelander [24], provides an efficient way to detect coalescence by tracking a “bounding box” of the subset Ωt in the space Ω[q]V. The bounding chain maintains, for each vertex vV, a bounding list t(v)[q] of colors, which contains all colors that vertex v may take under any configuration in Ωt. The corresponding bounding box is given by

t:=vVt(v).

Initially, we set T(v)=[q] for every vertex v. The bounding list configuration t=(t(v))vV evolves as a Markov chain: at each time step tT, the next bounding list t+1 is constructed from the current list t, under the conservative assumption that every configuration ωt may appear at time t. By induction, we have Ωtt for any tT. Thus, coalescence at time t occurs if the bounding box has collapsed to the size |t|=1, or equivalently, when |t(v)|=1 for all vV.

The fast coalescence of bounding chains relies on the following standard contraction property.

Condition 1.1 (Contraction of bounding chains).

Let (t) be a bounding chain. At any time t, it holds

𝔼[vV|t+1(v)||t]vV|t(v)|. (2)

Intuitively, this condition requires the total size of the bounding lists to be monotonically non-increasing in expectation at each step, even in the worst case. All existing CFTP algorithms based on bounding chains satisfy this condition, including [30, 4, 35]. The seminal work of Huber [30] proposed a bounding chain algorithm for uniform sampling of q-coloring that is fast coalescing under the condition q(1+o(1))Δ2. For many years, this remained the best achievable bound for any CFTP algorithm for q-coloring, until recent breakthroughs [4, 35] improved the condition for fast-coalescing bounding chains first down to q>3Δ and later to q(83+o(1))Δ.

1.3 Our results

We establish an asymptotically optimal threshold of q=2.5Δ for CFTP algorithms based on bounding chains for proper q-colorings. In particular, we design an efficient CFTP algorithm that samples uniform proper q-colorings under the improved condition q(2.5+o(1))Δ.

Theorem 1.2 (Upper bound).

There exists a CFTP algorithm that, given an undirected graph G=(V,E) with maximum degree Δ3 and q>2.5Δ+2(logΔ+1)Δ, outputs a uniformly random proper q-coloring of G in expected time O~(nΔ2), where O~() hides poly-logarithmic factors.

The algorithm in Theorem 1.2 is based on a new construction of bounding chains for the Glauber dynamics on uniform proper q-colorings, which coalesce rapidly using substantially fewer colors.

This result advances the state of the art for CFTP algorithms and, more broadly, for all perfect sampling algorithms for q-colorings that achieve exponential convergence.

 Remark 1.3 (Perfect sampling via deterministic counting or approximate sampling).

Perfect sampling can also be achieved via generic reductions to deterministic approximate counting or approximate sampling. In the classical work of Jerrum, Valiant, and Vazirani [37], a general reduction from perfect sampling to deterministic approximate counting (FPTAS) was established using a rejection-sampling framework. More recently, Göbel, Liu, Manurangsi, and Pappik [23] presented a reduction from perfect sampling to rapidly mixing Markov chains: once the chain has mixed sufficiently well (so that the total variation error is exponentially small), a JVV-style filtering step (implemented via exponentially exhaustive enumeration) is applied with exponentially small probability, keeping the overall expected runtime polynomial.

Through these reductions, the known thresholds for polynomial-time perfect sampling of q-colorings have been improved to q>2Δ via deterministic approximate counting [40] and to q>1.809Δ via rapidly mixing Markov chains [6].

Following the terminology of Dyer and Greenhill [13], such generic reductions should be viewed as producing weak perfect samplers: they output an exactly distributed sample, but do not necessarily provide the same coalescence-type certificate as CFTP. In contrast, bounding-chain CFTP methods explicitly certify perfect sampling through coalescence and, with additional care, can be related to strong perfect sampling via Fill’s forward-coupling/perfect-rejection framework [19].

Despite these advances, the coupling-from-the-past (CFTP) paradigm remains of great theoretical and practical significance. It provides a systematic framework for designing Las Vegas samplers with exponentially convergent runtime. Specifically, letting T denote the random runtime, we have

PrTk𝔼[T]exp(Ω(k)),for all k1.

where in our case the expected runtime satisfies 𝔼[T]=O~(nΔ2). This sharp concentration arises from the efficient certificate of perfect sampling inherently provided by CFTP through coalescence, which is a key distinction from weak perfect samplers obtained through generic reductions such as [37, 23], which rely on deterministic counting.

Beyond its role in perfect sampling, the grand coupling is a natural and fundamental construct for Markov chains, and has found implications in several key aspects, including studies of derandomization [15], phase transitions [41], and local algorithms for sampling [39]. It is therefore of central theoretical interest to understand the algorithmic power of grand couplings.

We show that the upper bound in Theorem 1.2 is asymptotically tight by establishing a matching lower bound for bounding-chain-based grand couplings satisfying the contraction property in ˜1.1.

Theorem 1.4 (Lower bound).

Let Δ3, q<2.5Δ1, and let n be sufficiently large. There exists a Δ-regular graph G=(V,E) with |V|=n, together with a bounding list configuration =((v))vV, such that for any bounding chain for the Glauber dynamics on proper q-colorings, the contraction property (2) in ˜1.1 is violated when the bounding chain is in state t=.

Together, our results establish a tight bound for CFTP for q-colorings based on bounding chains. They show that contractive bounding chains require a significantly stronger condition on the number of colors q than is needed for rapid mixing of the underlying Markov chain. In particular, the critical threshold q>2.5Δ identified here is substantially stronger than the classical Dobrushin condition for q-colorings, which holds when q>2Δ and corresponds to the worst-case contraction condition in path coupling [36, 45, 5], thereby guaranteeing rapid mixing.

 Remark 1.5.

In [35], Jain, Sah, and Sawhney also identified q=2.5Δ as a natural barrier for their bounding chain construction, reflecting a limitation of the algorithmic framework adopted in [4, 35]. In contrast, our lower bound shows that this threshold is inherent to all contractive bounding chains: no grand coupling based on such constructions can surpass it. Both our general lower bound and the optimal bounding chain design arise from a new characterization of bounding-chain–based grand couplings as an optimization problem, detailed in Section 3.

1.4 Overview of conceptual and technical contributions

In the CFTP framework, the random evolution XTX0 of the Markov chain (Xt) is captured by a random mapping F:ΩΩ, generated by a grand coupling F=F(,U) using a random seed U[0,1]. Equivalently, F can be expressed as a composition of single-step couplings, F=g1g2gT, where each gt=gt(,Ut) corresponds to the grand coupling of the one-step transition at time t, determined by an independent random seed UtUniform[0,1]. Conceptually, the global seed U can thus be viewed as an infinite sequence of independent random variables (U1,U2,), each determining one step of the coupled evolution.

When the Markov chain (Xt) is a single-site dynamics, each transition gt is specified by a pair (vt,fvt), where vtV denotes the vertex selected for update at time t, and fvt is a local random update function that recolors vt based on the current coloring of its neighbors. Once the sequence of update vertices v1,v2, is fixed, the CFTP process is fully determined by these local updates.

Conceptually, the bounding-chain construction can then be viewed as a localization of this global coupling: rather than tracking the evolution of the entire configuration space Ω[q]V, it maintains for each vertex v a local bounding list (v)[q] of possible colors, which compactly encodes all configurations consistent with the current stage of the coupled evolution.

Formulation of grand coupling via bounding chains

Building on the local perspective above, we introduce a unified formulation of the bounding-chain method. In this framework, a global grand coupling of the Markov chain is specified via a collection of local grand couplings defined over the bounding boxes of neighborhood configurations, as formalized in Definition 3.2.

This subsumes all prior constructions of bounding chains, including those based on the standard uniform random update schedule as well as more structured, designed schedules, and enables a formal analysis of the fundamental limitations of the bounding-chain approach.

Lower bound: limitations of bounding chains.

Theorem 1.4 establishes a lower bound for bounding chains for q-coloring Glauber dynamics satisfying the standard contraction condition (˜1.1). This applies to any schedule, as long as updates follow the Glauber dynamics. It stems from a fundamental obstruction to the coalescence of bounding chains: the reduction of bounding lists from size two to one.

Theorem 1.6 (Lower bound: 2-to-1 contraction).

Let Δ3, q<2.5Δ1, and let n be sufficiently large. There exist a Δ-regular graph G=(V,E) with |V|=n and a bounding list configuration =((v))vV with |(v)|=2 for all vV, such that for any grand coupling of q-coloring Glauber dynamics given , the updated satisfies: there exists a vV with 𝔼[|(v)|]>2, while for all uV{v}, |(u)|=2.

The construction in Theorem 1.6 results in an expected increase in the total size v|(v)| relative to v|(v)|, violating ˜1.1. Thus, Theorem 1.4 follows from Theorem 1.6. Moreover, since adding colors to can only increase size of , it blocks coalescence from any bounding list sizes >1.

Upper bound: optimal design of grand coupling

We formalize the design of a grand coupling as an explicit optimization problem (˜3.3). To make the problem tractable, we introduce a simplified variant (˜4.1) that captures the key design issues underlying prior bounding-chain algorithms. The intuition is that, when updating a vertex v, the relevant uncertainty is summarized by the set of colors appearing in its neighboring bounding lists, namely 𝒮:=uΓ(v)(u). For each possible neighborhood configuration, the Glauber update is a distribution Uniform([q]C) for some C𝒮 with |C|Δ. Thus, a grand coupling must realize all these marginal distributions simultaneously while keeping the set of possible outputs small.

This tradeoff naturally leads to a linear program. Indeed, if U denotes the set of all possible outputs produced by the local grand coupling under a shared random seed U, then the contraction objective is to minimize |U|. Writing rk=Pr|U|=k, the marginal correctness requirements impose linear constraints on the variables (rk)k, while the objective becomes the linear function kkrk. Solving this linear program yields a grand coupling that optimally solves ˜4.1. This optimal construction, called Seeding, provides a key component: Combined with several existing bounding-chain building blocks, including the Compress coupling [4] and the Disjoint coupling [35], we finally obtain a fast coalescing grand coupling for q-coloring when q>(2.5+o(1))Δ, matching, up to lower-order terms, the lower bound established for any bounding-chain–based CFTP.

1.5 Related work

The critical condition for rapid mixing of local Markov chains on proper q-colorings, such as Glauber dynamics, has been a central question in the study of sampling algorithms. A classic result of Jerrum [36] (and independently, Salas and Sokal [45]) established that when q>2Δ, the Glauber dynamics mixes in O(nlogn) time. This foundational work laid the groundwork for coupling-based analyses, notably inspiring the path coupling technique of Bubley and Dyer [5] and the coupling criterion of Hayes [25]. Vigoda [46] introduced a coupling for the flip dynamics and proved an O(n2) mixing-time bound for the Glauber dynamics when q>116Δ. This threshold remained the state of the art for nearly two decades until Chen et al. [7] further refined it to q>(116ε0)Δ for an explicit ε0=1/84000. Most recently, Carlson and Vigoda [6] improved the bound to q>1.809Δ, which remains the best-known rapid-mixing threshold for general graphs.

Under additional structural assumptions, such as a lower bound on the girth, sharper thresholds are known. For instance, on triangle-free graphs, the Glauber dynamics mixes optimally whenever q>αΔ for some constant α1.763; see [27, 9, 16, 11, 34]. Even stronger results hold for graphs of larger girth [26, 14, 10]. In particular, the recent breakthrough of Chen et al. [10] establishes an almost tight condition qΔ+3 for an O(nlogn) mixing time of the Glauber dynamics on graphs with constant maximum degree Δ=O(1) and sufficiently large girth.

The conjectured optimal threshold for rapid mixing is q>Δ, corresponding to the uniqueness threshold of the Gibbs measure on the infinite Δ-regular tree [38]. In contrast, approximate sampling from q-colorings becomes computationally intractable when q<Δ, unless NP=RP [20].

In a separate line of work focused on deterministic approximate counting, Gamarnik and Katz [21] gave a polynomial-time approximate counting algorithm for proper q-colorings when q>2.84Δ for bounded-degree graphs. Subsequent improvements were obtained by Lu and Yin [42] (q>2.58Δ) and by Liu, Sinclair, and Srivastava [40] (q>2Δ). This 2Δ threshold has recently been improved by Bencs, Berrekkal, and Regts [3], who obtained a deterministic approximation algorithm for q(2η)Δ for some η0.002 using zero-freeness and Barvinok interpolation. A different recent approach of Chen, Feng, Guo, Zhang, and Zou [8] derives deterministic counting algorithms from coupling independence, giving FPTASes for colorings in regimes matching the best known randomized approximate-counting bounds.

Related works on CFTP

Coupling from the past (CFTP) is a central technique for perfect sampling and has been widely applied across statistical physics and combinatorial models. Classical applications include the Ising and Potts models [33, 31], while extensive developments on graph colorings have leveraged the bounding-chain framework [24, 31, 32, 4, 35]. More recently, CFTP methods have been extended to the sampling Lovász Local Lemma, leading to perfect samplers for solutions to atomic constraint satisfaction problems (CSPs) [28, 44].

Other perfect sampling paradigms

Beyond CFTP, several alternative paradigms for perfect sampling have been developed, including the random recycler [18], partial rejection sampling [47, 12, 22, 17], and approaches based on the Bayes filter [1]. We also refer to Dyer and Greenhill [13] for an early discussion of weak and strong perfect sampling, and to Fill et al. [19] for the forward-coupling/perfect-rejection approach to strong perfect sampling. More recently, local perfect samplers have been introduced, which generate samples from marginal distributions at a local cost. Examples include the lazy depth-first sampler (also known as the Anand–Jerrum algorithm) [2, 29] and the coupling towards the past framework [15, 41, 39], the latter extending the philosophy of coupling from the past to more general local settings.

2 Preliminaries

2.1 Notations for coloring

Let G=(V,E) be an undirected graph and [q]={1,2,,q} a set of q2 colors. The configuration space of proper q-colorings of G is

Ω={ω:V[q]ω(u)ω(v) for all {u,v}E}.

For each vertex v, let Γ(v):={uV{u,v}E} denote v’s neighborhood.

2.2 Glauber dynamics

We consider the (heat-bath) Glauber dynamics for proper q-colorings. Fix a predetermined, possibly random, update schedule (vt), chosen independently of the current coloring. At time t, the dynamics updates the color of vt and leaves all other vertices unchanged. For a vertex vV and a neighborhood coloring ω[q]Γ(v), the local update distribution is

pvω=Uniform([q]ω), (3)

where Uniform(S) denotes the uniform distribution over a set S. Here, by slight abuse of notation, we treat the tuple ω equivalently as a set, so that [q]ω=[q]{ω(u):uΓ(v)}.

2.3 Bounding chains

We define bounding chains for the above Glauber dynamics. Let gt:Ω×[0,1]Ω denote a grand coupling for the Glauber update at time t, as defined in (1). The randomness in the update schedule is identically coupled across all trajectories: at each time t, every coupled trajectory updates the same vertex vt using the same random seed Ut. Since a Glauber update at vt depends only on the colors in Γ(vt), the outcome at vt is determined by the neighborhood configuration and the shared seed.

A bounding chain (t) maintains, for every vertex vV, a bounding list t(v)[q] containing all colors that v may take at time t under the coupled evolution. Given the shared random seed Ut and the update vertex vt, the bounding chain evolves as

t+1(v)={{gt(ω,Ut)(v):ωuΓ(v)t(u)},if v=vt,t(v)otherwise. (4)

In words, when vertex vt is updated, the new bounding list t+1(vt) consists of all possible colors that vt can take, given the current bounding lists of its neighbors and the shared randomness Ut. For all other vertices, the bounding lists remain unchanged. In practice, one may instead maintain a superset of the set defined in (4); this preserves correctness, though it may affect the efficiency of coalescence.

In coupling from the past (CFTP), the bounding chain is initialized with full uncertainty: T(v)=[q] for all vV. As the chain (t) evolves forward from time T to time 0, the bounding lists t(v)vV gradually shrink as uncertainty about each vertex’s color decreases. When all bounding lists collapse to singletons, i.e., |t(v)|=1 for every vV, the coupled Glauber dynamics have coalesced to a single configuration. At this point, the bounding-chain-based CFTP procedure outputs a perfect sample from the stationary distribution of the Glauber dynamics.

3 Grand Coupling via Bounding Chains

In this section, we formalize a unified framework for grand couplings arising from bounding chains. We begin by formally defining the notion of a grand coupling.

Definition 3.1 (Grand coupling).

Let Ω be a finite sample space, and let 𝒫 be a family of probability distributions on Ω. A measurable function f:𝒫×[0,1]Ω is called a grand coupling on 𝒫 if, for a uniform random variable UUniform[0,1], it holds that for every p𝒫 and every yΩ,

Prf(p,U)=y=p(y).

Equivalently, for each fixed p𝒫, the random variable f(p,U) has the distribution p.

A grand coupling thus provides a unified deterministic rule that simultaneously generates a family of probability distributions on the same sample space Ω using shared randomness UUniform[0,1]. In particular, the grand coupling for a Markov chain transition P defined in (1) is a special case of Definition 3.1, where the family 𝒫 consists of the update distributions P(x,) for all xΩ.

3.1 Local grand coupling via bounding chains

We introduce a general formulation for grand couplings constructed using bounding chains, which applies to single-site dynamics. Let G=(V,E) be a graph and [q]={1,2,,q} a set of q2 colors. Recall that a single-site dynamics on a state space Ω[q]V is specified via a collection of local update distributions: {pvω:vV,ω[q]Γ(v)}.

In the bounding-chain framework, we maintain for each vertex vV a bounding list (v)[q], representing the set of possible colors that v may take across coupled trajectories. The grand coupling is then constructed based on these bounding lists.

Definition 3.2 (Grand coupling via bounding chain).

Let G=(V,E) be a graph and q2. Consider a single-site dynamics on the state space Ω[q]V with local update distributions {pvω:vV,ω[q]Γ(v)}.

Fix a vertex vV and a bounding list configuration ((u))uΓ(v), with each (u)[q]. Define

𝒫v:={pvω:ωuΓ(v)(u)}, (5)

the family of all possible local update distributions at v consistent with the bounding lists.

A local grand coupling at vertex v given the bounding list ((u))uΓ(v) is a measurable mapping

fv:𝒫v×[0,1][q]

such that fv is a valid grand coupling on 𝒫v in the sense of Definition 3.1.

Previous bounding-chain based algorithms (e.g., [4, 35]) implicitly employ two stages. These stages can be unified in our framework for grand couplings via bounding chains.

  • Generating stage: Once a random seed UUniform[0,1] is generated, the function fv determines, for every p𝒫v, a possible update outcome of v. The collection of all outcomes {fv(p,U):p𝒫v} forms the new bounding list (v) of vertex v, representing all colors that could be assigned under the current randomness.

  • Decoding stage: Once the actual neighbor configuration ω[q]Γ(v) (and thus the corresponding update distribution pvω𝒫v) is revealed, the updated color of v is determined by fv(pvω,U).

This formulation unifies the generating–decoding paradigm into a single mathematical framework, enabling an analysis of the optimality of grand coupling designs.

3.1.1 Grand coupling for Glauber dynamics

Now consider the Glauber dynamics on proper q-colorings. For each vertex v and neighborhood configuration ω[q]Γ(v), the local update distribution pvω at v given ω is uniform over the set of colors available to v given ω, that is, pvω=Uniform([q]ω), where we adopt the abuse of notation as in (3).

Under this specialization, the grand coupling fv in Definition 3.2 admits an interval-based model: The preimages of fv(p,) induce a measurable partition of [0,1] corresponding to the outcomes of p. Let k:=|[q]ω| denote the number of available colors at v. The mapping fv(pvω,) defines a partition of the unit interval [0,1] into k subsets of equal measure 1/k, each labeled by a distinct available color. A shared random seed UUniform[0,1] specifies a point in [0,1], and the update color fv(pvω,U) is the color assigned to that point in the partition corresponding to pvω.

3.1.2 Classical construction of grand coupling for 𝒒-colorings

We next illustrate how the formulation in Definition 3.2 specializes to the classical grand coupling of [30]. In this coupling, the shared randomness is a uniformly random permutation π of [q]. For each vertex v with neighborhood coloring ω[q]Γ(v), the local rule fv outputs the first color in π that does not appear in ω. It is straightforward to verify that, for any ω, this rule samples uniformly from the set of available colors [q]ω.

In the interval-based interpretation, the unit interval [0,1] is partitioned uniformly into q! subintervals, each corresponding to a distinct permutation of [q]. For each neighborhood coloring ω, and for each subinterval, let π denote the permutation associated with that subinterval; the subinterval is then assigned the first color in π that does not appear in ω. Given a shared random seed UUniform[0,1], the subinterval containing U determines the color selected for each local update distribution p𝒫v. Ideally, the new bounding list at vertex v is

(v)={fv(p,U):p𝒫v},

where 𝒫v contains all local update distributions given the current bounding lists, as defined in (5).

Although |𝒫v| may be exponentially large, it is not necessary to evaluate fv(p,U) for every p𝒫v. A key observation here is that including extra colors into (v) does not affect correctness of CFTP (though it may slow down coalescence). Let π denote the permutation corresponding to the interval containing U. Since the number of distinct colors in a neighborhood satisfies |{ω(u):uΓ(v)}|Δ, at least one of the first Δ+1 entries of π is available for v. Hence, it suffices to take

{π1,π2,,πΔ+1},

as the updated bounding list (v), since {fv(p,U):p𝒫v}{π1,π2,,πΔ+1}.

For further refinement, observe that if a color c does not appear in the bounding list (u) of any neighbor uΓ(v), then c cannot appear in any neighborhood coloring ωuΓ(v)(u). Let C denote the set of all such colors. If there exists an index iΔ+1 such that πiC, it suffices to take

{π1,π2,,πi}

as the updated bounding list. Indeed, πiC guarantees that for every neighborhood coloring ωuΓ(v)(u), the grand coupling outcome fv(pvω,U) never appears after position i in π. Hence, {fv(p,U):p𝒫v}{π1,π2,,πi}.

The grand coupling described above, together with this refinement, precisely recovers the bounding chain of [30] for q-colorings. The effectiveness of a bounding chain depends on how well it tracks the bounding list {fv(p,U):p𝒫v}. Smaller bounding lists may result in a tighter bounding chain and thus faster coalescence in the CFTP process. Subsequent works [4, 35] refined this idea by designing more sophisticated grand couplings. Their algorithms partition the process into multiple phases, each employing a distinct grand coupling, allowing the bounding lists to shrink gradually across phases. Despite differences in implementation, all such couplings admit a natural interpretation within the framework in Definition 3.2.

Within this formulation, designing an effective grand coupling can be quantitatively phrased as minimizing the size of {fv(p,U):p𝒫v} for UUniform[0,1]. In the following sections, we analyze this objective under specific structural assumptions on the neighboring bounding lists ((u))uΓ(v) and establish both upper and lower bounds for grand couplings within this model.

3.1.3 An optimization problem on grand coupling

As discussed above, the performance of a grand coupling is naturally quantified by the size of its updated bounding list:

(v)={fv(p,U):p𝒫v},UUniform[0,1].

A smaller expected size of (v) leads to faster coalescence in the coupling-from-the-past procedure. This motivates designing grand couplings that minimize the updated bounding list given the current neighborhood bounding lists. We formalize this task as the following optimization problem.

Problem 3.3 (Local grand coupling optimization).

Fix a vertex vV and a bounding list configuration ((u))uΓ(v), with each (u)[q]. Let

𝒫v={Uniform([q]ω):ωuΓ(v)(u)} (6)

denote the set of all possible local update distributions at v in the Glauber dynamics on q-colorings.

The objective is to design a local grand coupling fv:𝒫v×[0,1][q] at vertex v given the bounding lists ((u))uΓ(v) (cf. Definition 3.2) that minimizes

𝔼UUniform[0,1][|{fv(p,U):p𝒫v}|].

That is, fv seeks to minimize the expected size of the updated bounding list at v.

3.2 Lower bounds for grand coupling

In this subsection we prove Theorem 1.4 by establishing a fundamental lower bound for Problem 3.3. Our analysis reveals an intrinsic obstacle that limits the effectiveness of all known bounding-chain constructions [30, 4, 35]:

The difficulty of reducing every bounding list from size 2 to 1.

This step represents the critical bottleneck in coalescence of bounding chains. To understand this limitation, we focus on the configuration where each neighbor uΓ(v) has a bounding list (u) of size 2. This setting captures the worst-case local uncertainty at vertex v, and hence determines the strongest contraction that any grand coupling can possibly attain. Our lower-bound argument is therefore developed under this extremal configuration.

Theorem 3.4.

Let q<2.5Δ1, and let v be a vertex with degree |Γ(v)|=Δ. There exists a bounding list configuration ((u))uΓ(v) with |(u)|=2 for all uΓ(v) such that, for every local grand coupling fv:𝒫v×[0,1][q] of the Glauber dynamics update at v given ((u))uΓ(v), where 𝒫v is as in (6),

𝔼UUniform[0,1][|{fv(p,U):p𝒫v}|]>2.

Theorem 3.4 is established by explicitly constructing a bounding-list configuration exhibiting a structural bottleneck, formalized as follows.

Definition 3.5 (Worst-case triangle configuration).

We say that two vertices u,vV form a triangle on a bounding list configuration if |(u)|=|(v)|=2 and |(u)(v)|=3.

For a vertex vV, we say that is in a worst-case configuration at v if the neighbors of v can be partitioned into disjoint pairs, each forming a triangle on .

We now present a global version of the above lower bound, which extends the local obstruction in Theorem 3.4 to the entire graph, thereby proving Theorem 1.4.

Theorem 3.6 (Worst-case lower bound).

Let Δ3, q<2.5Δ1, and let n be sufficiently large. There exists a Δ-regular graph G=(V,E) with |V|=n, together with a bounding list configuration =((u))uV satisfying |(u)|=2 for all uV, such that for every vertex vV and every local grand coupling fv:𝒫v×[0,1][q] of the Glauber dynamics update at v given , where 𝒫v is as in (6),

𝔼UUniform[0,1][|{fv(p,U):p𝒫v}|]>2.

Moreover, the worst-case configuration at each vertex (defined in Definition 3.5) can be simultaneously realized across all vertices of G.

The proofs of Theorems 3.4 and 3.6 are deferred to the full version.

As noted in Section 2.3, any bounding-chain–based grand coupling selects a vertex v at random in each step and then applies a local grand coupling at v. Thus Theorem 3.6 is in fact a formal restatement of Theorem 1.6, and the latter can be derived as a straightforward corollary of the former.

4 Design of Grand Couplings

In this section, we explore the design of grand couplings with desirable contraction properties, a key ingredient for CFTP algorithms that succeed near the critical threshold.

4.1 A simplified formulation for grand coupling design

Based on the bounding-chain framework, we formulated in ˜3.3 an optimization problem for designing grand couplings.

To obtain a more tractable and intuitive formulation, we approximate 𝒫v by considering only the set of colors 𝒮=uΓ(v)(u) appearing in the neighborhood bounding list of v, which coarsely tracks the local uncertainty around v. This motivates the following simplified grand coupling design problem, which serves as an approximation of ˜3.3.

Problem 4.1 (Grand coupling design problem).

Fix a subset of colors 𝒮[q] and an integer Δ. Let 𝒮Δ:={C𝒮:|C|Δ} denote the collection of all subsets of 𝒮 of size at most Δ, and define

𝒫=𝒫(𝒮Δ):={Uniform([q]C):C𝒮Δ}.

The objective is to design a grand coupling f:𝒫×[0,1][q] (cf. Definition 3.1) that minimizes

𝔼UUniform[0,1][|{f(p,U):p𝒫}|].

It is straightforward to verify that any grand coupling f:𝒫×[0,1][q] that is a feasible solution to ˜4.1 on an instance (𝒮,Δ) is also a feasible solution to ˜3.3 for any vertex vV with neighborhood bounding list configuration ((u))uΓ(v) satisfy |Γ(v)|=Δ and 𝒮=uΓ(v)(u). Indeed, for any ωuΓ(v)(u), we have

{ωu:uΓ(v)}𝒮and|{ωu:uΓ(v)}||Γ(v)|=Δ.

Hence 𝒫v𝒫(𝒮Δ), where 𝒫v denotes the family of local update distributions at v defined in (6). Consequently, any grand coupling f constructed on 𝒫(𝒮Δ) in ˜4.1 remains a valid grand coupling on 𝒫v in ˜3.3.

The simplified formulation in ˜4.1 is not only conceptually cleaner, but also captures the key structure underlying previous designs. In particular, the core grand couplings employed in the algorithms of Bhandari et al. [4] (Algorithm 3, Contract) and Jain et al. [35] (Algorithm 3, Seeding) can both be viewed within the framework of ˜4.1. Building on this connection, we present a new construction that optimally solves ˜4.1.

4.2 Optimal design of grand coupling

In this subsection, we present an optimal construction of the grand coupling for ˜4.1, focusing on the nontrivial case where Δ<|𝒮|<q.

For a grand coupling f:𝒫×[0,1][q] that is feasible for ˜4.1, define, for each U[0,1], the bounding set of possible outcomes

U:={f(p,U):p𝒫}.

The grand coupling f naturally induces a probability distribution {rk}k1 over the sizes of U, where

rk=Pr[UUniform[0,1]]|U|=k.

We next present a system of linear constraints on the probabilities {rk} which correspond to the grand couplings that are feasible for ˜4.1.

Lemma 4.2 (Linear system for grand couplings).

Fix an instance (𝒮,Δ) for ˜4.1, and let 𝒫=𝒫(𝒮Δ). Let {rk}k=1Δ be a probability distribution on {1,2,,Δ} (so that k=1Δrk=1).

Consider the system of linear constraints

k=1Δrk(jk1)(|𝒮|k1)q|𝒮|qj,1jΔ. (7)

Then the following statements hold:

  1. (1)

    (Necessity) Let f:𝒫×[0,1][q] be a grand coupling that is feasible for Problem 4.1 on (𝒮,Δ). Assume further that |U|Δ almost surely. The sequence of probabilities rk=Pr[UUniform[0,1]]|U|=k, for k=1,,Δ, satisfies (7).

  2. (2)

    (Sufficiency) Conversely, if a probability distribution {rk}k=1Δ satisfies (7), then there exists a grand coupling f:𝒫×[0,1][q] that is feasible for Problem 4.1 on (𝒮,Δ) and realizes the size law

    Pr[UUniform[0,1]]|U|=k=rk,k=1,2,,Δ.
 Remark 4.3.

The almost-sure condition |U|Δ in Lemma 4.2 restricts attention to grand couplings for which the random bounding list U always has size at most Δ. This restriction is without loss of generality: the permutation-based “unconstrained” coupling from Section 3.1.2 already produces a bounding list of size Δ+1 for every seed. Thus, any coupling that sometimes outputs size Δ+1 can be treated separately as the straightforward (unrefined) case. Consequently, when searching for non-straightforward, size-reducing couplings, it suffices to consider laws supported on {1,2,,Δ}.

Since the objective of ˜4.1 is to minimize 𝔼[|U|]=kkrk where rk=Pr|U|=k, we can equivalently reformulate ˜4.1 as a linear program over {rk} subject to (7).

Theorem 4.4.

Fix integers Δ1 and q>Δ, and let 𝒮[q] satisfy Δ<|𝒮|<q. For each j,k{1,2,,Δ}, define

zj(k):=(jk1)(|𝒮|k1).

Consider the linear program

minimize k=1Δkrk (8)
subject to k=1Δrk=1,
k=1Δrkzj(k)q|𝒮|qj j=1,2,,Δ,
rk0 k=1,2,,Δ.

Let OPTLP denote the optimal objective value of (8).

Then OPTLP equals the minimum expected number of coupling outcomes over all grand couplings f:𝒫(𝒮Δ)×[0,1][q] that are feasible for Problem 4.1 on the instance (𝒮,Δ), i.e.,

OPTLP=minf: a grand coupling on 𝒫(𝒮Δ)𝔼UUniform[0,1][|{f(p,U):p𝒫}|].

Theorem 4.4 follows directly from Lemma 4.2, since Lemma 4.2 provides both necessary and sufficient conditions for any sequence {rk}k=1Δ that corresponds to a feasible solution to ˜4.1.

The proof of Lemma 4.2 and the discussion on solving the linear program in (8) are deferred to the full version.

4.3 Constructions of grand couplings

In this subsection, we present several concrete constructions of grand couplings that serve as building blocks for the CFTP algorithm stated in Theorem 1.2.

4.3.1 Grand coupling: Seeding

The grand coupling Seeding refers to the optimal construction introduced in Section 4.2. This coupling is the key to our improvement of the coloring threshold, reducing from the previous bound q>(8/3+o(1))Δ [35] to the nearly optimal bound q>(2.5+o(1))Δ.

Lemma 4.5 (Seeding coupling).

Fix any vertex vV and neighborhood bounding lists ((u))uΓ(v). Let 𝒫v denote the set of all possible local update distributions at v in the Glauber dynamics on q-colorings, given the bounding lists ((u))uΓ(v) on v’s neighbors. Formally,

𝒫v={Uniform([q]ω):ωuΓ(v)(u)} (9)

Assume

q73Δand|𝒮|2Δ,where 𝒮:=uΓ(v)(u).

Then there exists a grand coupling Seedingv:𝒫v×[0,1][q] satisfying:

  1. (a)

    (Bounding list reduction) For random seed U[0,1], let U(v)={Seedingv(p,U):p𝒫v} denote the set of possible coupling outcomes. Then |U(v)|{2,3}, and

    𝔼UUniform[0,1][|U(v)|]2+(|𝒮|+Δq)(|𝒮|1)(qΔ)Δ.
  2. (b)

    (Efficiency) The grand coupling Seedingv can be implemented so that each update of the bounding list can be performed in expected time O(ΔlogΔ).

Proof.

Recall that solving Problem 4.1 for the input (𝒮,Δ) yields a grand coupling that is valid for any neighborhood bounding lists with union equal to 𝒮. Hence it suffices to produce an admissible probability law {rk}k=1Δ satisfying the feasibility constraints of Lemma 4.2. The lemma then guarantees existence of a corresponding grand coupling realizing Pr|U(v)|=k=rk for every k.

We take {rk} to be the following two-point law.

Concretely define

r3=(|𝒮|+Δq)(|𝒮|1)(qΔ)Δ,r2= 1r3,rk= 0(k{2,3}).

Under the parameter restrictions of the lemma (q7/3Δ and |𝒮|2Δ) one checks routinely that r2,r3[0,1].

It can also be verified that the above choice of {rk} satisfies the linear constraint (7) throughout this regime.

By Lemma 4.2, there exists a valid grand coupling f realizing this size distribution.

For UUniform[0,1], this coupling satisfies Pr|U(v)|=k=rk for every k.

We take this coupling as our Seedingv.

Proof of Item a.

Because Pr|U(v)|=k=rk and only r2,r3 are nonzero, the size |U(v)| takes values in {2,3} and its expectation equals

𝔼[|U(v)|]=2r2+3r3=2+r3=2+(|𝒮|+Δq)(|𝒮|1)(qΔ)Δ,

which establishes the claimed bound.

Proof of Item b.

Since |𝒮|2Δ, constructing 𝒮=uΓ(v)(u) requires O(ΔlogΔ) time. Within Seedingv, apart from generating a random permutation of 𝒮 in O(Δ) time, all encoding and decoding operations take constant time. Hence, the overall computational complexity is O(ΔlogΔ).

4.3.2 Grand Coupling: Compress and Disjoint

Next, we present two canonical constructions of grand couplings, referred to as Compress and Disjoint, which serve as fundamental components in the CFTP algorithm discussed later.

The Compress and Disjoint algorithms were originally introduced in [4] and [35], respectively. Both algorithms can be naturally interpreted as specific instances of grand couplings via the bounding chains within our framework.

In particular, the Compress coupling can be viewed as a refinement of Huber’s permutation-based grand coupling [30] discussed in Section 3.1.2, optimized for the bounding-chain setting.

Lemma 4.6 (Compress coupling).

Fix any vertex vV and neighborhood bounding lists ((u))uΓ(v). Let 𝒫v be defined as (9). Assume qΔ+1. For any fixed subset A[q] with |A|=Δ, called a reference color set, there exists a grand coupling CompressvA:𝒫v×[0,1][q] satisfying:

  1. (a)

    (Bounding property) For random seed UUniform[0,1], the set of possible outcomes is

    {CompressvA(p,U):p𝒫v}=A{c},

    where c is distributed uniformly in [q]A (with the randomness induced by U).

  2. (b)

    (Efficiency) The grand coupling CompressvA can be implemented so that each update of the bounding list can be performed in expected time O(ΔlogΔ).

The Disjoint coupling corresponds to a key step in [35], enabling the reduction of all bounding list sizes from 2 to 1 in the regime where q>2.5Δ.

Lemma 4.7.

(Disjoint coupling [35, Lemma 4.3]) Fix any vertex vV and neighborhood bounding lists ((u))uΓ(v). Let 𝒫v be defined as (9). Define

𝒮 :=uΓ(v)(u),
𝒬 :=uΓ(v):|(u)|=1(u),
𝒟 :=uΓ(v):wΓ(v),(u)(w)=(u).

Assume q2.5Δ and |(u)|2 for all uΓ(v). Then, there exists a grand coupling Disjoint:𝒫v×[0,1][q] satisfying:

  1. (a)

    (Bounding list reduction) For random seed x[0,1], let U(v)={Disjointv(p,x):p𝒫v} denote the set of possible coupling outcomes. Then |U(v)|{1,2}, and

    Pr[UUniform[0,1]]|U(v)|=11|𝒮||𝒬|qΔ+|𝒟|/2q|𝒬||𝒟|/2.
  2. (b)

    (Efficiency) The grand coupling Disjointv can be implemented so that each update of the bounding list can be performed in expected time O(ΔlogΔ).

5 CFTP for 𝒒-Colorings with 𝒒>2.5𝚫

In this section, we present the construction of a perfect sampler for proper q-colorings within the classical Coupling From The Past (CFTP) framework, implemented using the grand couplings developed in Section 4. We show that this construction gives an efficient CFTP algorithm for exact sampling from the uniform distribution over proper q-colorings, under the condition q>(2.5+η)Δ where η=2(logΔ+1)/Δ=o(1), thus completing the proof of Theorem 1.2.

5.1 Algorithm overview

Let Ω be a finite configuration space endowed with the uniform measure μΩ, and let F:Ω×[0,1]Ω be a randomized update operator driven by a random seed U[0,1]. Associated with F is a coalescence predicate ΦF:[0,1]Ω{}, which detects whether the update F(,U) maps all initial configurations in Ω to a common state. Specifically, ΦF(U)=ω indicates that all trajectories under F(,U) coalesce at the same configuration ωΩ.

Algorithm 1 CFTP Sampler.
Lemma 5.1.

Let F:Ω×[0,1]Ω and ΦF:[0,1]Ω{} satisfy:

  1. (a)

    For independent ωμΩ and UUniform[0,1], the random variable F(ω,U) is distributed according to μΩ.

  2. (b)

    If ΦF(U), then F(,U) is constant over Ω, and ΦF(U) equals its unique image.

  3. (c)

    Pr[UUniform[0,1]]ΦF(U)1/2.

  4. (d)

    The predicate ΦF(U) can be evaluated in expected time T1, and F(ω,U) in expected time T2.

Then Algorithm 1 terminates in expected time O(T1+T2) and outputs an exact sample from μΩ, with exponentially decaying tail bounds on its runtime.

The proof of Lemma 5.1 is deferred to the full version.

The above lemma provides a general CFTP framework applicable to any update operator satisfying conditions (a)–(d). We next instantiate this framework for the Glauber dynamics on q-colorings.

 Remark 5.2.

In our setting, the randomized update operator F in Lemma 5.1 is realized as a finite composition of single-site grand couplings for the Glauber dynamics (cf. Definition 3.2). Because the uniform measure μΩ is stationary for the Glauber dynamics, condition (a) is automatically satisfied. Moreover, with the bounding chains, the corresponding coalescence predicate ΦF inherently satisfies condition (b). Consequently, to prove Theorem 1.2, it suffices to construct an explicit family of such grand couplings that ensure the coalescence probability in (c) and the efficiency guarantees in (d).

5.2 Global grand couplings from local updates

We now explicitly construct the global grand coupling F=F(,U) on the configuration space Ω and its associated coalescence predicate ΦF(U), by composing local grand couplings corresponding to single-site updates.

5.2.1 Representing global coupling via composition of local couplings

Recall from Section 4.3 and Definition 3.2 that for each vertex vV, we have defined several types of local grand couplings fv:𝒫v×[0,1][q] corresponding to single-site updates in Glauber dynamics, including Seeding, Compress, and Disjoint. We now describe how these local updates are composed into a global coupling according to a carefully designed schedule.

Throughout this construction, the algorithm has access to a global random seed UUniform[0,1], where each bit of U is sampled i.i.d. uniformly so that all randomness is derived from this single source.

In addition, the construction maintains two global data structures:

  • A bounding list =((v))vV, where each (v)[q] records the current set of possible colors at vertex v;

  • A composition list F, which stores the sequence of local updates used to construct the overall mapping F(,U). Each entry of F takes the form (v,fv,Uv), where v is the vertex being updated, fv is the local grand coupling, and Uv[0,1] is the independent random seed used in that update (generated from the global seed U).

The following subroutine Update(v,f) modifies the bounding list at v and appends a new entry to the composition list F, given a vertex vV and a local grand coupling rule f=(fu)uV specifying at each vertex u a local update function fu:𝒫u×[0,1][q], as in Definition 3.2.

Algorithm 2 Update(v,f).

Each call to Update modifies only the bounding list (v) at vertex v, and appends one new record (v,fv,Uv) representing the local update fv(,Uv) to F. Intuitively, each such tuple in F specifies a single atomic update applied to the current bounding chain.

The resulting global coupling F:ΩΩ is the composition of all local updates in the order they appear in the list. Given an initial configuration ωΩ, its image under F can be evaluated as follows.

Algorithm 3 Evaluation of F(ω) for initial configuration ω.
Algorithm 4 CleanUp(v,P).

5.2.2 Neighborhood maintenance via CleanUp

We define an auxiliary routine CleanUp(v,P) that applies a sequence of Compress-type updates around v relative to a reference color set A[q] built from the bounding lists of a preserved set PV. Intuitively, this aligns the neighborhoods not currently being updated so that subsequent Update calls meet the required invariants.

 Remark 5.3 (The Greedy subroutine in Algorithm 4).

The reference set A used in CleanUp is chosen greedily based on the current bounding information P: the idea is to include as many colors as possible from the target color sets until reaching size Δ; and if the total size of the targets is less than Δ, we include all of them and fill the remaining slots with arbitrary colors. This ensures |A|=Δ while maximizing coverage over the currently active neighborhood.

The specific priority rule of this greedy selection may vary across different stages of the algorithm, as the construction of A will be adapted to the particular coupling objective of each stage.

The detailed constructions of these greedy strategies, together with the corresponding phase analyses, are given in the full version.

 Remark 5.4.

It is important to note that while the vertex v in each update or CleanUp call must be selected independently of the current configuration, the auxiliary set A may depend adaptively on the current state of the bounding chain. The reason is that choosing A only determines which specific member of the family of grand couplings {CompressA:A[q],|A|=Δ} is applied; it does not modify the underlying Glauber dynamics itself. In other words, the Glauber update rule remains unchanged, and adaptively choosing A merely specifies which valid grand coupling realization to use at that step. Since grand couplings are by definition allowed to be adaptively chosen, this adaptivity does not introduce bias nor affect correctness.

5.2.3 Construction of grand coupling and coalescence predicate

We now define the global coupling F(,U) by composing the atomic local updates according to a two-phase schedule. The resulting operator F:ΩΩ is represented by the composition list F, which records the ordered sequence of local updates together with their corresponding random seeds, as described in Algorithm 3. For convenience, we write FF(,U) to emphasize that the composition list fully specifies the coupling induced by the global seed U.

At the end, if every bounding list (v) for vV reduces to a singleton, a coalescence is detected and we set ΦF(U) to be the corresponding unique configuration. Otherwise, we set ΦF(U)=.

Algorithm 5 Construction of F(,U) and evaluation of ΦF(U).
Lemma 5.5 (Efficiency and coalescence).

Suppose q>(2.5+η)Δ with η=2(logΔ+1)/Δ. Then Algorithm 5 returns a (F,ΦF(U)) in time O~(nΔ2), and it holds PrΦF(U)1/2.

Lemma 5.6 (Evaluation cost).

Given the composition list F returned by Algorithm 5, the mapping F(ω)=F(ω,U) can be evaluated by Algorithm 3 for any configuration ωΩ in time O~(nΔ2).

Proof.

By Lemmas 4.6, 4.5, and 4.7, each local update costs O(ΔlogΔ) in time. The number of updates in Algorithm 5 is O(nΔlogn), so the total cost is O(nΔ2lognlogΔ).

The phase analysis that proves Lemma 5.5 is deferred to the full version. Combining Lemmas 5.5 and 5.6 with Lemma 5.1, Algorithm 1 terminates in expected time O~(nΔ2) and outputs an exact sample from μΩ, establishing Theorem 1.2.

5.3 Vertex partition via algorithmic LLL

As a preprocessing step for the global coupling construction in Algorithm 5, we partition the vertex set V into a seeding set S and its complement VS. The goal is to ensure that each vertex has a well-balanced neighborhood across S and VS. The seeding set S is used in Phase I of Algorithm 5 to guarantee that the neighborhoods involved in local updates remain sufficiently sparse, which in turn enables efficient list reduction and coalescence guarantees in subsequent phases.

The following lemma shows that such a partition always exists and can be constructed efficiently.

Lemma 5.7.

Let G=(V,E) be a graph with maximum degree Δ. Then for η=2(logΔ+1)/Δ, there exists a subset SV such that for every vertex vV,

|Γ(v)S|12Δ,|Γ(v)(VS)|(12+η)Δ.

Moreover, such a set S can be computed in expected time O(nΔ).

The proof of Lemma 5.7 is deferred to the full version.

References

  • [1] Konrad Anand, Andreas Göbel, Marcus Pappik, and Will Perkins. Perfect sampling for hard spheres from strong spatial mixing. In Nicole Megow and Adam D. Smith, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2023, Atlanta, Georgia, USA, September 11-13, 2023, LIPIcs, pages 38:1–38:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.APPROX/RANDOM.2023.38.
  • [2] Konrad Anand and Mark Jerrum. Perfect sampling in infinite spin systems via strong spatial mixing. SIAM Journal on Computing, 51(4):1280–1295, 2022. doi:10.1137/21M1437433.
  • [3] Ferenc Bencs, Khallil Berrekkal, and Guus Regts. Deterministic approximate counting of colorings with fewer than 2δ colors via absence of zeros. TheoretiCS, 5:1:1–1:41, 2026. doi:10.46298/theoretics.26.1.
  • [4] Siddharth Bhandari and Sayantan Chakraborty. Improved bounds for perfect sampling of k-colorings in graphs. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 631–642, 2020. doi:10.1137/20M1366666.
  • [5] Russ Bubley and Martin E. Dyer. Path coupling: A technique for proving rapid mixing in markov chains. In 38th Annual Symposium on Foundations of Computer Science, FOCS 1997, Miami Beach, Florida, USA, October 19-22, 1997, pages 223–231. IEEE Computer Society, 1997. doi:10.1109/SFCS.1997.646111.
  • [6] Charlie Carlson and Eric Vigoda. Flip dynamics for sampling colorings: Improving (11/6—ε) using a simple metric. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2194–2212. SIAM, 2025. doi:10.1137/1.9781611978322.71.
  • [7] Sitan Chen, Michelle Delcourt, Ankur Moitra, Guillem Perarnau, and Luke Postle. Improved bounds for randomly sampling colorings via linear programming. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2216–2234, 2019. doi:10.1137/1.9781611975482.134.
  • [8] Xiaoyu Chen, Weiming Feng, Heng Guo, Xinyuan Zhang, and Zongrui Zou. Deterministic counting from coupling independence. In 66th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2025, Sydney, Australia, December 14–17, 2025, pages 667–683. IEEE, 2025. doi:10.1109/FOCS63196.2025.00036.
  • [9] Xiaoyu Chen, Weiming Feng, Yitong Yin, and Xinyuan Zhang. Rapid mixing of glauber dynamics via spectral independence for all degrees. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 137–148. IEEE, 2021. doi:10.1109/FOCS52979.2021.00022.
  • [10] Zongchen Chen, Kuikui Liu, Nitya Mani, and Ankur Moitra. Strong spatial mixing for colorings on trees and its algorithmic applications. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 810–845, 2023. doi:10.1109/FOCS57990.2023.00053.
  • [11] Zongchen Chen, Kuikui Liu, and Eric Vigoda. Optimal mixing of Glauber dynamics: entropy factorization via high-dimensional expansion. In STOC, pages 1537–1550. ACM, 2021. doi:10.1145/3406325.3451035.
  • [12] Henry Cohn, Robin Pemantle, and James Gary Propp. Generating a random sink-free orientation in quadratic time. Electron. J. Comb., 9(1), 2002. doi:10.37236/1627.
  • [13] Martin Dyer and Catherine Greenhill. Random walks on combinatorial objects. London Mathematical Society Lecture Note Series, pages 101–136, 1999.
  • [14] Martin E. Dyer, Alan M. Frieze, Thomas P. Hayes, and Eric Vigoda. Randomly coloring constant degree graphs. Random Struct. Algorithms, 43(2):181–200, 2013. doi:10.1002/RSA.20451.
  • [15] Weiming Feng, Heng Guo, Chunyang Wang, Jiaheng Wang, and Yitong Yin. Towards derandomising markov chain monte carlo. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 1963–1990. IEEE, 2023. doi:10.1109/FOCS57990.2023.00120.
  • [16] Weiming Feng, Heng Guo, Yitong Yin, and Chihao Zhang. Rapid mixing from spectral independence beyond the boolean domain. ACM Trans. Algorithms, 18(3):28:1–28:32, 2022. doi:10.1145/3531008.
  • [17] Weiming Feng, Nisheeth K. Vishnoi, and Yitong Yin. Dynamic sampling from graphical models. SIAM J. Comput., 50(2):350–381, 2021. doi:10.1137/20M1315099.
  • [18] James Allen Fill and Mark Huber. The randomness recycler: A new technique for perfect sampling. In 41st Annual Symposium on Foundations of Computer Science, FOCS 2000, Redondo Beach, California, USA, November 12-14, 2000, pages 503–511. IEEE Computer Society, 2000. doi:10.1109/SFCS.2000.892138.
  • [19] James Allen Fill, Motoya Machida, Duncan J. Murdoch, and Jeffrey S. Rosenthal. Extension of fill’s perfect rejection sampling algorithm to general chains. Random Struct. Algorithms, 17(3-4):290–316, 2000. doi:10.1002/1098-2418(200010/12)17:3/4\%3C290::AID-RSA6\%3E3.0.CO;2-Q.
  • [20] Andreas Galanis, Daniel Stefankovic, and Eric Vigoda. Inapproximability for antiferromagnetic spin systems in the tree nonuniqueness region. J. ACM, 62(6):50:1–50:60, 2015. doi:10.1145/2785964.
  • [21] David Gamarnik and Dmitriy Katz. Correlation decay and deterministic FPTAS for counting colorings of a graph. J. Discrete Algorithms, 12:29–47, 2012. doi:10.1016/J.JDA.2010.10.002.
  • [22] Heng Guo, Mark Jerrum, and Jingcheng Liu. Uniform sampling through the lovász local lemma. J. ACM, 66(3):18:1–18:31, 2019. doi:10.1145/3310131.
  • [23] Andreas Göbel, Jingcheng Liu, Pasin Manurangsi, and Marcus Pappik. Perfect sampling from rapidly mixing markov chains, 2024. arXiv:2410.00882.
  • [24] Olle Häggström and Karin Nelander. On exact simulation of markov random fields using coupling from the past. Scandinavian Journal of Statistics, 26(3):395–411, 1999. doi:10.1111/1467-9469.00156.
  • [25] Thomas P. Hayes. A simple condition implying rapid mixing of single-site dynamics on spin systems. In 47th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2006, Berkeley, California, USA, October 21-24, 2006, Proceedings, pages 39–46. IEEE Computer Society, 2006. doi:10.1109/FOCS.2006.6.
  • [26] Thomas P. Hayes and Eric Vigoda. A non-markovian coupling for randomly sampling colorings. In 44th Symposium on Foundations of Computer Science, FOCS 2003, Cambridge, MA, USA, October 11-14, 2003, Proceedings, pages 618–627. IEEE Computer Society, 2003. doi:10.1109/SFCS.2003.1238234.
  • [27] Thomas P. Hayes and Eric Vigoda. Coupling with the stationary distribution and improved sampling for colorings and independent sets. Ann. Appl. Probab., 16(3):1297–1318, 2006.
  • [28] Kun He, Xiaoming Sun, and Kewen Wu. Perfect sampling for (atomic) lovász local lemma, 2021. arXiv:2107.03932.
  • [29] Kun He, Chunyang Wang, and Yitong Yin. Sampling lovász local lemma for general constraint satisfaction solutions in near-linear time. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 147–158. IEEE, 2022. doi:10.1109/FOCS54457.2022.00021.
  • [30] Mark Huber. Exact sampling and approximate counting techniques. In Jeffrey Scott Vitter, editor, Proceedings of the Thirtieth Annual ACM Symposium on the Theory of Computing, Dallas, Texas, USA, May 23-26, 1998, pages 31–40. ACM, 1998. doi:10.1145/276698.276709.
  • [31] Mark L. Huber. Perfect sampling using bounding chains. The Annals of Applied Probability, 14(2):735–753, 2004. doi:10.1214/105051604000000080.
  • [32] M.L. Huber. Perfect Simulation. Chapman & Hall/CRC Monographs on Statistics & Applied Probability. CRC Press, 2016. URL: https://books.google.com.tw/books?id=xD5qCwAAQBAJ.
  • [33] O. Häggström and K. Nelander. Exact sampling from anti-monotone systems. Statistica Neerlandica, 52(3):360–380, 1998. doi:10.1111/1467-9574.00090.
  • [34] Vishesh Jain, Huy Tuan Pham, and Thuy-Duong Vuong. Spectral independence, coupling, and the spectral gap of the glauber dynamics. Inf. Process. Lett., 177:106268, 2022. doi:10.1016/J.IPL.2022.106268.
  • [35] Vishesh Jain, Ashwin Sah, and Mehtaab Sawhney. Perfectly sampling k (8/3 + o(1))Δ-colorings in graphs. In Samir Khuller and Virginia Vassilevska Williams, editors, STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 1589–1600. ACM, 2021. doi:10.1145/3406325.3451012.
  • [36] Mark Jerrum. A very simple algorithm for estimating the number of k-colorings of a low-degree graph. Random Struct. Algorithms, 7(2):157–166, 1995. doi:10.1002/RSA.3240070205.
  • [37] Mark Jerrum, Leslie G. Valiant, and Vijay V. Vazirani. Random generation of combinatorial structures from a uniform distribution. Theor. Comput. Sci., 43:169–188, 1986. doi:10.1016/0304-3975(86)90174-X.
  • [38] Johan Jonasson. Uniqueness of uniform random colorings of regular trees. Statistics & Probability Letters, 57(3):243–248, 2002. doi:10.1016/S0167-7152(02)00054-8.
  • [39] Hongyang Liu, Chunyang Wang, and Yitong Yin. Local gibbs sampling beyond local uniformity. In Kasper Green Larsen and Barna Saha, editors, Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 996–1025. SIAM, 2026. doi:10.1137/1.9781611978971.41.
  • [40] Jingcheng Liu, Alistair Sinclair, and Piyush Srivastava. A deterministic algorithm for counting colorings with 2-delta colors. In David Zuckerman, editor, 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 1380–1404. IEEE Computer Society, 2019. doi:10.1109/FOCS.2019.00085.
  • [41] Jingcheng Liu, Chunyang Wang, Yitong Yin, and Yixiao Yu. Phase transitions via complex extensions of markov chains. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 903–914. ACM, 2025. doi:10.1145/3717823.3718230.
  • [42] Pinyan Lu and Yitong Yin. Improved FPTAS for multi-spin systems. In Prasad Raghavendra, Sofya Raskhodnikova, Klaus Jansen, and José D. P. Rolim, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques - 16th International Workshop, APPROX 2013, and 17th International Workshop, RANDOM 2013, Berkeley, CA, USA, August 21-23, 2013. Proceedings, Lecture Notes in Computer Science, pages 639–654. Springer, 2013. doi:10.1007/978-3-642-40328-6_44.
  • [43] James Gary Propp and David Bruce Wilson. Exact sampling with coupled markov chains and applications to statistical mechanics. Random Struct. Algorithms, 9(1-2):223–252, 1996. doi:10.1002/(SICI)1098-2418(199608/09)9:1/2\%3C223::AID-RSA14\%3E3.0.CO;2-O.
  • [44] Guoliang Qiu, Yanheng Wang, and Chihao Zhang. A perfect sampler for hypergraph independent sets. In Mikolaj Bojanczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, Paris, France, July 4-8, 2022, LIPIcs, pages 103:1–103:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.103.
  • [45] Jesús Salas and Alan D Sokal. Absence of phase transition for antiferromagnetic potts models via the dobrushin uniqueness theorem. Journal of Statistical Physics, 86:551–579, 1997.
  • [46] Eric Vigoda. Improved bounds for sampling colorings. In 40th Annual Symposium on Foundations of Computer Science, FOCS 1999, New York, NY, USA, October 17-18, 1999, pages 51–59. IEEE Computer Society, 1999. doi:10.1109/SFFCS.1999.814577.
  • [47] David Bruce Wilson. Generating random spanning trees more quickly than the cover time. In Gary L. Miller, editor, Proceedings of the Twenty-Eighth Annual ACM Symposium on the Theory of Computing, Philadelphia, Pennsylvania, USA, May 22-24, 1996, pages 296–303. ACM, 1996. doi:10.1145/237814.237880.