Abstract
In this paper, we propose new deterministic and Monte Carlo interpolation algorithms for sparse multivariate polynomials represented by straight-line programs. Let $f$ be an $n$-variate polynomial given by a straight-line program, which has a degree bound $D$ and a term bound $T$. Our deterministic algorithm is quadratic in $n,T$ and cubic in $\log D$ in the Soft-Oh sense, which has better complexities than existing deterministic interpolation algorithms in most cases. Our Monte Carlo interpolation algorithms have better complexities than existing Monte Carlo interpolation algorithms and are the first algorithms whose complexities are linear in $nT$ in the Soft-Oh sense. Since $nT$ is a factor of the size of $f$, our Monte Carlo algorithms are optimal in $n$ and $T$ in the Soft-Oh sense.
Introduction
In computer algebra, representing a polynomial by listing all its coefficients—the "dense" model—is often computationally infeasible because the number of terms can grow exponentially with the degree and number of variables. To address this, polynomials are frequently represented as Straight-Line Programs (SLPs). An SLP is a sequence of arithmetic instructions (additions, subtractions, multiplications) that compute the polynomial.
The central challenge is sparse interpolation: given an SLP "black box" that computes a polynomial $f$, how can we efficiently recover its symbolic form (the specific terms and coefficients)? Prior algorithms often exhibited cubic or quartic complexity in terms of the number of variables $n$ or the number of terms $T$. This research bridges the gap toward optimal efficiency, specifically for sparse polynomials where $T$ is significantly smaller than the total possible degree $D$.
Methodology
The proposed approach reduces multivariate interpolation to univariate interpolation through three novel techniques:
- Term Testing Criterion: A new mathematical rule to verify whether a candidate term belongs to the original polynomial $f$, allowing for efficient filtering of potential terms.
- Deterministic "OK" Prime Selection: To prevent collisions where different terms map to the same value during modular reduction, the algorithm employs a new deterministic method to find a "good" prime number. This ensures that at least half of the terms remain distinct.
- Modified Kronecker Substitution: While standard Kronecker substitution ($x_i \to x^{D^{i-1}}$) is often used to convert multivariate problems to univariate ones, it can lead to massive data sizes. The authors introduce a modified version that maintains manageable data sizes and avoids solving the complex linear systems that previously acted as bottlenecks.
The algorithm operates iteratively: it identifies an "ok" prime, recovers at least half of the remaining terms using the new substitution and testing criterion, subtracts these terms from the SLP, and repeats until the entire polynomial is reconstructed.
Key Results and Complexity Analysis
The primary contribution of this work is achieving near-optimal complexity. The Monte Carlo version of the algorithm achieves $O^\sim(LnT \log^3 D)$, making it the first algorithm to be linear in both $n$ and $T$. Since $nT$ is a fundamental factor of the polynomial's representation size, this represents a theoretical "speed of light" for sparse interpolation.
As shown in the comparison of total costs, the new deterministic algorithm ($O^\sim(Ln^2T^2 \log^2 D + LnT \log^3 D)$) significantly outperforms the previous state-of-the-art by Garg & Schost, which scaled at $O^\sim(Ln^2T^4 \log^2 D)$.
Furthermore, the bit complexity analysis highlights the efficiency of these methods across different field requirements.
Experimental results using randomly constructed polynomials in Maple confirm these theoretical bounds. The Monte Carlo version, in particular, demonstrates a clear linear relationship between execution time and the number of terms $T$, validating its practical utility.
Discussion and Future Work
While the algorithms are optimal in the Soft-Oh sense, several areas for refinement remain. The logarithmic factors, though ignored in Soft-Oh notation, have a non-negligible impact on real-world performance. Additionally, while the Monte Carlo algorithms are highly efficient, one variant requires evaluation in a proper extension field of $\mathbb{F}_q$, which can introduce implementation overhead. Future research may also focus on specialized bit complexity analysis for polynomials over $\mathbb{Z}$ with exceptionally large coefficients.
Summary updated