Search-Space Reduction for Boolean MinCSPs via Essential Constraints
Abstract
For a fixed set of Boolean constraint types, a MinCSP()-instance consists of a formula that applies constraints from to a set of Boolean variables. The goal is to remove a minimum subset of constraint applications from to make the remaining formula satisfiable. Previous work characterized how the choice of affects its polynomial-time solvability and approximability. We extend a recently introduced preprocessing framework for graph problems to the problem above. Rephrased in the context of CSPs, this framework defines a constraint application from a given formula as -essential if it is contained in all -approximate solutions to . Being able to efficiently detect these essential parts of a solution reduces the search space of any follow-up FPT algorithms parameterized by the solution size and yields an immediate asymptotic improvement to the runtime of such algorithms. In this work, we present a dichotomy theorem that distinguishes constraint sets for which -essential constraint applications can be detected efficiently for some , from those for which this task is intractable under established complexity-theoretic conjectures. Our results show that for any set of bijunctive constraints, there is a polynomial-time algorithm that detects -essential constraint applications. This contrasts the fact that constant-factor approximating a bijunctive MinCSP()-problem is intractable under the Unique Games Conjecture.
Keywords and phrases:
fixed-parameter tractability, constraint satisfaction problemsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysis ; Theory of computation Approximation algorithms analysis ; Theory of computation Parameterized complexity and exact algorithms ; Theory of computation Constraint and logic programmingEditor:
Pierre FraigniaudSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Constraint Satisfaction Problems (CSPs) form a broad class of problems that describe many well-known computational tasks and allow us to study them in a unified language [19]. A constraint of arity over a domain is a function , and a constraint set is a set of such constraints over the same domain and possibly of different arity. In this work, we focus on Boolean CSPs, and assume the domain to be from now on. For a fixed constraint set , a CSP instance contains a formula consisting of multiple applications of constraints from over a set of variables . Such a constraint application is a pair consisting of a constraint and a sequence , whose length equals the arity of , of variables from that is applied to. A formula consisting of several constraint applications is called an -formula if all constraint applications come from a constraint in .
Though many variants of CSPs exist, the goal in such problems is typically related to the satisfiability of a given formula . An assignment over variable set is a function that maps every variable in this set to a value in the domain (in our setting the Boolean domain ). Then, an assignment over variable set is said to satisfy a constraint application over variable set if . We say that an assignment satisfies a formula if the assignment satisfies all constraint applications in . Finally, a formula is satisfiable if there exists at least one assignment that satisfies it.
Perhaps the most well-known class of CSPs is the one where, for a given -formula , the task is to determine whether or not is satisfiable. Varying the pool of allowed constraints impacts the difficulty of the problem and, in 1978, Schaefer gave a dichotomy theorem that characterizes for which constraint sets the resulting problem is polynomial-time solvable and for which this is NP-hard [21]. Since then, many other variants of CSPs have been studied. We continue this line of research for the following class of optimization problems.
| Weighted MinCSP() | |
| Input: | An -formula in which each constraint application has a positive integer weight encoded in unary. |
| Task: | Find a minimum-weight set of constraint applications in s.t. is satisfiable. |
For an instance , we denote the weight of an optimal solution by . Additionally, we define the unweighted variant MinCSP() of the above problem as the restriction in which the weights in the input are all . Then, the resulting task is equivalent to finding a minimum-size set for which is satisfiable.
This problem is NP-hard for many constraint classes . As such, e.g. approximation algorithms and fixed-parameter tractable (FPT) algorithms parameterized by the solution size (i.e. algorithms that decide whether in time on formulas of size , for some computable function ) have been studied. This has resulted in dichotomy theorems for the problem’s constant-factor approximability in polynomial time [13], its solvability in FPT time [15], and its constant-factor approximability in FPT time [5].
We study a class of preprocessing algorithms for this problem. Various preprocessing algorithms are known to be very useful in practice as observed in SAT solvers for example [1], motivating a study of the extent to which polynomial-time preprocessing can aid in solving Weighted MinCSP(). Preprocessing with the goal of reducing to an instance whose size is polynomially bounded in has been studied for several problems through the notion of kernelization [7]. These studies include, for example, the Min CNF-Deletion problem (a.k.a. Almost -SAT [18]). Here, we take a different perspective on preprocessing with the goal of investigating how preprocessing can help for inputs whose solutions are large, that is, of size comparable to the total input size.
Essential constraint applications.
We extend a recent framework by Bumpus et al. that introduces the notion of -essential objects [6]. Although originally defined within the context of vertex selection problems on graphs, we can rephrase their original definition to apply to MinCSP() problems. Formally, for a given constant and an -formula , we call a constraint application in this formula -essential if it is contained in all -approximate solutions to the (Weighted) MinCSP() instance .
One could expect such -essential objects to somehow stand out in the solution space, since we cannot even form a -approximation without them. This might make it feasible to identify such objects during preprocessing, which would be useful for problems like MinCSP() in which the goal is to arrive at a certain structure by deleting a minimum number of objects. All essential objects are in particular part of all optimal solutions, so that, after finding and reducing them from the input, it suffices to solve an instance that looks for a strictly smaller solution. Since many FPT algorithms have a running time that scales exponentially with the solution size, each element of the solution we find during preprocessing decreases the running time by a multiplicative factor. As such, we are interested in preprocessing that finds essential objects, if there are any. This algorithmic task is formalized in the following problem statement, defined for a fixed constraint set and constant .
| -essential Detection for Weighted MinCSP() | |
| Input: | An -formula with associated weights, and an integer |
| Task: | Find a subset of constraint applications in such that: (G1) if , then there is an optimal solution to containing all of , and (G2) if , then contains all -essential constraint applications. |
Again we define the unweighted variant of the problem by requiring all weights in the input to be . Note that this problem is, in two ways, easier than the task of simply returning a set containing exactly the -essential constraint applications in an input. First, the output set is allowed to contain more constraint applications, as long as they belong to an optimal solution. Secondly, the algorithm only needs to give a meaningful output if the integer in its input provides a correct guess or upper bound on the optimal solution of the input. Nonetheless, being able to solve this detection task suffices to speed up FPT algorithms parameterized by solution size, in a black-box fashion. In particular, if for a constraint set and a constant , (1) there is a polynomial-time algorithm for -essential Detection for MinCSP(), and (2) there is an algorithm that outputs a solution to MinCSP() of size at most , if one exists, in time for some computable function , then there is an algorithm that computes an optimal solution of MinCSP() in time, where is the number of -essential constraint applications in the input and . Bumpus et al. have proven this guarantee in the setting of graph problems, but their proof is easily seen to be valid for MinCSP() as well [6, Theorem 5.1].
Our results and other dichotomies.
We present a dichotomy theorem that characterizes for which constraint sets there is a constant such that -essential Detection for MinCSP() is polynomial-time solvable. Specifically, we show that this is true for constraint sets that are -valid, -valid, IHS-B, or bijunctive (these terms are defined in Section 2). The dichotomy reveals that all other constraint sets yield a MinCSP() problem for which -essential detection is hard for every , under established hardness assumptions.
Theorem 1.1.
Let be a finite Boolean constraint set.
-
1.
If is -valid, -valid, or -monotone, then there is a polynomial-time algorithm for -essential Detection for MinCSP() for any , since even Weighted MinCSP() is polynomial-time solvable in this case [13].
-
2.
Otherwise, if is IHS-B or bijunctive, then there is a constant such that -essential Detection for Weighted MinCSP() is solvable in polynomial time.
-
3.
Otherwise, if is affine, then -essential Detection for MinCSP() is NP-hard for every constant under the Unique Games Conjecture.
-
4.
Otherwise, if is weakly positive or weakly negative, then -essential Detection for MinCSP() is NP-hard for every constant .
-
5.
Otherwise, -essential Detection for MinCSP() is NP-hard for every constant , even on formulas with .
As mentioned, other dichotomies exist that characterize the efficient solvability and approximability of MinCSP(). Table 1 shows a comparison between some of these that closely relate to our work. It focuses on the boundary between positive and hardness results. The table includes, in left-to-right order, results on constant-factor approximating the problem in polynomial time [13], exactly solving the problem in FPT time, parameterized by solution size [15], and constant-factor approximating the problem in FPT time [5]. A summary of our results from Theorem 1.1 is included in the final column. In a given row, the table indicates whether the specified tasks for constraint sets from that category – and not from any category from a previous row – are tractable under a suitable hardness assumption.
| Restriction on | Poly-time approx. [13] | FPT exact [15] | FPT approx. [5] | Essential detection |
| -valid, -valid, -monotone | easy | easy | easy | easy |
| IHS-B | easy | sometimes easy* | easy | easy |
| Bijunctive | hard | sometimes easy* | easy | easy |
| None of the above | hard | hard | hard | hard |
We point out that -essential detection appears to be a strictly easier task than approximating the problem in polynomial-time or exactly solving the problem in FPT time. It is in particular interesting to see that all cases that admit an exact FPT algorithm also admit a polynomial-time -essential detection algorithm. Based on previous work on -essential objects mentioned earlier, this implies that all these FPT algorithms for MinCSP() can be updated to yield an improved runtime dependence on the complexity parameter. We also note that our results show the same boundary of hardness as the existing dichotomy on constant-factor approximating the problem in FPT time.
Finally, we mention some of the existing work on preprocessing, specifically kernelization and compression, for MinCSP and related problems. Unlike kernelization, compression allows problem instances to be transformed to an instance of a possibly different problem. Jansen and Włodarczyk have characterized the best-possible compression size achievable for MinCSP() in terms of the number of variables [12]. Related CSPs include determining whether a given -formula can be satisfied by an assignment that sets at least, or at most, a given number of variables to . Kratsch and Wahlström characterized for which constraint sets the minimization problem admits a kernel of size polynomial in [17]. Later, such a characterization was also given for the maximization problem [16].
Techniques.
We proceed by giving a brief overview of the techniques we use to obtain our results. Our algorithmically most interesting positive result is the polynomial-time -essential detection algorithm on bijunctive constraint sets. To achieve it, we use the insight that bijunctive formulas admit a representation in graph form. Then, for each constraint application in the input formula, we solve a sequence of separation problems on this graph to determine whether to put it in the output set of our -essential detection algorithm or not.
Next, for each of our hardness results, we provide a two-step approach. To show, for a given category of constraint sets, that -essential detection is hard for MinCSP(), we start by formulating a canonical constraint set from that category and showing that the problem is hard for that set. Then, we show that the corresponding problem for all other constraint sets in that category is as hard as the problem for the canonical constraint set.
To achieve this second step, we show that an essential implementation of the canonical set for a category can be made via any constraint set in that category. That is, for every constraint application over , there is a conjunction of constraint applications over that is equivalent to it, while satisfying an additional property as defined in Definition 4.1. The latter ensures that for every constant , a reduction can be made from MinCSP() to Weighted MinCSP() that preserves the entire space of -approximate solutions.
We remark that our definition of essential implementations is strictly stronger than the very similar notion of strong and perfect implementations by Khanna et al. [13]. An implementation from their framework also yields a reduction between CSP instances over different constraint sets. They showed that this reduction preserves the constant-factor approximability of the involved problems, but, in contrast to our result, it need not preserve the exact approximation ratio. We were surprised to see that most of the implementations we encountered in related work (also beyond strong and perfect implementations) happen to fit our definition of an essential implementation as well. This reveals even stronger links between problems that have already been shown to be reducible to one another.
Organization.
The rest of the paper is organized as follows. In Section 2, we define some fundamental concepts and notation. Section 3 contains our positive results, proving Case 2 of Theorem 1.1. Section 4 contains our hardness results, starting with an introduction to essential implementations. Then, in Sections 4.1, 4.2, and 4.3, we prove Cases 3, 4, and 5 of Theorem 1.1 respectively. We conclude with open questions in Section 5. The proofs of statements marked are deferred to the full version.
2 Preliminaries
A constraint is a Boolean function for some integer , which is its arity. We assume all individual Boolean constraints to be satisfiable: unsatisfiable constraint applications in a formula must be part of every solution to and could thus be filtered in a simple preprocessing step. We call two constraints equivalent if they have the same arity and are satisfied by the same set of assignments.
Next, we define some standard Boolean constraints that are used throughout the paper. We write True or False for the arity- constraint that is satisfied if and only if its input variable is respectively or . For non-negative integers and , we denote the arity- constraint that takes the logical OR over literals, of which are negated, by . Hence, denotes the constraint . We use shorthands for , and for . We denote the constraint by and the constraint by . We use shorthands for and for . We denote the constraint of arity that is satisfied if and only if its input variables are not all equal by .
Now, we can define different classes of constraints. First, we call a constraint -valid or -valid if it is satisfied by the all- or the all- assignment respectively. We call a constraint IHS-B+ if it can be expressed as a conjunction of constraints for integers , the constraint , and the arity- constraint False. Likewise, we call constraints IHS-B- if they can be expressed as conjunction of constraints for integers , the constraint , and the arity- constraint True. We call a constraint bijunctive if it can be expressed in CNF (i.e.: as conjunction of , , and constraints). As subset of the bijunctive constraints, -monotone constraints are defined as those that can be expressed in the form for some . We call a constraint affine if it can be expressed as conjunction of linear constraints mod (i.e.: as conjunction of and constraints for integers and integers ). We call a constraint weakly positive (resp. weakly negative) if it can be expressed in CNF with all clauses containing at most one negated (resp. positive) variable.
We call a constraint set -valid / -valid / bijunctive / -monotone / affine / weakly positive / weakly negative if every constraint satisfies the corresponding property. We call IHS-B if all its constraints are IHS-B+ or all its constraints are IHS-B- and we call a single constraint IHS-B if it is either IHS-B+ or IHS-B-.
Finally, we note that we can use a reduction that transforms integer-weighted formulas into unweighted ones by duplicating constraint applications as many times as their weight, to show the following.
Lemma 2.1 ().
Let be a constraint set and . If MinCSP() admits a polynomial-time -essential detection algorithm, then so does Weighted MinCSP() if all weights are integers that are polynomial in the number of constraint applications.
3 Positive results
To achieve our positive results, we establish conditions on a constraint set that imply the existence of a -essential detection algorithm for MinCSP(). The statement below admits a similar proof to Theorem 4.1 in the earlier work by Bumpus et al. on essential vertices [6].
Lemma 3.1 ().
Let be a constraint set and let be a constant. Suppose there is a polynomial-time algorithm that takes as input an -formula and a constraint application in it, and outputs a set of constraint applications such that:
-
1.
; and
-
2.
if is a smallest set of constraints from such that is satisfiable, then ; and
-
3.
for every set such that is satisfiable, is also satisfiable,
then, there is a polynomial-time -essential detection algorithm for MinCSP().
In the proof of this statement, we show that such a set is strictly larger than if is a -essential constraint application, and that does not belong to every optimal solution if . As such, for a given integer , we can construct a -essential detection algorithm by computing the set for every constraint application in and returning the constraint applications for which .
In the full version of this paper, we show that a polynomial-time -approximation algorithm for Weighted MinCSP() can be used to construct an algorithm that satisfies all three properties from Lemma 3.1. Khanna et al. have shown that such an algorithm exists when is IHS-B [13, Theorem 2.13], so we conclude the following.
Corollary 3.2.
Let be an IHS-B constraint set. Then, there is a constant for which MinCSP() admits a polynomial-time -essential detection algorithm.
For bijunctive constraint sets , we can also use Lemma 3.1 to prove that a -essential detection algorithm exists for MinCSP(). This does require some more work and to do so, we make use of the well-known fact [3, 20] that formulas in CNF can be represented in graph-form as follows.
Definition 3.3.
Let be a CNF formula over variable set , or more generally, an -formula for some bijunctive constraint set . We construct a directed (multi)graph as follows. For every variable , we add and to the vertex set of . For every clause in the CNF representation of with literals and , we add the arcs and to . We call the resulting graph the implication graph of .
We highlight that clauses may appear in multiple constraint applications of and that this is reflected in the implication graph of by allowing duplicate arcs in it. Furthermore, in our remaining arguments, we assume that we keep track of which clause in a formula corresponds to which arc in the implication graph. We exploit some of the structural properties of implication graphs to prove the following result.
Lemma 3.4 ().
Suppose that is bijunctive so that every constraint can be written as conjunction of at most disjunctions of two literals, for some constant . Then, there is a polynomial-time -essential detection algorithm for MinCSP().
Proof sketch.
First note that we may assume w.l.o.g. that input formulas are already given to us in suitable CNF representation when dealing with MinCSP() instances. Otherwise, we could, for every fixed bijunctive , provide a polynomial-time transformation using a hard-coded bijunctive representation of each constraint in . Thus, let be an -formula represented in CNF in which every constraint is written as conjunction of at most clauses. Let be its implication graph, and let be a constraint application in that is expressed as , where are literals for some .
To prove the lemma, we give a polynomial-time algorithm that computes a set from and , after which we show that this set meets the three preconditions described in Lemma 3.1. To ensure that our algorithm is well-defined, we prove the claim below.
Claim 3.5 ().
Let be any 2CNF formula that contains and let be the implication graph of . If there is an such that contains both an -path and a -path, then is unsatisfiable.
Proof sketch.
We observe that an assignment that satisfies and sets an arbitrary literal to must set all other literals reachable from in to as well. Thus, if literals and are reachable from and respectively, any satisfying assignment to must set and to . Such an assignment cannot satisfy the clause in that requires . Now, can be computed as follows.
-
Construct the implication graph of .
-
For all , compute a smallest subset of arcs in that breaks all -paths in and compute a smallest subset of arcs in that breaks all -paths in . If only one of these two sets exists, let be this set, or, if both exist, let be a minimum-size set among the two. (Note that at least one of these cuts must exist. If not, the implication graph of the singular constraint application would have to contain both an -path and a -path, which, by Claim 3.5, would imply to be unsatisfiable. This would contradict our assumption that all individual constraints we consider are satisfiable.)
-
Let be and let be the set of constraint applications in with at least one of their corresponding implication arcs in .
First, we observe that the construction above can be executed in polynomial time. The bottleneck is the second step in which a linear number of cut problems need to be solved. These are variants of the standard min-cut problem on directed graphs, and are easily seen to be solvable efficiently by a simple modification of a polynomial-time mincut algorithm, such as the Ford-Fulkerson algorithm [8].
It remains to prove that satisfies the three properties specified in Lemma 3.1. By construction, does not contain , so it satisfies the first property.
For the other two properties, we start by noting that is a set of arcs that, for every , breaks either all -paths or all -paths in without including any arcs that correspond to a clause of . We call such a set a -respecting arc set. (Note that such sets may include duplicates of arcs that correspond to a clause of , but not those that specifically correspond to .) Likewise, we call a set of constraint applications from a -respecting constraint application set if the union of their respective arcs in is a -respecting arc set. As such, is a -respecting constraint application set. We use this notation to show that satisfies the second property specified in Lemma 3.1.
Claim 3.6 ().
Let be a smallest set of constraints from such that is satisfiable. Then, .
Proof sketch.
Since contains , it follows from Claim 3.5 that is a -respecting constraint application set. By definition, the union of all arcs in that correspond to a clause in is a -respecting arc set in . Since contains at most clauses that each introduce arcs in , we find that . Since every breaks its respective paths optimally, we find that , so that the union of all sets has . With being the set of constraint applications corresponding to the arcs in , we find that . Combining all inequalities we obtain .
Now, we show that also satisfies the third property listed in Lemma 3.1.
Claim 3.7 ().
For every set such that is satisfiable, is also satisfiable.
Proof sketch.
Given an assignment that satisfies , we explain how to transform it into a satisfying assignment for . Pick an arbitrary clause from that is not yet satisfied by and determine whether contains no -path or that it contains no -paths. Since is -respecting, at least one of these statements is true and we assume w.l.o.g. that the former is true. Then, we modify by setting and all literals reachable from in to . We repeat this for as long as contains unsatisfied clauses.
To see that is a valid assignment after a single iteration, suppose for contradiction that was modified to set both and to . Then, and are both reachable from . However, the structure of implication graphs ensures that, for every arc , the arc also exists. Thus, is reachable from , which in turn is reachable from , contradicting that contains no -path.
Thus, every iteration ends with a valid assignment. Moreover, by setting to , satisfies . Moreover, no previously satisfied clause becomes unsatisfied, by setting both and to : if, e.g., is reachable from , then so is via the arc . Thus, setting to means that will also be set to . Therefore, the described procedure strictly increases the number of satisfied clauses in each iteration and it stops when all clauses from are satisfied, resulting in a satisfying assignment for .
This proves that the algorithm described above computes a set in polynomial time that satisfies all three preconditions for Lemma 3.1. In particular, our algorithm satisfies these constraints with . By Lemma 3.1, there is a polynomial-time -detection algorithm for MinCSP().
We recall that FPT algorithms, parameterized by solution size, are known for MinCSP() on bijunctive constraint sets if and only if the so-called Gaifman graph of is -free [15]. So, by a result analogous to one from the original work [6, Theorem 5.1] on -essential detection, Lemma 3.4 effectively shows that we can reduce the search-space of these FPT algorithms. In particular, it shows that their exponential runtime dependence on the total size of an optimal solution can be improved to depend only on the number of constraint applications in an optimal solution that are not -essential.
4 Hardness results
Our hardness results all follow the same overarching structure. For a given category of constraint sets, we first give a canonical set of constraints from that category and prove for the corresponding MinCSP() problem that -essential detection is hard for all constants . Then, we show that there is a reduction from this problem to every other MinCSP problem for constraint sets in the same category. This reduction is constructive. To achieve this, we show that every constraint set from a given category can be used to express the constraints from the canonical set. Under the right restrictions, this immediately shows the reducibility from the canonical set to the other sets in the category. These restrictions are given in the notion of essential implementations as defined below.
Definition 4.1.
Let be a constraint over variables. A collection of constraint applications over variables and dummy variables is an essential implementation of the constraint application if:
-
(I1)
an assignment to satisfies if and only if there is an extension of this assignment to that satisfies all constraint applications ; and
-
(I2)
for every assignment to , there is an extension to that satisfies . (Note the exclusion of , which we call the head of the implementation.)
We say that a constraint set essentially implements a constraint if admits an essential implementation via constraint applications that are each from . We denote this as . We say that a constraint set essentially implements a constraint set if essentially implements each of the constraints from . We denote this as . In both arrow notations, if is a singleton set, we may replace it by just its singleton element.
This notion of essential implementations is stricter than, e.g., the notion of pp-definitions, which are similarly defined but without requiring Property (I2). Such definitions facilitate reductions between formulas of different constraint sets that preserve the satisfiability of the formulas, as for example used by Schaefer [21]. Even more similar is the notion of -implementations as defined by Khanna et al. [13], especially those that are both “strict” and “perfect”. These implementations only differ from our Definition 4.1 by allowing different assignments to that do not satisfy to extend to an assignment on that leaves a different (but still singular) constraint application unsatisfied. This uncertainty in which constraint application remains unsatisfied leads to changes in the structure of the solution space that makes these implementations unsuitable for our purposes. However, the authors use their definition of -implementations to construct reductions that preserve the constant-factor approximability of MinCSP().
Our definition of essential implementations allows for a reduction that also preserves the exact approximation-ratio for constant factor-approximable instances. In fact, it even preserves the entire space of -approximate solutions in a predictable and useful manner. This is needed to prove the following result.
Lemma 4.2 ().
Let and be constraint sets such that , and let be a constant. If MinCSP() admits a polynomial-time -essential detection algorithm, then MinCSP() also admits a polynomial-time -essential detection algorithm.
Proof sketch.
We prove the statement by showing how to reduce an -formula to a weighted -formula in such a way that a polynomial-time -essential detection algorithm on the -formula can be used to detect -essential constraint applications in the -formula. By Lemma 2.1, this suffices to prove the lemma.
Let be an -formula with constraint applications over variables . To transform into a weighted -formula , we replace every in by an essential implementation of constraint applications from over variables . We denote the head of by . We give all constraint applications a weight of , except for the heads that each receive a weight of . We define .
The first step towards proving the correctness of this reduction is to observe that non-head constraint applications in do not appear in any -approximate solution. After all, it follows from Property (I2) that the set of heads , with total weight , makes satisfiable, whereas every other constraint has weight . Now, the following claim effectively shows that the set spans the exact same space of -approximate solutions to as the set of original constraint applications does for .
Claim 4.3.
Let be a set of constraint applications in and let be the corresponding set of heads in . Then, is satisfiable if and only if is satisfiable.
Proof.
For one direction, let be an assignment on that satisfies . For every such that , assignment can be extended to an assignment on that satisfies all constraint applications in , due to Property (I2). For every such that , since satisfies , assignment can be extended to an assignment on that satisfies all constraint applications in , due to Property (I1). This covers all constraint applications in , showing that an extension of to exists that satisfies .
For the other direction, observe that any assignment on that satisfies , satisfies the constraint applications in for every such that . Thus, by Property (I1), the restriction of to satisfies . Since every head has weight , it follows that . Now we show how to use a polynomial-time -essential detection algorithm for Weighted MinCSP() to construct a polynomial-time -essential detection algorithm for MinCSP().
Given an -formula and an integer , we start by transforming it into a weighted -formula using the reduction above; the weights are polynomial. Then, we apply to and let denote its output. If contains non-head constraint applications of , we return the empty set. Otherwise, we return the set of constraint applications for which the corresponding head is in . In either case, let be the output of our algorithm.
It remains to show that the above is a -essential detection algorithm for . First, suppose that . Since satisfies Property (G1) it is a subset of some optimal solution to . , and by extension must consist entirely of heads. Then, the set of constraint applications in for which the corresponding head is in must be a superset of . By Claim 4.3, is an optimal solution to , showing that satisfies Property (G1).
Next, suppose that . Since satisfies Property (G2), it contains all -essential constraint applications from . Since the set of heads was shown to preserve the entire space of -approximate solutions, a constraint application in is -essential if and only if its corresponding head is -essential in . Since contains the set of heads corresponding to , it contains all -essential constraint applications in . Next, we prove that the notion of essential implementations is a transitive relation.
Lemma 4.4.
Let , , and be constraint sets. If and , then .
Proof sketch.
Let be an arbitrary constraint application from over variables . To prove the lemma, we show that .
Since , there is an essential implementation of consisting of constraint applications from over variables and shared dummy variables . Let be the head of this implementation. Since , there is, for each , an essential implementation of consisting of constraint applications from over variables and dummy variables . Let denote the head of . Note that the constraint applications in one share one set of dummy variables , but that this set differs between different implementations .
We show that the concatenation of all constraint applications in is an essential implementation of with head . It is easily verified that this satisfies Property (I1), so we continue by showing the more interesting fact that it satisfies Property (I2).
Consider an arbitrary assignment on . By Property (I2) of implementation , it extends to an assignment on that satisfies . By Property (I1) of the implementations , extends to an assignment on that satisfies all constraint applications in . By Property (I2) of the implementation , every assignment on – including – extends to an assignment on that satisfies . Thus, extends to an assignment that in turn extends to an assignment on that satisfies , proving that satisfies Property (I2).
Next, in Sections 4.1, 4.2, and 4.3, we prove Cases 3, 4, and 5 from Theorem 1.1. Due to space limitations, the proofs in Sections 4.1 and 4.3 are deferred to the full version. The proofs in Section 4.2 also showcase the general proving strategies used in the other two sections, but we remark that each case of the dichotomy represents a significant effort in tailoring these strategies to their specific setting. Although we consider the introduction and use of essential implementations to be one of our main contributions, this also means that our proofs show only two examples of specific essential implementations.
4.1 Affine constraint sets
We pick as canonical constraint set for the category of affine constraint sets that are neither -valid, -valid nor bijunctive. First, we prove that -essential Detection for MinCSP() is NP-hard for every under the Unique Games Conjecture (UGC). As starting point for our hardness reduction, we use the fact that distinguishing between two regimes of solution sizes for gap instances of MinCSP() is NP-hard under the UGC [14]. We give a reduction that transforms an -formula into an -formula in such a way that we can use the output of a -essential detection algorithm on to determine whether admits a small or large optimal solution. For example, each arity- constraint over turns into an arity- constraint over by inserting two global variables to which the constraint is additionally applied. Their contributions cancel whenever and we add a medium-weight constraint enforcing this behavior. This proves -essential detection to be hard for MinCSP() and the details of this reduction are given in the full version.
Then, if is any affine constraint set that is neither -valid, -valid nor bijunctive, we show that . To start, we use an existing result that shows that can be written as conjunction of and constraints that are each implemented by [13, Lemma 4.18]. It is easily seen that the provided implementations in this work are even essential. Then, since is not bijunctive, it implements at least one or constraint over or more variables. We also note that is -valid for all integers and that and are -valid for odd values of and even values of . Combining these insights with several sequences of new implementations, we can show that , the details of which are given in the full version.
The two results above combine to prove Case 3 of Theorem 1.1.
4.2 Weakly positive and weakly negative constraint sets
In this section, we prove Case 4 of Theorem 1.1. Throughout this section, we assume to be working with weakly positive constraint sets, rather than weakly negative ones. Proofs for weakly negative constraint sets follow symmetrically. We pick as canonical constraint set and we start by showing that -essential Detection for MinCSP() is NP-hard in Section 4.2.1. Then, in Section 4.2.2, we show for any weakly positive constraint set that is neither -valid, -valid, bijunctive, nor IHS-B, that . (Note that these conditions imply is not affine either.)
4.2.1 Hardness of c-essential detection for the canonical problem
We give a reduction from the Set Cover optimization problem. In this problem, a universe is given together with a collection of subsets of , and the goal is to determine the size of a smallest subset such that every is contained in at least one set in . We call such a set (of any size) a set cover of , and we denote the size of a smallest set cover of by . The following hardness result is known.
Lemma 4.5 ([2, Theorem 22.31]).
For every sufficiently small constant , the following holds. Unless P=NP, there is no polynomial-time algorithm that takes an integer and a Set Cover instance as input and distinguishes between the following two cases:
-
(i)
;
-
(ii)
.
We use this result to prove the statement below.
Lemma 4.6.
Unless P=NP, there is no constant for which a polynomial-time -essential detection algorithm exists for MinCSP().
Proof.
Let , so that the lemma states hardness of -essential detection for MinCSP(). We start by showing that the existence of a polynomial-time -essential detection algorithm for Weighted MinCSP() implies that P=NP. We assume that such an algorithm exists for an arbitrary value of and argue that it can be used to solve the distinguishing task from Lemma 4.5 in polynomial time. Afterwards, we explain how to extend this result to .
Now, let be a Set Cover instance, and let be an arbitrary integer. We let denote the maximum size of a set in , and show how to transform into a weighted -formula .
We start by introducing two variables and and adding constraint applications with weight and with weight to . Then, for every set , we introduce a variable and we add a constraint application to with weight .
Next, for every , we introduce a variable and we add to with weight . Additionally, if we let be the collection of sets that appears in, we add to with weight .
This concludes the reduction. Observe that the resulting formula is a -formula whose size is polynomial in the total size of the original Set Cover instance. We continue by proving the correctness of our reduction, starting with the following claim.
Claim 4.7.
A collection is a set cover of if and only if the collection of constraint applications is such that is satisfiable.
Proof.
For one direction, suppose that is a set cover of . Next, consider the assignment to the variables of that sets to , to , all variables to , the variables for which to , and the variables for which to .
Clearly, and are satisfied by this assignment. All constraint applications of the form in are also satisfied because all variables for which are set to . Finally, note that, because is a set cover of , every constraint application of the form contains at least one for which . All such variables are set to , so all constraint applications of this form in are also satisfied by .
For the other direction, suppose that is satisfiable and let be a satisfying assignment. To satisfy and , we must have and . Then, to satisfy all constraint applications of the form , we must have for all variables . Likewise, to satisfy all constraint applications in of the form , we must have for all variables with .
Next, consider an arbitrary constraint application of the form . Since satisfies this constraint application but also has it must set at least one of the variables to . However, since sets all variables for which to , at least one of the variables must correspond to a set from that is in . Thus, we obtain that for every variable , the constraint application contains at least one variable for which . This means that is a set cover of . Now, we define and use the claim above to show that a -essential detection algorithm for MinCSP() on input can be used to determine whether the original Set Cover input satisfies or . To this end, let be the result of a -essential detection algorithm for MinCSP() on input with . To recognize the first case, consider the following claim.
Claim 4.8.
If , then does not contain the constraint .
Proof.
Let be a set cover of of size at most . Then, by Claim 4.7, the corresponding set is such that is satisfiable. Since all constraint applications in have weight , this constraint set is a solution to of weight . Thus, . As such, must be a subset of an optimal solution to to satisfy Property (G1). Since an optimal solution of has weight and the constraint application has weight , is not in any optimal solution and by extension also not in . We continue by showing how the set differs for the other case.
Claim 4.9.
If , then does contain the constraint .
Proof.
First, we argue that the singleton set of weight is a solution to . To see this, note that every constraint application in contains at least one positive literal so that the all-one assignment satisfies it. We continue by showing that solutions to that do not contain have a weight of more than .
Let be an arbitrary such solution and suppose for contradiction that it has a weight of . Recall that the only constraint applications that do not individually exceed this weight are and the weight- constraint applications of the type . As such, consists solely of such weight- constraints.
However, by Claim 4.7, a solution that only consists of these weight- constraint applications corresponds to a set cover of of equal size. Therefore, must be at least of size , which, by assumption, is larger than . We defined , so by rewriting the inequality , we obtain that , which in turn yields that . Since for all , we get that . This contradicts our assumption that has weight at most .
We conclude that all solutions to that do not contain are more than times as heavy as itself. This means that is an optimal solution of weight and even that is -essential. As , must contain all -essential constraint applications to satisfy Property (G1). Hence, contains . Now, the two claims above indicate how a polynomial-time -essential detection algorithm for can be used to distinguish between and in polynomial time as well: after running such an algorithm, it suffices to check whether the output contains . By Lemma 4.5, this distinction is NP-hard to make. As was chosen arbitrarily, this shows that -essential detection for Weighted MinCSP() is NP-hard for every . By Lemma 2.1, the same holds for the unweighted variant of the problem.
It remains to show that the same is true for MinCSP(). To this end, we show how to transform the -formula into a -formula whose size is polynomial in the size of . We note that, for any integer , . This can be seen by inductively applying the following claim.
Claim 4.10.
Let . Then .
Proof.
We show that , with dummy variable and the first clause as its head, is an essential implementation of . It is easily seen that this implementation satisfies Property (I1) by verifying that is satisfied if and only if is satisfied.
Next, note that every assignment to the variables extends to a satisfying assignment for by setting to . Hence, Property (I2) is satisfied. Now, a single essential implementation of can be made using applications of and , since the construction in Claim 4.10 shows that we can build an application from one (constant-size) application and only one application.
To transform into a -formula, we replace every application in it with by an essential implementation of and applications in which the head receives weight and the other applications receive weight . Then, the same logic as in Lemma 4.2 shows that a polynomial-time -essential detection algorithm for the resulting -formula can be used to perform -essential detection for the original formula in polynomial time. This, in turn, was shown to imply P=NP.
4.2.2 Essential implementation of the canonical constraint set
This section is dedicated to proving the following result.
Lemma 4.11.
Let be a constraint set that is neither -valid, nor -valid nor IHS-B. If is weakly positive, then .
Proof sketch.
Using a characterization of weakly positive constraint sets [13, Lemma 4.20], we can prove that . Then, we can follow a sequence of implementations by Khanna et al. almost directly to show that . Almost all implementations in the proof of Lemma 7.18 in their work happen to be essential as well [13]. The only exception is that their provided implementation of is not essential. Note that it does not satisfy Property (I2). Using a more complicated implementation, we can however still show that . In particular, we note that is an essential implementation of with dummy variables and and the first clause as head. Using a simple case distinction, one can easily check that it satisfies Property (I1). Moreover, any assignment to and can be extended to satisfy the last four clauses by setting to and to , showing that the implementation satisfies Property (I2). Now, Lemmas 4.6 and 4.11 combine to prove Case 4 of Theorem 1.1.
4.3 All other constraint sets
For constraint sets that do not belong to any of the categories specified in the first four cases of Theorem 1.1, we pick as the canonical constraint set. First, we prove that -essential Detection for MinCSP() is NP-hard for every , even on formulas with . To achieve this, we give a reduction that transforms a -SAT instance into a weighted -formula .
We replace every CNF clause in by a large-weight -constraint application in by supplementing it with two global dummy variables and . We use large-weight constraints to model negated variables in the original CNF clauses. Then, including a weight- constraint application that requires that ensures that is satisfiable if and only if is satisfiable. Moreover, if is not satisfiable, we can make satisfiable by removing the constraint application . Then, the remaining -constraint applications in can indeed be satisfied by setting and unequal. Since all other constraint applications have a large weight, this makes essential and it means that we can determine whether is satisfiable from the output of a -essential detection algorithm on . The details of this are given in the full version.
Secondly, if is any constraint set that is neither -valid, -valid, IHS-B, bijunctive, affine, weakly positive, nor weakly negative, we show that . To this end, we extend a reduction by Schaefer, which is split into two cases, depending on whether or not all constraints in are complementive [21]. (A constraint is complementive if the complement of a satisfying assignment is also satisfying.) If not, we can – with a few minor modifications and extensions – follow Schaefer’s sequence of implementations rather directly as it consists mostly of implementations that are already essential. For complementive constraint sets however, we provide a new sequence of implementations to ensure they are essential. The details of this are given in the full version and, together with the hardness of -essential Detection for MinCSP(), this proves Case 5 of Theorem 1.1.
5 Conclusion and Discussion
We extended the framework of search-space reduction via essential objects beyond the setting of graph problems for which it was originally defined. Investigating the task of detecting -essential constraint applications for MinCSP() has resulted in a dichotomy that characterizes for which constraint sets this is polynomial-time solvable. We note the similarity between our dichotomy theorem and the dichotomy theorem from Bonnet et al. [5] regarding the constant-factor approximability of MinCSP() in FPT time. Both dichotomies yield positive results for exactly the same classes of constraint sets. We leave it to future work to investigate whether this is a coincidence or a consequence of a deeper connection between the two tasks.
Other directions for follow-up research include extending the results of this dichotomy to CSPs beyond the Boolean domain. In fact, successfully applying the idea of -essentiality to a problem domain different from graph theory has solidified the framework as a robust method by which meaningful and non-trivial new results can be attained across problem domains. As such, one could also attempt to find results using it in even different areas such as scheduling or computational geometry.
While our dichotomy theorem characterizes when -essential detection is possible for some constant , it does not shed any light on what the smallest value of is for which this task is tractable, nor on the relation between this value and the choice of constraint set . We leave this to future work. A concrete question in this direction is to determine the smallest constant for which -essential Detection for MinCSP() is possible for bijunctive constraint languages . Our approach in Lemma 3.4 of solving several cut problems in the implication graph gives a guarantee of whenever each constraint in can be expressed as a 2CNF-formula with clauses, but we do not expect this to be best-possible. Perhaps a discrete relaxation of the cut problem, like those studied in earlier work on Almost -SAT [9, 10], can provide a better bound?
A final open question concerns the theoretical basis for the impossibility of -essential Detection for affine constraint languages . We currently rely on the Unique Games Conjecture to rule out -detection algorithms for this family, via known lower bounds for MinCSP() [14]. Can the same lower bound be established relative to the standard assumption P NP, for example via known hardness of approximation results for Nearest Codeword [4]?
References
- [1] Tobias Achterberg, Robert E. Bixby, Zonghao Gu, Edward Rothberg, and Dieter Weninger. Presolve reductions in mixed integer programming. Technical Report 16-44, ZIB, Takustr.7, 14195 Berlin, 2016. URL: http://nbn-resolving.de/urn:nbn:de:0297-zib-60370.
- [2] Sanjeev Arora and Boaz Barak. Computational Complexity - A Modern Approach. Cambridge University Press, 2009. doi:10.1017/CBO9780511804090.
- [3] Bengt Aspvall, Michael F. Plass, and Robert Endre Tarjan. A linear-time algorithm for testing the truth of certain quantified boolean formulas. Inf. Process. Lett., 8(3):121–123, 1979. doi:10.1016/0020-0190(79)90002-4.
- [4] Vijay Bhattiprolu, Venkatesan Guruswami, and Xuandi Ren. PCP-free APX-hardness of nearest codeword and minimum distance. Electron. Colloquium Comput. Complex., TR25, 2025. URL: https://eccc.weizmann.ac.il/report/2025/029.
- [5] Édouard Bonnet, László Egri, and Dániel Marx. Fixed-parameter approximability of Boolean MinCSPs. In Piotr Sankowski and Christos D. Zaroliagis, editors, 24th Annual European Symposium on Algorithms, ESA 2016, Aarhus, Denmark, August 22-24, 2016, volume 57 of LIPIcs, pages 18:1–18:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ESA.2016.18.
- [6] Benjamin Merlin Bumpus, Bart M. P. Jansen, and Jari J. H. de Kroon. Search-space reduction via essential vertices. SIAM J. Discret. Math., 38(3):2392–2415, 2024. doi:10.1137/23M1589347.
- [7] Fedor Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization: theory of parameterized preprocessing. Cambridge University Press, 2019.
- [8] L. R. Ford and D. R. Fulkerson. Maximal flow through a network. Canadian Journal of Mathematics, 8:399–404, 1956. doi:10.4153/CJM-1956-045-5.
- [9] Yoichi Iwata, Magnus Wahlström, and Yuichi Yoshida. Half-integrality, lp-branching, and FPT algorithms. SIAM J. Comput., 45(4):1377–1411, 2016. doi:10.1137/140962838.
- [10] Yoichi Iwata, Yutaro Yamaguchi, and Yuichi Yoshida. 0/1/All CSPs, half-integral A-path packing, and linear-time FPT algorithms. In Mikkel Thorup, editor, 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 462–473. IEEE Computer Society, 2018. doi:10.1109/FOCS.2018.00051.
- [11] Bart M. P. Jansen and Ruben F. A. Verhaegh. Search-space reduction via essential vertices revisited: Vertex multicut and cograph deletion. J. Comput. Syst. Sci., 156:103730, 2026. doi:10.1016/J.JCSS.2025.103730.
- [12] Bart M. P. Jansen and Michal Wlodarczyk. Optimal polynomial-time compression for Boolean max CSP. ACM Trans. Comput. Theory, 16(1):4:1–4:20, 2024. doi:10.1145/3624704.
- [13] Sanjeev Khanna, Madhu Sudan, Luca Trevisan, and David P. Williamson. The approximability of constraint satisfaction problems. SIAM J. Comput., 30(6):1863–1920, 2000. doi:10.1137/S0097539799349948.
- [14] Subhash Khot. On the power of unique 2-prover 1-round games. In John H. Reif, editor, Proceedings on 34th Annual ACM Symposium on Theory of Computing, May 19-21, 2002, Montréal, Québec, Canada, pages 767–775. ACM, 2002. doi:10.1145/509907.510017.
- [15] Eun Jung Kim, Stefan Kratsch, Marcin Pilipczuk, and Magnus Wahlström. Flow-augmentation III: Complexity dichotomy for Boolean CSPs parameterized by the number of unsatisfied constraints. SIAM J. Comput., 54(4):1065–1137, 2025. doi:10.1137/23M1553698.
- [16] Stefan Kratsch, Dániel Marx, and Magnus Wahlström. Parameterized complexity and kernelizability of max ones and exact ones problems. ACM Trans. Comput. Theory, 8(1):1:1–1:28, 2016. doi:10.1145/2858787.
- [17] Stefan Kratsch and Magnus Wahlström. Preprocessing of min ones problems: A dichotomy. In Samson Abramsky, Cyril Gavoille, Claude Kirchner, Friedhelm Meyer auf der Heide, and Paul G. Spirakis, editors, Automata, Languages and Programming, 37th International Colloquium, ICALP 2010, Bordeaux, France, July 6-10, 2010, Proceedings, Part I, volume 6198 of Lecture Notes in Computer Science, pages 653–665. Springer, 2010. doi:10.1007/978-3-642-14165-2_55.
- [18] Stefan Kratsch and Magnus Wahlström. Representative sets and irrelevant vertices: New tools for kernelization. J. ACM, 67(3):16:1–16:50, 2020. doi:10.1145/3390887.
- [19] Andrei Krokhin and Stanislav Zivny. The Constraint Satisfaction Problem: Complexity and Approximability, volume 7 of Dagstuhl Follow-Ups. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 2017. doi:10.4230/DFU.Vol7.15301.
- [20] M. S. Ramanujan and Saket Saurabh. Linear-time parameterized algorithms via skew-symmetric multicuts. ACM Trans. Algorithms, 13(4):46:1–46:25, 2017. doi:10.1145/3128600.
- [21] Thomas J. Schaefer. The complexity of satisfiability problems. In Richard J. Lipton, Walter A. Burkhard, Walter J. Savitch, Emily P. Friedman, and Alfred V. Aho, editors, Proceedings of the 10th Annual ACM Symposium on Theory of Computing, May 1-3, 1978, San Diego, California, USA, pages 216–226. ACM, 1978. doi:10.1145/800133.804350.
