arXiv:2610.27168cs.DSOct 2026

Manuscript Offprint

arXiv:2610.27168

Deterministic Shift Equivalence Testing for Sparse Polynomials

Markus Bläser, Pranjal Dutta, Sagnik Dutta, Gorav Jindal

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

Markus Bläser 1^{1} Pranjal Dutta 2^{2} Sagnik Dutta 3^{3} Gorav Jindal ∗4^{*4}

1^{1}Saarland University, Saarland Informatics Campus, Saarbrücken, Germany

Email: mblaeser@cs.uni-saarland.de

2^{2}Nanyang Technological University, Singapore

Email: pranjal.dutta@ntu.edu.sg

3^{3}Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany

Email: sadutta@mpi-inf.mpg.de

4^{4}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 f,g∈Q[x1,…,xn]f, g \in \mathbb{Q}[x_1, \ldots, x_n], with exponents encoded in binary, sparsities ss and tt, and total degree at most dd, the task is to decide whether there is a vector a∈Qn\mathbf{a} \in \mathbb{Q}^n such that f(x+a)≡g(x)f(\mathbf{x} + \mathbf{a}) \equiv g(\mathbf{x}). 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 Q\mathbb{Q}. If the input coefficients have bit-size at most τ\tau, 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 poly(n,s,t,τ,log⁡d)\text{poly}(n, s, t, \tau, \log d) in the bit model. The arithmetic and structural parts of our result also hold over any field of characteristic zero or characteristic larger than dd.

1. Introduction

Shift Equivalence Testing (SET) asks the following seemingly simple question: Given two polynomials f,g∈Q[x1,…,xn]f, g \in \mathbb{Q}[x_1, \ldots, x_n], decide whether there is a vector a=(a1,…,an)∈Qn\mathbf{a} = (a_1, \ldots, a_n) \in \mathbb{Q}^n such that

f(x+a)≡g(x),f(\mathbf{x}+\mathbf{a})\equiv g(\mathbf{x}),

and output such a vector if it exists. The symbol ≡\equiv emphasizes that the equality is an identity of formal polynomials, not merely an equality of functions. Over Q\mathbb{Q} 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 ff can be transformed into itself by the zero shift. When f(x+a)=g(x)f(\mathbf{x} + \mathbf{a}) = g(\mathbf{x}), then also f(x)=g(x−a)f(\mathbf{x}) = g(\mathbf{x} - \mathbf{a}), 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 ff into gg and shifting by b\mathbf{b} transforms gg into hh, then a+b\mathbf{a} + \mathbf{b} transforms ff into hh, 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 nn-variate polynomial of total degree at most dd, this list contains (n+dd)\binom{n+d}{d} coefficients. His deterministic characteristic-zero algorithm takes nO(d)n^{O(d)} 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 n×nn \times n matrix has n!n! 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 dd. Their algorithm also works with black-box access to ff and gg 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 f∈Q[x]f \in \mathbb{Q}[\mathbf{x}] as an arithmetic circuit CC, is ff 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 ff 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 poly(n,s,t,d)\text{poly}(n, s, t, d) 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

cx1α1⋯xnαn,c∈Q,c x_{1}^{\alpha_{1}}\cdots x_{n}^{\alpha_{n}},\qquad c\in\mathbb{Q},

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 s=sp(f)s = \text{sp}(f) and t=sp(g)t = \text{sp}(g), the height, equivalently bit-size, of the coefficients of f, g, and log⁡d\log d, 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 O(log⁡d)O(\log d) bits. Classical sparse interpolation likewise targets this regime: Ben-Or–Tiwari has algebraic-RAM complexity polynomial in log⁡d\log d [BOT88], and Garg–Schost obtains such dependence under straight-line-program access [GS09]. The indirect deterministic ROABP algorithm described above has polynomial dependence on dd, so it does not give polynomial time in the binary sparse input length. 1^{1} Our algorithm reduces the degree dependence to poly(log⁡d)\text{poly}(\log d) for explicit sparse inputs and also provides polynomial bit complexity over Q\mathbb{Q}.

More formally, let Sparse SET denote the following problem: given two polynomials f,g∈Q[x1,…,xn]f, g \in \mathbb{Q}[x_1, \ldots, x_n] in sparse representation, decide whether there exists a shift a∈Qn\mathbf{a} \in \mathbb{Q}^n such that

f(x+a)≡g(x).f(\mathbf{x}+\mathbf{a})\equiv g(\mathbf{x}).

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 supp(a):={i:ai≠0}\text{supp}(\mathbf{a}) := \{i : a_i \neq 0\}, then

(x+a)γ=∏i=1n(xi+ai)γi(\mathbf{x}+\mathbf{a})^{\gamma}=\prod_{i=1}^{n}(x_{i}+a_{i})^{\gamma_{i}}

has exactly

∏i∈supp(a)(γi+1)\prod_{i\in\mathrm{supp}(\mathbf{a})}(\gamma_{i}+1)

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 ff is sparse, the shifted polynomial f(x+a)f(\mathbf{x} + \mathbf{a}) 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 poly(n,s,t,d)\text{poly}(n, s, t, d) arithmetic operations, which is not polynomial in the sparse input length when dd 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, τ\tau)?

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( log⁡d\log d). 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 a\mathbf{a} in Qn\mathbb{Q}^n, rather than only over an algebraic extension 2^2. 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.

1^{1}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.

2^{2}Consider f(x+z)−g(x)=∑αFα(z)xαf(\mathbf{x} + \mathbf{z}) - g(\mathbf{x}) = \sum_{\alpha} F_{\alpha}(\mathbf{z}) \mathbf{x}^{\alpha}. Thus, one needs to find a common solution of Fα(z)F_{\alpha}(\mathbf{z}), and the weak Nullstellensatz gives a common solution a∈Q‾n\mathbf{a} \in \overline{\mathbb{Q}}^{n}; for more details, see Theorem 1.5

References (49)