arXiv:2610.18540cs.DSOct 2026

Manuscript Offprint

arXiv:2610.18540

Solving SAT via Treewidth Backdoors in Linear Time: Beyond Sparsity

Jan Dreier, Robert Ganian, Marlene Gründel, Roohani Sharma, Simon Wietheger

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Boolean Satisfiability (SAT) problem is a remarkably expressive computational problem, serving both as a cornerstone of complexity theory and as a unifying language for a wide range of search and reasoning tasks.

While NP-complete in general, SAT is well known to be linear-time solvable on instances with bounded treewidth. This motivates the search for “hidden” tree-like structures in formulas—for instance by detecting so-called weak t-treewidth backdoors. Such backdoors are sets of k variables that can be assigned in such a way that the remaining instance has treewidth at most t and is satisfiable whenever the original instance is.

Ever since Gaspers and Szeider [ICALP 2012] showed that finding a weak t-treewidth backdoor for a SAT formula is W[2]-hard with respect to k, tractability results have been restricted to structurally sparse formulas—most notably, a linear-time algorithm for d-SAT (bounded clause-length SAT) by Fomin, Lokshtanov, Misra, Ramanujan, and Saurabh [SODA 2015] and a non-uniform polynomial-time algorithm when the incidence graph of the input formula belongs to a nowhere-dense graph class (or more generally is Kd,dK_{d,d}-free) by Lokshtanov, Panolan, and Ramanujan [ICALP 2022].

In this paper, we push the tractability boundaries of finding weak t-treewidth backdoors beyond sparsity and into the regime of “well-behaved” dense formulas. Aiming towards relaxing structural input restrictions from nowhere-dense to edge-stable graph classes, as featured in the theory of beyond sparsity for FO model checking, or to bounded VC-dimension set systems, we identify signed semi-ladder-freeness as the correct dense structural restriction that establishes the boundary between tractability and intractability along this line.

Algorithmically, we concentrate on formulas whose signed incidence graph is d-semi-ladder-free, which include not only all Kd,dK_{d,d}-free graphs, but also dense graph classes such as map graphs and more generally all graph classes that can be encoded by existential positive first-order formulas in nowhere-dense classes. As our main technical contribution, we provide a linear-time algorithm that, for all fixed integers dd, kk, and tt, takes as input a signed d-semi-ladder-free SAT formula φ\varphi and either outputs a satisfying assignment for φ\varphi along with a weak t-treewidth backdoor of size at most kk, or detects that no such backdoor exists.

Complementing the above positive result, we provide W[2]- and W[1]-hardness results when the input is restricted to unsigned d-semi-ladder-freeness and signed d-ladder-freeness (edge-stable), respectively. This identifies signed d-semi-ladder-freeness as the natural tractability frontier for detecting weak t-treewidth backdoor sets in dense SAT instances, when trying to approach edge-stable graph classes or bounded VC-dimension set systems.

*Hasso Plattner Institute, Potsdam, Germany

†^{\dagger}Algorithms and Complexity Group, TU Wien, Austria

‡^{\ddagger}Discrete Mathematics Group, Institute for Basic Science (IBS), Daejeon, South Korea

1 Introduction

The Boolean Satisfiability (SAT) problem is undeniably one of the most fundamental problems in computer science as it lies at the heart of the classical theory of NP-completeness as well as of the Exponential Time Hypothesis and its variants. Given the theoretical hardness of SAT, the surprising efficiency with which real-world solvers can exploit hidden structural properties to solve SAT instances [2] has motivated a long line of research aimed at understanding the more fine-grained boundaries of tractability for the problem. Nowadays, this is often pursued via the framework of parameterized complexity [8]. A classical result in this domain is that SAT is fixed-parameter tractable (FPT) with respect to the treewidth of the instance, or more specifically, the treewidth of its incidence graph [34] 1^{1}.

Naturally, a SAT instance need not have bounded treewidth—yet it may still possess a “hidden” tree-like structure that reveals itself once a small number of variables is assigned. This phenomenon is typically viewed through the lens of backdoors, introduced by Williams, Gomes, and Selman [40]. A set X of k variables is a strong t-treewidth backdoor if every assignment of X results in an instance of treewidth at most t; this means that for any fixed k and t, we can solve SAT in linear time when provided with such a strong t-treewidth backdoor. This motivates the study of computing such backdoors of size at most k.

Due to a classical result of Gaspers and Szeider [22], it is known that SAT is fixed-parameter tractable w.r.t. the size k of a strong t-treewidth backdoor—in particular, for every fixed k and t, we can in cubic time either compute a strong t-treewidth backdoor of size bounded by a function of k, or determine that no small strong t-treewidth backdoor exists.

A natural drawback of strong backdoors, as far as using them for solving SAT is concerned, is that they require every partial assignment of X to yield a bounded-treewidth instance. In practice, to obtain a satisfying assignment, we merely need a set X of k variables such that there is at least one assignment α:X→{0,1}\alpha: X \to \{0,1\} under which the given formula φ\varphi is satisfiable and of treewidth at most t, provided that the unrestricted φ\varphi is satisfiable. Such a set X is called a weak t-treewidth backdoor. Intuitively, while strong backdoors act as witnesses for tractability, weak backdoors can be seen as direct witnesses for satisfiability.

Unfortunately, in contrast to strong backdoors, finding even a weak backdoor to treewidth 1 for an arbitrary formula φ\varphi is W[2]-hard with respect to kk [20]. A natural response to this hardness is to restrict the structure of φ\varphi; in fact, subsequent research has established that finding weak tt-treewidth backdoors becomes tractable when the input formulas are structurally sparse. In particular, Fomin, Lokshtanov, Misra, Ramanujan, and Saurabh [16] gave the first fixed-parameter algorithm for solving dd-SAT via weak tt-treewidth backdoors by showing that such backdoors can be computed in linear time for every fixed choice of kk, tt, and dd. More recently, Lokshtanov, Panolan, and Ramanujan [28] expanded this frontier via an f(k,t)⋅∣φ∣O(d)f(k,t) \cdot |\varphi|^{\mathcal{O}(d)} algorithm for computing weak tt-treewidth backdoors on any Kd,dK_{d,d}-free SAT instance φ\varphi. This highly general result applies to all previously studied sparse graph classes, including graphs of bounded degree, bounded-genus graphs, and nowhere-dense graph classes.

Given the above results, a natural follow-up question is whether the tractability of SAT via weak t-treewidth backdoors can be pushed beyond sparsity into the regime of “well-behaved” dense formulas. In our work, we answer this question positively by giving a linear-time algorithm for

1^{1}The incidence graph of a formula φ\varphi contains a vertex for each variable and clause of φ\varphi, with edges connecting clauses with variables whose (positive or negative) literal occurs in that clause.

solving SAT via weak t-treewidth backdoors on instances that are signed d-semi-ladder-free. In the next paragraph, we define and motivate the study of these graph classes.

Beyond Sparsity. Our search for tractable structures in the dense regime is inspired by the line of work that lifts first-order (FO) model checking from nowhere dense classes to their dense counterparts (see [33] for a survey). A recurring combinatorial notion in this line of work is the ladder. A d-ladder, also known as a half-graph, is a graph with vertices a1,…,ada_1, \ldots, a_d on one side and vertices b1,…,bdb_1, \ldots, b_d on the other, and there is an edge {ai,bj}\{a_i, b_j\} if and only if i≤ji \leq j. We refer to d as the height of the ladder. A graph class is edge-stable if it avoids some d-ladder as a semi-induced subgraph, and much of the recent progress on FO model checking beyond sparsity concerns dense classes whose structure is governed by the absence of ladders in logically defined auxiliary graphs (monadic stability) [9]. 2^2 Excluding ladders in the input graph itself, however, is a purely combinatorial condition that is considerably more general than such logically defined conditions, and it is natural to ask whether it already suffices for the detection of weak t-treewidth backdoors. It does not: we show in Theorem 5.1 that the problem is W[1]-hard on d-ladder-free, that is, edge-stable, instances.

Semi-ladders arise as a natural relaxation of the notion of ladders. While a ladder prescribes both the forced edges and the forced non-edges between the two ordered sides of a bipartition, a semi-ladder keeps only the forced edges and additionally requires horizontal non-edges; that is, we have the edge {ai,bj}\{a_i, b_j\} whenever i<ji < j, and the non-edges {{a1,b1},…,{ad,bd}}\{\{a_1, b_1\}, \ldots, \{a_d, b_d\}\}. See Figure 2 for a visualization of both notions. Thus, when excluding a semi-ladder rather than an induced ladder (half-graph), the “lower triangle” is left unconstrained. Notice that since every ladder contains a semi-ladder (up to ±1\pm 1 in the height) but the converse does not hold, the class of d-ladder-free graphs is strictly more general than the class of d-semi-ladder-free graphs, making the latter a promising candidate for delineating the boundary of efficient weak backdoor detection.

The relevance of semi-ladders can also be understood through the Helly property—see for example [12]. In a bipartite incidence graph G=(L,R)G = (L, R), where vertices of LL represent possible choices and vertices of RR represent constraints, a Helly-type property says that whenever a set of constraints cannot be covered by a single choice from LL, this failure is already witnessed by a bounded-size subset of constraints. Equivalently, the family of candidate sets N(b)∩LN(b) \cap L, b∈Rb \in R, has bounded-size certificates for empty intersection. The obstruction to such a strong Helly property is precisely a large co-matching [12]. Thus, since bounded semi-ladder index is equivalent, up to Ramsey bounds, to simultaneously bounding the ladder height and co-matching index [12], semi-ladder-freeness can be viewed as the conjunction of stability (excluding order-like half-graphs) and a Helly-type finite-obstruction principle (excluding large co-matchings). This makes it especially natural for domination, hitting, and SAT-backdoor problems, where the algorithmic task is to cover constraints by a small number of selected vertices or literals. Moreover, fixed-radius neighborhood relations in nowhere-dense graph classes have bounded semi-ladder index, showing that semi-ladder-freeness captures a structural phenomenon already present in sparsity theory while extending it to dense graph classes such as map graphs [12] and existential-positive first-order interpretations in nowhere-dense graph classes [30].

Unfortunately, it turns out that simply excluding d-semi-ladders in the instance still yields W[2]-hardness for the problem of detecting weak t-treewidth backdoor sets, as we will show in Theorem 5.2. The reason here, though, is subtle. The hardness occurs because the incidence graph

2^{2}We note that our problem cannot be expressed as an FO model checking problem.

only captures the complexity of a “monotone” SAT instance. That is, the edges of the incidence graph do not account for the polarity in which literals occur in clauses.

One way to circumvent this issue, which is in line with past research on algorithms for dense SAT [14, 37, 18, 32, 39], is to consider the signed incidence graph of the input formula. Here, every edge between a vertex that corresponds to a clause and a vertex that corresponds to a variable carries a positive or negative sign depending on how this variable appears in the clause (cf. Figure 4). Then, the notion of a signed d-semi-ladder-free instance means that a d-semi-ladder is not present in the incidence graph restricted to positive edges and in the incidence graph restricted to negative edges (cf. Figure 2). It is not difficult to show that this is, in fact, equivalent (up to a factor of 2 and an additive constant) to excluding the d-semi-ladder in the edge-unlabeled graph, where each variable is represented by two vertices: one for its positive and the other for its negative occurrences. This notion of signed d-semi-ladder-freeness turns out to be exactly the right condition for making the detection of weak t-treewidth backdoors tractable. Proving this constitutes the main technical contribution of our paper (cf. Theorem 1.1).

On a different note, one can also observe that the (unsigned) incidence graph of a SAT instance is precisely the incidence graph of the set system defined via the occurrence of variables in clauses. This viewpoint makes it natural to turn to structural parameters that have been widely studied for set systems and try to exploit them for solving SAT. One such parameter that has been employed in the study of set systems is the VC-dimension [38, 35, 36]; it is well known (and also fairly easy to observe) that bounding the height of the largest (semi-)ladder in the incidence graph also bounds the system's VC-dimension. In this sense, semi-ladders are a natural next step from both the graph-theoretic and set-theoretic viewpoints on SAT.

Our Contribution. As elaborated earlier, in an attempt to relax structural input restrictions from nowhere-dense graph classes to edge-stable graph classes or to bounded VC-dimension set systems, we identify signed d-semi-ladder-freeness as the correct dense structural restriction that delineates the boundary of tractability. We establish the following theorem.

Theorem 1.1. For all non-negative integers d,kd, k, and tt, there is a linear-time algorithm that takes as input a signed dd-semi-ladder-free SAT instance φ\varphi and either:

  • outputs a satisfying assignment for φ\varphi along with a weak t-treewidth backdoor of size at most k, or

• detects that φ\varphi contains no weak t-treewidth backdoor of size at most k.

As highlighted in the lower part of Figure 1 and discussed in the next paragraph, Theorem 1.1 generalizes the linear-time fixed-parameter algorithm for SAT via weak t-treewidth backdoors on d-SAT [16] to a more general class of instances. It also improves upon the more recent fixed-parameter algorithm via weak t-treewidth backdoors on Kd,dK_{d,d}-free SAT, both by applying to an even broader class of instances and by avoiding the superlinear factor of nO(d)n^{\mathcal{O}(d)} in the running time.

We remark that a weak 0-treewidth backdoor corresponds to a partial assignment that satisfies all clauses. As a special case, we thus obtain the following corollary.

Corollary 1.2. For all non-negative integers d and k, there is a linear-time algorithm which takes as input a signed d-semi-ladder-free SAT instance φ\varphi and either:

• outputs a partial assignment of at most k variables satisfying all clauses in φ\varphi, or

• reports that no such partial assignment exists.

On a related note, the tractability established by Corollary 1.2 contrasts with a problem known as MINIMUM WEIGHT SAT. In MINIMUM WEIGHT SAT, given a SAT formula and a positive integer k, the goal is to find a satisfying assignment that sets at most k variables to true, or correctly determine that no such assignment exists. Interestingly, one can show that this problem is W[1]-hard even on K2,2K_{2,2}-free instances, and hence when excluding (signed) semi-ladders of constant height (see Lemma A.1 in the Appendix).

bounded unsigned

semi-ladder height

(Thm. 5.2)

Figure

bounded signed

ladder height

(Thm. 5.1)

Figure 1: The complexity of finding weak t-treewidth backdoors in increasingly more general formulas. Classes that are fixed-parameter tractable with respect to the size of the backdoor are highlighted in green, intractable classes in red. Most of the depicted inclusions are well-known. Additionally, Lemma 3.5 proves that every formula with bounded signed semi-ladder height also has bounded unsigned semi-ladder height.

Crucially, we complement Theorem 1.1 by showing that signed semi-ladder-freeness marks the tractability barrier of finding weak t-treewidth backdoors—see the top part of Figure 1. More precisely, we first show in Theorem 5.2 that weak t-treewidth backdoor detection is W[2]-hard if we merely exclude d-semi-ladders in the incidence graph—i.e., without taking the edge signs into account. Second, in Theorem 5.1 we prove that weak t-treewidth backdoor detection is W[1]-hard on SAT instances that are signed ladder-free (as opposed to semi-ladder-free). In fact, both lower bounds hold even if d is a small constant and apply to every fixed choice of t≥0t \geq 0.

Related Work on Backdoors. The study of backdoor sets has developed into an active line of research for understanding hidden structures in satisfiability problems that can be exploited to obtain tractable algorithms. The general backdoor paradigm was introduced by Williams, Gomes, and Selman [40]. Building on this idea of identifying a small set of variables whose assignment reduces the instance to a tractable class, the literature has considered backdoors to both syntactic classes (such as Horn- and 2-SAT [31], affine [25], nested [21], and q-Horn formulas [24]) and to structural classes (such as acyclic formulas [20] and more generally formulas of bounded incidence

Figure

Figure

Figure 2: A 4-semi-ladder (left) and a 4-ladder (right). Here, solid lines indicate edges and dashed lines represent non-edges. Vertices that are not connected by a solid or dashed line may be either adjacent or non-adjacent.

Figure

Figure 3: A 6-semi-ladder contains a K3,3K_{3,3} as a subgraph.

Figure

unsigned: GφunsignG_{\varphi}^{\text{unsign}}

Figure

signed, edge-labeled: GφsignEG_{\varphi}^{\text{signE}}

Figure

signed, literal vertices: GφsignVG_{\varphi}^{\text{signV}}

Figure 4: The distinct incidence graphs of the formula φ=(x1∨x2)∧(x1‾∨x2‾∨x3)\varphi = (x_1 \vee x_2) \wedge (\overline{x_1} \vee \overline{x_2} \vee x_3).

treewidth [22]). Surveys, including a very recent one, by Gaspers and Szeider [23, 19] emphasize that the parameterized complexity of detecting such backdoors has become a broad research program, including variants for strong and weak backdoors, structural backdoors, and extensions beyond classical SAT.

This activity is ongoing: recent work on quantified Boolean formulas (QBFs) studied backdoors to Horn, 2-SAT, and affine QBFs, showing that the QBF setting is substantially more delicate than SAT—QBF remains PSPACE-hard even for formulas with constant-size standard backdoors—while introducing enhanced backdoors that recover FPT algorithms under additional structural control such as bounded quantifier depth and bounded incidence treewidth [11].

The problem of detecting weak t-treewidth backdoor sets for SAT, the one considered in this work, is shown not to admit a polynomial kernel parameterized by k, even for d-SAT when d≥4d \geq 4 and t is fixed, under reasonable complexity assumptions [16].

Related Work on d-semi-ladder-free Graphs. Fabianski et al. [12] introduced semi-ladder-freeness in the context of their progressive exploration framework, obtaining FPT algorithms for domination problems on several graph classes. Subsequently, Guillemot [26] established FPT and kernelization results for SET COVER on d-semi-ladder-free hypergraphs. A certain part of the algorithm that underlies our main result is inspired by the latter work; we indicate the respective part of the algorithm below.

References (39)