arXiv:2611.09035cs.CCNov 2026

Manuscript Offprint

arXiv:2611.09035

Deterministic factorization of constant depth circuits from whitebox PIT

Somnath Bhattacharjee, Mrinal Kumar, Shanthanu S. Rai, Varun Ramanathan, Ramprasad Saptharishi, Shubhangi Saraf

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

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 F\mathbb{F}, requires oracle access to any PIT algorithm for these circuits and outputs a basis for the F\mathbb{F}-kernel of this matrix in polynomial time.

1 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 [Kal89, KT90, vzGK85, Bür04]) 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 [FS15] for a

*University of Toronto, Canada. Email: somnath.bhattacharjee@mail.utoronto.ca. Research partially supported by an NSERC Discovery Grant

†Tata Institute of Fundamental Research, Mumbai, India. Email: {mrinal, shanthanu.rai, ramprasad}@tifr.res.in. Research supported by the Department of Atomic Energy, Government of India, under project number RTI400112, and in part by research grants from Google, SERB and Premji Invest.

‡University of Copenhagen, Denmark. Email: vara@di.ku.dk. Supported by the European Research Council (ERC) under grant agreement no. 101125652 (ALBA).

§University of Toronto, Canada. Email: shubhangi.saraf@utoronto.ca. Research partially supported by the McLean Award and an NSERC Discovery Grant.

brief discussion of the literature). More formally, the closure result showed that if an nn variate degree dd polynomial ff over the field of rational numbers1^{1} is computable by an algebraic circuit of size ss, then all its irreducible factors can be computed by circuits of size poly(s,d)(s,d). The algorithmic results consisted of efficient randomized algorithms that compute these irreducible factors in randomized poly(s,d)(s,d) time, when given the circuit for ff 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 ff and it outputs blackboxes corresponding to the irreducible factors of ff, and in the whitebox setting the algorithm has access to the internal wirings of a circuit for ff, 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 [ST21], formulas & constant depth circuits [BKR+^{+}26a] are all closed under factorization, and so is the complexity class VNP [CKS19].

The progress on the question of designing deterministic factorization algorithms has been comparatively subdued. A work of Kopparty, Saraf and Shpilka [KSS15] 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 [KRS24, KRSV26, BKR+^{+}25], and led to the results of Bhattacharjee et al. [BKR+^{+}25] 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 [BKR+^{+}25], 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,2^{2} this yielded another deterministic, subexponential time algorithm for factorization of these circuits.

Very curiously, the deterministic factorization algorithms in [BKR+^{+}25] 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 ss, degree dd

1^{1}Slightly weaker results of a similar flavor also hold over finite fields.

2^{2}That were proved via a combination of superpolynomial lower bounds for these circuits from [LST25] with some partial closure results for such circuits in [CKS19].

multivariate algebraic circuit of constant depth over the rational numbers, 3^3 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(s, d) 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 [ST21]. 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 [KSS15].

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 [SY10, 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 [AW26] 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 [BKR +^+25, 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 M(X)M(\mathbf{X}) of dimension mm whose entries are multivariate polynomials computable by size ss, degree dd algebraic circuits of constant depth over a field F\mathbb{F} (satisfying ∣F∣>d|\mathbb{F}| > d), requires oracle access to a PIT algorithm for constant depth circuits over F\mathbb{F} in either blackbox or whitebox setting, and outputs a basis for the F\mathbb{F}-kernel of M(X)M(\mathbf{X}) in time poly (s,m,d)(s, m, d).

Here, by an F\mathbb{F}-kernel, we mean the F\mathbb{F}-linear space of m-dimensional vectors over F\mathbb{F} that are in the kernel of M(X)M(\mathbf{X}).

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 f1,f2,…,fmf_1, f_2, \ldots, f_m given by circuits of size at most ss and degree dd, requires oracle access to a (whitebox or blackbox) PIT algorithm for circuits of the form (∑iαifi)(\sum_i \alpha_i f_i) for αi∈F\alpha_i \in \mathbb{F}, and decides if f1,…,fmf_1, \ldots, f_m are linearly independent over the field F\mathbb{F} in time poly(s,d,m)(s, d, m).

While this problem has been studied in the literature (see, for instance, [Kay10, CKW11, BSV26]), 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 f1,f2,…,fmf_1, f_2, \ldots, f_m to obtain

3^{3}Throughout this paper, we work over the field of rational numbers. Assuming the correctness of the recent efficient deterministic univariate factorization algorithms over finite fields [Ope26], the results also extend to finite fields of sufficiently large characteristic.

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 [RS05]. 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.

References (25)