Abstract 1 Introduction 2 Black-Box PIT for πšΊβ’πš·βˆ—β’πšΊβ’πš·βˆ—β’πšΊ Circuits 3 Black-Box Randomized PIT for Small Depth +-Regular Circuits References

Randomized Black-Box PIT for Small Depth +-Regular Non-Commutative Circuits

G. V. Sumukha Bharadwaj ORCID Department of Computer Science & Engineering, Indian Institute of Technology Tirupati, India S. Raja ORCID Department of Computer Science & Engineering, Indian Institute of Technology Tirupati, India
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 sO⁒(d2) time, where s and d 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 f is a non-zero non-commutative polynomial in n variables over the field 𝔽, computed by a depth-d +-regular circuit of size s, then f cannot be a polynomial identity for the matrix algebra 𝕄N⁒(𝔽), where N=sO⁒(d2) and the size of the field 𝔽 depends on the degree of f. Interestingly, the size of the matrices does not depend on the degree of f. 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-Box
Copyright and License:
[Uncaptioned image] © G. V. Sumukha Bharadwaj and S. Raja; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation β†’ Algebraic complexity theory
Related Version:
Full Version: https://arxiv.org/abs/2411.06569 [5]
Acknowledgements:
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 Roy

1 Introduction

The non-commutative polynomial ring, denoted by π”½β’βŸ¨X⟩, over a field 𝔽 in non-commuting variables X, consists of non-commuting polynomials in X. These are just 𝔽-linear combinations of words (we call them monomials) over the alphabet X={x1,…,xn}. 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 π”½β’βŸ¨X⟩, where multiplication is non-commutative (i.e., for distinct x,y∈X, x⁒yβ‰ y⁒x). Designing an efficient deterministic algorithm for non-commutative polynomial identity testing is a major open problem. Let fβˆˆπ”½β’βŸ¨X⟩ be a polynomial represented by a non-commutative arithmetic circuit C. In this work, we assume that the polynomial f is given by a black-box access to C, meaning we can evaluate the polynomial f on matrices with entries from 𝔽 or an extension field. Note that the degree of an n-variate polynomial computed by the circuit C of size s can be as large as 2s and the sparsity, i.e., the number of non-zero monomials, can be as large as n2s. For example, the non-commutative polynomial (x+y)2s has degree 2s, doubly exponential sparsity 22s, and has a circuit of size O⁒(s).

Bogdanov and Wee [6] have given an efficient randomized PIT algorithm for non-commutative circuits computing polynomials of degree d=p⁒o⁒l⁒y⁒(s,n). Their algorithm is based on the result of Amitsur-Levitzki [2], which states the existence of matrix substitutions M=(M1,M2,…,Mn) such that the matrix f⁒(M1,M2,…,Mn) is not the zero matrix, where the dimension of the matrices in M depends linearly on the degree d of the polynomial f. [2] shows that a non-zero non-commutative polynomial f of degree 2⁒dβˆ’1 does not vanish on the matrix algebra β„³d⁒(𝔽). 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 k, then identity testing can be performed using matrices of dimension O⁒(log⁑k). 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 fβˆˆπ”½β’βŸ¨X⟩ is computed by a depth-3 +-regular circuit of size s, then f cannot be a polynomial identity for the matrix algebra 𝕄s⁒(𝔽) for a sufficiently large field 𝔽. That is, the polynomial f cannot be identically zero under all substitutions from the matrix algebra 𝕄s⁒(𝔽) for its variables. In other words, there exists at least one matrix substitution for the variables in f 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 fβˆˆπ”½β’βŸ¨X⟩ is a non-zero non-commutative polynomial computed by a depth-d +-regular circuit of size s, then f cannot be a polynomial identity for the matrix algebra 𝕄N⁒(𝔽), with N=sO⁒(d2) and the size of the field 𝔽 depends on the degree of polynomial f. 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 f be a non-commutative polynomial of degree D over X={x1,…,xn} computed by a +-regular circuit of depth d and size s. Then fβ‰’0 if and only if f is not identically zero on the matrix algebra 𝕄N⁒(𝔽), with N=sO⁒(d2) and 𝔽 is sufficiently large.

For degree D non-zero non-commutative polynomial f, the classical Amitsur-Levitzki [2] theorem guarantees that f does not vanish on the matrix algebra β„³D2+1⁒(𝔽). If D=2Ω⁒(s), this gives us an exponential time randomized PIT algorithm [6], where s is the size of the circuit computing f. 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 f is computed by a +-regular circuit of size s and depth o⁒(s/log⁑s), we can determine if f is identically zero or not using a 2o⁒(s) time randomized PIT algorithm, which is exponentially faster than the existing methods. In particular, if depth is O⁒(1) 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 s.

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. 1.

    A structured transformation using substitution automata, which converts the non-commutative polynomial into a more structured form while introducing spurious monomials.

  2. 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. 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 s. 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 fβˆˆπ”½β’βŸ¨X⟩ is a n.c. polynomial of degree D computed by a depth-5 +-regular circuit of size s, then there exists an efficient randomized algorithm for identity testing the polynomial f. The main result of this section is the following theorem.

Theorem 2.

Let f be a n.c. polynomial of degree D over X={x1,…,xn} computed by a Ξ£β’Ξ βˆ—β’Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Then fβ‰’0 if and only if f is not identically zero on the matrix algebra 𝕄s6⁒(𝔽).

The polynomial f can be written as follows: f=βˆ‘i∈[s]∏j∈[D2]Qi⁒j. Here, the degree of each Qi⁒j is D1, where i∈[s],j∈[D2], and it can be computed by a Ξ£β’Ξ βˆ—β’Ξ£ circuit of size at most s. We establish Theorem 2 in three steps. First, we transform each polynomial Qi⁒j 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 sβˆˆβ„•βˆͺ{0}. We call a n.c. polynomial g over ΞΎ={ΞΎ1,ΞΎ2,…,ΞΎs} as an s-ordered polynomial if it is of the form

g=βˆ‘i1β‰₯0,…,isβ‰₯0Ξ±iΒ―.ΞΎ1i1⁒ξ2i2⁒…⁒ξsis,Β whereΒ Ξ±iΒ―βˆˆπ”½.
β–ΆΒ Remark 4.

In the above definition, it is important to note that ijβ‰₯0 for each j∈[s]. However, in this paper, we will focus on a special case of s-ordered polynomials, where ij>0, for each j∈[sβˆ’1] and isβ‰₯0.

We have the following observation about the s-ordered polynomial.

Claim 5.

Suppose gβˆˆπ”½β’βŸ¨ΞΎβŸ© is an s-ordered polynomial. Let g(c) be the polynomial obtained by treating variables in ΞΎ as commutative. Then, gβ‰’0 if and only if g(c)β‰’0.

β–ΆΒ Remark 6.

We will later allow coefficients Ξ±iΒ― 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 ΞΎ1β„“1⁒ξ2β„“2⁒⋯⁒ξkβ„“k, where β„“1,β„“2,…,β„“kβ‰₯0. In other words, it is a monomial in the variables ΞΎ1,ΞΎ2,…,ΞΎk where the variables appear in the fixed order ΞΎ1,ΞΎ2,…,ΞΎk, but the exponents β„“i 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 Qi⁒j into an s-ordered polynomial. To do this, we introduce a new set of commutative and n.c. variables as follows.
Let Z={z1,…,zn} and let Y={yi⁒j∣i∈[n]⁒ and ⁒j∈[sβˆ’1]}. The variables in Y and Z are commutative. Let ΞΎ={ΞΎ1,ΞΎ2,β‹―,ΞΎs} 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 f. The corresponding sΓ—s substitution matrix 𝐌𝐱𝐒 for each variable xi is defined from this substitution automaton.

Output of the Automaton

Let 𝐌=f⁒(𝐌𝐱𝟏,𝐌𝐱𝟐,…,𝐌𝐱𝐧). Then we consider the output of the automaton as:

fβ€²=𝐌⁒[q0,qsβˆ’1] (1)

which is a polynomial in the variables ΞΎβŠ”YβŠ”Z.

Suppose a monomial m is computed by a +-regular circuit C. The monomial m has non-zero coefficient in ∏j∈[D2]Qi⁒j for some i∈[s]. This monomial can be written as m=m1β‹…m2⁒⋯⁒mD2, where each sub-monomial mj∈XD1 has non-zero coefficient in Qi⁒j.

Next, we consider the output of the substitution automaton π’œ on m. The automaton knows how to replace/substitute any variable xj at any state q. Suppose m=xi1.xi2.xi3⁒…⁒xiD, the output of the substitution automaton π’œ on the monomial m is given by

𝐌𝐦⁒[q0,qsβˆ’1]

where 𝐌𝐦=πŒπ±π’πŸβ‹…πŒπ±π’πŸβ’β‹―β’πŒπ±π’πƒ. Each variable xi,i∈[n], is substituted by a degree two monomial over ΞΎβŠ”YβŠ”Z (one n.c. variable and one commutative variable). Consequently, the automaton transforms the monomial m into a degree 2⁒D polynomial over ΞΎβŠ”YβŠ”Z. Importantly, the new n.c. degree (i.e., sum of exponents of ΞΎ variables) equals to the original degree D.

Computation by the substitution automaton

The automaton has exponentially many paths (with states allowed to repeat) from q0 to qsβˆ’1, all labeled by the same monomial m. Each computation path transforms the monomial m, originally over the variables X, into a new monomial over ΞΎβŠ”YβŠ”Z.

For any path ρ from q0 to qsβˆ’1, we denote the transformed monomial as mρ. The polynomial computed by 𝐌𝐦⁒[q0,qsβˆ’1] is given by

βˆ‘Ο:q0β’β†π‘šβ’qsβˆ’1mρ,

which is a polynomial in 𝔽⁒[YβŠ”Z]⁒⟨ξ⟩. Recall that n.c. polynomials are 𝔽-linear combinations of words/strings (called monomials). For a n.c. monomial m, we can identify the variable at position e in m, where 1≀e≀|m|.

Recall that m can be written as m=m1β‹…m2⁒⋯⁒mD2. Each computation path ρ substitutes each n.c. variable in m according to the automaton’s transition rules, resulting in a monomial mρ over new variables ΞΎβŠ”YβŠ”Z. We group all commutative variables appearing in mρ and denote it by cm, which is a commutative monomial over YβŠ”Z. The resulting monomial mρ has the following form.

Proposition 8.

Let ρ be a path from q0 to qsβˆ’1 labeled by the monomial m. The transformed monomial mρ can be expressed in the form: mρ=cmβ‹…m1β€²β‹…m2′⁒⋯⁒mNβ€², where Nβ‰₯1, cm is a monomial over YβŠ”Z, and each mβ„“β€² (for β„“βˆˆ[N]) is given by mβ„“β€²=ΞΎ1β„“1.ΞΎ2β„“2⁒⋯⁒ξsβ„“s, where β„“k>0 for k∈[sβˆ’1], and β„“sβ‰₯0.

For iβ‰ j, the exponents of the ΞΎ variables in the sub-monomials miβ€² and mjβ€² can vary. In particular, it is generally possible that (i1,i2,…,is)β‰ (j1,j2,…,js).

Types of sub-monomials: Two cases

It is important to note that the number of new sub-monomials miβ€², denoted as N, may not be equal to D2. This is because N depends on how many times the path ρ returns to the initial state q0. Also, the sum of exponents of ΞΎ variables in each sub-monomial miβ€² in mρ can vary. This leads us to consider two possible cases for each computation path ρ that starts at q0 and ends at qsβˆ’1: (recall m=m1β‹…m2⁒⋯⁒mD2).

  • β– 

    Case 1: For each j<D2, the boundary between mj and mj+1 in m is respected by the path ρ. In this computation path ρ, the state of π’œ is at q0 precisely when it begins processing each sub-monomial mj∈XD1 for j∈[D2]. This means that when π’œ reads the last variable of the sub-monomial mjβˆ’1 (for j>1), it transitions back to state q0. As a result, π’œ is in state q0 exactly when it reads the first variable of the sub-monomial mj. This holds true for all sub-monomials mj where j∈[N]. By Proposition 8, the transformed monomial can be expressed as: mρ=cmβ‹…m1β€²β‹…m2′⁒⋯⁒mNβ€² where cm is a monomial over YβŠ”Z and each mβ„“β€² is of form mβ„“β€²=ΞΎ1β„“1⁒⋯⁒ξsβ„“s. In this case, we observe that N=D2 since there are exactly D2 sub-monomials in m. or

  • β– 

    Case 2: For some j<D2, the boundary between mj and mj+1 in m is not respected by the path ρ. In this case, there exists a sub-monomial mj, where j∈[D2], such that either (1) the computation path ρ visits the state q0 while processing the variable located at position c, where 1<c≀D1. This means ρ returns to q0 in the middle of processing mj. or (2) the path ρ is in a state qj,jβ‰ 0 (i.e., other than the initial state q0) while processing the variable that appears at the first position of the sub-monomial mj. By Proposition 8, the transformed monomial can be expressed as: mρ=cmβ‹…m1β€²β‹…m2′⁒⋯⁒mNβ€² where cm is a monomial over YβŠ”Z and each mβ„“β€² is of form mβ„“β€²=ΞΎ1β„“1⁒⋯⁒ξsβ„“s. In this case, we cannot definitively say whether N is equal to D2 or not.

β–ΆΒ Remark 9.

Any path ρ from q0 to qsβˆ’1 labeled by a monomial m∈XD 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 mρ. Recall that D1 is the degree of Qi⁒j polynomial for all i∈[s] and j∈[D2].

Claim 10.

Let ρ be a path from q0 to qsβˆ’1 labeled by the monomial m that satisfies Case 1. In this case, for each sub-monomial mβ„“β€², where β„“βˆˆ[D2], of the monomial mρ, the sum of the exponents of its n.c. variables is D1. That is, βˆ‘j∈[s]β„“j=D1.

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 q0 to qsβˆ’1 labeled by the monomial m that satisfies Case 2. In this case, there exists a sub-monomial mβ„“β€², where β„“βˆˆ[N], in the obtained monomial mρ such that the sum of the exponents of its n.c. variables is not equal to D1. That is, βˆ‘j∈[s]β„“jβ‰ D1.

We crucially utilize Claims 10 and 11 later to ensure the non-zeroness of the transformed commutative polynomial.

The structured part and the spurious part

For a monomial m=m1β‹…m2⁒⋯⁒mD2, we define the polynomial f^m as the sum of all monomials that are obtained from computation paths ρ labeled by m from Case 1 above. Similarly, the polynomial Fm is defined as the sum of all monomials obtained from computation paths ρ labeled by m from Case 2 above. We consider the output of the substitution automaton π’œ on the given n.c. polynomial fβˆˆπ”½β’βŸ¨X⟩. The output of the automaton is the sum of all monomials produced by computation paths ρ starting from q0 and leading to qsβˆ’1, with these paths labeled by monomials generated by a depth-5 +-regular circuit.

Let M⁒o⁒n⁒(f) be the set of all monomials computed/generated by the given depth-5 +-regular circuit computing f. That is, suppose m is computed by ∏j∈[D2]Qi,j for some i∈[s], with coefficient Ξ±m,i then Ξ±m,iβ‹…m∈M⁒o⁒n⁒(f). Let

f^=βˆ‘Ξ±m,iβ‹…m∈M⁒o⁒n⁒(f)f^Ξ±m,iβ‹…m (2)
F=βˆ‘Ξ±m,iβ‹…m∈M⁒o⁒n⁒(f)FΞ±m,iβ‹…m. (3)

We refer to F 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 Qi,j polynomials are numbered from 1 to D1. For IβŠ†[D1] with size at most sβˆ’1, define Qi,j,I as the polynomial obtained from Qi,j by treating linear forms indexed by I 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 I with double-indexed commutative variables Y, as shown in the substitution automaton.

We have the following claim regarding the polynomial f^.

Claim 12.

The polynomial f^ can be expressed as f^=βˆ‘i∈[s]∏j∈[D2]βˆ‘IβŠ†[D1],|I|=sβˆ’1Qi,j,IΓ—ΞΎI where ΞΎI=ΞΎ1β„“1.ΞΎ2β„“2βˆ’β„“1⁒⋯⁒ξsDβˆ’β„“sβˆ’1 for I={β„“1,β„“2,β‹―,β„“sβˆ’1} such that β„“1<β„“2<β‹―<β„“sβˆ’1, and Qi,j,I is the polynomial obtained from Qi,j by treating the linear forms indexed by I as non-commuting and the rest of the linear forms as commuting.

Let

Q^i⁒j=βˆ‘IβŠ†[D1],|I|=sβˆ’1Qi,j,IΓ—ΞΎI. (4)

Then we can express f^ as:

f^=βˆ‘i∈[s](∏j∈[D2]Q^i⁒j). (5)

The output of the substitution automaton π’œ on the polynomial f is given by:

fβ€²=f^+F.

This is stated in the following claim.

Claim 13.

Let f be a homogeneous n.c. polynomial computed by a Ξ£β’Ξ βˆ—β’Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Then, the output fβ€²βˆˆπ”½β’[YβŠ”Z]⁒⟨ξ⟩ of the substitution automaton π’œ on the polynomial f can expressed as fβ€²=f^+F, where f^ is the structured part as defined in Equation 5 and F is the spurious part as defined in Equation 3.

2.1.1 Non-zeroness of 𝒇^

We establish that fβ€² is non-zero by first proving that f^ 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 Z={z1,…,zn} be the set of new commuting variables. Let gβˆˆπ”½β’βŸ¨X⟩ be a polynomial of degree D computed by a Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Then g can be expressed as g=βˆ‘i∈[s]∏j∈[D]Li⁒j, where Li⁒j are homogeneous linear forms. Let Pi=∏j∈[D]Li⁒j, i∈[s]. We have g=βˆ‘i∈[s]Pi. For IβŠ†[D] with size at most sβˆ’1, define Pi,I as the polynomial obtained from Pi by treating linear forms indexed by I as non-commuting and the rest of the linear forms as commuting. We replace each n.c. variable xi appearing in [D]βˆ–I by a new commuting variable zi.

The number of n.c. linear forms appearing in Pi,Iβˆˆπ”½β’[Z]⁒⟨X⟩ is bounded by |I|<s. This is because the linear forms that appear with indices other than those in I are treated as commutative. Consequently, the number of non-commutative linear forms in Pi,Iβˆˆπ”½β’[Z]⁒⟨X⟩ is bounded by |I|<s. We refer to this as the n.c. degree of the polynomial Pi,I. Since this degree is small, Pi,I can be converted into a commutative polynomial while preserving its non-zeroness. Let Pi,I(c) denote the commutative polynomial obtained from Pi,I and define gI=βˆ‘i∈[s]Pi,I(c). To keep all guesses of the set I distinct, additional commutative variables ΞΎ={ΞΎ1,ΞΎ2,β‹―,ΞΎk+1} are introduced in [4]. The transformed commutative polynomial obtained in [4] is given by:

g⋆=βˆ‘IβŠ†[D1],|I|=kgIΓ—ΞΎIβ€² (6)

where ΞΎIβ€²=ΞΎ1β„“1βˆ’1.ΞΎ2β„“2βˆ’β„“1βˆ’1⁒⋯⁒ξk+1Dβˆ’β„“k with I={β„“1,β„“2,β‹―,β„“k}. The degree of the monomial ΞΎIβ€² is Dβˆ’|I|.

By Lemma 6.2 in [4], there exists a set of indices IβŠ†[D], |I|<s, such that gIβ‰ 0 implying g⋆≠0. Replacing ΞΎIβ€² with ΞΎI=ΞΎ1β„“1.ΞΎ2β„“2βˆ’β„“1⁒⋯⁒ξk+1Dβˆ’β„“k in g⋆ retains the non-zeroness of g⋆ while the degree of ΞΎI becomes D.

β–ΆΒ Remark 14.
  1. 1.

    Without loss of generality, we assume that the automaton nondeterministically guesses exactly (sβˆ’1) indices, i.e., |I|=sβˆ’1 and the rest as commutative. If |I|<sβˆ’1, adding more indices still preserves non-zeroness.

  2. 2.

    If the degree of the polynomial g is smaller than (sβˆ’1), we will handle this small-degree case separately. For now, we assume D1β‰₯sβˆ’1 in Lemma 15.

We have the following lemma that shows f^β‰ 0.

Lemma 15.

Let f=βˆ‘i∈[s]∏j∈[D2]Qi⁒j be a n.c. polynomial over X={x1,β‹―,xn}, computed by a Ξ£β’Ξ βˆ—β’Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Assume that each polynomial Qi⁒j (for i∈[s],j∈[D2]) has degree D1β‰₯sβˆ’1. Define f^βˆˆπ”½β’[YβŠ”Z]⁒⟨ξ⟩ as f^=βˆ‘i∈[s]∏j∈[D2]Q^i⁒j, where Q^i⁒j=βˆ‘IβŠ†[D1],|I|=sβˆ’1Qi,j,IΓ—ΞΎI and Qi,j,I denotes the polynomial obtained from Qi,j by treating linear forms indexed by I 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 f^ (from Lemma 15) still has an exponential degree in ΞΎ variables, but each Q^i⁒j is structured as s-ordered polynomials. Importantly, f^ does not contain any monomials from the spurious polynomial F=βˆ‘m∈M⁒o⁒n⁒(f)Fm.

β–ΆΒ Remark 16.

If the degree D1 of each polynomial Qi⁒j is less than sβˆ’1 (we call it as small degree case), this case requires a separate treatment.

We now show that each Qi⁒j polynomial can be converted into a structured polynomial Q^i⁒j. The key property of this transformation is that there is a bijection between the monomials of Qi⁒j and those of Q^i⁒j, which ensures that Q^i⁒j≑0 if and only if Qi⁒j≑0.

Proposition 17.

For each i∈[s], j∈[D2], let Qi⁒jβˆˆπ”½β’βŸ¨X⟩ be a n.c. polynomial computed by Ξ£β’Ξ βˆ—β’Ξ£ circuit. There exists an explicit substitution automaton of size O⁒(s) that transforms Qi⁒j into a polynomial Q^i⁒jβˆˆπ”½β’[YβˆͺZ]⁒⟨ξ⟩ such that Q^i⁒j≑0 if and only if Qi⁒j≑0.

It is easy to observe the following because the first index of each variable zℓ⁒k indicates the position of the variable xk within each Qi⁒j.

Observation 18.

Suppose Q^i⁒jβ‰ 0. If we treat the variables zℓ⁒k,β„“βˆˆ[c],k∈[n], appearing in Q^i⁒j as commuting, the resulting commutative polynomial Q^i⁒j(c) remains non-zero.

This guarantees that for the small degree case, we can transform the polynomial f similarly to Lemma 15, ensuring that each Qi⁒j is transformed into Q^i⁒j which can be regarded as a commutative polynomial without making it zero. While Q^i⁒j remains a n.c. polynomial over Z, we acknowledge that our model is black-box and we do not know the value of D1. However, for the purpose of analyzing the existence of matrices of small dimensions for identity testing, we can assume D1 is known.

Thus, we can successfully transform the given polynomial in both scenarios – whether D1β‰₯sβˆ’1 or D1<sβˆ’1 – ensuring that the resulting Q^i⁒j 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 Q^i⁒j polynomials. This is because if we simply treat all Q^i⁒j as commutative, the variables across different Q^i⁒j polynomials could mix, which may lead to cancellations. At this stage, the variables in Z are still considered n.c. in the polynomial f^.

2.1.2 Non-zeroness of 𝒇′

By Lemma 15, we established that f^β‰’0. Next, we show that the polynomial fβ€²=f^+Fβ‰’0. In f^, for every monomial m=m1⁒m2⁒⋯⁒mD2, and for all β„“βˆˆ[D2] each mβ„“ takes the form ΞΎ1β„“1.ΞΎ2β„“2⁒⋯⁒ξsβ„“s where βˆ‘k∈[s]β„“k=D1 (see Claim 10). However, this property does not hold for monomials appearing in F (see Claim 11). Specifically, for any monomial mβ€²=m1′⁒m2′⁒⋯⁒mNβ€² in F, there exists a sub-monomial maβ€²=ΞΎ1a1.ΞΎ2a2⁒⋯⁒ξsas such that βˆ‘h∈[s]ahβ‰ D1. This distinction ensures that the monomials of f^ do not cancel with those of F. Thus, we conclude that fβ€²=f^+Fβ‰’0. It’s important to note that if f≑0 then clearly f′≑0 as well (converse statement). We note these observations in the following claim.

Claim 19.

Let f be a homogeneous n.c. polynomial computed by a depth-5 +-regular circuit of size s. Then, f≒0 if and only if f′=f^+F≒0.

Next, we can simplify the polynomial fβ€² using the Polynomial Identity Lemma for commutative polynomials. We replace the commuting variables YβŠ”Z with scalar substitutions from 𝔽 or an extension field, yielding a non-zero polynomial. Let us denote this resulting non-zero polynomial as f~. After this substitution, the only remaining variables in f~ will be n.c. variables ΞΎ.

Let us denote new polynomials obtained after replacing the commuting variables by scalars in f^ and F by f^1 and F1 respectively. That is, f~=f^1+F1.

One of the goals of this transformation is to ensure that if ξs is followed by ξ1 in the transformed monomials (for all such occurrences of ξs followed by ξ1), there must be a transition from Qi,j to Qi,j+1 for some j∈[D2]. As noted, we cannot be sure of this. However, all those monomials where this transition occurs are captured in the structured part f^1. Since there is no such structure in F1, we cannot conclude anything about the monomials appearing in the spurious part F1.

β–ΆΒ Remark 20.

It is important to note that each monomial of f~ 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 f~βˆˆπ”½β’βŸ¨ΞΎβŸ©, which was the output of Step (1). This transformation affects both the good part f^1 and the spurious part F1 of the polynomial f~βˆˆπ”½β’βŸ¨ΞΎβŸ©. We begin by analyzing the transformation of f^1, which is defined as:

f^1=βˆ‘i∈[s](∏j∈[D2]Q^i⁒j),

where each Q^i⁒j is an s-ordered polynomial in the n.c. variables ΞΎ={ΞΎ1,…,ΞΎs}. Note that each Q^i⁒j is a homogeneous and degree D1 n.c. polynomial.

The key observation is that we can preserve the non-zeroness of f^1 by retaining at most sβˆ’1 of the s-ordered polynomials Q^i⁒j in each product ∏j∈[D2]Q^i⁒j 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 Q^i⁒j polynomial can be non-homogeneous in general.

The product sparsification step impacts both f^1 and the spurious part F1 of the polynomial f~ 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 f^1=βˆ‘i∈[s]∏j∈[D2]Q^i⁒j, where each Q^i⁒j is an s-ordered polynomial of degree D1 over ΞΎ={ΞΎ1,ΞΎ2,…,ΞΎs}. Then, there exists a subset IβŠ†[D2] with size at most sβˆ’1 such that if we treat the polynomials Q^i⁒j for j∈I, as non-commutative and the others (jβˆ‰I) as commutative, then the polynomial f^1 remains non-zero. Furthermore, each Q^i⁒j polynomial may be non-homogeneous in general. Moreover, there is a small substitution automaton of size O⁒(s) that performs this transformation.

In other words, for each n.c. variable ΞΎi (where i∈[s]) in f^1, there exists an O⁒(s)-dimensional matrix – acting as a transition matrix of a substitution automaton of size O⁒(s). By evaluating f^1 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 Q^i⁒j polynomial in f^1 is an ordered polynomial. In particular, the proof does not depend on the fact that each Q^i⁒j is obtained from a Ξ£β’Ξ βˆ—β’Ξ£ circuit. Instead, the proof relies on the following facts:

  1. 1.

    the number of summands is small,

  2. 2.

    the boundary of each ordered polynomial can be efficiently identified using a small automaton

This makes it irrelevant where the Q^i⁒j 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 I, the substitution automaton guesses the index set I. Since the index set IβŠ†[D2] is unknown, the automaton non-deterministically selects which Q^i⁒j polynomials will be treated as non-commutative. Given the structured nature of the polynomial f^, we can identify the boundary of each Q^i⁒j, ensuring that no additional spurious monomials are generated.

In the high-degree case (D1β‰₯sβˆ’1), either ΞΎs or ΞΎsβˆ’1 followed by ΞΎ1 indicates the end of each Q^i⁒j, which can be easily recognized by the automaton. In the low-degree case (D1<sβˆ’1), the smaller degree allows us to identify the ends of each Q^i⁒j with a small automaton of size at most sβˆ’2.

The substitution automaton selects at most (sβˆ’1) of the Q^i⁒j polynomials to be treated as n.c. while treating the remaining ones as commutative. The ΞΎ variables in the chosen commutative polynomials Q^i⁒j are substituted with fresh commutative variables ΞΆ={ΞΆ1,…,ΞΆs}. In the selected commutative polynomials Q^i⁒j, each n.c. variable ΞΎk,k∈[s] is replaced by the corresponding commuting variable ΞΆk. Additionally, to distinguish between different guesses made by the substitution automaton, we use fresh commutative block variables Ο‡={Ο‡1,…,Ο‡s}.

Let J={j1,j2,…,jsβˆ’1}βŠ†[D2] with j1<j2<…<jsβˆ’1.
We define Ο‡J=Ο‡1j1βˆ’1.Ο‡2j2βˆ’j1βˆ’1⁒…⁒χsD2βˆ’jsβˆ’1. If the automaton guesses the Q^i⁒j polynomials corresponding to the positions in the index set J as n.c., the output gJ of the substitution automaton for this specific guess J will be

gJ=βˆ‘i∈[s](∏j∈JΒ―Q^i⁒j)⁒(∏j∈JQ^i⁒j)Γ—Ο‡J. (7)

Note that (∏j∈JΒ―Q^i⁒j) is a commutative polynomial over ΞΆ={ΞΆ1,…,ΞΆs}. 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 f^1βˆˆπ”½β’βŸ¨ΞΎβŸ© be the structured part of the polynomial obtained after Step 1. Let f^1β€² be the output of the substitution automaton on the structured polynomial f^1 and it can be expressed as

f^1β€²=βˆ‘JβŠ†[D2],|J|=sβˆ’1gJ.

Moreover, f^1β‰ 0 if and only if f^1β€²β‰ 0.

It’s evident that for distinct guesses J and Jβ€² where Jβ‰ Jβ€², the monomials of gJ and gJβ€² will not mix, since the sub-monomials Ο‡J and Ο‡Jβ€² are distinct (see Equation 7). By Lemma 21, there exists index set JβŠ†[D2] with size at most sβˆ’1, such that gJβ‰ 0 implying f^1β€²β‰ 0.

Next, we can simplify f^1β€² 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 f1^β€² by f^2.

This product sparsification step affects both the good part f^1 and the spurious part F1 of the polynomial f~ obtained after Step 1. We will denote the new polynomial derived from the spurious part F1 by F2. In Step 2, we apply product sparsification to both f^1 and F1, which yields the n.c. polynomials f^2 and F2 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 f^2 into a commutative polynomial while preserving its non-zeroness. Note that f^2 is a polynomial over π”½β’βŸ¨ΞΎβŸ©. If we treat f^2 as commutative by considering the n.c. variables ΞΎ as commutative, the exponents of the variable ΞΎi (for i∈[s]) from different n.c. Q^i⁒j 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 f^2 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 O⁒(s2) that carries out this commutative transformation.

Lemma 24 (Commutative Transformation Lemma).

Let g=βˆ‘i∈[s]Ξ²i⁒(∏j∈[s]Q^i⁒j), where Ξ²iβˆˆπ”½ and each Q^i⁒j is an s-ordered polynomial over ΞΎ={ΞΎ1,ΞΎ2,…,ΞΎs} of degree D. This can be expressed as g=βˆ‘mΞ±m⁒m, where each monomial m has the form m=∏j∈[s]ΞΎ1ij⁒1⁒ξ2ij⁒2⁒…⁒ξsij⁒s. Then there exists a substitution automaton of size O⁒(s2) that transforms the non-commutative polynomial g into a commutative polynomial g(c) while preserving non-zeroness. In particular, g(c)≑0⇔g≑0.

In other words, for each n.c. variable ΞΎi (where i∈[s]), there exists an O⁒(s2)-dimensional matrix – acting as a transition matrix of a substitution automaton. By evaluating g on these matrices, the polynomial is transformed into a commutative polynomial g(c), 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. 1.

    The number of terms in each product is small, and

  2. 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 f^2, the structured part obtained after Step 2, into a commutative polynomial while preserving its non-zeroness. Let f^3(c) denote the resulting commutative polynomial derived from f^2. Consequently, we establish that f^3(c)β‰’0 as a result of this lemma.

Next, given f~=f^1+F1, where f~ was obtained after Step 1, we can likewise transform f~ into a commutative polynomial. Let F3(c) represent the commutative polynomial obtained from F after applying steps (2) and (3). If f^3(c)+F3(c)β‰’0, we have successfully converted a n.c. polynomial f, 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 f^3(c)+F3(c)=0. We will now detail how to modify the coefficients of certain monomials in f~, 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 f^3(c)+F3(c)=0, and given that f^3(c)β‰’0, it follows that F3(c)β‰’0 and f^3(c)=βˆ’F3(c). To address this cancellation, we carefully modify certain monomial coefficients in the non-commutative polynomial f~=f^1+F1 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 f be a non-commutative polynomial of degree D over X={x1,…,xn}, computed by a Ξ£β’Ξ βˆ—β’Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Then fβ‰’0 if and only if it does not evaluate to zero on the matrix algebra 𝕄s6⁒(𝔽).

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 f(c)βˆˆπ”½β’[W] is an s2-ordered polynomial over W, in the sense that we can arrange the variables in each monomial of f(c) in increasing order according to the first index of the W variables, allowing for some exponents to be zero as specified in Definition 3.

This is summarized in the following theorem.

Theorem 28.

Let f be a non-zero non-commutative polynomial of degree D over X={x1,…,xn} computed by a Ξ£β’Ξ βˆ—β’Ξ£β’Ξ βˆ—β’Ξ£ circuit of size s. Then, f can be transformed into an s2-ordered polynomial while preserving its non-zeroness. In particular, there exists a small substitution automaton of size O⁒(s6) that performs this transformation.

In other words, for each n.c. input variable xi (where i∈[n]) in f, there exists an O⁒(s6)-dimensional matrix – acting as a transition matrix of a substitution automaton of size O⁒(s6). By evaluating f on these matrices, the polynomial f is transformed into an s2-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 O⁒(s6). We then evaluate the polynomial as 𝐎=f⁒(𝐌𝐱𝟏,𝐌𝐱𝟐,…,𝐌𝐱𝐧).

The output of the substitution automaton is defined as the sum of several entries of the matrix 𝐎 (refer to the polynomial f(c) defined in the proof of Theorem 26).

It is crucial to note that each entry of the matrices in 𝐌=(𝐌𝐱𝟏,𝐌𝐱𝟐,…,𝐌𝐱𝐧) is a monomial over YβŠ”ZβŠ”ΞΆβŠ”Ο‡βŠ”W, where YβŠ”Z are commutative variables from Step (1), and ΞΆβŠ”Ο‡ are commutative variables from Step (2), while W contains commutative variables from Step (3).

As noted in Steps (1) and (2), we can replace the commutative variables in YβŠ”ZβŠ”ΞΆβŠ”Ο‡ 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 YβŠ”ZβŠ”ΞΆβŠ”Ο‡ 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 W. We denote the resulting matrices as πŒβ€²=(πŒπ±πŸβ€²,πŒπ±πŸβ€²,…,πŒπ±π§β€²).

We can construct a substitution automaton π’œ such that the substitution matrix for the variable xi is given by the matrix πŒπ±π’β€², where the entries are scalar multiples of variables in W. These entries correspond to transitions that substitute a n.c. variable with a scalar multiple of a variable in W. This automaton π’œ effectively transforms f into an s2-ordered polynomial f(c) while preserving its non-zeroness.

We can view the resulting s2-ordered polynomial f(c) as a n.c. polynomial over W. 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 f(c) as a n.c. polynomial and no explicit conversion or transformation is done.

It is important to note that the monomials of f(c) do not correspond to a single entry of the output matrix 𝐎=f⁒(πŒπ±πŸβ€²,πŒπ±πŸβ€²,…,πŒπ±π§β€²). Instead, they represent the sum of several entries, as indicated in the polynomial f(c) 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 f be a non-commutative polynomial of degree D over X={x1,…,xn}, computed by a +-regular circuit of size s and depth d. Then, fβ‰’0 if and only if f is not identically zero on 𝕄N⁒(𝔽), where N=sO⁒(d2) and |𝔽| is sufficiently large.

3.1 Transforming 𝒇 into an ordered polynomial

Similar to depth-5 case, the polynomial f computed by a size s depth d +-regular circuit can be converted into an ordered polynomial using a substitution automaton of size at most sO⁒(d2). We state the result in the following theorem.

Theorem 31.

Let f be a non-zero n.c. polynomial of degree D over variables X={x1,…,xn}, computed by a +-regular circuit of size s and depth d. Let d+ denote the number of Ξ£ layers in the circuit. Then there exists a substitution automaton π’œ of size at most sO⁒(d2) such that the polynomial f^:=f⁒(π’œ) is an s(d+βˆ’1)-ordered polynomial. Moreover, this transformation preserves non-zeroness: f^≑0⇔f≑0.

3.2 Randomized Identity Test for Small Depth +-Regular Circuits

We are now ready to state and prove the main theorem.

Theorem 32.

Let f be a non-commutative polynomial of degree D over X={x1,…,xn}, computed by a +-regular circuit of size s and depth d. We denote the number of addition (i.e., βˆ‘) layers in the circuit by d+. Then, fβ‰’0 if and only if f is not identically zero on 𝕄N⁒(𝔽), where N=sO⁒(d2) and |𝔽| is sufficiently large.

Proof.

We use Theorem 31 to convert the n.c. polynomial f into an s(d+βˆ’1)-ordered polynomial fo⁒p⁒s, while preserving its non-zeroness. As discussed above, there is a substitution automaton of size bounded by sO⁒(d2), which results in substitution matrices of dimension sO⁒(d2). By Claim 5, fo⁒p⁒s 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 d +-regular circuit of size s using matrices of dimension at most sO⁒(d2). 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.