Approximability of all finite CSPs in the dynamic streaming setting

Chi-Ning Chou, Alexander Golovnev, Madhu Sudan, Santhoshini Velusamy

Introduction

Constraint Satisfaction Problems (CSPs) represent a cornerstone of theoretical computer science, encompassing a wide array of optimization and decision problems such as Max-CUT, SAT, and Graph Coloring. In the "Max-CSP" variant, the objective is to find an assignment to a set of variables that satisfies the maximum number of given constraints. As datasets grow to sizes that exceed the memory capacity of individual machines, researchers have increasingly turned to the streaming model. In this setting, constraints arrive sequentially, and the algorithm must maintain a compact summary—or "sketch"—of the data to provide an approximate solution.

This paper establishes a definitive "mathematical line in the sand" for the complexity of all finite CSPs within the sketching model. The authors prove a dichotomy theorem: for any finite CSP, either a simple algorithm can approximate it using polylogarithmic space, or any sketching algorithm requires a massive jump in memory, specifically at least $\Omega(\sqrt{n})$ space.

The Sketching Model and Dynamic Streams

A sketching algorithm is a specialized type of streaming algorithm where the summary of the data (the sketch) is linear. This property ensures that sketches of two different data streams can be easily combined to form a summary of the union of the streams. This is particularly useful in distributed computing and for dynamic streams, where constraints can be both added and removed.

Prior to this work, the sketching complexity was only understood for a handful of specific CSPs, primarily those limited to Boolean variables and simple constraint types. This research provides a universal theory applicable to any finite CSP, regardless of the alphabet size or the complexity of the constraints.

The Dichotomy Theorem: A Gap in Complexity

The central contribution of this paper is Theorem 1.1, which identifies a stark gap in the space complexity of CSPs. The theorem states that for every finite CSP and every approximation target, there are only two possibilities:

  1. The "Easy" Case: A linear sketching algorithm can solve the problem using $O(\log^3 n)$ space.
  2. The "Hard" Case: Every sketching algorithm requires at least $\Omega(\sqrt{n})$ space.

This "all-or-nothing" result implies that there is no middle ground in sketching complexity; a problem is either extremely efficient to solve or requires significant memory. Furthermore, the authors demonstrate that the condition determining which side of the dichotomy a CSP falls on is decidable. While the decision procedure resides in PSPACE, it provides a theoretical guarantee that we can categorize any given CSP.

Methodology: The Convex Set Framework

To bridge the gap between high-level logic and low-level memory bounds, the authors introduce a Convex Set Framework. This framework relies on the intuition of "bias."

The Role of Bias

Small-memory algorithms are fundamentally limited; they cannot remember specific, intricate relationships between individual variables. Instead, they can only track "biases"—aggregate statistics about how often variables appear in certain positions or prefer specific values.

  • Positive Results (Upper Bounds): If the "bias profiles" of highly satisfiable instances (Yes instances) and poorly satisfiable instances (No instances) are distinct, they can be separated by a hyperplane in a finite-dimensional space. The authors leverage this to design linear sketching algorithms that estimate the $\ell_{1,\infty}$ norm of these biases using standard streaming tools.
  • Negative Results (Lower Bounds): If the bias profiles of "Yes" and "No" instances overlap, the authors prove that no sketching algorithm can distinguish between them without substantial memory. This is achieved by reducing the CSP to a communication complexity task known as Signal Detection (SD).

Fourier Analysis on General Alphabets

To prove the lower bounds for the Signal Detection problem, the authors extend complex Fourier analytic methods. While previous work relied heavily on the properties of the Boolean cube, this paper generalizes these techniques to $q$-ary alphabets, allowing the results to apply to any finite domain.

Implications and Future Directions

This work significantly expands our understanding of CSPs, identifying infinitely many new problems that are now known to be approximable in polylogarithmic space, such as various versions of Max-kAND.

However, several open questions remain:

  • Sketching vs. General Streaming: The dichotomy applies strictly to sketching algorithms. General streaming algorithms, which are not required to be mergeable, may be more powerful. Recent developments have already identified $O(\sqrt{n})$ space algorithms for certain "hard" problems like Max-DICUT that bypass the sketching lower bound.
  • The Space Gap: While the lower bound is $\Omega(\sqrt{n})$, many researchers conjecture that the true requirement for "hard" problems is $\Omega(n)$. Closing this gap remains a primary objective for future research.
  • Efficiency of Categorization: Although the dichotomy is decidable, the current PSPACE algorithm is computationally expensive. Finding more efficient or explicit ways to categorize specific CSP families is an ongoing area of study.

By providing a universal framework for finite CSPs, this paper moves the field beyond sporadic case studies toward a comprehensive theory of streaming complexity.

Summary updated

BibTeX
@article{chou2021approximability,
  author = {Chi-Ning Chou and Alexander Golovnev and Madhu Sudan and Santhoshini Velusamy},
  title = {{Approximability of all finite CSPs in the dynamic streaming setting}},
  journal = {ECCC},
  year = {2021},
}
Figure