Choosing the Root Count from Noisy Data: Truncated-SVD Macaulay Solvers

Many estimation problems reduce to finding every solution of a set of polynomial equations. Examples include fitting sums of exponentials to signals, finding all critical points of a structured low-rank approximation, and recovering camera geometry. One family of global methods turns the equations into a large matrix called the Macaulay matrix: each equation, multiplied by every monomial up to some degree, becomes one row. The roots can then be read off as eigenvalues of small matrices built from the null space of that big matrix. When the coefficients are exact, the null space has a clean dimension equal to the number of roots. When the coefficients come from noisy measurements and there are more equations than strictly needed, there is no exact null space at all. The singular values (the "stretch factors" of the matrix in each direction) decay smoothly, and the user must decide where to cut. That cut silently sets how many roots the solver returns. Cutting too high misses roots. Cutting too low invents ghost roots.

We propose to treat this cut as a truncated singular value decomposition, in which singular directions below a threshold are discarded as noise, and to choose the threshold from a structural property that only the correct cut can satisfy. In exact arithmetic, the small "action matrices" extracted for different variables must commute, because $x_i x_j = x_j x_i$. Noise breaks this exactly, but a wrong rank breaks it far more badly. Our core claim is that the commutation defect of the extracted action matrices, together with the shift-invariance residual, provides a ground-truth-free rule for selecting the truncation rank. Paired with a perturbation bound linking the threshold to the root error, this rule makes Macaulay solvers usable on overdetermined noisy polynomial systems, where both fixed numerical-rank tolerances and local polishing fail.

What the literature gives us and what it leaves open

The method comes from the Dreesen–Batselier–De Moor line of work. Back to the Roots computes the Macaulay null space by SVD or rank-revealing QR. It then uses shift relations among monomial rows to form a generalized eigenproblem whose eigenvalues are root coordinates. It explicitly leaves open how to set the tolerance when singular values have no sharp gap, and how truncation propagates into eigenvalue error. Multidimensional realisation theory and polynomial system solving shows that this null space is the observability matrix of a multidimensional state-space system and that the action matrices are its commuting state-transition matrices. This is the structural fact our selection rule exploits. That paper is purely algebraic and names identification directly from data as future work, which is exactly our regime. Weighted/Structured Total Least Squares problems and polynomial system solving applies the same pipeline to structured low-rank approximation, finding 39 affine solutions and 13 real critical points on a 3×3 Hankel problem. It assumes exact algebraic null spaces and does not study noise.

The truncation side supplies the regularization principle and some cautions. Frames and Numerical Approximation and Stable and Accurate Least Squares RBF Approximations show that discarding singular values below a threshold $\tau$ turns severely ill-conditioned but redundant systems into accurate ones. The second paper also shows that error saturates at a $\tau$-dependent floor. Both papers note that choosing $\tau$ without ground truth is hard when the spectrum has no gap. That is precisely the problem we attack, transplanted to root finding, where a wrong $\tau$ produces a wrong number of answers rather than merely a less accurate one. LoRanPAC gives empirical evidence, in a very different setting, that hard truncation is more stable than ridge damping. It reports over 25% higher accuracy than its ridge-based predecessor on ImageNet-A Inc-1. We cite it as motivation for preferring truncation over damping, not as evidence about root finding.

Two papers constrain the design. Numerical Instability of Resultant Methods proves that hidden-variable resultant eigenproblems have condition number at least the root condition number raised to the dimension, and that changing polynomial basis does not help. We therefore deliberately build on null-space shift methods rather than resultant pencils. We do not try to "fix" resultants by truncation, because their instability lies in the eigenproblem itself, not in spurious small singular directions. Whether the Macaulay shift approach avoids such squaring is something we measure rather than assume. Prony systems via decimation and homotopy continuation handles near-colliding roots well but needs the multiplicity structure in advance. That warns us that truncation can merge close roots, and our rule must be tested in exactly that regime.

Core Claim

Let $M$ be the noisy Macaulay matrix. Let $\hat V_r$ be its $r$ smallest right singular vectors, and let $S_1, S_2, \dots$ be row-selection matrices implementing the shift by each variable. For each variable $x_i$, solve the least-squares problem $S_i \hat V_r \approx S_0 \hat V_r A_i$ for the $r \times r$ action matrix $A_i$. Write $\rho_i(r)$ for its relative residual. We score each candidate rank $r$ by

$$J(r) = \sum_i \rho_i(r) + \sum_{i<j} \frac{\|A_i A_j - A_j A_i\|_F}{\|A_i\|_F \|A_j\|_F},$$

and select the rank that minimizes $J$, which fixes the threshold $\tau$. In this score, $\|\cdot\|_F$ is the Frobenius norm and $r$ is the root count being proposed.

The intuition is as follows. If $r$ is smaller than the true root count, the subspace is not shift-invariant, so the residual $\rho$ is large. If $r$ is larger, the extra noise directions produce action matrices that fail to commute. Only near the true count are both terms at the noise floor. Roots are then read from a random linear combination of the $A_i$, which is standard for separating coordinates.

We pair the rule with a bound of Wedin type. Let $E$ be the coefficient-noise perturbation and $\delta_r$ the gap between the $r$-th and $(r+1)$-th smallest singular values. The subspace angle is then at most about $\|E\|/\delta_r$. Through the eigenvalue condition number of the action matrices, this angle controls each root's error. We will derive this bound carefully and check how tight it is. It explains when the method should work: when the gap $\delta_r$ exceeds the noise level. It also predicts where the method should break: near-colliding roots shrink $\delta_r$.

Research Program

The work has three parts. First, an analysis component derives the perturbation bound from coefficient noise to root error for the truncated shift construction. It also gives a consistency argument: as noise goes to zero, $J$ is uniquely minimized at the true root count, given a nonzero gap. Second, an algorithmic component implements the rule, with two variants. One replaces the hard cut with a smooth filter that down-weights near-threshold directions; this addresses the gradient discontinuities of hard truncation noted in the RBF literature. The other monitors $J$ jointly over Macaulay degree and rank, so that roots at infinity are not miscounted. Third, an empirical component targets overdetermined noisy problems, where no exact null space exists and the root count must be inferred.

Baselines

The naive reference point is the Macaulay shift solver of Back to the Roots with a conventional numerical-rank tolerance (dimension times machine epsilon times the largest singular value). We also run it with the common largest-ratio-gap heuristic. These are what a practitioner would do today. They share our exact pipeline, so any difference isolates the rank-selection rule. Beating them means fewer root-count errors and lower root error at matched noise levels.

The second baseline replaces truncation with Tikhonov damping of the null-space computation, with the damping weight tuned by grid search over the same budget we give $\tau$. This tests whether a hard cut is needed at all.

The third baseline is multistart Gauss–Newton or Levenberg–Marquardt on the least-squares polynomial residual, given the same wall-clock budget as our solver. It is the strongest generic competitor because it needs no rank decision.

Domain-specific baselines differ by problem. For one-dimensional exponential fitting we compare against ESPRIT, the standard subspace method that also truncates an SVD but picks the model order externally, and against decimated homotopy from Prony systems via decimation and homotopy continuation. Homotopy is given the true multiplicity it requires, which makes it an upper-bound competitor. For camera geometry we compare against the sparse-resultant solver of A Sparse Resultant Based Method for Efficient Minimal Solvers. That paper reports a 14.66% failure rate on the 6-point relative pose problem with radial distortion, versus 25.9–26.46% for Gröbner-basis solvers. Neither paper reports a number for ESPRIT on Lacuna, so ESPRIT numbers will be produced by us.

Two ablations isolate the key ingredient. One uses the residual term alone and the other uses the commutation term alone. A further oracle variant is given the true root count, which bounds what any selection rule can achieve.

Why not just…?

Why not just use the largest gap in the singular values? When a clear gap exists, the gap rule and ours should agree. The interesting case is a smooth spectrum, which Back to the Roots and the RBF work both identify as the hard regime. Our noise sweep is designed to locate the noise level at which the gap rule's root-count accuracy collapses while $J$ still selects correctly. If no such level exists, the proposal reduces to the gap rule and we will report that.

Why not just polish whatever roots come out with Newton's method? This is a real threat, and we treat polishing as complementary. Polishing improves accuracy once the right number of roots is in hand, but it cannot add a missed root or delete a ghost. Every method, including ours, will therefore be reported both before and after Gauss–Newton polishing. If polishing plus the gap rule matches us on count accuracy, our contribution narrows to the bound.

Why not just damp with Tikhonov regularization instead of truncating? Damping shrinks every direction a little instead of removing noise directions. In a shift-eigenproblem, that bias moves eigenvalues directly. LoRanPAC found truncation more stable and less tuning-sensitive than ridge in its setting. The tuned-damping baseline will test whether that transfers here.

Why not just use homotopy continuation? It tracks every root of a square system, but our systems are overdetermined and noisy, so they have no exact roots to track. The Prony variant also needs known multiplicities. We include it where it applies, granting it the oracle multiplicity.

Proposed Experiments

The first testbed is synthetic overdetermined systems in two and three variables with known roots, built from perturbed coefficients. We sweep the noise level, the root separation, and the number of redundant equations. The systems include the families used by Numerical Instability of Resultant Methods, so we can also check directly whether the conditioning of the shift eigenproblem grows like a power of the root conditioning. Metrics are root-count accuracy, root error after optimal matching, and tightness of the bound.

The second testbed is one- and two-dimensional exponential fitting from noisy samples, including near-colliding nodes in the confluent regime. This is the decisive stress test for whether truncation merges close roots.

The third testbed is the 3×3 Hankel structured least-squares problem of Weighted/Structured Total Least Squares problems and polynomial system solving, with noise added to the data. We measure whether all 13 real critical points and the global optimum are still recovered.

The fourth testbed is the 10,000-scene synthetic relative-pose benchmark, using more than the minimal six correspondences, so the polynomial system becomes overdetermined. We report failure rate against the 14.66% minimal-solver figure, with the caveat that this compares a non-minimal to a minimal setting.

The decisive checks are two. First, on the smooth-spectrum noise sweep, $J$ should match the oracle-rank solver's count accuracy where the gap rule and tolerance rule do not. Second, near-colliding nodes are the predicted failure mode. Here $J$ should fail no earlier than the gap $\delta_r$ predicts, and the smooth-filter variant should delay that failure. If either check fails, the commutation criterion is not adding information beyond the singular values alone.