Many computations in number theory and arithmetic geometry produce polynomials whose coefficients are p-adic numbers. These are numbers written as power series in a prime $p$, and in practice they are truncated, so each one is known only up to a hard error term $O(p^N)$. Often the polynomial is available only as a black box, meaning a procedure you can evaluate but cannot inspect, and it typically has few terms among very many possible ones. Sparse interpolation is the task of recovering those terms and their coefficients from a small number of evaluations. The fast algorithms for it, Ben-Or/Tiwari, Prony and randomized Kronecker substitution, all assume exact arithmetic. Over the p-adics they divide by quantities that are divisible by high powers of $p$, and each such division silently destroys digits.
We propose a p-adic version of Ben-Or/Tiwari built around one observation. If the black box is evaluated at points of the form $(1+p)^{s_i}$, two things happen. Each monomial's value can be turned back into its exponents by a p-adic logarithm, which is a cheap convergent power series, in place of the discrete logarithms that limit finite-field methods. And the digits the algorithm must lose become an explicit, computable quantity: how many leading p-adic digits pairs of Kronecker images share. This gives an interpolation algorithm whose input precision can be set in advance and whose output carries a certificate. It reports exactly which terms are visible at the given precision, and to how many digits each coefficient is known, with no ad hoc rank threshold.
Core Claim
Fix integer weights $s \in \mathbb{Z}^n$ and a $(p-1)$-th root of unity $\omega \in \mathbb{Z}_p$. The black box $f = \sum_{j=1}^{T} c_j x^{\alpha_j}$ is queried at the points $x_i^{(k)} = \omega^{k r_i}(1+p)^{k s_i}$ for $k = 0, \dots, 2T-1$, where $r \in \mathbb{Z}^n$ is a second weight vector. The $k$-th query returns $\sum_j c_j b_j^k$, with $b_j = \omega^{\langle \alpha_j, r\rangle}(1+p)^{\langle \alpha_j, s\rangle}$. Here $\alpha_j$ is the exponent vector of the $j$-th term and $\langle \cdot,\cdot\rangle$ is the dot product.
For odd $p$, the p-adic distance between two monomial values is fully determined by the integer Kronecker images:
$$v_p(b_i - b_j) = \begin{cases} 0 & \text{if } \langle \alpha_i - \alpha_j, r\rangle \not\equiv 0 \pmod{p-1},\\ 1 + v_p(\langle \alpha_i - \alpha_j, s\rangle) & \text{otherwise,}\end{cases}$$
where $v_p$ counts the factors of $p$. This follows because the logarithm maps $1+p\mathbb{Z}_p$ isometrically onto $p\mathbb{Z}_p$.
Our target theorem has three parts. First, the absolute precision of the recovered coefficient $c_j$ is, up to a small additive constant, $N - v_p(c_j) - \sum_{i \ne j} v_p(b_j - b_i)$. Second, this loss is intrinsic: the lattice-based precision theory shows that no algorithm using these evaluations can do better. Third, a valuation-aware Hankel solver attains it, whereas Berlekamp-Massey with per-coordinate error bounds does not.
The exponents are read off as $\langle \alpha_j, s\rangle = \log_p(b_j \omega^{-\langle\alpha_j,r\rangle}) / \log_p(1+p)$. This is exact as soon as the remaining precision exceeds $\log_p$ of the largest Kronecker image. A few independent weight vectors $s$ then recover each $\alpha_j$ by the same collision-resolution logic Huang and Gao use.
The formula has a concrete consequence for small primes. With $T$ terms, at most $p-1$ residue classes and Kronecker images spread out as integers, the per-coefficient loss behaves like $v_p$ of a factorial. That is roughly $T/(p^2-p)$ digits, linear in $T$ and unavoidable. We expect coordinate-wise tracking to report much larger losses.
The novelty is the combination of three things in one algorithm: Ben-Or/Tiwari evaluation points chosen inside the multiplicative group $1+p\mathbb{Z}_p$; exponent extraction by p-adic logarithm; and a closed-form precision certificate derived from the lattice-precision theory. No paper in our corpus does sparse interpolation over $\mathbb{Q}_p$ at all.
Relation to Prior Work
The method draws on two lines of work.
From the p-adic side, Tracking p-adic precision and p-Adic Stability In Linear Algebra model uncertainty as a $\mathbb{Z}_p$-lattice. A lattice here is a structured error region that, unlike independent per-number error bars, captures correlations between errors. They push this lattice through the derivative of the computation and show that coordinate-wise tracking is systematically pessimistic. Their package ZpL implements this, but its authors present it as a diagnostic tool because maintaining the lattice costs an echelon update per operation. Vaccon's work on Matrix-F5 over finite-precision valuation fields shows that output loss is bounded by the valuations of the pivots used in elimination. We reuse both ideas as our method of analysis. We differ in one respect: we do not run general lattice tracking at interpolation time. For Hankel matrices built from these evaluation points, the factorization $H = V\,\mathrm{diag}(c)\,V^{\top}$ into Vandermonde matrices $V$ lets us write the output lattice in closed form. ZpL then becomes a reference oracle for checking our formula, not part of the algorithm.
From the interpolation side, Revisit Sparse Polynomial Interpolation Based on Randomized Kronecker Substitution and Faster interpolation algorithms for sparse multivariate polynomials given by straight-line programs supply the reduction from many variables to one and the collision-avoidance logic. Their "ok-prime" condition becomes, in our setting, a condition on shared p-adic digits of Kronecker images. They assume exact arithmetic over finite fields or exact rings. They also name discrete logarithms as a bottleneck, and the p-adic logarithm removes that step.
Sparse polynomial interpolation: sparse recovery, super-resolution, or Prony? motivates the certification aim. It documents that Prony's method over $\mathbb{C}$ depends on an arbitrary singular-value cutoff, and that its noise-robust semidefinite-programming alternative becomes impractical beyond 10 variables. Our answer is specific to the non-Archimedean setting. There, error is a hard bound $O(p^N)$ rather than a random perturbation, so the rank of the Hankel matrix can be decided exactly whenever the computed intrinsic loss is below $N$.
The tropical work of Akian, Béreau and Gaubert and affine tropical F5 is adjacent but not used. Both operate on explicitly given systems, not black boxes, and the latter reports no certificate on its output monomials. Our certificate is the kind of guarantee that work lacks.
Research Program
The work proceeds in three stages.
The first stage is theory. We will prove the precision theorem above, including two extensions. One is the case $p=2$, using points $(1+4)^{s_i}$. The other is the case where some coefficients $c_j$ have positive valuation, where we expect such terms simply to add $v_p(c_j)$ to their own loss. We will also prove a matching lower bound by applying the differential lemma from Tracking p-adic precision to the map from evaluations to coefficients. This lemma requires the derivative to be surjective. We expect it to be surjective once the term count $T$ equals the true number of terms. When the term bound overestimates that number we will handle it by projecting onto the nonzero terms.
The second stage is the algorithm, which runs in two passes, following the two-pass scheme of Tracking p-adic precision. A cheap low-precision pass estimates the residue classes and the leading digits of the Kronecker images. This yields a predicted loss $\Lambda$, and the second pass queries at precision $N = \Lambda + (\text{target digits}) + \log_p(\text{max image})$. The Hankel solve pivots on minimal valuation. The output is the list of terms, each with an exponent vector and a certified coefficient precision. Terms whose $c_j$ fall below the precision floor are explicitly reported as undetectable rather than silently dropped.
The third stage studies how to choose the weight vectors. The residue weights $r$ spread terms across the $p-1$ classes, and the digit weights $s$ minimize shared leading digits within each class. We will compare random choices against choices made adaptively from the first pass.
Baselines
The naive reference point is classical Ben-Or/Tiwari over SageMath's default per-coordinate precision model, ZpCR. It uses the same evaluation points and pads the input precision with $M$ extra digits, with $M$ swept upward until the output stabilizes. No result is reported on Lacuna for sparse interpolation in this setting. The closest documented behaviour is from ZpL: ZpCR raised a PrecisionError within 100 SOMOS-4 iterations, and after 25 chained matrix products could not tell the result from zero. Beating this baseline means a certified correct output at strictly smaller total input precision and lower wall-clock time, with the gap growing with $T$ for small $p$.
The strongest existing method is reduction modulo $p$ followed by layer-by-layer peeling. We run Huang-Gao randomized Kronecker interpolation over $\mathbb{F}_p$ Huang and Gao, lift the coefficients to $\mathbb{Z}_p$, subtract the recovered terms from the stored evaluations, divide by $p$, and repeat. Its reported cost is $O\tilde{~}(nT)$ black-box queries and $O\tilde{~}(nTD\log q + nTB_f)$ bit operations, where $D$ is the degree bound, $q$ the field size and $B_f$ the cost of one black-box evaluation. No reported precision result exists on Lacuna for it over $\mathbb{Q}_p$. It gets the same black-box access, the same number of queries and the same total digit budget. Beating it means succeeding in the regime where $T$ exceeds the number of available residue classes, while matching its cost where $p$ is large.
The third baseline embeds the problem in an unramified extension of $\mathbb{Q}_p$. We evaluate at Teichmüller roots of unity of order $p^m-1$, chosen large enough that all monomial values are distinct modulo $p$. This removes the intrinsic loss but needs extension-field arithmetic and a discrete logarithm in $\mathbb{F}_{p^m}$. It applies only to black boxes that accept extension-field inputs, such as straight-line programs. Beating it means lower total cost once $m$ must be large for exponent readout.
Three ablations isolate the key ingredients. The first removes the closed-form lattice and substitutes per-coordinate tracking inside our own solver. The second uses random $s$ without the first pass. The third drops the residue component $\omega$.
ZpL itself is run on small instances as a ground-truth oracle for intrinsic precision, not as a competitor.
Why not just…?
Why not just pad the input precision and use ordinary per-coordinate p-adic arithmetic? It may work for small $T$. However, the lattice papers show that per-coordinate tracking overestimates loss linearly where the true loss is logarithmic or constant p-Adic Stability In Linear Algebra. It also gives no certificate: without knowing the intrinsic loss you cannot tell whether $M$ was enough. The padding sweep in our experiments measures exactly how much excess precision it needs.
Why not just interpolate modulo $p$ and peel off valuation layers? This is the real threat, and when $p$ is much larger than $T$ we expect it to tie with our method. It fails when two terms land in the same residue class modulo $p$, which is guaranteed once $T > p-1$. In that case the finite-field step sees a collision it cannot resolve without changing the evaluation points, and changing them is the problem we study. The experiments sweep $p$ against $T$ to locate the crossover. If peeling matches us everywhere after its points are re-randomized, our contribution shrinks to the certificate alone, and we will report that.
Why not just move to an unramified extension so that all residues are distinct? This is also legitimate. Our design in fact includes a cheap version of it, the factor $\omega$. The cost is that exponent readout then requires discrete logarithms in a field large enough to hold the Kronecker images, the very bottleneck noted in Huang and Gao. The extension is also unavailable to oracles defined only on $\mathbb{Q}_p$. A natural hybrid uses a small extension for separating terms and $1+p$ for reading exponents, and we test it as a variant rather than dismissing it.
Why not use complex semidefinite-programming super-resolution? It is limited to about 10 variables Josz et al.. It also treats bounded p-adic truncation as Archimedean noise, which discards the exact error model that makes certification possible here.
Proposed Experiments
We will use three families of test problems.
The first family transplants the configuration of Josz et al. to $\mathbb{Q}_p$: ten random sparse polynomials with $n \le 10$ and degree $d \le 10$. We then scale to $n = 50$ and $T$ up to several hundred, using $p \in \{2, 3, 5, 7, 101\}$, and draw coefficient valuations from a geometric distribution. Measurements are certified digits per coefficient, total input digits required, queries and time.
The second family uses SOMOS-4 terms. These are Laurent polynomials in the four initial values, so they become polynomials after multiplying by a known monomial. We evaluate them as black boxes through the recurrence itself, the benchmark on which ZpCR fails, so the black box contributes its own precision loss.
The third family consists of determinants and characteristic-polynomial coefficients of symbolic sparse matrices, extending the 3×3 example of Characteristic Polynomials of p-adic Matrices.
Three checks decide whether the idea holds.
First, on instances small enough for ZpL, our predicted loss must agree with ZpL's lattice to within the additive constant on at least 95% of coefficients. If our formula systematically overpredicts, the closed form is wrong. If it underpredicts, our certificate is unsound, and that kills the method.
Second, for $T > p-1$, our method must recover all terms detectable at precision $N$ in cases where peeling fails or needs more digits. Peeling must win nowhere by more than a constant factor in time.
Third, against the unramified-extension baseline, we will chart total bit cost as $n\log D$ grows. If the extension method stays cheaper throughout, the logarithmic-readout claim fails. In that case we will recommend the hybrid design rather than our pure version.
References
- Tracking p-adic precision
- p-Adic Stability In Linear Algebra
- ZpL: a p-adic Precision Package
- Matrix-F5 algorithms over finite-precision complete discrete valuation fields
- Revisit Sparse Polynomial Interpolation Based on Randomized Kronecker Substitution
- Faster interpolation algorithms for sparse multivariate polynomials given by straight-line programs
- Sparse polynomial interpolation: sparse recovery, super-resolution, or Prony?
- The Tropical Nullstellensatz and Positivstellensatz for Sparse Polynomial Systems
- On affine tropical F5 algorithms
- Characteristic Polynomials of p-adic Matrices