Randomized Black-Box PIT for Small Depth +-Regular Non-Commutative Circuits
Abstract
In this paper, we address the black-box polynomial identity testing (PIT) problem for non-commutative polynomials computed by -regular circuits, a class of homogeneous circuits introduced by Arvind, Joglekar, Mukhopadhyay, and Raja (STOC 2017, Theory of Computing 2019). These circuits can compute polynomials with a number of monomials that are doubly exponential in the circuit size. They gave an efficient randomized PIT algorithm for +-regular circuits of depth 3 and posed the problem of developing an efficient black-box PIT for higher depths as an open problem. Our work makes progress on this open problem by resolving it for constant-depth +-regular circuits.
We present a randomized black-box polynomial-time algorithm for +-regular circuits of any constant depth. Specifically, our algorithm runs in time, where and represent the size and the depth of the -regular circuit, respectively. Our approach combines several key techniques in a novel way. We employ a nondeterministic substitution automaton that transforms the polynomial into a structured form and utilizes polynomial sparsification along with commutative transformations to maintain non-zeroness. Additionally, we introduce matrix composition, coefficient modification via the automaton, and multi-entry outputs β methods that have not previously been applied in the context of black-box PIT. Together, these techniques enable us to effectively handle exponential degrees and doubly exponential sparsity in non-commutative settings, enabling polynomial identity testing for higher-depth circuits. In particular, we show that if is a non-zero non-commutative polynomial in variables over the field , computed by a depth- -regular circuit of size , then cannot be a polynomial identity for the matrix algebra , where and the size of the field depends on the degree of . Interestingly, the size of the matrices does not depend on the degree of . Our result can be interpreted as an Amitsur-Levitzki-type result [2] for polynomials computed by small-depth -regular circuits.
Keywords and phrases:
Polynomial Identity Testing, Non-commutative Circuits, Algebraic Circuits, +-Regular Circuits, Black-BoxCopyright and License:
2012 ACM Subject Classification:
Theory of computation Algebraic complexity theoryAcknowledgements:
We would like to extend our sincere gratitude to Prof. Arvind (IMSc and CMI) for his valuable discussions. SR also expresses his sincere gratitude to Prof. Arvind and Prof. Meena Mahajan (IMSc) for facilitating a visit to IMSc, where part of this research was conducted. We also acknowledge the assistance of ChatGPT in rephrasing sections of this paper to improve clarity and articulation. However, we affirm that no technical ideas or proofs presented in this paper were generated by ChatGPT.Editors:
C. Aiswarya, Ruta Mehta, and Subhajit RoySeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
The non-commutative polynomial ring, denoted by , over a field in non-commuting variables , consists of non-commuting polynomials in . These are just -linear combinations of words (we call them monomials) over the alphabet . Hyafil [8] and Nisan [10], studied the complexity of non-commutative arithmetic computations, in particular the complexity of computing the determinant polynomial with non-commutative computations.
Non-commutative arithmetic circuit families compute non-commutative polynomial families in a non-commutative polynomial ring , where multiplication is non-commutative (i.e., for distinct , ). Designing an efficient deterministic algorithm for non-commutative polynomial identity testing is a major open problem. Let be a polynomial represented by a non-commutative arithmetic circuit . In this work, we assume that the polynomial is given by a black-box access to , meaning we can evaluate the polynomial on matrices with entries from or an extension field. Note that the degree of an -variate polynomial computed by the circuit of size can be as large as and the sparsity, i.e., the number of non-zero monomials, can be as large as . For example, the non-commutative polynomial has degree , doubly exponential sparsity , and has a circuit of size .
Bogdanov and Wee [6] have given an efficient randomized PIT algorithm for non-commutative circuits computing polynomials of degree . Their algorithm is based on the result of Amitsur-Levitzki [2], which states the existence of matrix substitutions such that the matrix is not the zero matrix, where the dimension of the matrices in depends linearly on the degree of the polynomial . [2] shows that a non-zero non-commutative polynomial of degree does not vanish on the matrix algebra . Since the degree of the polynomial computed by circuit C can be exponentially large in the size of the circuit, their approach will not work directly. Finding an efficient randomized PIT algorithm for general non-commutative circuits is a well-known open problem. It was highlighted at the Workshop on Algebraic Complexity Theory (WACT 2016) as one of the key problems to work on.
Recently, [3, 4] gave an efficient randomized algorithm for the PIT problem when the circuits are allowed to compute polynomials of exponential degree, but the sparsity (i.e., the number of non-zero monomials) could be exponential in the size of the circuit. In particular, it has been shown that if the sparsity of the polynomial is , then identity testing can be performed using matrices of dimension . To handle doubly-exponential sparsity, they studied a class of homogeneous non-commutative circuits, that they call +-regular circuits, and gave an efficient deterministic white-box PIT algorithm. These circuits can compute non-commutative polynomials with the number of monomials that is doubly exponential in the circuit size. For the black-box setting, they obtain an efficient randomized PIT algorithm only for depth-3 +-regular circuits. In particular, they show that if a non-zero non-commutative polynomial is computed by a depth-3 +-regular circuit of size , then cannot be a polynomial identity for the matrix algebra for a sufficiently large field . That is, the polynomial cannot be identically zero under all substitutions from the matrix algebra for its variables. In other words, there exists at least one matrix substitution for the variables in such that the resulting evaluated matrix is non-zero.
Finding an efficient randomized PIT algorithm for higher depth +-regular circuits is listed as an interesting open problem [3, 4]. We resolve this problem for constant depth +-regular circuits. In particular, we show that if is a non-zero non-commutative polynomial computed by a depth- +-regular circuit of size , then cannot be a polynomial identity for the matrix algebra , with and the size of the field depends on the degree of polynomial . We note that we get a black-box randomized polynomial time PIT algorithm for constant depth -regular circuits.
1.1 Our results
The main result of the paper is the following theorem111For all omitted proofs, definitions, figures, and additional details, please refer to the full version of this paper [5].
Theorem 1.
Let be a non-commutative polynomial of degree over computed by a +-regular circuit of depth and size . Then if and only if is not identically zero on the matrix algebra , with and is sufficiently large.
For degree non-zero non-commutative polynomial , the classical Amitsur-Levitzki [2] theorem guarantees that does not vanish on the matrix algebra . If , this gives us an exponential time randomized PIT algorithm [6], where is the size of the circuit computing . In contrast, in our result, the dimension of the matrices is independent of the degree of the polynomial. If the sparsity of the polynomial, i.e., the number of non-zero monomials, is doubly exponential, then the main result of [4] gives only an exponential time randomized PIT algorithm as their matrix dimension depends on the logarithm of the sparsity.
This above theorem demonstrates that if the polynomial is computed by a -regular circuit of size and depth , we can determine if is identically zero or not using a time randomized PIT algorithm, which is exponentially faster than the existing methods. In particular, if depth is then our algorithm runs in polynomial time. It is important to note that the number of product gates (within each layers) in any input-to-output path can be arbitrary and is only bounded by the circuit size .
We note that [4] presented a white-box deterministic polynomial-time PIT for arbitrary depth -regular circuits. For the small-degree case, [11] provided a white-box deterministic polynomial-time PIT for non-commutative ABPs, while [7, 1] have shown a deterministic quasi-polynomial-time black-box PIT algorithm for non-commutative ABPs. In the commutative setting, a randomized polynomial-time Polynomial Identity Test (PIT) was given by [9] using modular arithmetic evaluations.
1.2 Proof Sketch
We provide a brief sketch of our randomized PIT algorithm for constant-depth -regular circuits. Our approach proceeds through a sequence of transformations:
-
1.
A structured transformation using substitution automata, which converts the non-commutative polynomial into a more structured form while introducing spurious monomials.
-
2.
A product sparsification step that reduces the number of non-commutative polynomial factors in each product to a small subset, preserving non-zeroness.
-
3.
A commutative transformation step that reduces the PIT problem to the commutative setting.
Each step relies on small substitution automata and guarantees preservation of non-zeroness. These steps are carefully composed to preserve non-zeroness while keeping the dimension of the substitution matrices polynomial in . We also introduce a novel coefficient modification strategy to prevent cancellation between structured and spurious terms.
In the rest of the paper, we will use βn.c.β as an abbreviation for βnon-commutativeβ.
1.3 Organization of the Paper
Section 2 presents our randomized black-box PIT algorithm for depth-5 -regular circuits, highlighting the main steps: structure transformation, product sparsification, commutative transformation, and coefficient modification. Section 3 extends this result to arbitrary constant-depth -regular circuits.
2 Black-Box PIT for Circuits
In this section, we show that if is a n.c. polynomial of degree computed by a depth-5 -regular circuit of size , then there exists an efficient randomized algorithm for identity testing the polynomial . The main result of this section is the following theorem.
Theorem 2.
Let be a n.c. polynomial of degree over computed by a circuit of size . Then if and only if is not identically zero on the matrix algebra .
The polynomial can be written as follows: . Here, the degree of each is , where , and it can be computed by a circuit of size at most . We establish Theorem 2 in three steps. First, we transform each polynomial into a more structured n.c. polynomial, as defined below (see Definition 3). This structured polynomial has the property that we can simply consider it as a commutative polynomial preserving non-zeroness (Claim 5). As noted above, this is not true for n.c. polynomials, in general.
Definition 3.
Let . We call a n.c. polynomial over as an -ordered polynomial if it is of the form
Β Remark 4.
In the above definition, it is important to note that for each . However, in this paper, we will focus on a special case of -ordered polynomials, where , for each and .
We have the following observation about the -ordered polynomial.
Claim 5.
Suppose is an -ordered polynomial. Let be the polynomial obtained by treating variables in as commutative. Then, if and only if .
Β Remark 6.
We will later allow coefficients to be commutative polynomials. The proof of this generalized statement follows the same reasoning as the proof of Claim 5.
Let us define the following concept, which will be relevant in subsequent sections:
Definition 7 (-Pattern / Ordered Monomial).
A -pattern is a monomial of the form , where . In other words, it is a monomial in the variables where the variables appear in the fixed order , but the exponents can vary. Such a monomial is also called an ordered monomial.
We now explain the three steps of our method to establish Theorem 2.
2.1 Step 1: Transforming the Polynomial for Improved Structure
The initial step of our method involves transforming the polynomial to introduce more structure. During this process, we obtain a structured polynomial but also introduce some additional spurious monomials. This is one of the main differences between this work and [4].
We show that these spurious monomials have a distinguishing property that can be used to differentiate them from the structured part.
We discuss the process of transforming each polynomial into an -ordered polynomial. To do this, we introduce a new set of commutative and n.c. variables as follows.
Let and let . The variables in and are commutative. Let be the set of n.c. variables.
We do this transformation using a small substitution automaton.
We consider the output of this substitution automaton on the n.c. polynomial . The corresponding substitution matrix for each variable is defined from this substitution automaton.
Output of the Automaton
Let . Then we consider the output of the automaton as:
| (1) |
which is a polynomial in the variables .
Suppose a monomial is computed by a -regular circuit . The monomial has non-zero coefficient in for some . This monomial can be written as , where each sub-monomial has non-zero coefficient in .
Next, we consider the output of the substitution automaton on . The automaton knows how to replace/substitute any variable at any state . Suppose , the output of the substitution automaton on the monomial is given by
where . Each variable , is substituted by a degree two monomial over (one n.c. variable and one commutative variable). Consequently, the automaton transforms the monomial into a degree polynomial over . Importantly, the new n.c. degree (i.e., sum of exponents of variables) equals to the original degree .
Computation by the substitution automaton
The automaton has exponentially many paths (with states allowed to repeat) from to , all labeled by the same monomial . Each computation path transforms the monomial , originally over the variables , into a new monomial over .
For any path from to , we denote the transformed monomial as . The polynomial computed by is given by
which is a polynomial in . Recall that n.c. polynomials are -linear combinations of words/strings (called monomials). For a n.c. monomial , we can identify the variable at position in , where .
Recall that can be written as . Each computation path substitutes each n.c. variable in according to the automatonβs transition rules, resulting in a monomial over new variables . We group all commutative variables appearing in and denote it by , which is a commutative monomial over . The resulting monomial has the following form.
Proposition 8.
Let be a path from to labeled by the monomial . The transformed monomial can be expressed in the form: , where , is a monomial over , and each (for ) is given by , where for , and .
For , the exponents of the variables in the sub-monomials and can vary. In particular, it is generally possible that .
Types of sub-monomials: Two cases
It is important to note that the number of new sub-monomials , denoted as , may not be equal to . This is because depends on how many times the path returns to the initial state . Also, the sum of exponents of variables in each sub-monomial in can vary. This leads us to consider two possible cases for each computation path that starts at and ends at : (recall ).
-
Case 1: For each , the boundary between and in is respected by the path . In this computation path , the state of is at precisely when it begins processing each sub-monomial for . This means that when reads the last variable of the sub-monomial (for ), it transitions back to state . As a result, is in state exactly when it reads the first variable of the sub-monomial . This holds true for all sub-monomials where . By Proposition 8, the transformed monomial can be expressed as: where is a monomial over and each is of form . In this case, we observe that since there are exactly sub-monomials in . or
-
Case 2: For some , the boundary between and in is not respected by the path . In this case, there exists a sub-monomial , where , such that either (1) the computation path visits the state while processing the variable located at position , where . This means returns to in the middle of processing . or (2) the path is in a state (i.e., other than the initial state ) while processing the variable that appears at the first position of the sub-monomial . By Proposition 8, the transformed monomial can be expressed as: where is a monomial over and each is of form . In this case, we cannot definitively say whether is equal to or not.
Β Remark 9.
Any path from to labeled by a monomial will satisfy either Case 1 or Case 2, but not both.
In Case 1, we can make the following important observation about the obtained monomial . Recall that is the degree of polynomial for all and .
Claim 10.
Let be a path from to labeled by the monomial that satisfies Case 1. In this case, for each sub-monomial , where , of the monomial , the sum of the exponents of its n.c. variables is . That is, .
For all paths that satisfy Case 2, this is not true. We note this down as the following claim.
Claim 11.
Let be a path from to labeled by the monomial that satisfies Case 2. In this case, there exists a sub-monomial , where , in the obtained monomial such that the sum of the exponents of its n.c. variables is not equal to . That is, .
The structured part and the spurious part
For a monomial , we define the polynomial as the sum of all monomials that are obtained from computation paths labeled by from Case 1 above. Similarly, the polynomial is defined as the sum of all monomials obtained from computation paths labeled by from Case 2 above. We consider the output of the substitution automaton on the given n.c. polynomial . The output of the automaton is the sum of all monomials produced by computation paths starting from and leading to , with these paths labeled by monomials generated by a depth-5 -regular circuit.
Let be the set of all monomials computed/generated by the given depth-5 -regular circuit computing . That is, suppose is computed by for some , with coefficient then . Let
| (2) |
| (3) |
We refer to as the sum of spurious monomials obtained from the automaton, which can be viewed as noise resulting from our method.
We assume that the linear forms in the polynomials are numbered from 1 to . For with size at most , define as the polynomial obtained from by treating linear forms indexed by as non-commuting and the rest of the linear forms as commuting. We also substitute the n.c. variables that appear in linear forms indexed by with double-indexed commutative variables , as shown in the substitution automaton.
We have the following claim regarding the polynomial .
Claim 12.
The polynomial can be expressed as where for such that , and is the polynomial obtained from by treating the linear forms indexed by as non-commuting and the rest of the linear forms as commuting.
Let
| (4) |
Then we can express as:
| (5) |
The output of the substitution automaton on the polynomial is given by:
This is stated in the following claim.
2.1.1 Non-zeroness of
We establish that is non-zero by first proving that is not zero. This is shown in Lemma 15, which builds on the result of PIT for circuits (see Section 6.2 in [4]). We briefly discuss this result.
Let be the set of new commuting variables. Let be a polynomial of degree computed by a circuit of size . Then can be expressed as , where are homogeneous linear forms. Let , . We have . For with size at most , define as the polynomial obtained from by treating linear forms indexed by as non-commuting and the rest of the linear forms as commuting. We replace each n.c. variable appearing in by a new commuting variable .
The number of n.c. linear forms appearing in is bounded by . This is because the linear forms that appear with indices other than those in are treated as commutative. Consequently, the number of non-commutative linear forms in is bounded by . We refer to this as the n.c. degree of the polynomial . Since this degree is small, can be converted into a commutative polynomial while preserving its non-zeroness. Let denote the commutative polynomial obtained from and define . To keep all guesses of the set distinct, additional commutative variables are introduced in [4]. The transformed commutative polynomial obtained in [4] is given by:
| (6) |
where with . The degree of the monomial is .
By Lemma 6.2 in [4], there exists a set of indices , , such that implying . Replacing with in retains the non-zeroness of while the degree of becomes .
Β Remark 14.
-
1.
Without loss of generality, we assume that the automaton nondeterministically guesses exactly indices, i.e., and the rest as commutative. If , adding more indices still preserves non-zeroness.
-
2.
If the degree of the polynomial is smaller than , we will handle this small-degree case separately. For now, we assume in Lemma 15.
We have the following lemma that shows .
Lemma 15.
Let be a n.c. polynomial over , computed by a circuit of size . Assume that each polynomial (for ) has degree . Define as where and denotes the polynomial obtained from by treating linear forms indexed by as non-commuting and the remaining linear forms as commuting.
We will need a generalization of Lemma 15 for polynomials computed by larger depth +-regular circuits.
The resulting n.c. polynomial (from Lemma 15) still has an exponential degree in variables, but each is structured as -ordered polynomials. Importantly, does not contain any monomials from the spurious polynomial .
Β Remark 16.
If the degree of each polynomial is less than (we call it as small degree case), this case requires a separate treatment.
We now show that each polynomial can be converted into a structured polynomial . The key property of this transformation is that there is a bijection between the monomials of and those of , which ensures that if and only if .
Proposition 17.
For each , , let be a n.c. polynomial computed by circuit. There exists an explicit substitution automaton of size that transforms into a polynomial such that if and only if .
It is easy to observe the following because the first index of each variable indicates the position of the variable within each .
Observation 18.
Suppose . If we treat the variables , appearing in as commuting, the resulting commutative polynomial remains non-zero.
This guarantees that for the small degree case, we can transform the polynomial similarly to Lemma 15, ensuring that each is transformed into which can be regarded as a commutative polynomial without making it zero. While remains a n.c. polynomial over , we acknowledge that our model is black-box and we do not know the value of . However, for the purpose of analyzing the existence of matrices of small dimensions for identity testing, we can assume is known.
Thus, we can successfully transform the given polynomial in both scenarios β whether or β ensuring that the resulting can be considered as a commutative polynomial without making it a zero polynomial.
However, it is important to note that this transformation alone will not provide a black-box PIT, as we cannot guarantee the non-zeroness of the sum of products of these polynomials. This is because if we simply treat all as commutative, the variables across different polynomials could mix, which may lead to cancellations. At this stage, the variables in are still considered n.c. in the polynomial .
2.1.2 Non-zeroness of
By Lemma 15, we established that . Next, we show that the polynomial . In , for every monomial , and for all each takes the form where (see Claim 10). However, this property does not hold for monomials appearing in (see Claim 11). Specifically, for any monomial in , there exists a sub-monomial such that . This distinction ensures that the monomials of do not cancel with those of . Thus, we conclude that . Itβs important to note that if then clearly as well (converse statement). We note these observations in the following claim.
Claim 19.
Let be a homogeneous n.c. polynomial computed by a depth-5 +-regular circuit of size . Then, if and only if .
Next, we can simplify the polynomial using the Polynomial Identity Lemma for commutative polynomials. We replace the commuting variables with scalar substitutions from or an extension field, yielding a non-zero polynomial. Let us denote this resulting non-zero polynomial as . After this substitution, the only remaining variables in will be n.c. variables .
Let us denote new polynomials obtained after replacing the commuting variables by scalars in and by and respectively. That is, .
One of the goals of this transformation is to ensure that if is followed by in the transformed monomials (for all such occurrences of followed by ), there must be a transition from to for some . As noted, we cannot be sure of this. However, all those monomials where this transition occurs are captured in the structured part . Since there is no such structure in , we cannot conclude anything about the monomials appearing in the spurious part .
Β Remark 20.
It is important to note that each monomial of is a product of -patterns (see Definition 7), and the boundaries of each -pattern can be easily identified by an automaton which is crucially used by the remaining steps.
2.2 Step 2: Product Sparsification
In the second step of our transformation, we prove a general lemma that states if we have a sum of a small number of products of ordered polynomials, we can sparsify the product while preserving its non-zero property. Specifically, in each product term of the sum, we can treat only a small number of the ordered polynomials as non-commutative while treating the rest as commutative without affecting the non-zero nature of the polynomial. In particular, this step does not depend on the number of terms in each product.
We focus on the sparsification of the n.c. polynomial , which was the output of Step (1). This transformation affects both the good part and the spurious part of the polynomial . We begin by analyzing the transformation of , which is defined as:
where each is an -ordered polynomial in the n.c. variables . Note that each is a homogeneous and degree n.c. polynomial.
The key observation is that we can preserve the non-zeroness of by retaining at most of the -ordered polynomials in each product as non-commutative while treating the remaining ones as commutative. This is stated in the following lemma, which we refer to as the product sparsification lemma. This lemma generalizes Lemma 6.2 from [4]. However, unlike in [4], we are working with the product of non-commutative polynomials where the degree of individual factors can be greater than 1. If we simply treat them as commutative, as in [4], they may become zero. The proof of this lemma crucially relies on Claim 5. Unlike [4], one of the key distinctions in our setting is that the polynomial can be non-homogeneous in general.
The product sparsification step impacts both and the spurious part of the polynomial obtained after Step 1. We will address the effects on both components in a later step (see 2.4).
Lemma 21 (Product Sparsification Lemma).
Let where each is an -ordered polynomial of degree over . Then, there exists a subset with size at most such that if we treat the polynomials for , as non-commutative and the others () as commutative, then the polynomial remains non-zero. Furthermore, each polynomial may be non-homogeneous in general. Moreover, there is a small substitution automaton of size that performs this transformation.
In other words, for each n.c. variable (where ) in , there exists an -dimensional matrix β acting as a transition matrix of a substitution automaton of size . By evaluating on these matrices, the polynomial is transformed into a product-sparsified polynomial while maintaining its non-zero property.
Β Remark 22.
We remark that the proof of Lemma 21 relies solely on the fact that each polynomial in is an ordered polynomial. In particular, the proof does not depend on the fact that each is obtained from a circuit. Instead, the proof relies on the following facts:
-
1.
the number of summands is small,
-
2.
the boundary of each ordered polynomial can be efficiently identified using a small automaton
This makes it irrelevant where the polynomials originate from. As a result, we can apply this result whenever the given polynomial is represented as a sum of a small number of products of ordered polynomials (i.e., the number of summands is small). We will use this observation when working with higher-depth -regular circuits.
Since we do not know the index set , the substitution automaton guesses the index set . Since the index set is unknown, the automaton non-deterministically selects which polynomials will be treated as non-commutative. Given the structured nature of the polynomial , we can identify the boundary of each , ensuring that no additional spurious monomials are generated.
In the high-degree case (), either or followed by indicates the end of each , which can be easily recognized by the automaton. In the low-degree case (), the smaller degree allows us to identify the ends of each with a small automaton of size at most .
The substitution automaton selects at most of the polynomials to be treated as n.c. while treating the remaining ones as commutative. The variables in the chosen commutative polynomials are substituted with fresh commutative variables . In the selected commutative polynomials , each n.c. variable is replaced by the corresponding commuting variable . Additionally, to distinguish between different guesses made by the substitution automaton, we use fresh commutative block variables .
Let with .
We define .
If the automaton guesses the polynomials corresponding to the positions in the index set as n.c., the output of the substitution automaton for this specific guess will be
| (7) |
Note that is a commutative polynomial over . We have the following proposition about the output of the substitution automaton, whose proof we omit as it follows by a straightforward argument.
Proposition 23.
Let be the structured part of the polynomial obtained after Step 1. Let be the output of the substitution automaton on the structured polynomial and it can be expressed as
Moreover, if and only if .
Itβs evident that for distinct guesses and where , the monomials of and will not mix, since the sub-monomials and are distinct (see Equation 7). By Lemma 21, there exists index set with size at most , such that implying .
Next, we can simplify by using the Polynomial Identity Lemma for commutative polynomials to eliminate the commuting variables by substituting scalars. As a result, the remaining variables in the polynomial will be solely the n.c. variables .
Let us denote the new polynomial obtained after replacing the commuting variables by scalars in by .
This product sparsification step affects both the good part and the spurious part of the polynomial obtained after Step 1. We will denote the new polynomial derived from the spurious part by . In Step 2, we apply product sparsification to both and , which yields the n.c. polynomials and respectively (with all commuting variables replaced by scalars).
2.3 Step 3: Commutative Transformation of
In this final step, we prove a general commutative transformation lemma, which states that if we have a non-commutative polynomial represented as a sum of products of a small number of ordered polynomials (i.e., the number of terms in each product is small), we can convert it into a commutative polynomial while preserving its non-zeroness property. In particular, this step does not depend on the number of summands. The key idea is to introduce a small number of new commutative variables to perform this transformation.
We now describe how to transform into a commutative polynomial while preserving its non-zeroness. Note that is a polynomial over . If we treat as commutative by considering the n.c. variables as commutative, the exponents of the variable (for ) from different n.c. polynomials will be summed (or mixed). This mixing makes it impossible to guarantee that the resulting polynomial remains non-zero.
However, we can carefully convert into a commutative polynomial while preserving its non-zeroness. This is stated in the following lemma. In particular, there is a substitution automaton of size that carries out this commutative transformation.
Lemma 24 (Commutative Transformation Lemma).
Let , where and each is an -ordered polynomial over of degree . This can be expressed as , where each monomial has the form Then there exists a substitution automaton of size that transforms the non-commutative polynomial into a commutative polynomial while preserving non-zeroness. In particular,
In other words, for each n.c. variable (where ), there exists an -dimensional matrix β acting as a transition matrix of a substitution automaton. By evaluating on these matrices, the polynomial is transformed into a commutative polynomial , while maintaining its non-zero property.
Β Remark 25.
We remark that Lemma 24 is more general. The proof depends only on the fact that the given non-commutative polynomial can be represented as a sum of products of a small number of ordered polynomials (i.e., the number of terms in each product is small). Crucially, the proof of this commutative transformation does not depend on the fact that the polynomials are derived from -regular circuits or whether they are homogeneous. Instead, the proof relies on the following two facts:
-
1.
The number of terms in each product is small, and
-
2.
Each term in the product is an ordered polynomial so that boundaries can be identified efficiently using an automaton.
This makes the result applicable whenever the given non-commutative polynomial is represented as a sum of products of a small number of ordered polynomials. We will use this observation when working with higher-depth -regular circuits.
By applying Lemma 24, we can transform the polynomial , the structured part obtained after Step 2, into a commutative polynomial while preserving its non-zeroness. Let denote the resulting commutative polynomial derived from . Consequently, we establish that as a result of this lemma.
Next, given , where was obtained after Step 1, we can likewise transform into a commutative polynomial. Let represent the commutative polynomial obtained from after applying steps (2) and (3). If , we have successfully converted a n.c. polynomial , computed by a depth-5 -regular circuit, into a commutative polynomial that preserves non-zeroness. We can now check the non-zeroness of this commutative polynomial using the Polynomial Identity Lemma for commutative polynomials.
Assume . We will now detail how to modify the coefficients of certain monomials in , which was obtained in Step 1, before executing Steps (2) and (3). We establish that this coefficient modification maintains non-zeroness and remains non-zero even after the application of Steps (2) and (3).
2.4 Coefficient Modification by Modulo Counting Automaton
Assuming , and given that , it follows that and . To address this cancellation, we carefully modify certain monomial coefficients in the non-commutative polynomial prior to applying product sparsification (Lemma 21) and commutative transformation (Lemma 24). We show that these modifications ensure that the resulting polynomial remains non-zero after Steps (2) and (3).
2.5 Black-box Randomized PIT for Circuits
Each of these three steps, along with the coefficient modification step, results in its own set of matrices for evaluation. In particular, the matrices obtained in each step evaluate a n.c. polynomial derived from the previous step.
Given that our model operates as a black box, we cannot evaluate the polynomial in this manner. Instead, we require a single matrix substitution for each n.c. variable. To address this, we apply the matrix composition lemma to combine the substitution matrices from all four steps into a single matrix for each n.c. variable. This approach allows us to establish an efficient randomized polynomial identity testing (PIT) algorithm for depth-5 -regular circuits, as demonstrated in the following theorem.
Theorem 26.
Let be a non-commutative polynomial of degree over , computed by a circuit of size . Then if and only if it does not evaluate to zero on the matrix algebra .
The main idea of the proof is to compose the substitution matrices derived from the automata in Steps (1)β(3) using the matrix composition lemma.
Β Remark 27.
We observe that the commutative polynomial is an -ordered polynomial over , in the sense that we can arrange the variables in each monomial of in increasing order according to the first index of the variables, allowing for some exponents to be zero as specified in Definition 3.
This is summarized in the following theorem.
Theorem 28.
Let be a non-zero non-commutative polynomial of degree over computed by a circuit of size . Then, can be transformed into an -ordered polynomial while preserving its non-zeroness. In particular, there exists a small substitution automaton of size that performs this transformation.
In other words, for each n.c. input variable (where ) in , there exists an -dimensional matrix β acting as a transition matrix of a substitution automaton of size . By evaluating on these matrices, the polynomial is transformed into an -ordered polynomial while preserving its non-zeroness (in one particular entry of the resulting matrix).
2.5.1 An Automaton for Theorem 28
We can envision a substitution automaton for Theorem 28 as follows. By applying the matrix composition Lemma, we can combine the substitution matrices obtained from Steps (1) through (3), along with the modifications to coefficients, into a single substitution matrix of dimension . We then evaluate the polynomial as .
The output of the substitution automaton is defined as the sum of several entries of the matrix (refer to the polynomial defined in the proof of Theorem 26).
It is crucial to note that each entry of the matrices in is a monomial over , where are commutative variables from Step (1), and are commutative variables from Step (2), while contains commutative variables from Step (3).
As noted in Steps (1) and (2), we can replace the commutative variables in with scalars without losing the non-zeroness of the output polynomial. Since these commutative variables are disjoint, for simplicity in the analysis, we substitute them with scalars. That is, there exist scalar substitutions for the variables in such that non-zeroness is preserved. To avoid carrying these variables throughout all derivations, we replace them with scalars, and by the DeMilloβLiptonβSchwartzβZippel lemma, such substitutions are guaranteed to exist. After these replacements, each entry of the matrices in transforms into scalar multiples of variables over . We denote the resulting matrices as .
We can construct a substitution automaton such that the substitution matrix for the variable is given by the matrix , where the entries are scalar multiples of variables in . These entries correspond to transitions that substitute a n.c. variable with a scalar multiple of a variable in . This automaton effectively transforms into an -ordered polynomial while preserving its non-zeroness.
We can view the resulting -ordered polynomial as a n.c. polynomial over . This idea is crucial for developing black-box randomized polynomial identity testing (PIT) for circuits of larger depths using induction.
Β Remark 29.
Note that we only view as a n.c. polynomial and no explicit conversion or transformation is done.
It is important to note that the monomials of do not correspond to a single entry of the output matrix . Instead, they represent the sum of several entries, as indicated in the polynomial defined in the proof of Theorem 26. Effectively, the column numbers of these entries form the set of accepting states for the new automaton , with row 1 serving as the starting state of this automaton.
3 Black-Box Randomized PIT for Small Depth +-Regular Circuits
In this section, we present an efficient randomized black-box polynomial identity testing (PIT) algorithm for polynomials computed by small-depth -regular circuits.
Theorem 30.
Let be a non-commutative polynomial of degree over , computed by a -regular circuit of size and depth . Then, if and only if is not identically zero on , where and is sufficiently large.
3.1 Transforming into an ordered polynomial
Similar to depth-5 case, the polynomial computed by a size depth -regular circuit can be converted into an ordered polynomial using a substitution automaton of size at most . We state the result in the following theorem.
Theorem 31.
Let be a non-zero n.c. polynomial of degree over variables , computed by a -regular circuit of size and depth . Let denote the number of layers in the circuit. Then there exists a substitution automaton of size at most such that the polynomial is an -ordered polynomial. Moreover, this transformation preserves non-zeroness:
3.2 Randomized Identity Test for Small Depth +-Regular Circuits
We are now ready to state and prove the main theorem.
Theorem 32.
Let be a non-commutative polynomial of degree over , computed by a -regular circuit of size and depth . We denote the number of addition (i.e., ) layers in the circuit by . Then, if and only if is not identically zero on , where and is sufficiently large.
Proof.
We use Theorem 31 to convert the n.c. polynomial into an -ordered polynomial , while preserving its non-zeroness. As discussed above, there is a substitution automaton of size bounded by , which results in substitution matrices of dimension . By Claim 5, can be treated as a commutative polynomial while preserving its non-zeroness. Using the DeMillo-Lipton-Schwartz-Zippel lemma, we can have a randomized PIT for depth -regular circuit of size using matrices of dimension at most . This completes the proof of the theorem.
References
- [1] Manindra Agrawal, Rohit Gurjar, Arpita Korwar, and Nitin Saxena. Hitting-sets for ROABP and sum of set-multilinear circuits. SIAM J. Comput., 44(3):669β697, 2015. doi:10.1137/140975103.
- [2] Avraham Shimshon Amitsur and Jacob Levitzki. Minimal identities for algebras. Proceedings of the American Mathematical Society, 1(4):449β463, 1950.
- [3] Vikraman Arvind, Pushkar S. Joglekar, Partha Mukhopadhyay, and S. Raja. Randomized polynomial time identity testing for noncommutative circuits. In Hamed Hatami, Pierre McKenzie, and Valerie King, editors, Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, Montreal, QC, Canada, June 19-23, 2017, pages 831β841. ACM, 2017. doi:10.1145/3055399.3055442.
- [4] Vikraman Arvind, Pushkar S. Joglekar, Partha Mukhopadhyay, and S. Raja. Randomized polynomial-time identity testing for noncommutative circuits. Theory of Computing, 15:1β36, 2019. doi:10.4086/toc.2019.v015a007.
- [5] G. V. Sumukha Bharadwaj and S. Raja. Randomized black-box PIT for small depth +-regular non-commutative circuits, 2025. doi:10.48550/arXiv.2411.06569.
- [6] Andrej Bogdanov and Hoeteck Wee. More on noncommutative polynomial identity testing. In 20th Annual IEEE Conference on Computational Complexity (CCCβ05), pages 92β99. IEEE, 2005. doi:10.1109/CCC.2005.13.
- [7] Michael A. Forbes and Amir Shpilka. Quasipolynomial-time identity testing of non-commutative and read-once oblivious algebraic branching programs. In 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, pages 243β252. IEEE, 2013. doi:10.1109/FOCS.2013.34.
- [8] Laurent Hyafil. The power of commutativity. In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977, pages 171β174. IEEE Computer Society, 1977. doi:10.1109/SFCS.1977.31.
- [9] Oscar H. Ibarra and Shlomo Moran. Probabilistic algorithms for deciding equivalence of straight-line programs. Journal of the ACM (JACM), 30(1):217β228, 1983. doi:10.1145/322358.322373.
- [10] Noam Nisan. Lower bounds for non-commutative computation. In Proceedings of the twenty-third annual ACM symposium on Theory of computing, pages 410β418, 1991.
- [11] Ran Raz and Amir Shpilka. Deterministic polynomial identity testing in non-commutative models. Computational Complexity, 14(1):1β19, 2005. doi:10.1007/s00037-005-0188-8.
