Skip to content
STOC '25

Counting Random $k$-SAT Near the Satisfiability Threshold

In the 57th ACM Symposium on Theory of Computing (STOC 2025)

Abstract

We present efficient counting and sampling algorithms for random $k$-SAT when the clause density satisfies $\alpha \le \frac{2^k}{\mathrm{poly}(k)}$. In particular, the exponential term $2^k$ matches the satisfiability threshold $\Theta(2^k)$ for the existence of a solution and the (conjectured) algorithmic threshold $2^k (\ln k) / k$ for efficiently finding a solution. Previously, the best-known counting and sampling algorithms required far more restricted densities $\alpha \lesssim 2^{k/3}$ [He, Wu, Yang, SODA ‘23]. Notably, our result goes beyond the lower bound $d \gtrsim 2^{k/2}$ for worst-case $k$-SAT with bounded-degree $d$ [Bezáková et al, SICOMP ‘19], showing that for counting and sampling, the average-case random $k$-SAT model is computationally much easier than the worst-case model.

At the heart of our approach is a new refined analysis of the recent novel coupling procedure by [Wang, Yin, FOCS ‘24], utilizing the structural properties of random constraint satisfaction problems (CSPs). Crucially, our analysis avoids reliance on the $2$-tree structure used in prior works, which cannot extend beyond the worst-case threshold $2^{k/2}$. Instead, we employ a witness tree similar to that used in the analysis of the Moser-Tardos algorithm [Moser, Tardos, JACM ‘10] for the Lovász Local lemma, which may be of independent interest. Our new analysis provides a universal framework for efficient counting and sampling for random atomic CSPs, including, for example, random hypergraph colorings. At the same time, it immediately implies as corollaries several structural and probabilistic properties of random CSPs that have been widely studied but rarely justified, including replica symmetry and non-reconstruction.

BibTeX
Download .bib
@inproceedings{chen2025counting,
  author    = {Chen, Zongchen and Lonkar, Aditya and Wang, Chunyang and Yang, Kuan and Yin, Yitong},
  title     = {Counting Random {$k$-SAT} near the Satisfiability Threshold},
  booktitle = {Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC)},
  pages     = {867--878},
  year      = {2025},
  publisher = {ACM},
  doi       = {10.1145/3717823.3718163},
  url       = {https://doi.org/10.1145/3717823.3718163}
}

Authors

Zongchen Chen
Zongchen Chen
Assistant Professor

School of Computer Science, Georgia Institute of Technology

I am an Assistant Professor in the School of Computer Science at Georgia Tech. My research focuses on randomized algorithms, discrete probability, and machine learning, with an emphasis on Markov chain Monte Carlo, approximate counting and sampling, and learning and testing high-dimensional distributions.

Aditya Lonkar
Aditya Lonkar
Ph.D. Student

Algorithms, Combinatorics, and Optimization, Georgia Institute of Technology

I am a Ph.D. student in the Algorithms, Combinatorics, and Optimization program at Georgia Tech. My research has included counting random $k$-SAT and algorithms for geometric packing and covering.

Chunyang Wang
Chunyang Wang
Project Researcher (Postdoc)

National Institute of Informatics

I am Chunyang Wang (王淳扬), currently a project researcher (postdoc) at the National Institute of Informatics (NII), hosted by Prof. Yuichi Yoshida. My research interests broadly lie in theoretical computer science, especially algorithms for counting and sampling and algorithmic stability.

Kuan Yang
Kuan Yang
Tenure-track Associate Professor

John Hopcroft Center for Computer Science, Shanghai Jiao Tong University

I am a tenure-track Associate Professor in the John Hopcroft Center for Computer Science at Shanghai Jiao Tong University. My research interests include theoretical computer science, discrete probability, and combinatorics, with a focus on approximation algorithms for counting and sampling problems.

Yitong Yin
Yitong Yin
Professor

Theory Group, School of Computer Science, Nanjing University

I am a professor in the Theory Group at the School of Computer Science, Nanjing University. My research interests include randomized algorithms and computational sampling and counting, data structures and lower bounds, and parallel and distributed computing.