Manuscript Offprint
arXiv:2610.27168Deterministic Shift Equivalence Testing for Sparse Polynomials
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Markus Bläser Pranjal Dutta Sagnik Dutta Gorav Jindal
Saarland University, Saarland Informatics Campus, Saarbrücken, Germany
Email: mblaeser@cs.uni-saarland.de
Nanyang Technological University, Singapore
Email: pranjal.dutta@ntu.edu.sg
Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
Email: sadutta@mpi-inf.mpg.de
University of Regensburg, Regensburg, Germany
Email: gorav.jindal@ur.de
Abstract: We study the shift equivalence testing problem for high-degree sparse multivariate polynomials. Given explicit sparse representations of two polynomials , with exponents encoded in binary, sparsities and , and total degree at most , the task is to decide whether there is a vector such that . Furthermore, one needs to output such a vector if it exists. Dvir, Oliveira, and Shpilka (ICALP 2014) studied shift equivalence for low-degree arithmetic circuits. Their framework does not apply directly to sparse polynomials, which are not closed under shifts, and they left open whether shift equivalence of sparse polynomials admits an efficient deterministic algorithm. We answer this question positively over . If the input coefficients have bit-size at most , we show that a rational shift of polynomial bit-size exists whenever the polynomials are shift equivalent. Moreover, our algorithm outputs such a shift and has a running time of in the bit model. The arithmetic and structural parts of our result also hold over any field of characteristic zero or characteristic larger than .
1. Introduction
Shift Equivalence Testing (SET) asks the following seemingly simple question: Given two polynomials , decide whether there is a vector such that
and output such a vector if it exists. The symbol emphasizes that the equality is an identity of formal polynomials, not merely an equality of functions. Over these two notions coincide. The same is true, and the Taylor expansions used below remain valid, over any field of characteristic zero or characteristic larger than the degree under consideration. Note that shift equivalence is indeed an equivalence relation. It is reflexive, since can be transformed into itself by the zero shift. When , then also , so it is symmetric. And if shifting by
Funded by the European Union (ERC, CountHom, 101077083). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency.
a transforms into and shifting by transforms into , then transforms into , giving transitivity.
The algorithmic problem of Shift Equivalence Testing first appeared in computer algebra and symbolic computation. Grigoriev [Gri97] designed the first polynomial-time algorithms for this problem. He assumes that the polynomials are given in dense representation, as a list of all coefficients including those that are zero. For an -variate polynomial of total degree at most , this list contains coefficients. His deterministic characteristic-zero algorithm takes time, so zero-padding a sparse input does not give a running time polynomial in the sparse parameters. Grigoriev also gives a randomized algorithm for large enough finite characteristic and a quantum algorithm for characteristic two.
For polynomials with few nonzero coefficients, a running time polynomial in the dense input size may be far larger than polynomial in the sparse input length. Dvir, Oliveira, and Shpilka [DOS14] studied SET for polynomials represented compactly by arithmetic circuits. For instance, the determinant of an matrix has nonzero monomials and an arithmetic circuit of polynomial size. Dvir et al. give a randomized algorithm for SET with running time polynomial in the circuit size and the total degree . Their algorithm also works with black-box access to and and bounds on their degree and circuit size. It proceeds by a reduction to polynomial identity testing.
The polynomial identity testing problem (PIT) is a famous problem in complexity theory. Given a polynomial as an arithmetic circuit , is identically zero? There is a simple randomized polynomial-time algorithm for the problem based on the so-called Schwartz–Zippel lemma [Sch80, Zip79], which essentially inserts a random point from a large enough set and checks whether it evaluates to zero. Derandomizing PIT is a big open problem in complexity theory. In particular, it implies non-uniform circuit lower bounds [KI04], another major open problem in the field. Note that the algorithm by Dvir et al. shows that SET reduces to PIT under Turing reductions. But also the converse is true. The polynomial is identically zero iff it is shift-equivalent to the zero polynomial. Therefore, a full derandomization of SET is out of reach of current methods.
Since finding a deterministic algorithm for general PIT is a hard problem, researchers have developed deterministic identity tests for restricted circuit classes; see, e.g., [DG24]. For read-once oblivious algebraic branching programs (ROABPs), white-box PIT is deterministic polynomial time [RS05], while deterministic black-box PIT is known in quasipolynomial time [FS13, FSS14]. The framework of Dvir, Oliveira, and Shpilka [DOS14] therefore gives the corresponding white-box and black-box SET algorithms for ROABPs.
Their deterministic reduction requires closure properties. Sparse polynomials are not closed under shifts, so it does not apply directly and DOS'14 states no deterministic sparse-class algorithm. Indirectly, however, representing both explicit sparse inputs as ROABPs in one common variable order and using white-box ROABP PIT gives deterministic SET with arithmetic complexity. This is not polynomial in the binary sparse input size when d is exponential.
Our contribution is a deterministic algorithm polynomial in the length of explicit sparse input over Q. We now specify this input model. Each polynomial is given as an explicit list of nonzero terms
where the coefficient is given explicitly in binary representation. Furthermore, the exponents are also encoded in binary. We call this an explicit sparse representation. Thus, the natural input parameters are the number of variables n, the sparsities and , the height, equivalently bit-size, of the coefficients of f, g, and , where d bounds the total degrees of f and g. (Sometimes, the maximum bit-size of the coefficients is called logarithmic height, but we use the term height for brevity.) While low degree is conventional in algebraic complexity, high degree is natural for sparse or lacunary polynomials: an exponent bounded by d uses only bits. Classical sparse interpolation likewise targets this regime: Ben-Or–Tiwari has algebraic-RAM complexity polynomial in [BOT88], and Garg–Schost obtains such dependence under straight-line-program access [GS09]. The indirect deterministic ROABP algorithm described above has polynomial dependence on , so it does not give polynomial time in the binary sparse input length. Our algorithm reduces the degree dependence to for explicit sparse inputs and also provides polynomial bit complexity over .
More formally, let Sparse SET denote the following problem: given two polynomials in sparse representation, decide whether there exists a shift such that
As mentioned above, PIT for sparse polynomials is trivial in the sparse representation: one simply compares the monomial list with the zero list. The issue is now that the sparsity is not preserved under shifts. A single monomial can become very large: if we define , then
has exactly
nonzero monomials. This number can be exponential in the sparse input length, already for a single monomial and even when the exponents are given in unary. Thus, even if is sparse, the shifted polynomial may be dense. Dvir, Oliveira, and Shpilka [DOS14, Section 6] pointed out precisely this obstruction: their methods “almost” give a quasipolynomial-time algorithm for shift equivalence of sparse polynomials, but the direct argument breaks down because sparse polynomials are not closed under shifts. For explicit sparse inputs, the indirect ROABP approach described above gives a deterministic algorithm using arithmetic operations, which is not polynomial in the sparse input length when is exponential. This leads to the central question addressed in this paper.
Problem 1.1. Can Sparse SET over Q be solved using poly(n, s, t, log d) arithmetic operations and bit complexity poly(n, s, t, log d, )?
In this paper, we answer the question affirmatively. The first key ingredient is a new structural lemma showing that, in yes instances, the witnessing shift is very special, which forces the relevant intermediate polynomials to remain sparse. This addresses the problem that sparse polynomials are not closed under shifts.
The second problem stems from the fact that the algorithm in [DOS14] has running time polynomial in d, so there is no easy way of adapting this algorithm to a running time of poly( ). The algorithm of [DOS14] iteratively solves a system of equations yielding certain intermediate polynomials. We modify this approach in a nontrivial manner by showing that it is enough to store and compare all intermediate polynomials in the sparse representation without expanding arbitrary shifts.
There are also further obstacles. Even in yes instances over Q, one must first show that there exists a witnessing shift in , rather than only over an algebraic extension . One must then prove that such a shift has polynomially bounded bit complexity in the input size, and for the search version, compute and output it within the same bounds.
For this reason, some sparse representations encode exponents in unary. [KK05] uses the terms lacunary or supersparse when exponents are encoded in binary; here, sparse representation always uses binary exponents.
Consider . Thus, one needs to find a common solution of , and the weak Nullstellensatz gives a common solution ; for more details, see Theorem 1.5
For an extension field , define
In particular, denotes the set of shifts over the algebraic closure. The rationality result below shows that if is nonempty, then it contains a rational point. Thus, for the rational decision problem, we may write
without changing the decision problem.
We state the main results over Q to keep the notation simple. The structural statements and arithmetic algorithms are purely algebraic and remain valid over any field K of characteristic zero or characteristic larger than d, after replacing Q by K and omitting the height and bit-complexity assertions.
Theorem 1.2 (Main theorem). Let be given in explicit sparse representation, with sparsities and and degree at most . There is a deterministic algorithm using arithmetic operations that decides whether is nonempty. If , the algorithm outputs a shift .
If the input coefficients have height at most , then one can choose the output shift to have height , and the algorithm can be implemented using bit operations.
The arithmetic algorithm is proved in Theorem 4.3. The bit-complexity analysis over Q is given in proposition 4.4, and the polynomial-height output guarantee uses the small rational witness theorem, Theorem 1.5. This exponentially improves on the indirect ROABP consequence of the DOS'14 framework described above, whose running time has polynomial dependence on d, rather than on . In addition, that framework does not by itself address the existence of a rational shift of polynomial bit-size. Thus both the poly arithmetic bound and the bit-complexity guarantee require additional ideas.
Black-box access. Over Q, given separate evaluation oracles for promised to be sparse, Ben-Or–Tiwari interpolation [BOT88] recovers their explicit representations using poly queries and algebraic-RAM operations. This model permits unit-cost integer remainder operations in addition to arithmetic, and oracle calls are counted at unit cost. Applying Theorem 1.2 to the reconstructed representations gives the same bound in this model. This does not imply the same bit bound: evaluating at 2 already returns a -bit integer. For integer coefficients of magnitude at most , the modular oracle of Bläser–Jindal [BJ14] yields deterministic poly bit-complexity interpolation. Division-free integer circuits simulate this oracle by evaluating each gate modulo the queried modulus; the cost of this simulation also depends on the circuit description size.
The first key technical ingredient is the following sparsity bound. It rules out the possibility that, in a yes instance, the sparse output is obtained only by cancellations among large shifted monomial expansions.
Theorem 1.3 (Structural sparsity bound). Let have sparsities and , respectively, and degree at most . If , then for every monomial appearing in or in ,
In fact, the theorem we prove is much stronger than the statement above. It applies already when and agree only in degrees at least some threshold r. In that case, for every monomial of f of degree at least r, the part of its shifted expansion that can contribute to degrees at least r has sparsity at most st. This truncated form is what is used during the degree-by-degree descent in the proof of Theorem 1.2; see Lemma 3.2. The stronger version is needed for our analysis to work.
Remark 1.4. The inequality in Theorem 1.3 does not bound the total degree of f or g. It only bounds the exponents in the coordinates in which the shift is nonzero. This is the relevant restriction for sparse representation: variables outside do not create binomial expansions, while a monomial expands into
terms in the shifted coordinates. Thus, the theorem does not say anything about how large the exponents in variables outside the support of the shift could be; it rules out a large binomial expansion in the shifted coordinates.
The second ingredient, needed for bit complexity over Q, is that a small rational witness always exists. This is not automatic from the existence of an arbitrary shift: a priori, the solution set could contain only shifts over an algebraic extension, or contain rational shifts only with very large coordinates. We prove that neither obstruction occurs for sparse SET.
Theorem 1.5 (Small rational witness). Let have sparsities and , degree at most , and coefficient height at most . If , then contains a shift whose coordinates have height
Moreover, the polynomial bound is explicit.
The proof of Theorem 1.5 is deferred to Appendix A. It uses the structural sparsity bound again. Once a shift exists, the structural theorem restricts the derivatives of f in the shifted coordinates to a polynomial-dimensional space. Inside this space, the translation from f to g can be represented by a rational differential operator of polynomial height. Taking a finite logarithm of this operator and solving one linear system gives a rational shift of polynomial bit-size.
As a further corollary of the structural bound, we obtain a sparse-time white-box PIT algorithm for shifted-sparse expressions. Here the shifts are given explicitly.
Corollary 1.6 (White-box PIT for shifted-sparse polynomials). Let be sparse polynomials of sparsities and and degree at most , and let be given. There is a deterministic algorithm using arithmetic operations that decides whether
Further, if the input coefficients as well as the vectors have height at most , then the algorithm can be implemented using bit operations.
The proof is given after Lemma 3.2 in Section 3.2.
Remark 1.7. Without the structural theorem, the immediate deterministic approach gives only a bound that depends polynomially on d. Indeed, can be represented as a sum of products of univariate polynomials, and hence as a read-once oblivious algebraic branching program. Applying the white-box PIT algorithm of Raz and Shpilka [RS05] gives a deterministic verification algorithm using arithmetic operations. The corollary above improves this to by using the structural bound to keep the computation in sparse representation.
1.2. Proof Overview
We describe the main ideas behind the algorithm and the analysis. The algorithm is based on the homogeneous descent of [DOS14]. Their framework gives efficient algorithms for low-degree arithmetic circuits, and in particular, its running time is polynomial in the degree bound. For sparse polynomials, however, the degree can be exponentially larger than its binary encoding, so polynomial dependence on d is not sufficient.
Two additional issues have to be handled in the sparse setting. First, a sparse polynomial need not remain sparse after a shift: even has monomials, which is exponential in . In several variables the blow-up can be . Thus we cannot simply expand shifted monomials during the descent. Second, over , an arithmetic algorithm is not enough: one must prove that a polynomial-height rational shift exists and that the algorithm can output such a small witness.
The [DOS14] descent. Write and for the homogeneous components of degree . For a vector , let
So, denotes the directional derivative in direction . Moreover, is the first-order contribution of the degree- part of under a shift in direction , while is the corresponding th-order contribution. Suppose first that for some shift . The homogeneous Taylor expansion is triangular with respect to degree: the degree- part of receives contributions only from the degree- and higher homogeneous parts of . More explicitly,
The term is known, and the term is linear in the unknown shift . The remaining sum is a higher-order tail coming from degrees strictly larger than . This suggests a top-down descent. At degree , there is no tail, so
is just a linear system in the coordinates of . At degree , the equation contains the extra term , which looks quadratic in . The key observation of [DOS14] is that this term is already determined once the first derivative of has been matched. Indeed, if two directions and satisfy
then . Since constant-coefficient differential operators commute, this implies that all higher directional derivatives of in the directions and also agree. Thus the degree- equation again has only one new unknown contribution, namely , which is linear in . More generally, at every stage of the descent, all higher-order terms coming from previously processed homogeneous components are already fixed, and the only new condition to impose is a linear equation for the first derivative of the next homogeneous component.
Modification in the sparse setting. We apply this descent only at degrees where a new first-order term can appear. Let
be the nonzero positive homogeneous degrees of . Since has sparsity , we have . At stage , the algorithm has already processed and has a candidate shift satisfying
By the derivative observation above, the higher-order contributions of these already processed components are the same for and for the true shift . Therefore the tail
is equal to the tail one would obtain from c:
After subtracting this tail, the next condition is again linear:
The algorithm adds this linear constraint to the previous ones and chooses a solution . Thus the nonlinear shift-equivalence problem is reduced, one homogeneous degree at a time, to simple linear algebra.
Why this is not yet an efficient algorithm. The discussion above explains why the shift problem can be reduced to a sequence of linear systems. It does not yet explain why these systems can be constructed and eventually solved from the sparse input in polynomial time. The difficulty lies in the computation of the tail . A single monomial , after the shift , produces many monomials, which may be exponential in the sparse input length. Thus, explicitly forming shifted monomials is too expensive.
One could keep shifted monomials in a circuit representation, but then the algorithm has left the sparse representation. The linear systems in the descent would have entries represented by circuits (of high degree), and constructing or comparing those entries would require PIT for a larger circuit class. The general framework of [DOS14] then gives dependence polynomial in the degree d, or in the relevant circuit/PIT parameters, rather than a polynomial in .
There is a second issue over Q. A naive bit-complexity analysis would bound the tail in terms of the height of the current candidate , since is computed using . The right-hand side of the next linear system would then have height depending on , and standard bounds for basic rational solutions (defined in Appendix A, Definition A.4) would give a recursive estimate for in terms of . Iterating such an estimate over up to s stages need not yield the desired polynomial bound in the sparse input parameters. Thus, the tails must be bounded globally, using a fixed small witnessing shift, rather than recursively through the candidates produced by the algorithm.
The structural lemma and proof sketch of Theorem 1.3. The main new structural input is that the bad shifted expansions cannot occur along a yes instance. The truncated form of the lemma says the following. Suppose
Then for every monomial of ,
Thus, once the shifted polynomial agrees with g in degrees at least r, every shifted monomial that contributes to those degrees is itself sparse after truncation. In particular, large shifted expansions cannot be hidden by cancellations in the final sparse polynomial.
The proof isolates one shifted monomial from the identity . Let , and relabel the target monomial so that . We use Euler-type differential operators, defined as follows:
These operators are diagonal on the shifted monomial basis: . Hence, for a multi-index , the following holds: . Thus the operators act on shifted monomials exactly as evaluation functions on the exponent vectors .
Using interpolation on the finite set of exponent vectors , we choose a set of multi-indices with the following cone-closed property: if and coordinatewise, then . The concept of a cone-closed basis was introduced in [FGS18]. We also choose coefficients such that
Now define the isolating operator
By construction, kills all shifted monomials except the one with exponent . Therefore . The same operator can also be viewed as acting on the ordinary sparse expansion of . This is exactly where sparsity enters. Since , each application of to an ordinary monomial either preserves its exponent or decreases it by one in coordinate . More generally, applying to a monomial can only produce monomials of the form with .
Because is cone-closed, every such possible exponent drop is again contained in . Hence, if , then the support of is contained in . This set has size at most . Since is a nonzero scalar multiple of , the shifted monomial itself has support at most .
The truncated version needed by the algorithm follows from the same argument. Indeed, the operators never increase total degree, so the isolation argument can be applied directly to the high-degree identity
This gives the same support bound for the truncated shifted monomials .
This is the point where our proof differs from the general framework of [DOS14]. Sparse polynomials are not closed under arbitrary shifts. The structural lemma saves us here: although an arbitrary shift of a sparse polynomial may be dense, the shifted pieces that arise along a yes instance of the descent are forced to remain sparse. For details, see Lemma 3.2.
Computing the tails without full expansion. At the beginning of stage q, the maintained invariant gives
Therefore the structural lemma applies with and . Thus, in particular, for every monomial in , the high-degree truncation
has at most st monomials in a yes instance.
The obvious way to use this statement would be to expand and then keep only the terms of degree at least . Unfortunately, this is not efficient: the shifted monomial may be dense as a whole, even though its high-degree truncation is sparse. Nor can one simply invoke sparse interpolation as a black box, since the polynomial naturally available for evaluation is the entire shifted monomial, whose lower-degree part may be dense. The sparse object guaranteed by the structural lemma is only the high-degree truncation.
Instead, the algorithm enumerates only the exact degree- layer, which is part of the structurally bounded high-degree truncation. Using a truncated dynamic-programming enumeration, the algorithm either lists all drops that produce degree , if there are at most st, or detects that there are more than st and rejects. Thus it never enumerates the potentially dense lower-degree part; for details see Lemma 4.1.
The desired tail , however, lies one degree lower, in degree . The algorithm does not enumerate this lower layer directly. Let and let
Then the degree- contribution of is obtained from the controlled degree part by
Thus the algorithm enumerates only this structurally bounded layer and then obtains the one lower layer needed for the descent by a single directional derivative. Summing these contributions over the monomials of and collecting like terms gives in sparse representation.
Bit complexity assuming a small rational shift. We first explain the bit-complexity analysis under the following assumption: there is a true shift whose height is polynomially bounded in the input parameters. Later, we will explain why such a shift always exists over whenever is nonempty.
Under this assumption, the key point is that the tails are not recursively bounded. As mentioned before, if one does it recursively, then iterating over the stages of the descent would give an exponential bound on the output height. The way around this is to prove that the tails are controlled by a single global witness. Although is computed syntactically using , the descent invariant gives
for one fixed true shift c. Hence, after collecting terms, the height of is controlled in terms of the input and the height of this same c, not in terms of a sequence of previously computed candidates. Once the tails have polynomial height, the linear systems have polynomial-height coefficients, and choosing basic rational solutions gives polynomial-height candidates; the definition and the height bound are in Appendix A, Definition A.4 and Lemma A.5. The algorithm also imposes global support checks and coefficient-height checks on the computed tails throughout the descent. These checks are harmless in a yes instance, by the structural lemma and the small-witness bound. On a no instance, the algorithm may reject because one of these checks fails or because one of the linear systems is infeasible. If neither happens, the algorithm obtains a candidate shift a. It then performs a final verification of the identity .
This final check can again be done very efficiently: by the structural lemma, if the identity holds, then every shifted monomial of has support at most st after truncation with , and hence the whole expansion has support at most . The algorithm expands these bounded pieces, collects like terms, and compares the resulting sparse polynomial with g. Thus, the algorithm never accepts a false candidate. For the detailed analysis, we refer to proposition 4.4.
Existence of a small rational shift. It remains to justify that a small rational shift exists whenever any shift exists. First, if a shift exists over an algebraic extension, then a rational shift exists over Q: the complex shift set is an affine subspace, and averaging an algebraic point over its Galois conjugates gives a rational point in the same affine subspace.
The height bound uses the structural lemma once more. Let be any rational shift and let . Then every monomial of satisfies . Consequently, the derivatives of in the variables of span only a polynomial-dimensional space. Inside this space, the translation can be represented by a rational differential operator of polynomial height; see the proof of Theorem 1.5 in Appendix A, in particular (A.1). This operator is unipotent on the relevant derivative space, so its logarithm is a finite sum. The logarithm recovers the first-order translation direction on , namely a polynomial of the form .
Solving the linear system and taking a basic rational solution using Lemma A.5 in Appendix A gives a vector of polynomial height. By the derivative characterization of shifts from [DOS14], this is again a shift from to . Thus, whenever Sparse SET is a yes instance over , there is a witness of polynomial bit-size, and the algorithm outputs one. For details, refer to Theorem 1.5; its proof is deferred to Appendix A.
1.3. Related work
Algorithms related to sparse polynomials. Several basic algorithmic problems have been studied for sparse polynomials, including identity testing, interpolation, factorization, and changes of origin. Sparse identity testing and interpolation go back to the works of Zippel and Ben-Or-Tiwari, and have been followed by several deterministic and randomized algorithms for sparse polynomials and straight-line programs [Zip79, BOT88, KS01, BHLV09, GS09, AGR13]. Sparse factorization has also been extensively studied, beginning with algorithms for bounded-degree factors of sparse polynomials and followed by more recent structural and algorithmic results for factors of sparse polynomials [Len99, AKS06, BSV20, CS26, BKRS26]. For a survey-style introduction to the algorithmic landscape for sparse polynomials, including arithmetic, interpolation, and factorization, see Roche [Roc18].
Sparse shifts and sparsification. The algorithmic study of shifts of sparse polynomials goes back to Grigoriev and Karpinski, Lakshman and Saunders, and Grigoriev and Lakshman [GK93, LS94, GL95]. Their work considered questions such as identity testing, interpolation, and finding changes of origin under which a polynomial has a smaller sparsity. Subsequent work studied algorithms for computing sparsest shifted representations and for interpolation in shifted-sparse models [GKL03, GR10].
Target-free sparse shifts and sparsification. A related but different problem is the target-free sparse-shift problem: given a polynomial , decide whether there exists a shift such that is small, or smaller than . Recent work shows that this sparsification problem is computationally hard [CGS23, BDJ26]. This should be contrasted with Sparse SET: here both endpoints and are part of the input, and the question is whether for some shift . Thus, our problem is target-given rather than target-free.
Polynomial equivalence and orbit testing. There is also a broader polynomial-equivalence literature in which one allows general linear or affine changes of variables. In this setting one asks whether there are and such that , or whether the orbit of a given polynomial intersects a prescribed structured class. Polynomial equivalence is often viewed as an algebraic analogue of graph isomorphism: already, the equivalence of homogeneous cubic forms captures graph isomorphism [AS06, Kay11]. Kayal studied efficient algorithms for special cases of polynomial equivalence and later affine projections of polynomials [Kay11, Kay12].
More recently, there has been work on equivalence testing for structured polynomial families, including read-once arithmetic formulas, design polynomials, and the Hamiltonian cycle poly-nomial [GST23, BDS24, Dew26]. Baraskar, Dewan, Saha, and Sinha also proved NP-hardness of testing equivalence to sparse polynomials and to constant-support polynomials under affine transformations [BDSS24]. Sparse SET is the translation-only, target-given special case, namely the case A = I with both sparse endpoints f and g given as input.
Shift equivalence testing. Grigoriev studied SET itself as a decision and search problem for densely represented polynomials and gave deterministic, randomized, and quantum algorithms in different characteristics [Gri97]. In characteristic zero, the deterministic algorithm runs in time polynomial in the dense representation. For -variate polynomials of total degree at most , the dense representation has size and the running time is . Padding a sparse input with zero coefficients therefore does not give an efficient algorithm when the exponents are encoded in binary.
The result of [DOS14] and its implication for sparse SET. Dvir, Oliveira, and Shpilka [DOS14] studied SET for arithmetic circuits, in both the white-box and black-box models [DOS14]. They gave a randomized algorithm running in time polynomial in the circuit size, the number of variables, and the degree, and showed that the randomness in their algorithm is used only for polynomial identity testing. Consequently, derandomizing PIT would derandomize SET in their framework. They also obtained a general deterministic reduction for restricted circuit classes. In one form, their result applies to classes such that is closed under taking homogeneous components and first-order directional derivatives, while is closed under shifts. The number of arithmetic operations is polynomial in , and in the size of a hitting set, or of a white-box PIT algorithm, for the class of differences . They also pointed out an analogy with algorithms for black-box groups, such as Sims' algorithm: their procedure can be viewed as finding the affine space of all shifts from to , rather than merely deciding whether this space is empty [Ser03].
Although Section 6 of [DOS14] observes that the sparse class is not closed under shifts and gives no direct sparse-class algorithm, a low-degree bound follows indirectly via ROABPs. A sparse polynomial
is a sum of products of univariate polynomials, and hence has a read-once oblivious algebraic branching program of width at most s in any variable order. Choose the same variable order for both inputs. After a shift,
it still has such a representation of size . Therefore, the general white-box theorem of [DOS14], together with white-box ROABP PIT [RS05], yields a deterministic algorithm for explicit sparse inputs using arithmetic operations. This is an indirect consequence rather than a sparse-case result stated in DOS'14. It is efficient in the ordinary low-degree regime, but it is not efficient in the high-degree sparsity setting: the dependence is polynomial in , whereas the sparse input length is polynomial in . Moreover, this framework does not by itself address bit complexity over Q, the existence of a rational shift of polynomial height, or the problem of outputting such a small witness.
2. Preliminaries
Notation.
- Monomials. For vectors and , we write
When z is a vector of variables, then is the monomial with exponent vector given by v. When z is a vector of field elements, then it is the monomial evaluated at the given point.
-
Degree and derivatives. Throughout the paper, degree means total degree. We define , , and , where is the partial derivative taken with respect to the variable .
-
Partial order. We use the coordinate-wise partial order on : for , we write if and only if for every . A set is called cone-closed if, whenever and , we also have .
-
Polynomial notation. For a polynomial , denotes the homogeneous part of degree of , that is, the sum of all monomials of that have degree . For two polynomials , denotes the set of all shift vectors such that . The set of all shifts that leave invariant, that is, , is denoted by . Over , we write for . For a polynomial , denotes the sparsity of , that is, the number of nonzero monomials in . For a polynomial , we also write
- Height. A rational number is said to have height at most if it can be written as , where , , and . This is denoted by . The height of a sparse polynomial, vector, or matrix is the maximum height of its coefficients or entries, and is denoted by .
Remark 2.1. In parts of the literature, this quantity is called logarithmic height. In this paper we simply call it height. Up to constant factors it is the bit-size of the numerators and denominators, so we use height and bit-size interchangeably in polynomial bounds.
Definition 2.2 (Directional derivative). For , the order-r directional derivative of in direction is
We also define . For each homogeneous component of , define
The following lemma, due to Dvir, Oliveira and Shpilka [DOS14], states that if the first directional derivatives are identical for two directions a and b, then all higher order directional derivatives are identical, too.
Lemma 2.3 (Derivative equality under shifts, [DOS14]). Let and . If , then for all .
The next lemma allows us to write the homogeneous parts of a shifted polynomial in terms of their directional derivatives.
Lemma 2.4 (Homogeneous Taylor expansion, [DOS14]). Let and let have degree . Then for ,
Finally, if a is a shift that transforms f into g, then b transforms f into g, too, if and only if the first directional derivatives are identical.
Lemma 2.5 (Shift space via first derivatives, [DOS14]). Let and . If , then if and only if for .
For a polynomial of degree , a shift , and , we define:
Lemma 2.6. For any polynomial , we have
Proof. We have
Applying Lemma 2.4 to each gives an expansion of in terms of the directional derivatives of the homogeneous components of . Since has only one homogeneous component, we get a single term in the expansion:
Plugging this into the previous equation proves the lemma.
2.1. Properties of
Recall that for ,
where the equality is understood as an identity in . We first write two elementary facts about this shift set and then use them for the rational bit-complexity analysis.
Lemma 2.7 ([DOS14, Observation 4.2, Lemma 4.5]). Let , and define
Then is a linear subspace of , given by .
Lemma 2.8 ([DOS14, Lemma 4.4]). For , the set is either empty or an affine subspace of . More precisely, if , then
Proposition 2.9 (Existence of a shift in ). Let . If
is nonempty, then contains a rational point. Equivalently, there exists such that
The proof is deferred to Appendix A.
3. Structural Sparsity Bounds
We first prove the structural statement that drives the algorithm. The proof needs to isolate one chosen shifted monomial from while keeping control over what happens when the same operator is applied to the sparse monomial expansion of . The next lemma provides exactly the indexing set needed for this. It gives an interpolation basis for the exponent vectors of the monomials of , but with the additional cone-closed property: if a multi-index is selected, then every smaller multi-index is selected as well. This closure is what later prevents the differential operator from creating too many possible output monomials.
3.1. Cone-closed basis
Lemma 3.1 (Cone-closed interpolation basis). Let
be a finite set of exponent vectors. Assume that the elements of remain distinct as points of . For every , define by
Then there is a cone-closed set such that is a basis of . In particular, .
Proof. Let be the evaluation map
We first check that this map is surjective. For each , let
be the ideal of polynomials vanishing at . Note that reducing a polynomial modulo is nothing but evaluating at the point .
The ideals are maximal, that is, they are not contained in any other proper ideal. Since the points are pairwise distinct, the ideals are pairwise coprime. By the Chinese remainder theorem, the quotient map
is surjective, and this quotient map is exactly . The image of the monomial under this map is exactly , so the family spans .
Now fix the graded lexicographic order on : vectors are ordered first by total degree and then ties are broken lexicographically. This order is a well-order and refines , meaning that implies . Moreover, it is compatible with addition: if , then for every .
We construct by choosing only dimension-increasing vectors. Start with . If the current span is not all of , then choose to be the least vector, in graded lexicographic order, such that
and set . Such a vector exists whenever the current span is not all of , because the full family spans . Each step increases the dimension of the span by one, so after exactly steps the chosen vectors form a basis of . Let .
When is chosen, minimality implies that every with already lies in span . After adding , the current span therefore contains every with . In particular, no smaller vector can become rank-increasing later, so the selected vectors are increasing in graded lexicographic order.
We now show that is cone-closed. Suppose , , and . Since grlex refines , we have . Write (so is chosen at step ). Because occurs earlier in the grlex order and was not chosen when it was encountered, we have a dependence
Since for the Hadamard product , which is defined as the pointwise product of the vectors, taking the Hadamard product with gives
Because graded lexicographic order is compatible with addition and , each index satisfies . By minimality of , every such already lies in span . Hence , contradicting the choice of as rank-increasing. Therefore no such exists, and is cone-closed.
3.2. Structural lemma
Lemma 3.2. Let be polynomials of degree with sparsities and , respectively. Let , and suppose that
Then, for every monomial appearing in ,
Proof. Write
where all displayed coefficients are nonzero. Fix a monomial appearing in , and relabel the monomials of so that .
Since the exponent vectors are distinct integer vectors, the exponent vectors of the monomials of remain distinct as points of . Apply Lemma 3.1 to these exponent vectors. We get a cone-closed set with such that the vectors , defined by
form a basis of . Hence there are coefficients , isolating the first coordinate:
Define the operators
Since , we have
Define
The operator never increases total degree: each preserves the degree or decreases it by one. Thus, for every polynomial ,
Using the assumed equality , we get
On shifted monomials, acts diagonally. Indeed, , so
where the last equality follows from (3.1). Since , multiplication by does not change sparsity. Therefore,
It remains to bound . For and a monomial of , applying can only change the exponent to for some , so its support is contained in monomials of the form
Because is cone-closed, every such lies in . Hence is supported on monomials of the form
There are at most such monomials. Therefore
16
☐
Taking in Lemma 3.2 proves the -monomial part of Theorem 1.3. The same statement for monomials of follows by applying the lemma to the identity .
Proof of the shifted-sparse PIT corollary, Corollary 1.6. The identity
is equivalent, after the change of variables , to
It is therefore enough to verify identities of the form .
For each monomial of , compute
but stop the multiplication once the value exceeds st. If for some monomial, reject. This is sound: if the identity were true, then Theorem 1.3 would imply for every monomial of .
Otherwise every shifted monomial has at most st terms. Enumerate all vectors with , form the terms
collect like terms over all monomials of , and compare the resulting sparse polynomial with the sparse representation of . The enumeration size is at most , and all exponent arithmetic uses numbers of bit-length , so the arithmetic operation count is . Over , if the input coefficients and the shift coordinates have polynomial bit-size, the same computation has polynomial bit complexity, since every nonzero enumerated term has .
3.3. Height bound for computations in the algorithm
We now fix the single height cap used by the sparse tail computation and by the main algorithm. In the height and bit-complexity statements below, every polynomial bound denoted by is effective. Whenever the algorithm uses such a bound as a height cap, one can replace the notation by a fixed explicit polynomial in the displayed parameters, chosen large enough to dominate the determinant bounds and sparse-expansion bounds proved below. Fix once and for all a sufficiently large absolute constant C and set
We choose C large enough so that this single cap dominates all height bounds used below, including the sparse-expansion bounds for the intermediate tails and the determinant bounds for the basic rational solutions in the yes-instance analysis. Thus every explicit height check in the algorithm can be implemented by comparing against .
Proposition 3.3. With chosen sufficiently large in the definition of , the following holds. Suppose are polynomials of degree with and , . Suppose for a shift whose coordinates satisfy the polynomial height bound from Theorem 1.5. Then, for every ,
Proof. Write
By Lemma 2.6,
Since , Lemma 3.2 with and implies that
Taking a homogeneous part cannot increase support. Therefore each input monomial contributes at most st monomials to , and after collecting like terms
It remains to bound coefficient heights. A nonzero term of is indexed by a vector : it is obtained by replacing copies of by for each , and has coefficient
If this term is nonzero, then . For every along a chain from to , the corresponding term in is also nonzero and distinct. Hence the full expansion has at least nonzero terms. Since its sparsity is at most as noted above, we get
Thus only binomial coefficients with can occur in a nonzero term contributing to . Their product has height , and has polynomial height by Theorem 1.5. Multiplying by the input coefficient gives height
for each generated term. A coefficient of is a sum of at most such rational numbers, so its height is at most . We can choose large enough so that this height is bounded by .
4. Main Algorithm and Proof of Correctness
Before running the descent, handle the trivial cases as follows. If both polynomials are constant, return 0 when they are equal and return FAIL otherwise. If exactly one polynomial is constant, or if the two nonconstant polynomials have different total degrees, return FAIL, because translations preserve total degree.
The pseudocode below describes the rational bit-complexity version. For the arithmetic version over a field K of characteristic zero or larger than d, use the same descent, omit the global height cap and all height checks, and choose any solution of each linear system over K.
Algorithm 1 Main Algorithm for Sparse Shift Equivalence
Require: Sparse representations of nonconstant polynomials with , , , and height at most .
Ensure: A shift in , if one exists; otherwise FAIL
1: Set the global height cap , for the fixed constant chosen in Section 3.3.
2: Let be the nonzero homogeneous components of of positive degree, where . The degree-zero component, if present, is not included.
3: Set .
4: Set to be the empty linear system in the variables .
5: for do
6: Compute the following polynomial using Lemma 4.1 and the global cap ; if the procedure returns FAIL, return FAIL:
.
The subroutine returns FAIL if the collected has more than monomials or a coefficient of height larger than .
7: Let be together with the coefficient equations of
.
8: Solve the linear system for .
9: if the above system has no solution then
10: return FAIL
11: else
12: Let , where is a basic rational solution of the system.
13: end if
14: end for
15: Verify using the sparse verifier from the proof of Corollary 1.6.
16: if then
17: return
18: else
19: return FAIL
20: end if
4.1. Computing the sparse representation of
We now explain how to compute in algorithm 1.
Lemma 4.1. Given , the step that computes in algorithm 1 either returns FAIL or computes the sparse representation of
using arithmetic operations. In the rational bit-complexity model, the same procedure uses
bit operations. If it succeeds, then
Moreover, if
then the enumeration checks in the procedure do not fail.
Proof. For every monomial of , the terms of of degree exactly are indexed by vectors satisfying
Here means that, from the factor , we choose copies of and the remaining copies of . Their coefficients are
and the corresponding monomial is .
The only point at which we use the additional hypothesis in the lemma is to show that these enumeration checks cannot reject. Under that hypothesis, Lemma 3.2 applies with and , and gives
The degree- terms are part of this polynomial. The vectors satisfying (4.1) are exactly the choices that produce those degree- monomials, and different vectors give different monomials. Hence the displayed bound implies that there are at most st such vectors.
We now give a procedure to enumerate all vectors satisfying (4.1). The procedure either returns a list of all such vectors or returns FAIL if there are more than st such vectors. The procedure is polynomial-time in the input size, which is polynomial in n, s, t, , , . We first compute:
If , then no vector satisfying (4.1) exists, because the sum of the coordinates of any such vector is , while the sum of the coordinates where is nonzero is only . In this case the degree- part for this monomial is empty. The degree- part is empty as well, since it would require one additional copy of some coordinate of . Thus this monomial contributes nothing to .
It remains to handle the case . If , the procedure returns FAIL. Under the lemma's additional hypothesis, this case cannot occur. Indeed, since , choose any supported on with . For every , the corresponding term in is nonzero, distinct, and has degree at least . Therefore
contradicting the displayed sparsity bound above.
It remains to handle the case and . Let be the indices for which . We build a dynamic-programming table whose entries are short lists of vectors. The entry records, with cap , all ways to obtain total drop using only the coordinates . For and , let be a list of vectors with
If there are more than st such vectors, we keep only of them.
The table is filled from the end. We start with
where () is the empty vector. For , the list is obtained by trying and appending in front of every vector in :
We stop adding to an entry once it contains vectors. By induction on , each entry either contains all vectors satisfying its condition, or contains such vectors. Hence directly gives the vectors satisfying (4.1), after adding zero coordinates outside .
If has size , the procedure returns FAIL. Otherwise it is the exact list of all degree- vectors. The table has entries, each entry tries at most values of and stores at most vectors, so this takes polynomial time. Each listed vector gives the monomial and coefficient above.
The listed terms are exactly the degree- part
We now recover the degree- contribution from by a direct coefficient calculation. Write
Let denote the th standard basis vector. Fix with and . The monomial can arise in only by differentiating, for some with , the degree- monomial corresponding to . Thus its coefficient in is
For every with ,
Hence the coefficient above equals
which is times the coefficient of in . Therefore the contribution of to is
Summing these contributions over all monomials of and collecting like terms gives exactly .
After the terms have been collected, we make one final size check. If the result has more than monomials, or if one of its coefficients has height larger than the supplied height cap, then we return FAIL. In algorithm 1, this cap is . Otherwise we output the collected sparse representation.
The vector-list dynamic program, the binomial coefficients with , the one additional multiplication by a coordinate of and by an exponent in the directional derivative, the collection of like terms, and the final height comparisons all use
bit operations.
21
□
Remark 4.2. The computation of uses the current vector , but on a yes instance its value can be bounded through the fixed witnessing shift . Indeed, the tail equality proved in Theorem 4.3 gives on every yes instance. Thus the sparsity and height of the computed tail are controlled by proposition 3.3, using the single fixed shift rather than a bound that grows recursively with .
Theorem 4.3. Algorithm 1 correctly determines whether there exists a shift in .
Proof. First suppose . Then for every vector , the polynomial is nonzero. Thus no candidate can pass the final verification check. The algorithm may return FAIL earlier because an enumeration exceeds the support cap, because a computed coefficient exceeds , or because a linear system is infeasible. If none of these early checks fails, then all intermediate sparse objects are bounded by the explicit caps in the algorithm and the candidate coordinates are bounded by the basic-solution determinant bound, so the final sparse verifier from Corollary 1.6 runs within the stated polynomial time and rejects. Hence the algorithm can only return FAIL on no instances.
It remains to consider a yes instance. By Theorem 1.5, fix of height . Then . By Lemma 2.4, for every ,
We prove the following invariant at the beginning of iteration q:
(i) Both c and the current vector satisfy .
(ii) Every solution b of satisfies
(iii) The current vector satisfies
For , the first item holds because is empty, the second item is vacuous, and the third holds because , , and translations do not change the top homogeneous component:
Now assume the invariant holds at the beginning of iteration q. The high-truncation equality (4.4) is exactly the hypothesis used in Lemma 4.1 to apply Lemma 3.2 with . Hence the enumeration checks in the computation of do not fail.
We next compare the tail being computed with the corresponding tail at the true shift . If and , then for some . Applying the induction invariant to the algorithm's current vector gives equality of the first directional derivatives in the directions and . By Lemma 2.3,
Therefore
By (4.6), the polynomial being checked is , which depends only on the fixed witnessing shift . The structural lemma gives the required sparsity bound, so the size checks in Lemma 4.1 pass. In the rational bit-complexity version, proposition 3.3 also applies: has height at most . Hence the height checks pass as well, so the computation of does not return FAIL.
Using (4.2) and (4.6) with , we get
Thus c satisfies the new equations added in iteration q, and hence satisfies .
Let be any solution of . Since , the induction invariant gives (4.3) for all . Subtracting (4.7) from the new equation in gives
Therefore every solution of satisfies the derivative equalities for all .
The algorithm chooses to be a solution of . In the rational bit-complexity version it chooses a basic rational solution; by Lemma A.5 in Appendix A and the choice of , this solution has height at most . If , we prove the high-truncation invariant for the next iteration. By the previous paragraph and Lemma 2.3, all directional derivative contributions from components with are the same under and under . For degrees at least , every contribution either comes from one of these already processed higher components, or from the top part of the component of the same degree, which is independent of the shift. Hence
This proves the invariant for the next iteration.
After the final iteration, the returned vector satisfies
If or , then . Therefore
Since , Lemma 2.5 implies . The final verification succeeds, and the algorithm returns a valid shift.
Proposition 4.4 (Runtime and height bounds). In the rational bit-complexity version, every basic rational solution computed by algorithm 1 has height
Moreover, the algorithm can be implemented using bit operations.
Proof. There are at most nonzero positive homogeneous components of , so the algorithm has at most iterations. In iteration , only the degree equations are newly added; all earlier equations are kept in .
We first record the size and height of the equations added in one stage. Suppose that the algorithm reaches the linear-system step in iteration q. Then the computation of has been accepted by the global checks. Hence
Therefore the right-hand side has support at most and height bounded by . Here we use the fact that was chosen to be a fixed polynomial bound large enough to dominate all height bounds used by the algorithm. The newly added equations are obtained by comparing coefficients in
The right-hand side has support at most . On the other hand,
Thus the support of the left-hand side is contained in the union of the supports of the partial derivatives of . Since , this union has size at most . Consequently, the coefficient comparison in iteration introduces at most scalar linear equations.
The coefficients of these equations come from the partial derivatives . Differentiating a monomial only multiplies its coefficient by an exponent bounded by , so the entries of the coefficient matrix have height . The right-hand side has height , as shown above. Therefore, after any iteration , the accumulated system has only scalar equations in the variables , and all entries of its coefficient matrix and right-hand side have height .
We now apply Lemma A.5 in Appendix A. If the accumulated system is feasible, then a basic rational solution has height , and such a solution can be computed using bit operations. On yes instances, the choice of is large enough to dominate this polynomial height bound. On no instances, this polynomial bound is sufficient for the bit-complexity analysis; no separate height cap is imposed on .
It remains to justify that the whole algorithm has polynomial bit complexity. We argue inductively only for the cost of computing the successive tails and solutions; the height of itself is controlled by the global check above, not by a recursive height bound. The initial vector is , so it has height 0. Suppose that the algorithm has reached iteration and that has height
Then Lemma 4.1 computes , or returns FAIL, using bit operations. If the computation succeeds, the global support and height checks give
so the newly added equations have the polynomial size and height bounds proved above. Hence exact linear algebra, together with the appendix Lemma A.5, computes the next basic rational solution using
bit operations, and this solution again has height
This completes the induction for every candidate vector produced by the algorithm.
Since there are at most iterations, the total cost of all computations of the polynomials and all linear-system solves is . Finally, if the algorithm reaches the last verification step, the candidate shift has polynomial height. Therefore the final sparse verification can be performed in bit operations by the proof of Corollary 1.6. Hence the whole rational bit-complexity version of the algorithm runs in bit operations, and every basic rational solution computed by the algorithm has height .
5. Conclusion and Open Problems
We gave the first deterministic polynomial-time algorithm, in the sparse input size, for target-given shift equivalence of sparse multivariate polynomials over Q. For of sparsities and degree at most , the algorithm decides whether there is such that
using polynomially many arithmetic operations in . It outputs a rational shift of polynomial height and runs in polynomial bit complexity, with polynomial bounds in . As noted in the introduction, the structural and arithmetic parts extend to any field of characteristic zero or larger than . This exponentially improves on the indirect ROABP-based consequence of the framework of Dvir, Oliveira, and Shpilka described above [DOS14], whose dependence on the degree is polynomial in rather than polynomial in .
The key point is that, although sparse polynomials are not closed under shifts, our structural lemma shows that the shifted expansions arising in a yes instance remain sparse after the relevant truncations. This allows the homogeneous descent to be carried out entirely in sparse representation. Over Q, the same structural control also keeps the bit-complexity analysis from becoming recursive in the heights of the intermediate candidates.
In the algebraic-RAM model described above, separate black-box access to two promised-sparse inputs is handled by sparse interpolation. This differs from receiving evaluation access only to the composed expression , for which our structural verifier cannot inspect and . Black-box PIT for any-order ROABPs [GKS17, GG20] gives polynomial dependence on and quasipolynomial-type dependence overall; obtaining complexity polynomial in for this composed-oracle problem remains open.
Another direction is to understand the small-characteristic regime. Our algorithm uses Taylor expansion, directional derivatives, and factorial denominators, and therefore assumes that the characteristic is zero or larger than the degree. In small characteristic, several derivative-based characterizations no longer apply in the same form. It would be interesting to determine whether sparse shift equivalence still admits an efficient deterministic algorithm for formal polynomial identities in small characteristic.
Acknowledgements. The authors thank OpenAI's ChatGPT Pro for assistance during the preparation of this manuscript. ChatGPT Pro also suggested the argument leading to the small rational shift existence proof of Theorem 1.5. The authors have independently checked the arguments and take full responsibility for the correctness of all results and proofs.
References
[AGR13] Andrew Arnold, Mark Giesbrecht, and Daniel S. Roche. Faster sparse interpolation of straight-line programs. In Computer Algebra in Scientific Computing - 15th International Workshop, CASC 2013, volume 8136 of Lecture Notes in Computer Science, pages 61–74. Springer, 2013. doi:10.1007/978-3-319-02297-0_5.
[AKS06] Martín Avendaño, Teresa Krick, and Martín Sombra. Factoring bivariate sparse (lacunary) polynomials. In Proceedings of the 2006 International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 193–200. ACM, 2006.
[AS06] Manindra Agrawal and Nitin Saxena. Equivalence of F-algebras and cubic forms. In Proceedings of the 23rd Symposium on Theoretical Aspects of Computer Science (STACS), volume 3884 of Lecture Notes in Computer Science, pages 115–126. Springer, 2006.
[BDJ26] Markus Bläser, Sagnik Dutta, and Gorav Jindal. Problems from optimization and computational algebra equivalent to Hilbert's Nullstellensatz. In Kasper Green Larsen and Barna Saha, editors, Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 6308–6331. SIAM, 2026. doi:10.1137/1.9781611978971.227.
[BDS24] Omkar Baraskar, Agrim Dewan, and Chandan Saha. Testing equivalence to design polynomials. In 41st International Symposium on Theoretical Aspects of Computer Science, STACS 2024, volume 289 of Leibniz International Proceedings in Informatics, pages 9:1–9:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.STACS.2024.9.
[BDSS24] Omkar Baraskar, Agrim Dewan, Chandan Saha, and Pulkit Sinha. NP-hardness of testing equivalence to sparse polynomials and to constant-support polynomials. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, Tallinn, Estonia, July 8-12, 2024, volume 297 of LIPIcs, pages 16:1–16:21. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. URL: https://doi.org/10.4230/LIPIcs.ICALP.2024.16, doi:10.4230/LIPICS.ICALP.2024.16.
[BHLV09] Markus Bläser, Moritz Hardt, Richard J. Lipton, and Nisheeth K. Vishnoi. Deterministically testing sparse polynomial identities of unbounded degree. Information Processing Letters, 109(3):187–192, 2009.
[BJ14] Markus Bläser and Gorav Jindal. A new deterministic algorithm for sparse multivariate polynomial interpolation. In Proceedings of the 39th International Symposium on Symbolic and Algebraic Computation, pages 51–58. ACM, 2014. doi:10.1145/2608628.2608648.
[BKRS26] Somnath Bhattacharjee, Rishabh Kothary, Shanthanu S. Rai, and Shubhangi Saraf. Deterministic algorithms for low individual degree factors of sparse polynomials. CoRR, abs/2606.27293, 2026. URL: https://doi.org/10.48550/arXiv.2606.27293, arXiv:2606.27293, doi:10.48550/ARXIV.2606.27293.
[BOT88] Michael Ben-Or and Prasoon Tiwari. A deterministic algorithm for sparse multivariate polynomial interpolation. In Proceedings of the 20th Annual ACM Symposium on Theory of Computing, pages 301–309. ACM, 1988. doi:10.1145/62212.62241.
[BSV20] Vishwas Bhargava, Shubhangi Saraf, and Ilya Volkovich. Deterministic factorization of sparse polynomials with bounded individual degree. Journal of the ACM, 67(2):1–28, 2020.
[CGS23] Suryajith Chillara, Coral Grichener, and Amir Shpilka. On hardness of testing equivalence to sparse polynomials under shifts. In Petra Berenbrink, Patricia Bouyer, Anuj Dawar, and Mamadou Moustapha Kanté, editors, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, Hamburg, Germany, March 7-9, 2023, volume 254 of LIPIcs, pages 22:1–22:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023. URL: https://doi.org/10.4230/LIPIcs.STACS.2023.22, doi:10.4230/LIPICS.STACS.2023.22.
[CS26] Aminadav Chuyoon and Amir Shpilka. On factorization of sparse polynomials of bounded individual degree. Electron. Colloquium Comput. Complex., TR26, 2026. URL: https://eccc.weizmann.ac.il/report/2026/036.
[Dew26] Agrim Dewan. Testing equivalence to the hamiltonian cycle polynomial. CoRR, abs/2606.26653, 2026. URL: https://doi.org/10.48550/arXiv.2606.26653, arXiv:2606.26653, doi:10.48550/ARXIV.2606.26653.
[DG24] Pranjal Dutta and Sumanta Ghosh. Advances in polynomial identity testing. SIGACT News, 55(2):38–86, 2024. doi:10.1145/3674159.3674165.
[DOS14] Zeev Dvir, Rafael Oliveira, and Amir Shpilka. Testing equivalence of polynomials under shifts. In Javier Esparza, Pierre Fraigniaud, Thore Husfeldt, and Elias Koutsoupias, editors, Automata, Languages, and Programming - 41st International Colloquium, ICALP 2014, Copenhagen, Denmark, July 8-11, 2014, Proceedings, Part I, volume 8572 of Lecture Notes in Computer Science, pages 417–428. Springer, 2014. doi:10.1007/978-3-662-43948-7_35.
[FGS18] Michael A Forbes, Sumanta Ghosh, and Nitin Saxena. Towards blackbox identity testing of log-variate circuits. In 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018), pages 54:1–54:16. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2018.
[FS13] Michael A. Forbes and Amir Shpilka. Quasipolynomial-time identity testing of non-commutative and read-once oblivious algebraic branching programs. In 54th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2013, pages 243–252. IEEE Computer Society, 2013. doi:10.1109/FOCS.2013.34.
[FSS14] Michael A. Forbes, Ramprasad Saptharishi, and Amir Shpilka. Hitting sets for multilinear read-once algebraic branching programs, in any order. In Proceedings of the 46th Annual ACM Symposium on Theory of Computing, STOC 2014, pages 867–875. ACM, 2014. doi:10.1145/2591796.2591816.
[GG20] Zeyu Guo and Rohit Gurjar. Improved explicit hitting-sets for ROABPs. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2020), pages 4:1–4:16. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2020.
[GK93] Dima Grigoriev and Marek Karpinski. A zero-test and an interpolation algorithm for the shifted sparse polynomials. In Gérard D. Cohen, Teo Mora, and Oscar Moreno, editors, Applied Algebra, Algebraic Algorithms and Error-Correcting Codes, 10th International Symposium, AAECC-10, San Juan de Puerto Rico, Puerto Rico, May 10-14, 1993, Proceedings, volume 673 of Lecture Notes in Computer Science, pages 162–169. Springer, 1993. doi:10.1007/3-540-56686-4_41.
[GKL03] Mark Giesbrecht, Erich L. Kaltofen, and Wen-shin Lee. Algorithms for computing sparsest shifts of polynomials in power, Chebyshev, and Pochhammer bases. Journal of Symbolic Computation, 36(3–4):401–424, 2003.
[GKS17] Rohit Gurjar, Arpita Korwar, and Nitin Saxena. Identity testing for constant-width, and any-order, read-once oblivious arithmetic branching programs. Theory Comput., 13(1):1–21, 2017. URL: https://doi.org/10.4086/toc.2017.v013a002, doi:10.4086/TOC.2017.V013A002.
[GL95] Dima Grigoriev and Yagati N. Lakshman. Algorithms for computing sparse shifts for multivariate polynomials. In A. H. M. Levelt, editor, Proceedings of the 1995 International Symposium on Symbolic and Algebraic Computation, ISSAC '95, Montreal, Canada, July 10-12, 1995, pages 96–103. ACM, 1995. doi:10.1145/220346.220359.
[GR10] Mark Giesbrecht and Daniel S. Roche. Interpolation of shifted-lacunary polynomials. computational complexity, 19(3):333–354, 2010.
[Gri97] Dima Grigoriev. Testing shift-equivalence of polynomials by deterministic, probabilistic and quantum machines. Theor. Comput. Sci., 180(1-2):217–228, 1997. doi:10.1016/S0304-3975(96)00188-0.
[GS09] Sanchit Garg and Éric Schost. Interpolation of polynomials given by straight-line programs. Theoretical Computer Science, 410(27-29):2659–2662, 2009. doi:10.1016/j.tcs.2009.03.030.
[GST23] Nikhil Gupta, Chandan Saha, and Bhargav Thankey. Equivalence test for read-once arithmetic formulas. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4205–4272. SIAM, 2023.
[Kay11] Neeraj Kayal. Efficient algorithms for some special cases of the polynomial equivalence problem. In Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1409–1421. SIAM, 2011.
[Kay12] Neeraj Kayal. Affine projections of polynomials. In Proceedings of the 44th Annual ACM Symposium on Theory of Computing, STOC 2012, pages 643–662. ACM, 2012. doi:10.1145/2213977.2214036.
[KI04] Valentine Kabanets and Russell Impagliazzo. Derandomizing polynomial identity tests means proving circuit lower bounds. Computational Complexity, 13(1-2):1–46, 2004. doi:10.1007/s00037-004-0182-6.
[KK05] Erich L. Kaltofen and Pascal Koiran. On the complexity of factoring bivariate super-sparse (lacunary) polynomials. In Proceedings of the 2005 International Symposium on Symbolic and Algebraic Computation (ISSAC 2005), pages 208–215. ACM, 2005. doi:10.1145/1073884.1073914.
[KS01] Adam R. Klivans and Daniel A. Spielman. Randomness efficient identity testing of multivariate polynomials. In Proceedings of the 33rd Annual ACM Symposium on Theory of Computing, pages 216–223. ACM, 2001. doi:10.1145/380752.380801.
[Len99] Hendrik W. Lenstra, Jr. Finding small degree factors of lacunary polynomials. Number Theory in Progress, 1:267–276, 1999.
[LS94] Yagati N. Lakshman and B. David Saunders. On computing sparse shifts for univariate polynomials. In Malcolm A. H. MacCallum, editor, Proceedings of the International Symposium on Symbolic and Algebraic Computation, ISSAC '94, Oxford, UK, July 20-22, 1994, pages 108–113. ACM, 1994. doi:10.1145/190347.190373.
[Roc18] Daniel S. Roche. What can (and can't) we do with sparse polynomials? CoRR, abs/1807.08289, 2018. arXiv:1807.08289.
[RS05] 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.
[Sch80] Jacob T. Schwartz. Fast probabilistic algorithms for verification of polynomial identities. Journal of the ACM, 27(4):701–717, 1980. doi:10.1145/322217.322225.
[Ser03] Ákos Seress. Permutation Group Algorithms, volume 152 of Cambridge Tracts in Mathematics. Cambridge University Press, 2003.
[Zip79] Richard Zippel. Probabilistic algorithms for sparse polynomials. In Symbolic and Algebraic Computation, EUROSAM 1979, volume 72 of Lecture Notes in Computer Science, pages 216–226. Springer, 1979. doi:10.1007/3-540-09519-5_73.
A. Missing Proofs
Observation A.1. Let be an affine subspace. If and satisfy
then
In particular, affine subspaces are closed under affine averages.
Proof. Write , where is a linear subspace. For each , write with . Then
since and V is closed under linear combinations.
Proof of proposition 2.9. Write
where each . Thus is the common zero set of finitely many polynomials with rational coefficients:
Since is nonempty, choose . Then for all . Now, consider the ideal
We claim that is a proper ideal. Indeed, if , then we could write
with , and evaluating at would give , a contradiction. Thus is proper. Since is algebraically closed, the weak Nullstellensatz gives a point
such that for all . Equivalently, .
Let be a finite Galois extension containing all coordinates of , and let
For every , applying to the identity gives
because the coefficients of and lie in . Hence for every .
Since is an affine subspace, it is closed under affine averages; see observation A.1. Therefore
On the other hand, is fixed by every element of . Formally, for any , the sum is just a reordering
Thus each coordinate of lies in . Therefore
Consequently there exists a rational vector such that
as desired.
Proof of Theorem 1.5. Suppose . By proposition 2.9, choose a rational shift .
The proof has three steps. First, the structural bound confines all relevant derivatives of to a polynomial-dimensional space . Second, on we represent the translation from to by a small-height unipotent operator and take its finite logarithm to recover . Third, we solve for a small basic rational solution ; the difference stabilizes , so is again a valid shift.
If is constant, then , and the zero shift is a rational witness of height 0. Thus we may assume that is nonconstant.
Let and
By Lemma 3.2 with , every monomial of satisfies
For a fixed monomial of , a derivative with is nonzero exactly when for every . Therefore,
Fact A.2. The number of nonzero derivatives
is at most
Fact A.3. Each such nonzero derivative satisfies
Here is the fixed field of . Since is Galois and , we have .
Since f has at most s monomials, fact A.2 implies
Let
Choose a basis
of W such that each
for some with . Since we take , we have .
Now solve the linear system
in variables , where the linear equations of the system are obtained by comparing coefficients of monomials on both sides.
We claim that the system is satisfiable over Q. This is because
where the inclusion follows because is the only polynomial of degree in the basis , while the displayed sum has degree at most and hence lies in the span of .
By fact A.3, every coefficient of the derivatives has height at most
because differentiating multiplies the input coefficients by falling factorials of exponents and each exponent is bounded by . Therefore, the linear system has coefficient height and it has variables. Then, by Lemma A.5, it has a rational solution with height
Define the differential operator:
Then we have
Fact A.3 says that any derivative of with respect to -variables and total order is zero. Therefore,
Thus the logarithm of Y is finite on W:
Put
The polynomial has coefficient height . Indeed, work in the basis of . Choose monomial coordinates in which the coefficient matrix of is nonsingular; this matrix has height . For each basis element , the polynomial is a polynomial-height linear combination of derivatives of of total order at most . Expressing back in by Lemma A.5 gives polynomial-height coordinates. Thus the matrix of the transformation has polynomial height. Since ,
in B-coordinates, and repeated matrix multiplication and addition for st steps keep the bit-height polynomial.
Now compare Y with the shift operator
We have
Since and are constant-coefficient differential operators, they commute with every . Therefore, for every with ,
Thus Y and act identically on W. Their logarithms also act identically on W, because the logarithm is a finite polynomial in the nilpotent operator on W. Hence
Finally, solve the linear system in variables :
It is consistent, since is a solution. The coefficient matrix has height , and the right-hand side has polynomial height. Thus Lemma A.5 gives a rational solution with
Set for . Then
SO
Hence, by Lemma 2.7, we have . It follows that and has the desired height bound.
Definition A.4 (Basic rational solution). Let be a feasible linear system over , with and . Choose linearly independent columns of whose span contains , set all other variables to zero, and solve for the variables in the chosen columns. The resulting vector is called a basic rational solution.
Lemma A.5 (Basic rational solution: height and bit complexity). Let and be a linear system such that every entry of and has height at most . If the system is feasible, then:
(i) there exists a basic rational solution , and
(ii) every coordinate of has height .
Moreover, such a basic rational solution can be computed deterministically in bit operations.
Proof. Let . Since the system is feasible, lies in the column span of . Choose independent columns that form a basis of this column span. Then , so the reduced system is feasible. Choose independent rows such that the square matrix is nonsingular, and let . Solving
determines the unique vector with ; the remaining rows are satisfied because they are linear combinations of the rows in on the column space spanned by . Setting all variables outside to zero gives a basic rational solution of the original system.
For height, write each coordinate of by Cramer's rule as , where denotes the matrix obtained from by replacing its th column with the right-hand side vector . By Hadamard's bound, determinants of matrices with entry height have height , hence each coordinate has height .
For computation, use fraction-free Gaussian elimination (or equivalent exact linear algebra over Q) to find , a nonsingular basis matrix C, and the corresponding solution exactly; the bit-lengths of all intermediate integers and the total bit-operation cost are bounded by .