Spectral Estimation with Deformed Decompression

Siavash Ameli, Chris van der Heide, Liam Hodgkinson, Michael W. MahoneyNeurIPS 2026

TL;DR

How do you find the eigenvalues of a covariance or Hessian matrix that is literally too colossal to fit in a supercomputer's memory? Instead of computing the giant matrix directly, this paper introduces Deformed Decompression (DD)—a mathematical time-machine that takes the eigenvalue spectrum of a tiny, manageable submatrix and accurately extrapolates ("evolves") it up to massive scales. By fixing a subtle symmetry flaw in prior methods, DD unlocks fast, stable spectral estimation for real-world covariance and curvature matrices in seconds rather than hours.

What Problem Does This Paper Address?

In machine learning and statistics, covariance matrices and Hessians (curvature matrices) hold the secrets to how models train, generalize, and handle uncertainty. Their eigenvalues tell us about variance concentration, numerical stability, and near-singular directions.

The catch? Modern ML models and datasets are enormous—a Hessian for a large language model can have $10^{24}$ elements. You cannot even form these "impalpable" matrices, let alone compute their eigenvalues. Classical workarounds like low-rank approximations focus only on the largest eigenvalues, completely missing the near-zero eigenvalues and heavy tails that matter most for determinants, matrix inverses, and uncertainty quantification.

Recently, a technique called Free Decompression (FD) proposed sampling a small submatrix and using random matrix theory to scale its eigenvalue distribution up to the full size. However, the authors here point out a critical catch: FD relies on "unitary invariance" (meaning you can rotate the matrix randomly without changing its statistical properties). Subsampled covariance matrices are too structured and violate this symmetry. Meanwhile, traditional statistical methods that try to invert the sample spectrum back to the underlying population matrix are notoriously unstable and require heavy smoothing that erases interesting spectral features.

Methods

To handle covariance matrices and their cousins—Generalized Covariance Matrices (GCMs), like Hessians—the authors introduce Deformed Decompression (DD).

Instead of looking directly at the sample covariance matrix $\mathbf{S} = \frac{1}{n}\mathbf{X}\mathbf{X}^\intercal$ (size $p \times p$), DD looks at its companion matrix, $\underline{\mathbf{S}} = \frac{1}{n}\mathbf{X}^\intercal\mathbf{X}$ (size $n \times n$), which shares the same nonzero eigenvalues. Adding more features (increasing $p$) simply adds clean rank-1 updates to this companion matrix.

Using tools from free probability—specifically the Stieltjes transform (a function that neatly encodes an eigenvalue distribution into the complex plane) and its cousin, the R-transform—the authors discover a remarkably clean scaling law: scaling up a covariance matrix by a factor of $\tau$ simply multiplies its companion R-transform by $\tau$.

Figure 1: Example of deformed decompression for recovering the ESD of an n × n matrix A with n = 32,000, generated from a deformed Marchenko–Pastur law with atoms (t1, t2) = (2, 11

While this scaling law translates into an inviscid Burgers' partial differential equation (PDE), solving PDEs numerically can be finicky. Building on recent algebraic techniques, the authors fit a bivariate polynomial to the submatrix's Stieltjes transform. They then use a predictor-corrector ODE scheme to smoothly slide the solution along an algebraic "spectral curve" as $\tau$ grows, completely bypassing PDE solvers and unstable spectral inversions. Better yet, this polynomial setup lets them analytically track specific features—like spectral edges, moments, isolated spikes (atoms), and merging eigenvalue clusters—without reconstructing the whole distribution.

Datasets

The authors evaluate DD across three distinct setups (introducing no new datasets, as the focus is matrix recovery):

  1. Synthetic Random Matrices: Matrices generated from a canonical deformed Marchenko–Pastur distribution ($n = 32,000$).
  2. Logistic Regression Hessians: Simulated GCMs representing the Hessian of a logistic regression loss with non-uniform feature covariance ($n = 32,000$ and $n = 16,000$).
  3. STL-10 Image Dataset: A real-world Gram covariance matrix built from $n = 8,000$ images with $p = 27,648$ features.

Key Insights and Ideas

  • Fixing a Misconception: Prior work assumed uniform subsampling of rows and columns satisfied the mathematical conditions for Free Decompression. The authors clarify this isn't true for covariance matrices—and prove that FD and DD only overlap on basic Marchenko–Pastur distributions. They are complementary tools for different matrix worlds.
  • The Companion Shortcut: Trying to estimate the true population covariance first is an ill-posed nightmare. By working with the companion R-transform, DD jumps directly from a small sample spectrum to a larger sample spectrum, sidestepping deconvolution entirely.
  • Watching Spectra Collide: Because DD tracks branch points on algebraic curves, you can pinpoint the exact matrix scale at which two separate clusters ("bulks") of eigenvalues expand and merge into one.
Figure 2: Evolution of spectral edges (solid curve) correspond- ing to the density in Figure 3. Color in log scale represents the evolved density, with beige background having zero density (spectral gaps).
  • Graceful Generalization to Hessians: True Hessians have an extra diagonal weighting matrix $\mathbf{D}$ from loss derivatives, breaking exact covariance structure. Yet the authors prove that if the variance of $\mathbf{D}$'s entries is small (common in cross-entropy losses), DD still approximates the spectrum with high accuracy.

Key Results

Across synthetic, Hessian, and real-data matrices, DD accurately recovers complex, multi-bulk, and heavy-tailed spectra from tiny $1,000 \times 1,000$ submatrices:

  • Massive Speedups: On the $8,000 \times 8,000$ STL-10 covariance matrix, direct eigenvalue computation took 579.6 seconds. DD took just 7.9 seconds total (4.2s to fit the $1,000 \times 1,000$ submatrix + 3.7s to extrapolate)—over a 73x speedup.
  • High Accuracy: For that same STL-10 extrapolation, DD achieved a normalized Wasserstein-1 distance error of just 3.70%, a Maximum Mean Discrepancy (MMD) of 2.34%, and a first-moment relative error of 0.03%.
  • Provable Stability: Analytical bounds confirm that small initial fitting errors grow at most polynomially with the decompression ratio $\tau$, ensuring the forward extrapolation doesn't blow up.

Limitations and Future Work

  • Positive-Semidefinite Only: DD applies to positive-semidefinite covariance and curvature matrices; it cannot handle indefinite Hessians (which have negative eigenvalues, often seen in non-convex deep learning landscapes).
  • Approximation for GCMs: For generalized covariance matrices, DD relies on the diagonal weighting matrix having low variance; if dispersion is high, accuracy degrades.
  • Which Tool to Pick? Without prior mathematical knowledge of how a black-box matrix was constructed, there is currently no automated test to tell whether you should use Free Decompression, Deformed Decompression, or neither.
  • No Reverse Gear: Running the math backward ($0 < \tau < 1$, "deformed compression") could theoretically recover true population covariances, but preliminary tests showed it to be numerically unstable.

Summary updated

Abstract

Sample covariance matrices are fundamental objects in machine learning and statistics, with valuable information encoded into their eigenvalues. When treating modern problems, the scale of these matrices can become prohibitive for tractable computation. This creates a critical need for "spectral decompression": a method for inferring the eigenspectrum of a very large-scale model using only information from its smaller realizations. Existing methods fall into two main categories: those relying on spectral inversion; and those that rely on Free Decompression techniques. On the one hand, spectral inversion is a fundamentally ill-posed problem that is notoriously unstable, often failing to yield reliable results in finite-size settings. On the other hand, while Free Decompression was recently proposed to address this scaling, its reliance on the Nica-Speicher framework restricts its use to unitarily invariant ensembles, a symmetry condition that subsampled covariance matrices fail to satisfy. In this work, we introduce Deformed Decompression (DD), a novel framework for the stable, forward-extrapolation of spectral densities. By leveraging properties of the companion matrix, DD recasts the spectral decompression problem as a directed evolution of the Stieltjes transform of the companion matrix. This approach bypasses the instabilities of traditional inversion and provides a robust methodology for scaling covariance matrices and even their generalized variants (including Hessian matrices) that lack unitary invariance. We demonstrate the utility of our framework through experiments on a variety of random matrix examples, showing that DD successfully captures the complex spectral signatures of large-scale systems.
BibTeX
@inproceedings{ameli2026spectral,
  author = {Siavash Ameli and Chris van der Heide and Liam Hodgkinson and Michael W. Mahoney},
  title = {{Spectral Estimation with Deformed Decompression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6C8mx74erl},
}
Figure