Authors: Siavash Ameli, Chris van der Heide, Liam Hodgkinson, Michael W. Mahoney
Organizations: ICSI and Department of Statistics, University of California, Berkeley · Dept. of Electrical and Electronic Engineering, University of Melbourne · School of Mathematics and Statistics, University of Melbourne · ICSI, LBNL, and Department of Statistics, University of California, Berkeley
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.
Figures & tables
Figure 1: Example of deformed decompression for recovering the ESD of an n×n matrix A with n=32true000 , generated from a deformed Marchenko–Pastur law with atoms $(t_{1},t_{2})=(2,\frac{11}{2})$ , weights $(w_{1},w_{2})=\left(\frac{3}{4},\frac{1}{4}\right)$ , and target aspect ratio $\frac{1}{10}$ . (a) ESD of the sampled $n_{0}\times n_{0}$ matrix $\mathbf{A}_{0}$ with $n_{0}=$1000 (histogram) together with the fitted density (solid curve). (b) DD flow from n0 to n . (c) Predicted ESD at size n=32true000$$ , compared with the benchmark ESD of the original matrix.
Figure 2: Evolution of spectral edges (solid curve) corresponding to the density in Figure 3 . Color in log scale represents the evolved density, with beige background having zero density (spectral gaps).
Figure 3: Example of deformed decompression for recovering the ESD of an n×n Hessian matrix A following [ 35 ] , here with n=32true000 . (a) ESD of the sampled $n_{0}\times n_{0}$ matrix $\mathbf{A}_{0}$ with $n_{0}=$1000 (histogram) and the fitted density (solid curve). (b) Deformed decompression flow from n0 to n . (c) Final predicted ESD at n=32true000$$ , compared with the benchmark histogram of the original matrix.
Figure 4: DD recovering the ESD of an 8000$\times$8000 covariance matrix A of the STL-10 dataset. Left: ridge plot of the DD density evolution on log scale (solid lines), compared with ESD of sampled submatrices. Right: (a) ESD of the sampled 1000$\times$1000 submatrix, with density fit; and (b) final predicted ESD, compared with the ESD of the original matrix.
Size
Process Time (sec)
Accuracy Metrics
n
Direct
DD (ours)
W1/L
MMD
Δμ1/μ1
20 K
4.2
4.2+0.0
0.00%
0.23%
0.51%
21 K
14.0
4.2+2.1
0.58%
2.84%
0.25%
22 K
69.5
4.2+2.7
1.42%
1.24%
0.05%
23 K
579.6
4.2+3.7
3.70%
2.34%
0.03%
Table 1: Process times for obtaining eigenvalues, as well as corresponding distributional distances and relative error on the first moment for the STL-10 covariance matrix considered in Section 5 .
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
Context
Symbol
Description
Matrices & Models
A,An
General n×n matrix (often symmetric or Hermitian)
An(k)
k×k principal submatrix of An
I
The identity matrix
λi
The i -th eigenvalue of a matrix
trace(⋅)
Standard trace of a matrix
trn(⋅)
Normalized trace, n−1trace(⋅)
Appendix
Table A.1: Common notations used throughout the manuscript.
Figure A.1: Domain coloring of a Stieltjes-transform branch for the deformed Marchenko–Pastur example in Figure G.1 . Right: plain domain coloring, with hue encoding argm(z) and brightness encoding ∣m(z)∣ . Left: tiled domain coloring, where phase and logarithmic magnitude are periodically reset to make high-dynamic-range structure more visible.
Algorithm 2 Evolution of spectral edges under algebraic deformed decompression
Figure G.1: Branches and analytic continuations of the cubic deformed Marchenko–Pastur Stieltjes transform in ( G.9 ). The first row shows the three algebraic branches m1,m2,m3 on the z -plane, with branch cuts marked on the real axis. The physical branch is m1 . The lower panels show the possible half-plane gluings involving the physical sheet: for example, (ab) denotes m1 on C+ glued to m2 on C− , while (ba) denotes the opposite gluing. Across a shared cut, the individual branches are discontinuous, but the glued half-planes form a continuous analytic continuation. Colors encode the complex value of the branch using the domain-coloring convention of Appendix A .
Figure G.2: Three-sheet visualization of the cubic deformed Marchenko–Pastur spectral curve from Figure G.1 . The middle sheet represents the physical branch m1 , while the upper and lower sheets represent the nonphysical branches m2 and m3 . The sheets are vertically separated for visualization and are brought together along shared branch cuts to illustrate analytic continuation between branches. This geometric view explains why representing the Stieltjes transform as one sheet of a larger algebraic curve is useful: crossing a branch cut does not terminate the function, but moves the continuation to another sheet.
Figure G.3: Comparison between the deformed Marchenko–Pastur law and its compound-free-Poisson companion for (t1,t2)=(2,11/2) , (w1,w2)=(3/4,1/4) , and c=λ=1/10 . Panel (a) shows the deformed Marchenko–Pastur density νc , whose absolutely continuous part has total mass one and no atom at the origin. Panel (b) shows the corresponding compound free Poisson law. Its absolutely continuous part has the same nonzero support and the same profile scaled by c , while the remaining mass 1−c=0.9 appears as an atom at the origin. In panel (b), the left ordinate corresponds to the continuous density, and the right ordinate corresponds to the atom weight indicated by the vertical arrow at the origin.
Figure G.4: Mass and edge evolution for the two-atom deformed Marchenko–Pastur example under deformed decompression from n=20K to n=25K . Panel (a) shows that the full mass remains in the absolutely continuous bulks throughout the DD flow; unlike the compound-free-Poisson companion under free decompression, no mass is transferred to an atom at the origin. Panel (b) shows the evolution of the four spectral edges over the same range of matrix sizes. The color field shows the DD-evolved density ρ(λ,n) , while the light background marks spectral gaps. The edge curves are computed independently from the algebraic branch-point evolution in Proposition E.1 , not extracted from the density plot. Their agreement with the visible boundary of the density support confirms the consistency between the evolved density and the DD edge dynamics.
τ
W1/L (%)
MMD (%)
Mean error (%)
Std error (%)
1
4.1×10−7
7.2×10−7
5.7×10−7
7.3×10−7
22
3.7×10−7
7.2×10−7
5.8×10−7
7.1×10−7
24
3.3×10−7
7.8×10−7
6.5×10−7
6.7×10−7
26
3.9×10−7
1.1×10−6
1.1×10−6
5.9×10−7
28
1.4×10−5
4.5×10−5
6.5×10−5
2.4×10−6
210
4.9×10−8
1.3×10−7
1.3×10−7
9.6×10−8
Appendix
Table G.1: Numerical validation of deformed decompression against exact deformed Marchenko–Pastur laws at increasing decompression ratios. All errors are percentages. For τ=210 , the laws have an atom at zero, so the reported errors compare their normalized absolutely continuous components.
Figure G.5: Empirical distribution of the diagonal curvature weights Dii for the logistic-regression Hessian model. These weights are samples of the random curvature g=ℓ′′(y,h) in the generalized Hessian model of Liao and Mahoney [35] . The Hessian is H=N−1XDX⊺ , with N=120true000 samples and feature dimension $p=$16true000 .
Figure G.6: Deformed-decompression reconstruction of the Hessian spectrum for the logistic-regression model with target matrix size n=16true000 . (a) ESD of the sampled $n_{0}\times n_{0}$ principal submatrix with $n_{0}=$1000 (histogram), together with the fitted algebraic density (solid curve). (b) DD evolution from n0 to n . (c) Final DD-predicted density at size n=16true000$$ , compared with the empirical spectrum obtained by direct eigendecomposition of the full Hessian.
Figure G.7: Ridge-plot view of the deformed-decompression evolution in Figure G.6 . Each row corresponds to an intermediate matrix size; solid curves show the DD-predicted spectral densities, while filled histograms show the empirical spectra of sampled submatrices at the same sizes. The stacked view highlights how the full density evolves from the n0=1000 submatrix to $n=$16true000
Size
Process Time (sec)
Distributional Distance
Moments Rel. Error
Edges Error
n
Direct
DD (ours)
W1/L
MMD
Δμ1/μ1
Δσ/σ
Mean
Max
20 K
3.6
3.6+00.0
0.00%
0.04%
0.00%
0.03%
0.1%
0.2%
21 K
13.1
3.6+01.0
0.02%
1.01%
2.15%
0.07%
0.1%
0.3%
22 K
75.3
3.6+02.3
0.03%
1.19%
2.86%
0.05%
0.2%
0.5%
23 K
576.7
3.6+04.7
0.05%
1.42%
4.36%
0.45%
0.4%
1.1%
24 K
4221.8
3.6+09.2
0.05%
1.19%
4.14%
0.37%
1.3%
2.5%
Appendix
Table G.2: Comparison of direct eigendecomposition with deformed decompression (DD) for the n=32true000$$ logistic-regression Hessian matrix described in Section 5 . The Direct column reports the process time for computing the eigenvalues at each matrix size. In the DD column, the first term is the time to compute eigenvalues of the initial 20K -sized submatrix, and the second term is the DD evolution time. Distributional distances compare the empirical spectrum with the DD reconstruction, with W1/L denoting the Wasserstein-1 distance normalized by the spectral range L , and MMD denoting the Gaussian-kernel maximum mean discrepancy on eigenvalues. Moment errors are relative errors of the first moment and standard deviation. Edge errors compare empirically detected spectral edges with DD-evolved edges. All reported errors are shown as percentages.
Figure G.8: Empirical (black) smallest eigenvalue λmin of the STL-10 image dataset example, with Tracy–Widom (blue) predicted decay at rate ≍n−2/3 and exponential (red) predicted decay at rate ≍e−αn for fitted α .
Tools from random matrix theory have become central to deep learning theory, using spectral information to provide mechanisms for modeling generalization, robustness, scaling, and failure modes. While often capable of modeling empirical behavior, practical computations are limited by matrix size, often imposing a restriction to models that are too small to be realistic. This motivates the inference of properties of larger models from the behavior of smaller ones. Free decompression (FD) is a recently proposed method for extrapolating spectral information across matrix sizes, but its utility is currently limited by strong assumptions that preclude its implementation on more realistic machine learning (ML) models. We use algebraic spectral curve theory to provide a general FD methodology for spectral densities whose Stieltjes transform satisfies an algebraic relation, a modeling assumption that is more likely to hold in practice. This recasts FD as an evolution along spectral curves which can be readily integrated. Our framework enables the expansion of spectral densities that have multiple or multi-modal bulks, that exist at multiple scales, and that contain atoms, all characteristic of real-world data and popular ML models. We demonstrate the efficacy of our framework on models of interest in modern ML, including Hessian and activation matrices associated with neural networks and large-scale diffusion models.
Siavash Ameli, Chris van der Heide, Liam Hodgkinson +1
ICSI and Department of Statistics, University of California, Berkeley · Dept. of Electrical and Electronic Engineering, University of Melbourne · School of Mathematics and Statistics, University of Melbourne +1
The Davis-Kahan theorem is a fundamental tool in spectral analysis, providing quantitative control over the distance between the eigenspaces of a symmetric matrix and its perturbation. However, when the matrix dimension is large, computing leading eigenvectors is computationally expensive, limiting the practical use of spectral methods in modern large-scale applications. This paper addresses this problem by proposing an independent Bernoulli sampling scheme and proves that the leading left singular vectors of the subsampled matrix faithfully approximate the target subspace of a low-rank symmetric matrix. Our main result is a subsampled Davis-Kahan bound that gives an explicit error bound depending directly on the sampling probability. The bound reveals the trade-off: the computational cost scales linearly with the sampling probability, while the statistical error scales as the inverse square root of the sampling probability. Our result thus extends the Davis-Kahan theorem to the subsampled setting, enabling scalable spectral analysis of large-scale symmetric matrices.
Huan Qing
School of Economics and Finance, Chongqing University of Technology, Chongqing, 400054, China
We consider the problem of estimating the spectral norm of a matrix using only matrix-vector products. We propose a new Counterbalance estimator that provides upper bounds on the norm and derive probabilistic guarantees on its underestimation. Compared to standard approaches such as the power method, the proposed estimator produces significantly tighter upper bounds in both synthetic and real-world settings. Our method is especially effective for matrices with fast-decaying spectra, such as those arising in deep learning and inverse problems.
Alexey Naumov, Maxim Rakhuba, Denis Ryapolov +1
HSE University, Russia · Steklov Mathematical Institute of Russian Academy of Sciences, Russia