Monotone Bounded-Depth Complexity of Homomorphism Polynomials
Abstract
For every fixed graph , it is known that homomorphism counts from and colorful -subgraph counts can be determined in time on -vertex input graphs , where is the treewidth of . On the other hand, a running time of would refute the exponential-time hypothesis. Komarath, Pandey, and Rahul (Algorithmica, 2023) studied algebraic variants of these counting problems, i.e., homomorphism and subgraph polynomials for fixed graphs . These polynomials are weighted sums over the objects counted above, where each object is weighted by the product of variables corresponding to edges contained in the object. As shown by Komarath et al., the monotone circuit complexity of the homomorphism polynomial for is .
In this paper, we characterize the power of monotone bounded-depth circuits for homomorphism and colorful subgraph polynomials. This leads us to discover a natural hierarchy of graph parameters , for fixed , which capture the width of tree-decompositions for when the underlying tree is required to have depth at most . We prove that monotone circuits of product-depth computing the homomorphism polynomial for require size , where is the graph obtained from by removing all degree- vertices. This allows us to derive an optimal depth hierarchy theorem for monotone bounded-depth circuits through graph-theoretic arguments.
Keywords and phrases:
algebraic complexity, homomorphisms, monotone circuit complexity, bounded-depth circuits, treewidth, pathwidthFunding:
Shiteng Chen: Supported by National Key R & D Program of China (2023YFA1009500), NSFC 61932002 and NSFC 62272448.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Algebraic complexity theory ; Theory of computation Circuit complexity ; Mathematics of computing Graph theoryAcknowledgements:
We want to thank Vishwas Bhargava, Cornelius Brand, Deepanshu Kush, and Anurag Pandey for insightful discussions during this project. We also thank Marcin Pilipczuk for pointing out the graph parameter vertex integrity. We also thank an anonymous reviewer for pointing out a subtle issue with our definition of prunings. Part of this work was carried out during the Copenhagen Summer of Counting & Algebraic Complexity, funded by research grants from VILLUM FONDEN (Young Investigator Grant 53093) and the European Union (ERC, CountHom, 101077083). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.Funding:
Part of this work was carried out during the Copenhagen Summer of Counting & Algebraic Complexity, funded by research grants from VILLUM FONDEN (Young Investigator Grant 53093) and the European Union (ERC, CountHom, 101077083).Editors:
Paweł Gawrychowski, Filip Mazowiecki, and Michał SkrzypczakSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Counting and deciding the existence of patterns in graphs plays an important role in computer science. In theoretical computer science, pattern counting was among the first problems to be investigated in Valiant’s seminal paper on the class of counting problems [42], which showed -hardness for the permanent of zero-one matrices, a problem that can equivalently be viewed as counting perfect matchings in bipartite graphs.
Counting small patterns
In many applications, the pattern is smaller in comparison to the target graph. Curticapean and Marx [16] modeled this setting by classifying the complexity of counting subgraphs from fixed pattern classes: Given any fixed class of graphs , they defined a problem that asks, given a graph and a general graph , to count the -subgraphs in . The parameter is . This problem is known to be polynomial-time solvable when the graphs in do not contain arbitrarily large matchings – if they do contain arbitrarily large matchings, then with parameter is complete for the parameterized complexity class , i.e., the analogue of in parameterized complexity.
An analogously defined problem of counting homomorphisms with patterns drawn from was also classified by Dalmau and Jonsson [17]. Here, the tractability criterion is a constant bound on the treewidth of graphs in , a measure of the “tree-likeness” of : The problem is polynomial-time solvable when all graphs in admit a constant upper bound on their treewidth, and the problem is -hard otherwise with respect to the parameter . Here, a homomorphism from to is a function such that implies . Homomorphism counts from small patterns find direct applications in database theory, where they capture answer counts to so-called conjunctive queries [12]. It was also shown that captures the complexity of other pattern counting problems, including that of counting subgraphs [14]: In a nutshell, (i) many pattern counting problems can be expressed as unique linear combinations of homomorphism counts from graphs , and (ii) in many models of computation, such linear combinations turn out to be precisely as hard as their hardest terms. This motivates understanding the complexity of these individual terms, i.e., of homomorphism counts.
Lower bounds under ETH
Following the classification of and , almost-tight quantitative bounds were obtained under the exponential-time hypothesis [23, 29]: For any graph , there is an time algorithm for counting homomorphisms from into -vertex target graphs, and assuming the exponential-time hypothesis, Marx ruled out time algorithms [33], recently revisited in [25, 15]. Through connections between homomorphism counts and other pattern counts [14], these bounds translate directly to other counting problems. For example, there is an time algorithm for counting -subgraphs in an -vertex graph , where is the vertex-cover number of . As a consequence of the lower bound on counting homomorphisms, the exponential-time hypothesis rules out time algorithms [14] for counting -subgraphs.
Thus, some slack remains between the known upper and conditional lower bounds on the exponents of pattern counting problems, and it would be desirable to settle the -factor in the exponent of the running time. Moreover, one might also dare to ask for the precise exponent for concrete finite graphs , such as (which amounts to triangle counting) or or . Finally, let us stress that the lower bounds on the exponent are conditioned on the exponential-time hypothesis, an assumption that is a priori stronger than .
From counting problems to polynomials
Valiant’s seminal papers [41, 43] studied the problem of counting perfect matchings from the perspective of both counting and algebraic complexity. Following the work of Komarath, Pandey, and Rahul [27], we consider an algebraic version of pattern counting problems.
For undirected graphs and , we consider the homomorphism polynomial on variables for and its set-multilinear version, the colorful subgraph polynomial on variables for and . The latter can often be handled more easily in proofs, while complexity results can be transferred between these two polynomials.
Remark.
We deviate slightly from the notation used by Komarath, Pandey, and Rahul [27], who defined a polynomial with variable indices that differ from ours. Our polynomial and their polynomial are obtained from each other by renaming variables. We consider our notation more intuitive, as it can be obtained from the homomorphism polynomial more directly and makes the set-multilinearity explicit.
The polynomial can be viewed as the weighted homomorphism count from into a complete -vertex graph with generic indeterminates as edge-weights. Similarly, can be viewed as counting the color-preserving homomorphisms from a colorful graph into a complete graph with indeterminate edge-weights and vertices per color class. Formally, these multivariate polynomials are defined as
The complexity of multivariate polynomials is commonly studied via algebraic circuits, first formalized by Valiant [41]. The efficiency of a circuit is usually quantified by its size (number of edges and gates) and its depth (number of layers). The size captures the total number of operations the circuit performs, and the depth roughly corresponds to parallelism. For convenience, we will instead consider the product-depth, which is the number of “multiplication layers” in the circuit. Refer to Section 2 for formal definitions. These efficiency measures define natural algebraic circuit complexity classes, for instance, – polynomials of polynomially bounded degree computable by circuits of size , and – polynomials which can be expressed as a hypercube sum of circuits.
Valiant established that the permanent polynomial is complete for the class , while its sibling, the determinant polynomial, is complete for a seemingly smaller class, – the class of polynomially bounded algebraic branching programs (see Definition 6). In a recent line of work [11, 18, 31], homomorphism polynomials have been used to obtain natural polynomials which are complete for several well-studied algebraic circuit classes.
Monotone circuits
Monotone circuits over a field like are circuits that do not use negative constants, and hence computations performed by them cannot feature cancellations (Definition 7). Several important techniques for proving upper bounds on the complexity of polynomials (e.g., dynamic programming) directly yield monotone circuits. Compared to general computational models, lower bounds for monotone computation are much better understood, and many exponential lower bounds [36, 43, 24, 34, 19, 9] and strong algebraic complexity class separations [38, 22, 46, 39] are known. As a striking example, monotone variants of the algebraic complexity classes and are proven to be different [39, 46]. In contrast, Hrubeš [21] showed that strong-enough monotone lower bounds of a special kind (called -sensitive) imply unconditional lower bounds for general arithmetic circuits!
In a fascinating recent work, Komarath, Pandey and Rahul [27] studied the monotone arithmetic circuit complexity of the polynomials and discovered that this complexity is completely determined by the treewidth of the pattern graph . More precisely, they show that the smallest monotone circuit computing is of size . Similarly, they show that algebraic branching programs for are of size , where is the pathwidth of , a linear version of treewidth. Moreover, they also consider the monotone formula complexity of and show that it is , where is the treedepth of , the minimum height of a tree on vertex set that contains all edges of in its tree-order. These results together show that, when considering homomorphism polynomials for fixed patterns , the power of monotone computation is precisely characterized by graph-theoretic quantities of : For natural and well-studied monotone computational models, the precise exponent in the complexity is the value of a natural and well-studied graph parameter of .
Our results: Monotone bounded-depth models
In this paper, we investigate whether the correspondence between monotone circuit complexity and graph parameters can also be established for another restriction of monotone circuits, namely bounded-depth monotone circuits: Are there natural graph parameters that dictate the bounded-depth monotone complexity of ?
Bounded-depth circuits are of central importance in algebraic complexity due to the phenomenon of depth reduction. In a sequence of works [44, 2, 26, 40], it was shown that any algebraic circuit of size computing a polynomial of degree can also be simulated by a product-depth circuit of size . If the circuit was monotone to begin with, the resulting bounded-depth circuit is also monotone. Depth reduction also implies that strong enough lower bounds for bounded-depth circuits will lead to general circuit lower bounds – an exceptionally hard open question. A lot of work has gone into proving strong bounded-depth circuit lower bounds (see [35] for a survey). Recently, following the breakthrough result of Limaye, Srinivasan, and Tavenas [28], superpolynomial lower bounds have been shown for bounded-depth circuits (also see [7, 4]).
Studying the monotone bounded-depth complexity of naturally leads us to define bounded-depth versions of treewidth, the -treewidth for any fixed . These graph parameters ask to minimize the maximum bag size over all tree-decompositions of , however, with the twist that only tree-decompositions with an underlying tree of height at most are admissible. Their values interpolate between (when only height is allowed) and (when no height restrictions are imposed), and they are connected to the vertex-cover number in the special case (see Section 3). Bounded-depth variants of treewidth implicitly appear in balancing techniques for tree-decompositions [10, 8], and the -treewidth of paths also appears implicitly in divide-and-conquer schemes for iterated matrix multiplication in a bounded-depth setting [28]. A recent work of Adler and Fluck [1] studied a notion that bounds the width and depth simultaneously, which they call bounded depth treewidth. Our notion of only bounds the height of the tree decomposition to . In particular, for a fixed , there is always a tree decomposition of height for any graph , but with a possibly large treewidth.
We show that the -treewidth of graphs completely characterizes the complexity of for monotone circuits of product-depth at most . For technical reasons described later, it is, however, not the -treewidth of itself that governs the complexity, but rather the -treewidth of the graph obtained by removing all vertices of degree at most . We call this the pruned -treewidth of a graph . Our main result is as follows:
Theorem 1.
Let and be natural numbers, and let be a fixed graph with pruned treewidth . Then the polynomials and have monotone circuits of size and product-depth . Moreover, any monotone circuit of product-depth has size .
Note that any fixed pattern graph on vertices gives a homomorphism polynomial on monomials, which has a trivial sized monotone circuit of depth two. We stress that we wish to determine the precise exponent in this polynomial size: In general, could be much larger than the pruned -treewidth of .
We also study the related computational model of algebraic branching programs (ABPs). An ABP is a directed acyclic graph with a source vertex and a sink , with edges between vertices labeled by variables or constants. The size of the ABP is the total number of vertices in the graph, and the length of the longest path from to is its length. We refer the reader to Section 2 for a formal definition of an ABP and its computation.
For a graph , we define a new graph parameter called -pathwidth , which asks to minimize the bag size over all path decompositions of where the underlying path is of length . We defer the formal definition of these graph parameters to Section 3. Similar to the case of circuits, we show that the -pathwidth of the pruned graph (obtained by removing degree vertices from ), which we call the pruned -pathwidth of characterizes the monotone ABP of length computing .
Theorem 2.
Let and be natural numbers and let be a fixed graph with pruned -pathwidth such that . Then the polynomials and can be computed by monotone algebraic branching programs of size and length . Moreover, any such program of length has size .
For a length- ABP to compute the polynomial (or ), its length needs to be at least the degree of the polynomial (which is ). Otherwise, we cannot even compute a single monomial. We note that the above theorem also implies a bound on the ABP width.
For a fixed pattern graph, it was shown in [27] that and have the same “monotone complexity”. We observe that the reduction holds even in the bounded-depth (bounded-length) case (Lemma 21), so we prove our results only for . The upper bounds of Theorem 1 and Theorem 2 are shown in Section 4 and Section 5, respectively.
Our results: Monotone depth hierarchy
Finally, by turning our attention to pattern graphs of non-constant size, we can prove a depth hierarchy theorem for monotone circuits: Using the tight characterization from the above theorem and the properties of pruned -treewidth, we are able to obtain the following.
Theorem 3.
For any natural numbers and , there exists a pattern graph of size such that can be computed by a monotone circuit of size and product-depth , but every monotone circuit of product-depth computing the polynomial needs size .
By general depth-reduction results, any monotone circuit of size computing a polynomial of degree can be flattened to a monotone circuit of product-depth and size , showing that the above theorem is optimal.
We also note that a similar near-optimal statement with a lower bound of can be obtained from earlier results provided the product-depth is small (see [13]). Our results improve upon this in two ways: Firstly, our appears in the first rather than second exponent, thus yielding a stronger and optimal lower bound. Secondly, our results hold for any product-depth .
2 Preliminaries
For a natural number , we will use to refer to the set . We begin with some algebraic complexity and graph-theoretic preliminaries. Readers comfortable with these notions can safely skip this section.
2.1 Algebraic complexity theory
Algebraic circuits are analogous to Boolean circuits, where logical operators are replaced with underlying field operations. In this paper, we fix our field to be the rationals .111Our results hold for any field by making appropriate changes to the definition of monotone computation so that cancellations are avoided. To study the complexity of polynomials, Valiant formulated the algebraic complexity theory [41]. Here, we will only give relevant definitions, but we encourage interested readers to refer to surveys for a more comprehensive overview of the area [30, 35, 37].
Definition 4 (Algebraic Circuits).
An algebraic circuit is a layered directed acyclic graph with a unique root node, called the output gate. Each leaf node of is called an input gate and is labeled by one of the variables or a field constant. Gates are either labeled or , and on every path from the output gate to some input gate, these gate types alternate. The (product) depth of is the number of (multiplication) layers in the circuit, while its size is the number of vertices of the underlying graph. The circuit computes a polynomial: a gate computes the sum (product) of the polynomials computed by its children.
Definition 5 (Skew Circuits).
An algebraic circuit is called skew if, for every multiplication gate, at most one of its children is an internal (non-input) gate.
Definition 6 (Algebraic Branching Programs).
An Algebraic Branching Program (ABP) is a directed acyclic graph with edges labeled by a variable or a field constant. It has a designated source node (of in-degree ) and a sink node (of out-degree ). A path from to computes the product of all edge labels along the path. The polynomial computed by the ABP is the sum of the terms computed along all the paths from to . If all the constants in the ABP are non-negative, the ABP is monotone. The size of an ABP is the total number of vertices in the graph, and the length of the longest path from to is the length of the ABP.
Monotone computation, which is free of cancellations, can be simulated by algebraic circuits (branching programs) by restricting the choice of field constants.
Definition 7 (Monotone Circuits and ABPs).
A monotone circuit (ABP) is an algebraic circuit (ABP) where all the field constants are non-negative. The circuit (ABP) computes a monotone polynomial, where the coefficients of all the monomials are non-negative.
Remark 8.
It is not hard to show that skew circuits and ABPs are essentially the same model, up to constant factors (e.g., see the discussion in [30]). In particular, an ABP of size and length can be converted to a skew circuit of size and product-depth . If the original ABP is monotone, the skew circuit is monotone as well.
Finally, we define parse trees to analyze the computation of each monomial in a circuit. The notion has appeared in several previous results [3, 24, 27, 32, 45].
Definition 9 (Parse Trees).
A parse tree of an algebraic circuit is obtained as follows:
-
We include the root gate of in .
-
For every gate in , we arbitrarily include any one of its children in .
-
For every gate in , we include all of its children in .
We call a parse tree reduced if we ignore every gate, and its parent and (only) child are directly connected by an edge.
Remark 10.
It is easy to see that every (reduced) parse tree is associated with a monomial of the polynomial computed by the circuit. For a (reduced) parse tree , let be its output. Then the polynomial computed by the circuit is , where the sum is over all the parse trees of . From here on, whenever we use the term parse tree, we mean the reduced parse tree.
2.2 Graph theory
In the following, let be a graph. A vertex cover of is a subset such that for every edge , some vertex is an endpoint of . The vertex-cover number of is the minimum size of a vertex-cover in .
Definition 11 (Tree-decomposition and treewidth).
A tree-decomposition of is a tree whose vertices are annotated with bags , subject to the following conditions:
-
1.
Every vertex of is in at least one bag.
-
2.
For every edge in there is a bag in that contains both and .
-
3.
For any vertex of , the subgraph of induced by the bags containing is a subtree.
The width of a tree decomposition is . The treewidth of the graph , denoted , is the minimum width over all tree decompositions of .
Definition 12 (Path-decomposition and pathwidth).
A path-decomposition of a graph is a tree-decomposition where the underlying tree is a path. The width of a path decomposition is . The pathwidth of the graph , denoted , is the minimum width over all path decompositions of .
We usually consider trees with a designated root vertex. The height of such a tree is the number of vertices on a longest root-to-leaf path. We assume trees in tree-decompositions to be rooted in a way that minimizes their height.
3 Bounded versions of treewidth and pathwidth
In this section, we describe -treewidth, our bounded-depth version of treewidth, and -pathwidth, a bounded-length version of pathwidth. We relate these to other known graph parameters. Moreover, we show that full -ary trees of depth , while having -treewidth , have -treewidth . This behavior around the threshold will ultimately allow us to conclude Theorem 3.
3.1 Connections to other graph parameters
First, recall the definition of -treewidth from the introduction. We stress that a tree with a single node has height according to our definition.
Definition 13.
For fixed , the -treewidth of a graph , denoted by , is the minimum width over all tree decompositions of with underlying tree of height at most .
While depth-restricted tree-decompositions did arise before in the literature [10], their depth was not fixed to concrete constants in these contexts, but rather to, say, . In particular, differences between -treewidth and -treewidth were not considered.
Let us connect the -treewidth of graphs to other graph parameters:
-
The -treewidth of a graph is merely its number of vertices , as the requirement on the height forces the tree-decomposition to consist of a single bag. On the other extreme, the -treewidth of equals the treewidth of .
-
The -treewidth is already more curious: For any vertex-cover , a tree-decomposition of height for can be obtained by placing into a root bag that is connected to bags for , where contains and its neighbors, all of which are in . This shows that the -treewidth of is at most the vertex-cover number of . In fact, the -treewidth of equals the so-called vertex-integrity of (minus ). This graph parameter is defined as , where ranges over all connected components in the graph , see [5, 20].
-
By balancing tree-decompositions [10], a universal constant can be identified such that, for all graphs on vertices, the -treewidth of is bounded by . That is, at the cost of increasing width by a constant multiplicative factor, tree-decompositions can be assumed to be of logarithmic height.
Our upper bound proof will show that the vertices of degree can be removed safely from without changing the bounded-depth complexity of . This holds essentially because such vertices and their incident edges can be assumed to be present in the leaves of a tree-decomposition; these leaves then do not contribute to the product-depth of the constructed circuit. This naturally leads to the notion of pruned -treewidth.
Definition 14.
Given a graph , the pruning of is the graph defined by removing every vertex of degree The pruned -treewidth of a graph , denoted by , is the -treewidth of .
We also define analogous bounded-length versions of pathwidth.
Definition 15.
For fixed , the -pathwidth of a graph , denoted by , is the minimum width over all path decompositions of with underlying path of length at most .
Definition 16.
The pruned -pathwidth of a graph , denoted by , is the -pathwidth of the pruning .
3.2 Full d-ary trees
We conclude this section by exhibiting a pattern whose -treewidth shows a strong phase transition that we can exploit in our depth hierarchy theorem: Its -treewidth is low, but even its -treewidth is high. As it turns out, can be chosen to be the full -ary tree.
Theorem 17.
Let be positive integers and let be the full -ary tree of height . Then whereas .
In order to prove the theorem, we first prove the following useful lemma for inductively bounding the -treewidth of a given graph.
Lemma 18.
For any integers and , if a graph contains at least disjoint connected subgraphs , and the -treewidth of each of them is at least , then the -treewidth of is at least .
Proof.
Suppose is a rooted tree-decomposition of graph , and is the root bag of . We are going to prove that either the height of is larger than or the width of is at least . There are two cases to consider:
-
1.
contains at least one vertex from each of the subgraphs .
-
2.
does not contain any vertex from (at least) one of the subgraphs .
In the first case, the size of is at least , so the width of is at least . In the second case, we can assume without loss of generality that does not contain any vertex from . Let be the subtrees obtained by removing from . Since does not contain any vertex of , at least one of must contain some vertex from . Suppose that the subtree is . For any vertex contained in both and , since is not in the root bag , it must be the case that is not contained in any other as well. Similarly, every neighbor of in is also contained in as is not contained in , and there must be a bag in which contains both and . Proceeding this way, we get that contains the whole of , and the vertices from appear in no other subtree.
Removing vertices not in from each bag of , we obtain a new tree . We claim that is a tree-decomposition of . Indeed, all vertices of are in , and the bags in that contain a vertex form a connected component since was a tree decomposition of . So the same holds for . Moreover, for every edge in , there is a bag in that contains both and , so the same holds for .
Since the -treewidth of is at least , either the height of is larger than or the width of is at least . Since was formed by removing vertices from , the same holds for . Consequently, either the height of is larger than or the width of is at least . In both cases, the lemma holds.
We are now ready to prove Theorem 17.
Proof of Theorem 17.
We have for all , since is a tree of height . For the lower bound, consider the base case . The height- tree-decomposition of the height- full -ary tree has only one bag, and this bag contains all the vertices from . Hence, its treewidth is .
Assume by induction that the theorem holds for all for . Then, for , consider the height- full -ary tree . Removing the root node of yields pairwise disjoint height- full -ary trees. By our inductive assumption, the -treewidth of each of these trees is at least . Then by Lemma 18, the -treewidth of is at least .
4 Upper bounds in Theorem 1 and Theorem 2
We prove the upper bound in Theorem 1. First, we require additional standard notation for tree-decompositions: We consider to be rooted with a choice of root that minimizes its height. Given a tree-decomposition of with underlying tree and bags , write for the cone at , where ranges over all descendants of in the tree .
Our second definition is more technical and specific to the dynamic programming approach we use to compute homomorphism polynomials in a bottom-up manner: It allows us to track where in the tree-decomposition an edge contributes to a monomial of the final polynomial. We say that an edge-representation of in is a function that assigns to each edge of a node in such that for all . Note that each edge is already entirely contained in at least one bag by the definition of a tree-decomposition; the function simply chooses one such bag for each edge.
Given an edge-representation , we define the -height of (which will be the product-depth of the constructed circuit) as the maximum number of “active” nodes on a root-to-leaf path in , where we call a node active iff
-
there are distinct with , or
-
there is at least one with and has a child, or
-
has at least two children.
In our dynamic programming approach that proceeds bottom-up on a tree-decomposition, only active nodes require multiplication gates; the rep-height will thus amount to the overall product-depth of the circuit.
Lemma 19.
Let be a graph with a tree-decomposition consisting of tree and bags , and let be an edge-representation of in . Then there are circuits for and with product-depth equal to the -height of and gates for .
Proof.
We describe the circuit for and remark that the circuit for can be constructed analogously. Considering to be rooted, and proceeding from the leaves of to the root, we inductively compute polynomials for nodes and functions . The polynomials are defined as
Here, we write to denote that is a descendant of in . Note that is the restriction of to homomorphisms that extend a given homomorphism for the bag at , such that only those edges feature in the monomials that are represented in the cone . Then is the sum of over all at the root of .
We show how to compute the polynomials for nodes . Let be a node with children , possibly with if is a leaf. Assume that is known for all and functions . Then we have
| (1) |
From this construction of the circuit, the size bound claimed in the lemma is obvious. Let us investigate its product-depth: In the final circuit computing , every path from the output gate to an input gate corresponds to a path in from the root to a leaf. Analyzing (1), we see that every node on this path contributes to the product-depth iff is active under the edge-representation . Indeed, a leaf only contributes to the product-depth if two edges are represented in its bag, i.e., , as then there is a nontrivial product in the first product (over , shown in parentheses in (1)). A node with one child only contributes if at least one edge is represented in its bag, as then the product between the parentheses and the remaining factor is nontrivial. A node with at least two children always contributes to the product-depth.
To show that the circuit correctly computes , we need to show that the recursive expression for in (1) is correct. Note that every edge is represented by in exactly one bag and thus appears precisely once in a monomial. Because is a separator in , any function gives rise to functions for that all agree on their values for (that is, on their values on ) and can otherwise be chosen independently. Conversely, any ensemble of such consistent functions can be merged to a function . The product over all as in (1) thus yields .
Finally, to prove the upper bound in Theorem 1, let be the pruning of . We obtain a tree-decomposition for with underlying tree of height and width witnessing that . Note that by the requirements of the theorem, so is not empty. Then we construct a tree-decomposition for with tree and an edge-representation of in of rep-height .
To this end, for each vertex of degree , with unique neighbor , we add a node to with bag . This node is inserted into as follows:
-
If lies in , choose some node with and make its child.
-
If is not contained in , then and are both of degree and form a connected component consisting of a singleton edge. In this case, make a child of the root of .
Choose an arbitrary representation of in the resulting tree-decomposition with tree and observe that its -height is at most the height of , even though the height of may be : The bags added for degree- vertices and their incident edges do not contribute towards the -height, as they are leaf nodes and represent single edges. The upper bound thus follows from Lemma 19.
Remark 20.
The construction from Lemma 19 also yields an ABP of length and size when given a path-decomposition of with maximum bag size . To see this, note that the product over in (1) involves only a single factor when is a path-decomposition, so (1) overall amounts to a skew-multiplication of a single monomial with the recursively computed polynomial.
5 Lower bounds in Theorem 1 and Theorem 2
We adapt the lower bound proofs of [27] to prove the lower bounds in our theorems. Recall that proving the lower bound for is enough, since we can use a circuit computing to obtain a circuit computing without changing the depth of the circuit using [27, Lemma 8]. We summarize the results here for completeness.
Lemma 21.
Let be positive integers and be a fixed pattern graph on vertices.
-
If there is a monotone circuit of product-depth and size for , then there is such a circuit of size for .
-
If there is a monotone circuit of product-depth and size for , then there is such a circuit of size for , where .
The results also hold if circuits are replaced by ABPs, and product-depth is replaced by the length of the ABP, provided the length is at least the degree of the polynomials.
Proof.
Given a monotone circuit of product-depth that computes , we replace each variable with if and otherwise. The circuit now computes .
For the other direction, let be the monotone circuit of product-depth computing the polynomial over the vertex set . Note that a homomorphism from to the complete graph on maps a vertex , to where and . We introduce auxiliary variables for each edge . For and , we replace the variable with if and otherwise.
Let be the new circuit obtained after the replacement, and consider the partial derivative , with respect to all the edge variables of . Note that every monomial in contains at least one variable corresponding to each edge of . Further, set in for all . This ensures that every monomial in contains exactly one variable corresponding to every edge of , i.e., it counts only the color-preserving homomorphisms. The coefficient of each monomial is , the number of automorphisms of , and dividing by this number gives us .
We can compute using the partial derivatives’ sum and product rules applied to every gate in a bottom-up fashion. For a gate , we maintain both and . The partial derivative of a sum gate, is straightforward and does not increase the depth. For a product gate, the derivative increases the depth by one, but this can be absorbed in the sum layer above. Note that the product-depth does not change in both cases. A partial derivative with respect to a single variable increases the circuit size by a factor of . Hence, the final circuit for is of size , and has product-depth , the same as .
We also note that both constructions preserve monotonicity. Moreover, if the original circuit was skew (i.e., an ABP), then so is the final circuit . From Remark 8, we obtain the same results for ABPs as well.
5.1 Tree decompositions from parse trees
Consider a pattern graph on the vertex set . An alternative and more intuitive way to think about the -th colored subgraph isomorphism polynomial is to consider the blown-up graph , where each vertex of is replaced by a “cloud” of vertices . Every edge is replaced by a complete bipartite graph between and with an appropriate label for each of the edges; that is, an edge between and is labeled where and . The polynomial is now obtained by choosing a copy of in by picking a vertex from every cloud using a function , and adding the monomial
We say that the monomial above is supported on a set if every element of looks like for . The polynomial is the sum over all such monomials
Claim 22.
Let be a natural number and be a monotone parse tree of product-depth computing a monomial of . Let be the pruned graph obtained by removing all degree- vertices from . We can extract from a tree decomposition of with underlying tree of height .
Proof.
Suppose that the monomial is supported on vertices where and is a function. The parse tree has height . Note that since has coefficients, we can assume that a multiplication gate has only non-constant terms as its children. We build the tree decomposition bottom-up. We “mark” certain vertices in the bags created during this procedure. All such marks are dropped at the end (see Figure 1).
-
1.
For an input gate , we add the bag as a leaf in the tree decomposition. We mark all the vertices of degree . The rest are unmarked.
-
2.
Let be a multiplication gate. Suppose are the bags corresponding to the children of (that we have already constructed) and let be the unmarked elements of . We then add the bag as the root of . If there are vertices such that the monomial computed at includes all the edges incident on in the copy of that picked, we mark all such vertices in the bag .
-
3.
Finally, after applying the procedure in the previous step to all the gates, we drop the bags (and edges) corresponding to input gates.
We claim that the tree decomposition just constructed, with underlying tree and bags , is a tree decomposition of . All the edges of were covered at the leaf bags (that we finally dropped), as they must be present in the monomial. Since only the degree- vertices in a leaf bag were marked, the parent bags of the leaves (which we include in our tree decomposition) have exactly the vertices of , and thus cover all its edges.
We mark (forget) a vertex only after multiplying all its incident edges. Hence, the sub-graph induced by a vertex (in ) is connected in and is, in fact, a subtree. As every multiplication gate of the parse tree has exactly one associated bag, the procedure does indeed result in a tree decomposition of of height .
5.2 Lower bounds for
Theorem 23.
Let be a natural number and be a pattern graph. Any monotone circuit of product-depth computing the polynomial has size .
Proof.
Let be the monotone circuit computing , and let the pruned -treewidth of , . Consider a monomial of supported on vertices for and . Let be a parse tree of associated with . Now, Claim 22 gives a tree decomposition of with tree and bags . Consequently, there is a bag of size at least in the tree decomposition. Without loss of generality, we assume that . If it is greater, we will only obtain a better lower bound. We also assume that the vertices in the bag are (relabeling the vertices of does not change the complexity of ). Let the gate in associated with be .
We show that only a “few” monomials can contain in their parse tree. More precisely, we claim that any monomial (other than ) that contains in its parse tree is supported on vertices . Suppose not. Let have a parse tree with gate in it but vertex for some , with . Recall that we obtained the tree decomposition using the parse tree of . For a gate in a parse tree, we denote by the subtree rooted at . Note that if two parse trees contain a multiplication gate , all the children of are the same in both parse trees. We now analyze two cases:
-
1.
The vertex is marked at the bag associated with : There are at least two children of in that compute monomials with in them. This holds because there are no degree- vertices in the bags. If in contains the vertex , we replace with . Similarly, in the other case, when contains . If both do not contain in , we arbitrarily replace (say) with .
-
2.
The vertex is not marked at the bag associated with : The vertex appears in as well as outside . In , if appears in , we replace with in . Otherwise, we replace with in .
In all cases, we obtain a valid parse tree of that produces a monomial supported on and . This leads to a contradiction, since the monomial produced by is spurious and cannot be cancelled because the circuit is monotone. Every monomial (parse tree) has a gate whose corresponding bag has at least vertices. And any other monomial (parse tree) that contains this gate must share at least vertices in its support with . Thus, the maximum number of monomials containing this gate equals the number of colored isomorphisms that fix vertices, which is . Recall that there are monomials in , and so we need at least gates in the circuit.
The lower bound proof for algebraic branching programs is very similar.
Theorem 24.
Let be a positive integer and be a pattern graph such that . Any monotone ABP of length computing the polynomial has size .
Proof.
As mentioned earlier in Remark 8, the size- monotone ABP of length computing has an equivalent monotone skew-circuit of size and product-depth . Consider a monomial of supported on vertices for and . Let be a parse tree of associated with .
We observe that the procedure described in the proof of Claim 22 extracts a length- path decomposition of the pruned graph instead: as the circuit is skew, all the multiplication gates in have at most one non-leaf child. Since we finally dropped the bags corresponding to input gates in our procedure, the tree decomposition obtained is a path decomposition!
Taking the pruned -pathwidth of to be , the same proof implies that the number of monomials containing gate is , thus implying a size lower bound of .
6 Depth Hierarchy
Combining our previous results allows us to prove a depth-hierarchy theorem for bounded-depth monotone algebraic circuits.222A similar hierarchy can also be shown for monotone ABPs.
Theorem 25.
For all integers and , there exists a pattern graph such that can be computed by a monotone product-depth circuit of size but any product-depth monotone circuit computing the polynomial needs size .
Proof.
For an integer , let be the full -ary tree of height . Note that . The pruned -treewidth of is equal to the -treewidth of the full -ary tree of height . That is, . So by Lemma 19, there exists a monotone circuit of product-depth and size , which computes .
On the other hand, we have by Theorem 17. Hence, by Theorem 23, every monotone circuit of product-depth computing necessarily has size at least .
If we consider the case when the pattern graph is of size in Theorem 25, we obtain the depth hierarchy result in Theorem 3. As an aside, we note that an analogous depth hierarchy cannot be obtained for the polynomials using our methods, as the blow up in the size given by Lemma 21 is exponential, when is not a constant.
References
- [1] Isolde Adler and Eva Fluck. Monotonicity of the cops and robber game for bounded depth treewidth. In 49th International Symposium on Mathematical Foundations of Computer Science, volume 306 of LIPIcs. Leibniz Int. Proc. Inform., pages Art. No. 6, 18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/lipics.mfcs.2024.6.
- [2] Manindra Agrawal and V. Vinay. Arithmetic circuits: A chasm at depth four. In 49th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2008, October 25-28, 2008, Philadelphia, PA, USA, pages 67–75. IEEE Computer Society, 2008. doi:10.1109/FOCS.2008.32.
- [3] Eric Allender, Jia Jiao, Meena Mahajan, and V. Vinay. Non-commutative arithmetic circuits: Depth reduction and size lower bounds. Theoretical Computer Science, 209(1-2):47–86, 1998. doi:10.1016/S0304-3975(97)00227-2.
- [4] Prashanth Amireddy, Ankit Garg, Neeraj Kayal, Chandan Saha, and Bhargav Thankey. Low-depth arithmetic circuit lower bounds: bypassing set-multilinearization. In 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, July 10-14, 2023, Paderborn, Germany, volume 261 of LIPIcs. Leibniz Int. Proc. Inform., pages 12:1–12:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/lipics.icalp.2023.12.
- [5] C. A. Barefoot, Roger Entringer, and Henda Swart. Vulnerability in graphs—a comparative survey. Journal of Combinatorial Mathematics and Combinatorial Computing, 1:13–22, 1987. URL: https://combinatorialpress.com/article/jcmcc/Volume%201/vol-001-paper%202.pdf.
- [6] C. S. Bhargav, Shiteng Chen, Radu Curticapean, and Prateek Dwivedi. Monotone bounded-depth complexity of homomorphism polynomials, 2025. doi:10.48550/arXiv.2505.22894.
- [7] C. S. Bhargav, Sagnik Dutta, and Nitin Saxena. Improved lower bound, and proof barrier, for constant depth algebraic circuits. ACM Transactions on Computation Theory, 16(4):23:1–23:22, 2024. doi:10.1145/3689957.
- [8] Hans L. Bodlaender and Torben Hagerup. Tree decompositions of small diameter. In Mathematical Foundations of Computer Science 1998, 23rd International Symposium, MFCS’98, Brno, Czech Republic, August 24-28, 1998, Proceedings, volume 1450 of Lecture Notes in Comput. Sci., pages 702–712. Springer, Berlin, 1998. doi:10.1007/BFb0055821.
- [9] Bruno Pasqualotto Cavalar, Mrinal Kumar, and Benjamin Rossman. Monotone circuit lower bounds from robust sunflowers. Algorithmica, 84(12):3655–3685, 2022. doi:10.1007/s00453-022-01000-3.
- [10] Krishnendu Chatterjee, Rasmus Ibsen-Jensen, and Andreas Pavlogiannis. Optimal reachability and a space-time tradeoff for distance queries in constant-treewidth graphs. In 24th Annual European Symposium on Algorithms, ESA 2016, August 22-24, 2016, Aarhus, Denmark, volume 57 of LIPIcs. Leibniz Int. Proc. Inform., pages 28:1–28:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ESA.2016.28.
- [11] Prasad Chaugule, Nutan Limaye, and Aditya Varre. Variants of homomorphism polynomials complete for algebraic complexity classes. ACM Transactions on Computation Theory, 13(4):21:1–21:26, 2021. doi:10.1145/3470858.
- [12] Hubie Chen and Stefan Mengel. Counting answers to existential positive queries: A complexity classification. In Tova Milo and Wang-Chiew Tan, editors, Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2016, San Francisco, CA, USA, June 26 - July 01, 2016, pages 315–326. ACM, 2016. doi:10.1145/2902251.2902279.
- [13] Suryajith Chillara, Christian Engels, Nutan Limaye, and Srikanth Srinivasan. A near-optimal depth-hierarchy theorem for small-depth multilinear circuits. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 934–945. IEEE Computer Society, 2018. doi:10.1109/FOCS.2018.00092.
- [14] Radu Curticapean, Holger Dell, and Dániel Marx. Homomorphisms are a good basis for counting small subgraphs. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, Montreal, QC, Canada, June 19-23, 2017, pages 210–223. ACM, 2017. doi:10.1145/3055399.3055502.
- [15] Radu Curticapean, Simon Döring, Daniel Neuen, and Jiaheng Wang. Can you link up with treewidth? In 42nd International Symposium on Theoretical Aspects of Computer Science, STACS 2025, March 4-7, 2025, Jena, Germany, volume 327 of LIPIcs, pages 28:1–28:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.STACS.2025.28.
- [16] Radu Curticapean and Dániel Marx. Complexity of counting subgraphs: Only the boundedness of the vertex-cover number counts. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 130–139. IEEE Computer Society, 2014. doi:10.1109/FOCS.2014.22.
- [17] Víctor Dalmau and Peter Jonsson. The complexity of counting homomorphisms seen from the other side. Theoretical Computer Science, 329(1-3):315–323, 2004. doi:10.1016/j.tcs.2004.08.008.
- [18] Arnaud Durand, Meena Mahajan, Guillaume Malod, Nicolas de Rugy-Altherre, and Nitin Saurabh. Homomorphism polynomials complete for VP. Chicago Journal of Theoretical Computer Science, 2016:Art. 3, 25, 2016. doi:10.4086/cjtcs.2016.003.
- [19] Sergey B. Gashkov and Igor’ S. Sergeev. A method for deriving lower bounds for the complexity of monotone arithmetic circuits computing real polynomials. Sbornik: Mathematics, 203(10):1411, October 2012. Publisher: IOP Publishing. doi:10.1070/SM2012v203n10ABEH004270.
- [20] Tatsuya Gima, Tesshu Hanaka, Yasuaki Kobayashi, Ryota Murai, Hirotaka Ono, and Yota Otachi. Structural parameterizations of vertex integrity. Theoretical Computer Science, 1024:114954, 2025. doi:10.1016/j.tcs.2024.114954.
- [21] Pavel Hrubeš. On -sensitive monotone computations. Computational Complexity, 29(2):6, 2020. doi:10.1007/s00037-020-00196-6.
- [22] Pavel Hrubeš and Amir Yehudayoff. On isoperimetric profiles and computational complexity. In 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, July 11-15, 2016, Rome, Italy, volume 55 of LIPIcs, pages 89:1–89:12. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ICALP.2016.89.
- [23] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-sat. Journal of Computer and System Sciences, 62:367–375, 2001. doi:10.1006/jcss.2000.1727.
- [24] Mark Jerrum and Marc Snir. Some exact complexity results for straight-line computations over semirings. Journal of the Association for Computing Machinery, 29(3):874–897, 1982. doi:10.1145/322326.322341.
- [25] C. S. Karthik, Dániel Marx, Marcin Pilipczuk, and Uéverton Souza. Conditional lower bounds for sparse parameterized 2-csp: A streamlined proof. In 2024 Symposium on Simplicity in Algorithms, SOSA 2024, Alexandria, VA, USA, January 8-10, 2024, pages 383–395. SIAM, 2024. doi:10.1137/1.9781611977936.35.
- [26] Pascal Koiran. Arithmetic circuits: the chasm at depth four gets wider. Theoretical Computer Science, 448:56–65, 2012. doi:10.1016/j.tcs.2012.03.041.
- [27] Balagopal Komarath, Anurag Pandey, and Chengot Sankaramenon Rahul. Monotone arithmetic complexity of graph homomorphism polynomials. Algorithmica. An International Journal in Computer Science, 85(9):2554–2579, 2023. doi:10.1007/s00453-023-01108-0.
- [28] Nutan Limaye, Srikanth Srinivasan, and Sébastien Tavenas. Superpolynomial lower bounds against low-depth algebraic circuits. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 804–814. IEEE, 2021. doi:10.1109/FOCS52979.2021.00083.
- [29] Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Lower bounds based on the exponential time hypothesis. Bulletin of the European Association for Theoretical Computer Science. EATCS, 105:41–72, 2011. URL: https://www.ii.uib.no/˜daniello/papers/surveyETH.pdf.
- [30] Meena Mahajan. Algebraic complexity classes. In Perspectives in computational complexity, volume 26 of Progr. Comput. Sci. Appl. Logic, pages 51–75. Birkhäuser/Springer, Cham, 2014. doi:10.1007/978-3-319-05446-9_4.
- [31] Meena Mahajan and Nitin Saurabh. Some complete and intermediate polynomials in algebraic complexity theory. Theory of Computing Systems, 62(3):622–652, 2018. doi:10.1007/s00224-016-9740-y.
- [32] Guillaume Malod and Natacha Portier. Characterizing valiant’s algebraic complexity classes. Journal of Complexity, 24(1):16–38, 2008. doi:10.1016/j.jco.2006.09.006.
- [33] Dániel Marx. Can you beat treewidth? Theory of Computing. An Open Access Journal, 6(1):85–112, 2010. doi:10.4086/toc.2010.v006a005.
- [34] Ran Raz and Amir Yehudayoff. Multilinear formulas, maximal-partition discrepancy and mixed-sources extractors. Journal of Computer and System Sciences, 77(1):167–190, 2011. doi:10.1016/j.jcss.2010.06.013.
- [35] Ramprasad Saptharishi. A survey of lower bounds in arithmetic circuit complexity. v9.0.3, 2021. URL: https://github.com/dasarpmar/lowerbounds-survey/releases.
- [36] C.-P. Schnorr. A lower bound on the number of additions in monotone computations. Theoretical Computer Science, 2(3):305–315, 1976. doi:10.1016/0304-3975(76)90083-9.
- [37] Amir Shpilka and Amir Yehudayoff. Arithmetic circuits: A survey of recent results and open questions. Foundations and Trends in Theoretical Computer Science, 5(3-4):207–388, 2010. doi:10.1561/0400000039.
- [38] Marc Snir. On the size complexity of monotone formulas. In Automata, languages and programming (Proc. Seventh Internat. Colloq., Noordwijkerhout, 1980), volume 85 of Lecture Notes in Comput. Sci., pages 621–631. Springer, Berlin-New York, 1980. doi:10.1007/3-540-10003-2_103.
- [39] Srikanth Srinivasan. Strongly exponential separation between monotone VP and monotone VNP. ACM Trans. Comput. Theory, 12(4):23:1–23:12, 2020. doi:10.1145/3417758.
- [40] Sébastien Tavenas. Improved bounds for reduction to depth 4 and depth 3. Information and Computation, 240:2–11, 2015. doi:10.1016/j.ic.2014.09.004.
- [41] L. G. Valiant. Completeness classes in algebra. In Proceedings of the 11h Annual ACM Symposium on Theory of Computing, April 30 - May 2, 1979, Atlanta, Georgia, USA, pages 249–261. ACM, 1979. doi:10.1145/800135.804419.
- [42] Leslie G. Valiant. The complexity of computing the permanent. Theoretical Computer Science, 8(2):189–201, 1979. doi:10.1016/0304-3975(79)90044-6.
- [43] Leslie G. Valiant. Negation can be exponentially powerful. Theoretical Computer Science, 12(3):303–314, 1980. doi:10.1016/0304-3975(80)90060-2.
- [44] Leslie G. Valiant, Sven Skyum, S. Berkowitz, and Charles Rackoff. Fast parallel computation of polynomials using few processors. SIAM Journal on Computing, 12(4):641–644, 1983. doi:10.1137/0212043.
- [45] H. Venkateswaran. Circuit definitions of nondeterministic complexity classes. SIAM Journal on Computing, 21(4):655–670, 1992. doi:10.1137/0221040.
- [46] Amir Yehudayoff. Separating monotone VP and VNP. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019, Phoenix, AZ, USA, June 23-26, 2019, pages 425–429. ACM, 2019. doi:10.1145/3313276.3316311.
