NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An FPTAS for Counting Proper Four-Colorings on Cubic Graphs

Pinyan Lu, Kuan Yang, Chihao Zhang, Minshen Zhu

Abstract

This paper presents the first deterministic Fully Polynomial-Time Approximation Scheme (FPTAS) for counting proper 4-colorings on cubic graphs (graphs with a maximum degree $\Delta = 3$). By achieving the optimal bound of $q = \Delta + 1$, the authors resolve a long-standing conjecture for the cubic case and overcome intrinsic ergodicity barriers that have historically limited randomized algorithms. The approach utilizes the correlation decay framework, enhanced by a novel two-layer recursion and a non-monotonic potential function to prove convergence at the uniqueness threshold.

Introduction

The problem of counting proper graph colorings—where no two adjacent vertices share the same color—is a fundamental challenge in computational complexity. While finding a single valid coloring is often straightforward, counting the total number of valid colorings is #P-hard, placing it among the most difficult problems in computer science. Consequently, research has focused on developing efficient approximation algorithms.

For decades, the field has been guided by the "uniqueness threshold" conjecture: that the number of colorings can be efficiently approximated as long as the number of colors $q$ satisfies $q \ge \Delta + 1$, where $\Delta$ is the maximum degree of the graph. Despite this conjecture, previous algorithmic bounds remained significantly higher. Randomized algorithms based on Markov Chain Monte Carlo (MCMC) methods typically required $q > \frac{11}{6}\Delta$, and deterministic methods lagged even further behind. For cubic graphs ($\Delta=3$), this meant that while 5-coloring was approachable, the critical case of 4-coloring remained computationally elusive.

The Barrier of the Uniqueness Threshold

The primary obstacle at the $q = \Delta + 1$ boundary is the breakdown of ergodicity in Markov chains. In randomized sampling, the algorithm moves through the state space of possible colorings; however, at the uniqueness threshold, the state space can become disconnected. The Markov chain may become trapped in specific regions, failing to sample the entire space and leading to inaccurate counts.

This paper sidesteps the ergodicity problem by employing the correlation decay approach. Unlike MCMC, which relies on global sampling, correlation decay is a deterministic technique derived from statistical physics. It computes the marginal probability of a vertex having a specific color by treating it as a recursive function of its neighbors' probabilities. If the influence of distant vertices on a specific vertex decays sufficiently quickly, the marginals can be approximated locally.

Technical Innovations

To successfully apply correlation decay to the $q=4, \Delta=3$ case, the authors introduced three significant technical advancements:

1. Partial Two-Layer Recursion

Standard correlation decay often suffers from "information loss" because it treats recursive variables as independent. The authors developed a partial two-layer recursion that exploits the inherent relationships between redundant variables. By recognizing that different color probabilities are constrained by the same set of underlying variables, they reduced the effective degree of the computation tree from $dq$ to $d$. This reduction makes the mathematical analysis of the recursion tractable without sacrificing accuracy.

2. Boundary Case Handling

Error propagation is a major concern in recursive approximation. The authors identified that the most significant errors in the recursion occur only within specific probability ranges. By explicitly detecting boundary cases—where the probability of a color is exactly $0$ or $1/2$—the algorithm can compute these values exactly. This allows the approximation error analysis to focus exclusively on "safe" intervals, preventing the accumulation of errors that would otherwise invalidate the convergence proof.

3. Non-Monotonic Potential Function

Proving that a recursive algorithm converges (or "contracts") requires a potential function to measure the distance between the true value and the approximation. While previous proofs relied on monotonic potential functions, the complex behavior of colorings at the uniqueness threshold necessitated a more flexible tool. The authors designed a new non-monotonic potential function that better captures the oscillating nature of the coloring problem's marginals, providing the rigorous proof of convergence needed for an FPTAS.

Results and Implications

The primary result is a deterministic algorithm that approximates the number of 4-colorings on any cubic graph within a factor of $(1 \pm \epsilon)$ in time polynomial to the number of vertices $n$ and $1/\epsilon$. This represents the first time the $q = \Delta + 1$ bound has been reached for any $\Delta \ge 3$.

Beyond the specific result for cubic graphs, this work highlights the power of deterministic algorithms in regimes where randomized methods fail. By bypassing the state-space connectivity issues of MCMC, the correlation decay approach proves to be a robust tool for exploring phase transition boundaries in combinatorial problems. Furthermore, the authors note that their analysis, while requiring computer-verified numerical inequalities via Mathematica, is conceptually simpler than the exhaustive case-by-case proofs previously used to analyze MCMC for $q=5$.

Limitations and Future Work

While a theoretical breakthrough, the algorithm's practical application is limited by the large constants and exponents typical of correlation decay methods. It serves more as a proof of feasibility than a tool for immediate industrial use. Additionally, while the two-layer recursion is a generalizable technique, the specific potential function and boundary analysis were tailored for $\Delta=3$. Extending these results to $\Delta=4$ or general $\Delta$ remains a significant open challenge in the field of approximate counting.

Summary updated

BibTeX
@inproceedings{lu2017fptas,
  author = {Pinyan Lu and Kuan Yang and Chihao Zhang and Minshen Zhu},
  title = {{An FPTAS for Counting Proper Four-Colorings on Cubic Graphs}},
  booktitle = {SODA},
  year = {2017},
  doi = {10.1137/1.9781611974782.117},
}
Figure