WorksComputer Science
Deterministic factorization of constant depth circuits from whitebox PIT
Abstract
We show that over the field of rational numbers, there is a deterministic algorithm for factorization of constant depth circuits that makes calls to a (whitebox or blackbox) PIT algorithm for such circuits. The time complexity of the algorithm (and hence the number of calls to the PIT oracle) is polynomially bounded in the size and degree of the input circuit. Our reduction to PIT is fairly simple and general and applies as it is to other natural classes of algebraic circuits like formulas and algebraic branching programs. Prior to this work, the known deterministic factorization algorithms for constant depth circuits crucially relied on blackbox PIT [Bhattacharjee et al.]. Our main technical ingredient is an efficient, deterministic algorithm that, when given access to sufficiently high degree truncations of all the power series roots of a constant depth circuit, uses oracle calls to any (whitebox or blackbox) PIT algorithm for these circuits, and partitions the roots into the sets of conjugates; thereby identifying the irreducible factors. For our proof, we rely on a root recombination criterion using logarithmic derivatives [Sasaki et al., Bostan et al., Lecerf] and show that this criterion can be efficiently and deterministically implemented for power series roots of constant depth circuits using access to any PIT oracle. On the way, we discuss an algorithm that may be of independent interest: it takes as input a matrix whose entries are multivariate constant depth circuits over a field , requires oracle access to any PIT algorithm for these circuits and outputs a basis for the -kernel of this matrix in polynomial time.
Introduction
The complexity of polynomial factorization as an algorithmic task and the relationship between the circuit complexities of a polynomial and that of its factors are questions of fundamental interest in computational algebra and algebraic complexity. Both these families of questions saw substantial advances in the 1980s in a sequence of results of Kaltofen (e.g. see [13, 20, 33, 7]) who showed both a closure result for algebraic circuits under factorization, and gave efficient randomized algorithms for this task (see, for instance, the survey of Forbes and Shpilka [12] for a brief discussion of the literature). More formally, the closure result showed that if an variate degree polynomial over the field of rational numbers1 is computable by an algebraic circuit of size , then all its irreducible factors can be computed by circuits of size . The algorithmic results consisted of efficient randomized algorithms that compute these irreducible factors in randomized time, when given the circuit for as input. Remarkably, these algorithms work in both the blackbox and the whitebox settings: in the blackbox setting the algorithm is just given evaluation access to a blackbox that contains and it outputs blackboxes corresponding to the irreducible factors of , and in the whitebox setting the algorithm has access to the internal wirings of a circuit for , and it outputs explicitly, the circuits for its irreducible factors.
Subsequent to these results, perhaps the two most important research directions in this area have been that of extending the closure result to the natural structured subclasses of algebraic circuits, e.g formulas/branching programs/constant depth circuits, and that of designing efficient deterministic algorithms for polynomial factorization. There has been substantial progress on the question of closure results in recent years, and we now know that algebraic branching programs [30], formulas & constant depth circuits [BKR+26a] are all closed under factorization, and so is the complexity class VNP [8].
The progress on the question of designing deterministic factorization algorithms has been comparatively subdued. A work of Kopparty, Saraf and Shpilka [19] showed that derandomizing polynomial identity testing (PIT) is both necessary and sufficient for derandomizing polynomial factorization for general algebraic circuits. While the reduction from PIT to factorization is relatively simple, the other direction required a clean algebraic understanding of the necessity and use of randomness in Kaltofen’s factorization algorithms. This equivalence is also variant preserving in the sense that blackbox PIT for general circuits is equivalent to blackbox polynomial factorization, and whitebox PIT is equivalent to factorization in the whitebox model.
An intriguing aspect of the equivalence result of Kopparty et al. is that it does not appear to scale down: while it is easy to see that PIT reduces to factorization for models like formulas and constant depth circuits, it was not clear if derandomizing PIT for these models would imply efficient deterministic factorization algorithms for them. This research direction was explored in a sequence of recent results [16, 17, 2], and led to the results of Bhattacharjee et al. [2] that gave a subexponential time deterministic algorithm for factorization of constant depth algebraic circuits. In a follow up work [BKR+26a], Bhattacharjee et al. established closure results for constant depth circuits (and other classes). They also used this closure result to simplify many of the technical details of the algorithm in [2], and obtained a clean statement connecting polynomial factorization to deterministic blackbox PIT for constant depth circuits. When combined with the known deterministic subexponential time algorithms for blackbox PIT for constant depth circuits,6 this yielded another deterministic, subexponential time algorithm for factorization of these circuits.
Very curiously, the deterministic factorization algorithms in [2] and [BKR+26a] crucially relied on the fact that the known subexponential time PIT algorithms for constant depth circuits were in the blackbox model. In particular, it was not known if a similar deterministic factorization algorithm can be obtained from a whitebox PIT algorithm for constant depth circuits. In this work, we answer this question in affirmative. We state the theorem informally here, and refer to Theorem 4.1 for a formal statement.
Theorem 1.1 (Informal). *There is a deterministic algorithm that takes as input a size , degree
multivariate algebraic circuit of constant depth over the rational numbers,7 requires oracle access to a PIT algorithm for constant depth circuits in either blackbox or whitebox setting, and outputs constant depth circuits for the irreducible factors of the input polynomial, together with their multiplicities, in poly time.
Furthermore, a similar reduction from factorization to deterministic PIT holds for algebraic formulas as well.
For algebraic branching programs a similar reduction can be seen in the work of Sinhababu & Thierauf [30]. Thus, Theorem 1.1, together with the reduction in [BKR+26a] give a scaled down version of the equivalence between PIT and polynomial factorization for general circuits shown by Kopparty, Saraf and Shpilka [19].
As of now, we do not have deterministic PIT algorithms for constant depth algebraic circuits in the whitebox setting that are faster than those in the blackbox setting. However, it is typically the case in derandomization literature that whitebox algorithms are often discovered before blackbox PIT algorithms for many classes of algebraic circuits and they tend to be faster (see [31], Sections 4.6 and 4.8 for a general overview). Theorem 1.1 shows that any improvement in the state of art for PIT for constant depth circuits, even in the whitebox setting would result in an improvement in the state of art for polynomial factorization for these circuits. We remark that the various structural results for constant depth circuits in the work of Andrews & Wigderson [1] and those in [BKR+26a, BKR+26b] play a crucial role in the proof of Theorem 1.1. However, given these structural results, the final factorization algorithm for constant depth circuits obtained in this work appears to be technically simpler in many of its details than those known from prior work [2 BKR+26a].
On the way to the proof of Theorem 1.1, we show the following result that may be of independent interest.
Theorem 1.2 (Kernel basis computation over base field). There is a deterministic algorithm that takes as input a matrix of dimension whose entries are multivariate polynomials computable by size , degree algebraic circuits of constant depth over a field (satisfying ), requires oracle access to a PIT algorithm for constant depth circuits over in either blackbox or whitebox setting, and outputs a basis for the -kernel of in time poly.
Here, by an -kernel, we mean the -linear space of -dimensional vectors over that are in the kernel of .
The proof of Theorem 1.2 was discovered with AI assistance (ChatGPT Astra).
Yet another independently interesting application of Theorem 1.2 is to the question of linear independence testing of polynomials. In particular, we have the following immediate corollary.
Corollary 1.3. There is a deterministic algorithm that takes as input polynomials given by circuits of size at most and degree , requires oracle access to a (whitebox or blackbox) PIT algorithm for circuits of the form for , and decides if are linearly independent over the field in time poly.
While this problem has been studied in the literature (see, for instance, [14, 9, 6]), it is unclear if this specific reduction to whitebox PIT was known to exist. The corollary can be instantiated with additional guarantees on the structure of the circuits for to obtain deterministic algorithms for testing the linear independence of polynomials in interesting settings. For instance, if the input polynomials are all sparse, then using the known deterministic PIT for sparse polynomials, this can be done in polynomial time even in the blackbox setting. Similarly, we can obtain a polynomial time deterministic algorithm for testing linear independence of ROABPs (in the same order) in the whitebox setting using the PIT algorithm of Raz & Shpilka [26]. While neither of these two applications appear to be new, the algorithms obtained using Corollary 1.3 appear to be much more modular and essentially remain the same at a high level, even as the circuit classes containing the input change.
An overview of the proofs
Let be the input polynomial given as a small constant depth circuit with rational coefficients. Then, the main steps in the factorization algorithm on input in various proofs in the literature, and in particular in [2 BKR+26a] are as follows.
Preprocessing: In this step, by an invertible linear transformation of the form , for , it is ensured that is monic in . At this point, using standard techniques, can be assumed to be square free. Now, by shifting the -variables further if necessary, we reduce to the setting that is square free and splits into distinct linear factors{sup}4` over . We now pick a new formal variable , and substitute every variable by . The new polynomial, which we refer to as here is viewed as a bivariate in , with its coefficients in .
Computing power series roots: Using the squarefreeness of , and hence , we get from Theorem 2.11 that the -roots of are power series in , with coefficients in . Furthermore, sufficiently high degree truncations of these roots are computable by small constant depth circuits, and these circuits can be efficiently and deterministically constructed from a circuit for and the roots of .
Obtaining irreducible factors: The final step of the factoring algorithms is to identify the power series roots of that come from the same irreducible factor of . Once this partition of the set of roots is obtained, the irreducible factors of (and hence ) can be constructed efficiently, using
where, is the set of indices of all power series roots of the irreducible factor .
The power series root computation step above is completely deterministic, and randomness is used only for preprocessing and for the root combination steps. Of these, it is not difficult to see (and is discussed in detail in the proofs in [19, 2 BKR+26a]) that randomness for preprocessing can be removed with access to PIT algorithms. For the setting of constant depth circuits, we need the additional amazing fact proved by Andrews & Wigderson [1] (also see [4]) that Resultants and Discriminants are computable by constant depth circuits. This allows us to show that for constant depth circuits, the preprocessing phase of the factorization algorithms can be derandomized using an access to a PIT oracle, in either the blackbox or the whitebox setting. A crucial (and simple) part of this argument is that one can efficiently and deterministically solve the search version of PIT, where the goal is to find a point where the input polynomial evaluates to a non-zero value, when given access to a PIT oracle (see Lemma 2.2).
The main technical difficulty that needed to be addressed for the proofs in this paper, and in [2 BKR+26a] was to derandomize the root combination step to identify roots that correspond to each irreducible factor of . More concretely, we have the following problem: we have constant depth circuit computing a polynomial with , , and also have constant depth circuits for polynomials such that for every ,
for some that is large enough. Our goal is to partition the 's into sets corresponding to the irreducible factors of . In [2 BKR+26a], this was done by using blackbox PIT for constant depth circuits (given via a hitting set generator): the hitting set is used to set the variables to field constants in . This gives us many bivariate polynomials in with coefficients over the base field , that can be factorized deterministically in polynomial time using the algorithm outlined at the beginning of this section. The proofs in [2 BKR+26a] proceed by using the properties of the hitting set generator to guarantee that the correct partition of the power series roots of most of the bivariates into buckets corresponding to their irreducible factors is in one-one correspondence with the correct partitioning of the power series roots of . This part of the proof uses the crucial fact that a hitting set generator for constant depth circuits will maintain the non-zeroness of an exponentially large set of constant depth circuits at once. This argument is only used in the proof of correctness of the algorithm, and is not implemented in the algorithm itself. Thus, this argument crucially relies on the fact that we have access to a hitting set generator (and not just a whitebox algorithm) for PIT of constant depth circuits.
For our proof, we give an alternative way to correctly combine the power series roots into irreducible factors. The proof that we present in § 3 is based on the so-called logarithmic derivative idea that is very well studied in the factorization literature (see [29, 28, 5, 21, 10, 22] and the references therein), albeit in the bivariate or the dense representation setting. For this overview, we try to provide some intuition into the method.
Since is square free, all of its roots, that we assume are present in the base field , must be distinct. Since are power series roots of obtained by lifting the roots of , they must have distinct constant terms. Suppose is an irreducible factor of . Then, there is a subset , with such that is the set of truncations of all power series -roots of .
Since is a factor of , we have that its -degree is at most . Thus, the elementary symmetric polynomials of the power series roots of must be polynomials in and must have -degree at most . Thus, in the expressions for the elementary symmetric polynomials of the power series roots of , there must be significant cancellations, leading to these expressions yielding a low degree polynomials in on simplification. The root recombination method is based on the fact that the converse of this observation is also essentially true: if all elementary symmetric polynomials of a subset of power series roots of are low degree polynomials in , then corresponds to a (not necessarily irreducible) factor of .
While mathematically insightful, it is not immediately clear if we can efficiently search for subsets of the power series roots of that have this cancellation property, since trying all subsets is not within the budget. This approach seems more amenable to efficient algorithms if we work with power sum symmetric polynomials instead. Due to Newton-Girard identities that let us express power sums as bounded degree polynomials of elementary symmetric polynomials (and vice-versa), and the above discussion, we get that for any subset of the power series roots of , the power sum symmetric polynomials of degree at most on are all low degree polynomials if and only if corresponds to a factor of . The advantage is that the search for subsets now looks a little more tractable: consider formal variables and the linear constraints
where ’s are the true (untruncated) power series roots of , and each is an appropriately chosen parameter. Once we have such a bound for , a similar (-dependent) bound follows for all via the recurrence where each denotes , and . A succinct equivalent representation of this system obtained by tying together the powers of into a generating function is as follows:
Each is the “logarithmic derivative” of and similarly, is the logarithmic derivative of ; see [34] for a general definition. Clearing the denominator with give us the system:
for some appropriately scaled . But this is a system that uses power-series roots. Instead, we work with the following very closely related linear system described in [29, 28, 5, 21, 10, 22]:
Note that this only relies on the truncations of the power series roots, and are all set to .
This is clearly a homogeneous linear system in . If are all the irreducible factors of and are vectors defined by setting the th coordinate of to 1 if and only if is a truncated power series root of , then we observe that are indeed solutions of this linear system: setting the -variables according to reduces the expression
to , and for , this clearly has -degree at most .
A key technical observation for the proof is that are in-fact a basis of the F-linear space of solutions of this linear system in ! Furthermore, they are the unique basis of this solution space (in ) in the reduced row echelon form! Thus, if we could somehow find the unique basis of the solution space in the reduced row echelon form, we would be done. The challenge is to do this deterministically, perhaps using a PIT oracle, assuming that has a small constant depth circuit.
From the results in [BKR+26a], we know that each has a small constant depth circuit. This implies that the linear system in reduces to finding a vector in in the kernel of a matrix
variables, power sum polynomials do not vanish at high degrees. . The entries of the matrix are -variate polynomials in that are computable by small constant depth circuits. An algorithm for this problem, using access to a whitebox PIT oracle for constant depth circuit is the final technical ingredient of our proof. Several variants of polynomial factorization algorithms in literature [BKR+26a, BKR+26a] involve a linear system solving step. However, these systems are typically over the field . Our algorithm for finding a basis for the -kernel of crucially relies on the fact that we are looking for an -kernel and not an -kernel (whose computation we believe is harder to derandomize). This algorithm, presented in § 3 was discovered with AI assistance and happens to be surprisingly clean and elegant in hindsight. Indeed we are optimistic that such an algorithm might be of independent interest. Given such a basis for the kernel of , we compute the unique basis of this space in the reduced row echelon form, and this gives us , thereby completing the recombination step.
AI disclosure
The proof of Theorem 1.2 was discovered using ChatGPT Astra. The rest of the paper including all the technical ideas and the writing are due to its human authors.
Preliminaries
Notation
Throughout this paper we will be working over a characteristic zero field (such as ).
denotes the set .
For any vector , support of is the set .
We will use to represent the set of variables . We use and to refer to the ring of polynomials and formal power series in respectively.
For any power series or polynomial , will denote the coefficient of in .
For a polynomial , denotes the total degree of , and for an , denotes the degree of in .
Let be a set of vectors over a field . Then for any subfield , we denote to be the space of -linear combinations of s.
Let be a matrix. Define to denote the kernel of .
For any polynomial (or formal power series) , will denote the polynomial obtained by discarding all terms of degree at least .
We will use to denote the -th elementary symmetric polynomial of the set , i.e. .
Algebraic Circuits
We will define the standard model of computation, namely algebraic circuits, and record some useful and well-known facts pertaining them which will be useful later own.
Algebraic Circuits: An algebraic circuit is a DAG with a designated output node, wherein the leaf nodes are labeled by variables and field constants and the internal nodes are labeled by and . The circuit computes the polynomial at the output gate, by inductively computing it at each node from leaf nodes to the output node. The size of the circuit is the number of wires in , and the depth is the length of the longest path from the leaf node to the output node. Michael Ben-Or observed that algebraic circuits are “closed” under polynomial interpolation. This means given a circuit for a polynomial , there exist circuits for coefficients of (in ) which are not much larger in size than . Moreover, there is an efficient algorithm to compute these circuits from .
Lemma 2.1 (Interpolation). Let be a sufficiently large field and be a -variate polynomial with . Suppose is computable by a circuit of size and depth . Then, there is an algorithm that outputs a multi-output circuit of size and depth and runs in time . The multi-output circuit outputs for all .
White-box PIT: One of the fundamental problems in algebraic complexity is the Polynomial Identity Testing (PIT) problem: Given a circuit (or any well-defined algebraic model), does it compute the polynomial? If the internal wiring in the circuits are revealed to us, then this is the question of PIT in the white-box model (succinctly referred to as the white-box PIT problem). Coming up with efficient PIT algorithms has important connections to lower bounds in different algebraic models, polynomial factorization, etc [15, 31, 19, 18]. Using an algorithm for the decision version of the problem, that is determining if a circuit (say with inputs) is non-zero, one can find a point such that is non-zero at (namely, the search version).
Lemma 2.2 (Decision to Search PIT). Let be a field such that and be an -variate, degree non-zero polynomial from a circuit class . Then there is an algorithm to compute an such that that uses oracle queries to a white-box PIT algorithm for .
Resultant and the Poisson Formula
The resultant of and is an indicator for the GCD of and being non-trivial. In this section, we will cover some basic and well-known facts about the resultant. The reader can refer to [32] for a more detailed account about resultants. The resultant of and is defined as follows.
Definition 2.3 (Resultant). Let be nonzero polynomials of degrees and , respectively. Write
The Sylvester matrix of and is the matrix
The resultant of and , denoted by , is defined as the determinant of the above matrix.
As mentioned previously, is zero exactly when the GCD of and is non-trivial. This fact is clearer from following equivalent characterization of the resultant.
Lemma 2.4 (Poisson Formula). Let be nonzero polynomials of degrees and and suppose are the multiset of roots of . Then,
where denotes the leading coefficient of $g.
For bivariate polynomials , is the resultant when and are viewed as polynomials in . In this case, would be a polynomial in . From the definition of the resultant, we can bound the degree of .
Lemma 2.5. Let be polynomials with -degrees and respectively. Suppose the -degree of both the polynomials is at most . Then, is at most .
Deterministic Univariate Factorization
Over rational numbers, univariate factorization can be performed in deterministic polynomial time using the well-known LLL algorithm of Lenstra, Lenstra, and Lovász [23]. We define a convenient notation for the runtime of univariate factorization below, and then state the LLL theorem.
Definition 2.6. Let be an univariate polynomial of degree . We use to denote the time taken to factor over .
Theorem 2.7 (Univariate factorization over rationals [23]). There is a deterministic algorithm that, given a polynomial of degree and coefficient bit complexity at most , computes the irreducible factorization of over in time . Thus, over , is polynomial in and in the bit complexity of coefficients of the input.
Polynomial factorisation preliminaries
The following is a standard pre-processing step that is performed in almost all factorisation algorithms (for instance, see [BKR+26a] for more details).
Lemma 2.8 (Factorisation pre-processing). Let be an -variate polynomial with and , such that is computable by a circuit of size and depth . Then from the circuit for , and access to a PIT oracle for -sized depth circuits, we can efficiently (in time compute a circuit of size and depth for a polynomial with the following properties:
is monic in of -degree and total degree at most ,
every monomial in that is divisible by any -variable is also divisible by and thus ,
is square-free, and the polynomial is also square-free.
Furthermore, the circuits for the factors of can be efficiently recovered from circuits for the factors of .
Thus, from this point on, our focus is to factorize a polynomial (where ) such that it is: (i) square-free (ii) monic in , with -degree at most (iii) is square-free (iv) computable by a circuit of size and depth . We first state Gauss’ lemma, which essentially states that it is equivalent to study the factorization of over and . The version we state below suffices for our setting, for a more general version refer [32 Corollary 6.10]
Lemma 2.9 (Gauss’ lemma). Let be monic in . Then is irreducible in if and only if is irreducible in .
Since is monic in , the irreducible factors of over are also monic in . Hence, these irreducible factors are also irreducible over . Thus, the factorization of over and are the same. Hence, we will study the factorization over the field (instead of the ring ). Suppose factorizes as follows,
where are irreducible polynomials in . Also, suppose factorizes as,
where . We recall the below standard lemma (known as Hensel’s lemma in the literature) that completely factorizes into linear factors in power series roots in .
Lemma 2.10 (Hensel’s Lemma). Let be a polynomial which is monic in variable such that is square-free. Suppose factorizes into,
where are distinct elements in . Then, factorizes uniquely into,
where for each , and .
[BKR+26a, Theorem 4.1] showed how to obtain polynomial size and constant depth for the (truncations of) above power series roots . We record this a theorem below for our setting, and note that this can be obtained by essentially invoking [BKR+26a, Theorem 4.1] for the shifted polynomial .
Theorem 2.11 ([BKR+26a]). Let be a polynomial as in the setting of Lemma 2.10. Suppose is computable by a circuit of size and depth . Then for each ,
is computable by a circuit of size and depth over the field . Moreover, there is an algorithm to compute with at most arithmetic operations.
The number of arithmetic operations specified above can be obtained by inspecting the proof of [BKR+26a, Theorem 4.1]. Using the above theorem, we can also obtain constant depth circuits for “hensel lifts” of the polynomial . Suppose factorizes as,
where for each , are irreducible polynomials. The monic (in ) Hensel-lift from is the following factorization,
where is given by
Although each is a power series that may use coefficients from , all coefficients of are symmetric functions in the roots of and thus .
Using Theorem 2.11, we can construct size size and depth circuits for over the field . Using these circuits, we can build size and depth circuits10 for over the field . In order to obtain constant depth circuits for over the base field , we recall the following theorem from [4].
Theorem 2.12 (Complexity of symmetric polynomials [4]). Let , and suppose that is a field satisfying for an absolute constant . Suppose that is symmetric of degree and that a circuit of size and depth computes .
Write for the th elementary symmetric polynomial in . Let be the unique polynomial satisfying
Then , and there is a circuit over computing with size and depth .
Remark 2.13. In fact, by inspecting the proof of Theorem 2.12 in [4 Theorem 16], given a size and depth for , the above theorem gives us an algorithm to compute the size and depth circuit for in time.
Suppose are the coefficients of . Observe that is symmetric over the roots of and the coefficients are elementary symmetric polynomials (upto signs) in the roots of . Thus, we invoke Theorem 2.12 to obtain a circuit of size and depth computing which uses constants from . From Theorem 2.11 and Theorem 2.12, all the above circuit constructions can be performed with at most many arithmetic operations.
Theorem 2.14 (Computing Hensel-lifts efficiently). Let be a polynomial which is monic in variable such that is square-free with the irreducible factorization . Suppose is computable by a circuit of size and depth . Then, for any , we can compute (in time ) circuits of size and depth for polynomials , each of which are monic in , such that for every , , and
Standard algorithms in linear algebra
We summarize some well-known and useful facts from Linear Algebra below. The reader can refer [27 Sections 14.4–14.5] for a more thorough treatment of the topic.
Lemma 2.15. Given a matrix as input, there is an algorithm that computes a basis for and performs atmost field operations.
Proof Sketch. We can compute by Gaussian Elimination. □
Lemma 2.16. Let be two subspaces specified by their bases and respectively, then there is an algorithm to compute a basis for the space . Moreover, the algorithm performs at most many field operations.
Proof Sketch. Find a basis for the kernel of the matrix . Suppose is the kernel of the matrix obtained from Lemma 2.15. Then, is the required basis of . □
Lemma 2.17. Let be a vector space with basis . Suppose has a basis such that and every element in has disjoint support. Then such a basis is unique. Moreover, given there is an algorithm which does at most field operations and outputs .
Proof Sketch. Let be matrices whose rows are and respectively. Suppose the rows in are ordered such that for rows (with ), the first in row does not appear before the first in row . The lemma follows by noticing that is the reduced row echelon form (rref) of and rref of a matrix can be computed efficiently. □
Combining power-series into actual factors
For this section, using Lemma 2.8 if required, we may assume that () such that, (i) (ii) (iii) is monic in and square-free (iv) is square-free.
Let be the irreducible factorisation (over ) of that we are trying to compute. Let the power-series -roots of be . Let the irreducible factorisation of over be
which is also equal to over . Using the s, we compute the Hensel lifts (using Theorem 2.14) satisfying
where . Each irreducible factor corresponds to a product of some block of 's above. Thus, such that . Our goal is to try and find the blocks . The following is a homogeneous linear system that would allow us to find these blocks.
Consider the following homogeneous linear system over indeterminates
for some polynomial with and . This is equivalent to ensuring that the coefficient of all of is zero whenever or , which are homogeneous linear equations in the indeterminates .
Theorem 3.1 (([SSKS91, SS93, BLS+04, Lec06, CL07, Lec10])). Suppose satisfies the conditions above and suppose with where . Let denote the solution space to the above system . Then,
We present a short proof here for completeness.
Proof. We first prove the easier direction of showing that each is a solution to the above system for . Indeed, since , we have
and the RHS is clearly a polynomial of -degree at most and total degree at most .
Suppose be an arbitrary nonzero solution to the system
with and . We will show that is constant on coordinates in . For simplicity, let us assume so that , and we shall show that . Pick any root of . Then,
Therefore, for , we have . Using Poisson Formula (Lemma 2.4), this implies that,
On the other hand, by Lemma 2.5, is a polynomial in of degree at most . Hence,
Along exactly the same lines, we can also obtain that is divisible by as well. This implies that must divide and this is possible only if . ■
In other words, is precisely the space that is spanned by the indicator vectors corresponding to the blocks corresponding to irreducible factors of .
Computing the kernel of the system using whitebox PIT
In the previous section, we saw that the main recombination step in factorization is reduced to computing the kernel of a certain matrix of polynomials. Moreover the kernel is known to be spanned by vectors in the base field.
In this section, we will see a general algorithm (by reduction to white-box PIT) for computing the -kernel of any matrix (where ) whose entries consist of rational functions represented by some structured circuits. The -kernel of , denoted by , is the subspace of all vectors such that .
Theorem 3.2. Suppose we have an oracle for PIT for arbitrary linear combinations of entries of the matrix . Then, the -kernel of can be computed with at most many operations (including calls to the PIT oracle), where is an upper bound on the degree of the polynomial entries in .
Proof. The proof of the theorem is the following algorithm. Let us begin with and we will keep pruning down to . In the general case, let be spanned by , and we will always maintain the invariant that .
For each , we wish to check if or not. This amounts to checking if or not and this amounts to -many PITs of -linear combinations of the entries of . If one of these PITs is nonzero, we use the search-to-decision reduction for PIT (Lemma 2.2) to compute, in time , a point such that , and prune to (by using Lemma 2.15 and Lemma 2.16). Note that continues to contain but is now a smaller dimension subspace of . However, if it happens that for all , then every is infact in and thus we can safely return as a -basis for .
This immediately yields a correct and efficient algorithm for computing , provided we have access to a PIT oracle for -linear combination of entries of . ■
We summarise the above proof into the following algorithm.
Algorithm 1: Computing the -kernel of a matrix of arithmetic circuits
Input: (where ), where each matrix entry is from a structured class of circuits.
Output: Basis for
Oracle access: PIT algorithm for -linear combinations of entries of .
Initialise given by basis .
for do
Run oracle calls (one for each row) to check if .
if then
Use the PIT oracle to find a point such that .
Replace with , and with a basis of . Go to line 2.
if for all then
return the as the basis for .
Factorization using White-box PIT Algorithm
In this section, we will design the final factorization algorithm for constant-depth circuits which makes oracle calls to a white-box PIT algorithm. As we saw in the proof overview (§ 1.1) and § 3, the logarithmic derivative method gives us a linear system, which specifies the appropriate truncated power series roots to combine together to obtain the corresponding irreducible factors.
Theorem 4.1. Let , be the field of rational numbers.
There is an algorithm that takes as input an -variate degree polynomial computed by a circuit of size and depth , requires oracle calls to a whitebox PIT algorithm for -size and -depth circuits, runs in time, and outputs constant depth circuits for all the irreducible factors of together with their multiplicities.
Remark 4.2. While stated and proved here for constant depth circuits, we note that Theorem 4.1 also extends to other natural algebraic models like algebraic formulas, algebraic branching programs and algebraic circuits, with very minimal changes to the proof.
Remark 4.3. One can also keep track of the bit complexity of the rational numbers that show up in the computation in the following proof. Since all our computations involve “constant-depth computations” over input coefficients, the bit-complexities for any numbers generated in the algorithm will remain polynomially bounded in the input parameters. We skip this bookkeeping for clarity of exposition.
Proof of Theorem 4.1. For ease of exposition, we will work with an -variate polynomial , where the last variable is specially denoted by . Suppose is computable by a circuit of size and depth . By the discussion in Lemma 2.8, we can reduce factoring to factoring a polynomial () such that, (i) (ii) (iii) is monic in and square-free (iv) is square-free (v) is computable by a circuit of size and depth . So henceforth, we will aim to factor .
Suppose factorizes as follows,
where (i) for all , is an irreducible polynomial in . And, suppose factorizes as,
where for each , are irreducible polynomials.
We can obtain this factorization of in time as follows: Obtain coefficients of from using the interpolation lemma (Lemma 2.1) in time. Then from the coefficients of , we invoke the efficient deterministic univariate factorization algorithm over rationals in [23] to factor over (Theorem 2.7).
Then, we Hensel lift from to obtain the following factorization,
where and . By Theorem 2.14, we can build circuits of size and depth for over the base field. Moreover, this construction requires at most arithmetic operations.
As observed in § 3, we would like to find a partition such that
By Theorem 3.1, using the circuits for , we can build a matrix whose -kernel is . From the description of the linear system in Theorem 3.1, it is clear that this matrix can be constructed with at most many arithmetic operations.
By Theorem 3.2, we can find a basis for the -kernel of with at most many arithmetic operations (with oracle calls to white-box PIT algorithms for size and circuits). By Lemma 2.17, we can obtain from the in operations. Thus, we can obtain circuits of size and depth for
from the circuits of , and clearly this can be done with at most many arithmetic operations.
To recover the multiplicity of an irreducible factor , we can perform divisibility tests to compute the highest power of which divides . Previous works (see [11 BKR+26a]) discuss the reduction of divisibility testing of constant-depth circuits to PIT for constant-depth circuits, and it is easy to observe that this reduction also works in the whitebox setting.
This completes the proof of the theorem. ■
References
- [1]Robert Andrews and Avi Wigderson. Constant-depth arithmetic circuits for linear algebra problems. SIAM Journal on Computing, pages FOCS24–236–FOCS24–295, 2026.
- [2]Somnath Bhattacharjee, Mrinal Kumar, Varun Ramanathan, Ramprasad Saptharishi, and Shubhangi Saraf. Deterministic factorization of constant-depth algebraic circuits in subexponential time. In 2025 IEEE 66th Annual Symposium on Foundations of Computer Science (FOCS), pages 684–709, 2025.arxiv.org/abs/2504.08063
- [4]Somnath Bhattacharjee, Mrinal Kumar, Shanthanu S. Rai, Varun Ramanathan, Ramprasad Saptharishi, and Shubhangi Saraf. Constant-Depth Circuits for Polynomial GCD over Any Characteristic. In Dana Moshkovitz, editor, 41st Computational Complexity Conference (CCC 2026), volume 383 of Leibniz International Proceedings in Informatics (LIPIcs), pages 16:1–16:21, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.arxiv.org/abs/2506.23220
- [5]A. Bostan, G. Lecerf, B. Salvy, É. Schost, and B. Wiebelt. Complexity issues in bivariate polynomial factorization. In Proceedings of the 2004 International Symposium on Symbolic and Algebraic Computation, ISSAC ’04, page 42–49, New York, NY, USA, 2004. Association for Computing Machinery.
- [6]Vishwas Bhargava, Shubhangi Saraf, and Ilya Volkovich. Linear independence, alternants and applications. SIAM Journal on Computing, 55(1):28–64, 2026.
- [7]Peter Bürgisser. The complexity of factors of multivariate polynomials. Foundations of Computational Mathematics, 4(4):369–396, 2004. Corrected version available on arXiv, 2018.
- [8]Chi-Ning Chou, Mrinal Kumar, and Noam Solomon. Closure results for polynomial factorization. Theory of Computing, 15(13):1–34, 2019.arxiv.org/abs/1803.05933
- [9]Xi Chen, Neeraj Kayal, and Avi Wigderson. Partial derivatives in arithmetic complexity and beyond. Foundations and Trends in Theoretical Computer Science, 6(1–2):1–138, 2011.
- [10]Guillaume Chèze and Grégoire Lecerf. Lifting and recombination techniques for absolute factorization. Journal of Complexity, 23(3):380–420, 2007.
- [11]Michael A. Forbes. Deterministic divisibility testing via shifted partial derivatives. In 2015 IEEE 56th Annual Symposium on Foundations of Computer Science, pages 451–465, 2015.DOI
- [12]Michael A. Forbes and Amir Shpilka. Complexity theory column 88: Challenges in polynomial factorization. ACM SIGACT News, 46(4):32–49, 2015.
- [13]Erich Kaltofen. Factorization of Polynomials Given by Straight-Line Programs. In Randomness and Computation, pages 375–412. JAI Press, 1989.
- [14]Neeraj Kayal. Algorithms for arithmetic circuits. Technical Report TR10-073, Electronic Colloquium on Computational Complexity, 2010.
- [15]Valentine Kabanets and Russell Impagliazzo. Derandomizing polynomial identity tests means proving circuit lower bounds. Computational Complexity, 13(1–2):1–46, 2004.
- [16]Mrinal Kumar, Varun Ramanathan, and Ramprasad Saptharishi. Deterministic Algorithms for Low Degree Factors of Constant Depth Circuits, pages 3901–3918. SIAM, 2024.arxiv.org/abs/2309.09701
- [17]Mrinal Kumar, Varun Ramanathan, Ramprasad Saptharishi, and Ben Lee Volk. Towards deterministic algorithms for constant-depth factors of constant-depth circuits. ACM Trans. Comput. Theory, 18(1), February 2026.arxiv.org/abs/2403.01965
- [18]Mrinal Kumar and Ramprasad Saptharishi. Hardness-randomness tradeoffs for algebraic computation. Bulletin of EATCS, 3(129), 2019.
- [19]Swastik Kopparty, Shubh angi Saraf, and Amir Shpilka. Equivalence of polynomial identity testing and polynomial factorization. computational complexity, 24(2):295–331, 2015.DOI
- [20]Erich Kaltofen and Barry M. Trager. Computing with polynomials given by black boxes for their evaluations: Greatest common divisors, factorization, separation of numerators and denominators. Journal of Symbolic Computation, 9(3):301–320, 1990. Computational algebraic complexity editorial.
- [21]Grégoire Lecerf. Sharp precision in Hensel lifting for bivariate polynomial factorization. Mathematics of Computation, 75(254):921–933, 2006.DOI
- [22]Grégoire Lecerf. New recombination algorithms for bivariate polynomial factorization based on Hensel lifting. Applicable Algebra in Engineering, Communication and Computing, 21(2):151–176, 2010.DOI
- [23]A. K. Lenstra, H. W. Lenstra, and László Lovász. Factoring polynomials with rational coefficients. Mathematische Annalen, 261(4):515–534, 1982.
- [24]Nutan Limaye, Srikanth Srinivasan, and Sébastien Tavenas. Superpolynomial lower bounds against low-depth algebraic circuits. Journal of the ACM, 72(4):1–35, 2025.
- [25]OpenAI. Deterministic polynomial factorization over prime fields. OpenAI Math Release preprint, October 2026. October 4, 2026.hub.valency.io/works/W_6w7kf29p
- [26]Ran Raz and Amir Shpilka. Deterministic polynomial identity testing in non-commutative models. Comput. Complex., 14(1):1–19, 2005.
- [27]Victor Shoup. A Computational Introduction to Number Theory and Algebra. Cambridge University Press, 2 edition, 2009.
- [28]Tateaki Sasaki and Mutsuko Sasaki. A unified method for multivariate polynomial factorizations. Japan Journal of Industrial and Applied Mathematics, 10(1):21–39, 1993.DOI
- [29]Tateaki Sasaki, Masayuki Suzuki, Miroslav Kolář, and Mutsuko Sasaki. Approximate factorization of multivariate polynomials and absolute irreducibility testing. Japan Journal of Industrial and Applied Mathematics, 8(3):357–375, 1991.DOI
- [30]Amit Sinhababu and Thomas Thierauf. Factorization of polynomials given by arithmetic branching programs. Computational Complexity, 30(2):15:1–15:47, 2021.
- [31]Amir Shpilka and Amir Yehudayoff. Arithmetic circuits: A survey of recent results and open questions. Foundations and Trends in Theoretical Computer Science, 5:207–388, 3 2010.
- [32]Joachim von zur Gathen and Jürgen Gerhard. Modern Computer Algebra. Cambridge University Press, 3 edition, 2013.
- [33]Joachim von zur Gathen and Erich Kaltofen. Factoring sparse multivariate polynomials. Journal of Computer and System Sciences, 31(2):265–287, 1985.
- [34]Eric W. Weisstein. Logarithmic derivative. MathWorld—A Wolfram Resource.