Going for Speed: Sublinear Algorithms for Dense r-CSPs

Grigory YaroslavtsevarXiv 2014

Abstract

We give new sublinear and parallel algorithms for the extensively studied problem of approximating $n$-variable $r$-CSPs (constraint satisfaction problems with constraints of arity $r$) up to an additive error. The running time of our algorithms is $O(n/\epsilon^2) + 2^{O(1/\epsilon^2)}$ for Boolean $r$-CSPs and $O(k^4 n / \epsilon^2) + 2^{O(\log k / \epsilon^2)}$ for $r$-CSPs with constraints on variables over an alphabet of size $k$. For any constant $k$ this gives optimal dependence on $n$ in the running time unconditionally, while the exponent in the dependence on $1/\epsilon$ is polynomially close to the lower bound under the exponential-time hypothesis, which is $2^{\Omega(\epsilon^{-1/2})}$. For Max-Cut this gives an exponential improvement in dependence on $1/\epsilon$ compared to the sublinear algorithms of Goldreich, Goldwasser and Ron (JACM'98) and a linear speedup in $n$ compared to the algorithms of Mathieu and Schudy (SODA'08). For the maximization version of $k$-Correlation Clustering problem our running time is $O(k^4 n / \epsilon^2) + k^{O(1/\epsilon^2)}$, improving the previously best $n k^{O(1/\epsilon^3 \log k/\epsilon)}$ by Guruswami and Giotis (SODA'06).

The Challenge of Dense CSPs

Constraint Satisfaction Problems (CSPs), such as Max-Cut and 3-SAT, are fundamental to theoretical computer science. In "dense" instances, where the number of constraints is proportional to the total possible number of constraints (e.g., $\Omega(n^2)$ edges in a graph), it is well-known that these problems can be approximated within an additive error of $\epsilon n^r$ in polynomial time. However, for massive datasets, even standard $O(n^2)$ algorithms are prohibitively slow. This research addresses the critical question: Can we find near-optimal solutions in sublinear time by examining only a tiny fraction of the constraints?

Methodology: Greedy PTAS with Subsampling

The authors introduce a "Greedy PTAS with subsampling" that achieves sublinear performance through three primary technical innovations:

  1. Sampling-based Greedy Choices: Instead of computing the exact benefit of a variable assignment by checking all constraints, the algorithm estimates this benefit using a small, random sample of previously assigned variables.
  2. Bootstrapping: To manage computational costs, the algorithm employs a multi-stage approach. It solves a tiny instance exactly to create a "seed" solution, which then informs a larger sublinear secondary sample, eventually guiding the assignment of all remaining variables.
  3. Martingale Analysis: To prevent error propagation—a common issue in sequential greedy algorithms—the authors utilize sophisticated martingale-based probabilistic arguments. This ensures that local errors do not accumulate, keeping the final solution within the $O(\epsilon n^r)$ bound.

Key Results and Performance Comparison

The proposed algorithms provide the first sublinear-time solutions for approximating dense $r$-CSPs with an additive error that are optimal in their dependence on $n$.

Comparison of running times for various approximation schemes for dense r-CSPs.

As illustrated in the table above, the "Our work" row demonstrates a linear dependence on $n$ ($O(n/\epsilon^2)$) and a significant exponential improvement in the $\epsilon$ parameter compared to previous sublinear methods like [GGR98]. Specifically, for Max-Cut, the algorithm reduces the complexity from $2^{O(1/\epsilon^3)}$ to $2^{O(1/\epsilon^2)}$.

Beyond Max-Cut, the framework extends to general $r$-CSPs over an alphabet of size $k$, achieving a running time of $O(nk^4/\epsilon^2) + 2^{O(\log k/\epsilon^2)}$. It also sets a new state-of-the-art bound for the maximization version of $k$-Correlation Clustering.

Theoretical Insights

  • Optimality of $n$: The $O(n/\epsilon^2)$ term is proven to be unconditionally optimal; no algorithm can achieve the desired accuracy with fewer queries.
  • Bypassing Partitioning: Unlike previous sublinear algorithms that relied on complex graph partitioning, this greedy approach simplifies the process and improves efficiency.
  • Parallelization: The sequential greedy logic can be adapted to "superstep" models like MapReduce, making it highly applicable to modern distributed computing environments.

Limitations and Future Work

While groundbreaking, the approach is specifically tailored for dense instances. In sparse instances, the additive error $O(\epsilon n^r)$ may exceed the value of the optimal solution, rendering the approximation trivial. Additionally, a gap remains in the $\epsilon$ dependence: the upper bound is $2^{O(1/\epsilon^2)}$, while the lower bound (under the Exponential Time Hypothesis) is $2^{\Omega(1/\sqrt{\epsilon})}$. Finally, whether these sublinear time results can be achieved in a sublinear space streaming model remains an open question.

Summary updated

BibTeX
@misc{yaroslavtsev2014going,
  author = {Grigory Yaroslavtsev},
  title = {{Going for Speed: Sublinear Algorithms for Dense r-CSPs}},
  year = {2014},
  eprint = {1407.7887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1407.7887},
}
Figure