Testing Assignments to Constraint Satisfaction Problems

Hubie Chen, Matthew Valeriote, Yuichi Yoshida

Introduction

Constraint Satisfaction Problems (CSPs) represent a fundamental class of computational challenges, encompassing well-known problems such as Sudoku, map coloring, and Boolean satisfiability (SAT). While traditional research focuses on the decision problem—determining whether a satisfying assignment exists—this paper investigates a property testing variant: the assignment testing problem.

In this model, we are given a fixed CSP template and a specific instance, along with an assignment to its variables. The goal is to determine, with high probability, whether the assignment satisfies all constraints or is "far" from any satisfying assignment, using as few queries to the assignment as possible. This research provides a complete algebraic classification of the query complexity for these problems, identifying the structural properties that allow for ultra-efficient verification.

The Property Testing Model

We operate in the "massively parameterized" model. Here, the constraints of the CSP instance are known to the tester, but the variable assignments are hidden. The tester must "pay" in queries to inspect the value of any specific variable. The central question is how the number of required queries scales with the number of variables ($n$):

  1. Constant-query: The number of queries is independent of $n$.
  2. Sublinear-query: The number of queries grows slower than $n$ (e.g., $O(n^{1-1/k})$).
  3. Linear-query: The number of queries scales proportionally with $n$, representing the worst-case efficiency.

The Algebraic Approach to CSPs

The complexity of a CSP is intimately tied to its polymorphisms—algebraic operations that preserve the satisfying assignments of the problem. If a set of relations is closed under a polymorphism, it means that applying the operation component-wise to several satisfying assignments results in another satisfying assignment.

This paper identifies three critical types of polymorphisms that govern testing complexity:

  • Majority: An operation where, if most inputs agree, the output matches that value.
  • Maltsev: A generalization of Gaussian elimination, often associated with arithmetic structures.
  • Near-Unanimity (NU): A generalization of the Majority operation to higher arities.

Key Results: Dichotomies and Trichotomies

The authors establish two major classification theorems based on these algebraic properties.

1. The Dichotomy for Standard CSPs

For standard CSPs, the research reveals a sharp divide between constant-query testability and higher complexity:

  • Constant-Query Testable: A CSP is testable with a constant number of queries (and one-sided error) if and only if its template possesses both Majority and Maltsev polymorphisms. This combination is referred to as the "arithmetic" sweet spot.
  • Super-Constant: If either property is missing, the number of queries must grow with the input size.

2. The Trichotomy for Existentially Quantified CSPs (∃CSPs)

When the problem includes hidden, existentially quantified variables (∃CSPs), a more nuanced landscape emerges:

  • Constant-Query: Requires both Majority and Maltsev polymorphisms (identical to the standard CSP boundary).
  • Sublinear-Query: If the template has a $(k+1)$-ary Near-Unanimity polymorphism but lacks the Maltsev property, it allows for sublinear query complexity.
  • Linear-Query: In the absence of these properties, testing requires a number of queries proportional to the number of variables.

Methodological Innovations

To prove these classifications, the authors developed several sophisticated techniques:

  • Instance Reduction Algorithms: The paper introduces three methods—factoring, splitting, and isomorphism reductions—to simplify complex CSP instances into manageable forms while preserving the "distance" to satisfaction.
  • Gap-Preserving Reductions: These are used to map the testability of one problem to another, ensuring that if a simplified version is hard to test, the original version is as well.
  • Yao’s Principle: This principle was employed to establish lower bounds, constructing difficult probability distributions of inputs to prove that certain CSPs inherently require a high number of queries.

Conclusion and Future Directions

This work provides a definitive map of the query complexity landscape for assignment testing in CSPs, highlighting that the ability to efficiently verify assignments is driven by the underlying symmetries of the constraints.

However, two significant areas remain open for future exploration. First, this classification primarily addresses one-sided error (where valid assignments must always be accepted). Characterizing the complexity for two-sided error remains a significant challenge. Second, while the ∃CSP landscape is fully mapped, a complete classification of sublinear-query testability for standard CSPs remains "tantalizingly open," as the current reduction techniques for ∃CSPs do not translate directly to standard CSPs without an exponential blow-up in variables.

Summary updated

Abstract

For a finite relational structure A, let CSP(A) denote the CSP instances whose constraint relations are taken from A. The resulting family of problems CSP(A) has been considered heavily in a variety of computational contexts. In this article, we consider this family from the perspective of property testing: given an instance of a CSP and query access to an assignment, one wants to decide whether the assignment satisfies the instance, or is far from so doing. While previous work on this scenario studied concrete templates or restricted classes of structures, this article presents comprehensive classification theorems. Our first contribution is a dichotomy theorem completely characterizing the structures A such that CSP(A) is constant-query testable: (i) If A has a majority polymorphism and a Maltsev polymorphism, then CSP(A) is constant-query testable with one-sided error. (ii) Else, testing CSP(A) requires a super-constant number of queries. Let ∃CSP(A) denote the extension of CSP(A) to instances which may include existentially quantified variables. Our second contribution is to classify all structures A in terms of the number of queries needed to test assignments to instances of ∃CSP(A), with one-sided error. More specifically, we show the following trichotomy (i) If A has a majority polymorphism and a Maltsev polymorphism, then ∃CSP(A) is constant-query testable with one-sided error. (ii) Else, if A has a (k + 1)-ary near-unanimity polymorphism for some k ≥ 2, and no Maltsev polymorphism then ∃CSP(A) is not constant-query testable (even with two-sided error) but is sublinear-query testable with one-sided error. (iii) Else, testing ∃CSP(A) with one-sided error requires a linear number of queries.
BibTeX
@inproceedings{chen2016testing,
  author = {Hubie Chen and Matthew Valeriote and Yuichi Yoshida},
  title = {{Testing Assignments to Constraint Satisfaction Problems}},
  booktitle = {FOCS},
  year = {2016},
  url = {https://openreview.net/forum?id=TJmV6UIovS},
}
Figure