Spectrum Approximation Beyond Fast Matrix Multiplication: Algorithms and Hardness

Cameron Musco, Praneeth Netrapalli, Aaron Sidford, Shashanka Ubaru, David P. Woodruff

TL;DR

Computing spectral properties of an $n \times n$ matrix—such as the nuclear norm or log-determinant—has long been bottlenecked by full SVD or matrix multiplication time ($O(n^\omega) \approx O(n^{2.373})$). This paper introduces an approximate "spectral histogram" algorithm that breaks this runtime barrier, estimating spectral sums in sub-matrix-multiplication time (e.g., $\tilde{O}(n^{2.18})$ for the Schatten 1-norm on dense matrices and near-linear time for sparse matrices). However, the authors also prove that this speedup comes at an unavoidable cost: achieving high accuracy (mild $\epsilon$ dependence) is conditionally as hard as Triangle Detection and Boolean Matrix Multiplication.

What Problem Does This Paper Address?

Understanding the singular value spectrum $\sigma_1(A) \ge \dots \ge \sigma_n(A)$ of a matrix $A \in \mathbb{R}^{n \times d}$ is essential across data science, quantum physics, and machine learning. In particular, practitioners frequently need to compute spectral sums of the form: $$S_f(A) = \sum_{i=1}^d f(\sigma_i(A))$$ These capture fundamental quantities including the nuclear norm (Schatten 1-norm $\|A\|_1$), general Schatten $p$-norms, the log-determinant, trace inverse $\text{tr}(A^{-1})$, and SVD entropy.

Traditionally, computing these values requires either an exact SVD or dense matrix multiplication running in $O(n^\omega)$ time (where $\omega \approx 2.3729$). Even for a coarse $(1 \pm \epsilon)$ approximation of the nuclear norm, no algorithm beating $O(n^\omega)$ was known. The paper investigates two questions:

  1. Can we approximate spectral sums faster than matrix multiplication time?
  2. Is there an inherent theoretical barrier preventing fast, high-precision spectrum approximation?

Methods

The authors build an algorithmic pipeline that approximates the singular value spectrum as a histogram without computing individual singular values:

  1. Spectral Windowing via Ridge Regression: Instead of approximating non-smooth spectral functions $f(x)$ directly via high-degree polynomials, the authors express smooth "soft window" indicator functions over spectral intervals $[a, b]$. Each soft window is constructed by composing smoothed step functions implemented through regularized system solves: $$r_\lambda(A^T A) = (A^T A + \lambda I)^{-1} A^T A$$
  2. Accelerated Stochastic Gradient Solvers (SVRG): Iterative linear solvers typically depend on the standard condition number $\kappa = \sigma_1^2 / \lambda$. By leveraging accelerated preconditioned stochastic variance-reduced gradient (SVRG) methods, the solver runtime depends instead on the average condition number: $$\bar{\kappa} = \frac{\frac{1}{d}\sum_i \sigma_i^2(A)}{\lambda}$$ which is substantially smaller for matrices with decaying spectra.

  3. Singular Value Deflation: To prevent the largest singular values from skewing $\bar{\kappa}$, the algorithm projects out (deflates) the top-$k$ singular directions, flattening the remaining spectrum.

  4. Stochastic Trace Estimation: Applying the soft window to random test vectors (Hutchinson’s method) yields the approximate count of singular values in each bucket. Summing over buckets gives the spectral sum.
  5. Fine-Grained Hardness Reductions: For the lower bounds, the authors establish a reduction from Triangle Detection in graphs to spectral sum estimation. For example, for a graph Laplacian $L = D - A$, the Schatten 3-norm $\|L\|_3^3 = \text{tr}(L^3)$ directly isolates $\text{tr}(A^3)$ (the number of triangles) after subtracting easily computable degree terms.

Datasets

Not discussed in the paper. (The work is entirely theoretical, establishing algorithmic runtime upper bounds and conditional complexity-theoretic lower bounds.)

Key Insights and Ideas

  • Bypassing the Chebyshev Polynomial Degree Barrier: Traditional polynomial trace estimators require degrees proportional to $\sqrt{\kappa}$, which blows up when singular values near zero must be resolved. Formulating thresholding as rational functions via ridge regression allows convex optimization tools (like SVRG) to bypass polynomial degree lower bounds.
  • Average vs. Worst-Case Conditioning: The hardest instances for polynomial approximation—a few large singular values and a long tail of small ones—are precisely the instances where average condition numbers $\bar{\kappa} \ll \kappa$, making stochastic coordinate/gradient methods remarkably effective.
  • Randomized Window Shifting: Soft window functions blur at boundary intervals $[(1-\gamma)\lambda, (1+\gamma)\lambda]$. By randomly perturbing the bucket boundaries and setting the transition gap $\gamma = \text{poly}(\epsilon)$, the expected number of singular values caught in ambiguous boundary regions remains provably negligible.
  • The Precision Dichotomy ($\epsilon$ vs. $n$): Breaking the $n^\omega$ barrier is possible only if one accepts a polynomial dependence on $1/\epsilon$ (e.g., $\epsilon^{-3}$). If an algorithm could achieve $\text{polylog}(1/\epsilon)$ or small polynomial dependence, it would immediately yield faster-than-matrix-multiplication triangle detection and subcubic Boolean Matrix Multiplication (BMM).

Key Results

  • Nuclear Norm (Schatten 1-norm):
  • Dense matrices: Computes a $(1 \pm \epsilon)$ approximation in $\tilde{O}(n^{2.18}\epsilon^{-3})$ time using fast rectangular matrix multiplication, or $\tilde{O}(n^{2.33}\epsilon^{-3})$ without fast matrix multiplication—both strictly faster than $O(n^{2.373})$.
  • Uniformly sparse matrices: Runs in $\tilde{O}((nnz(A)n^{1/3} + n^2)\epsilon^{-3})$ time, which is subquadratic for sufficiently sparse matrices.
  • General Schatten $p$-norms:
  • For $p \ge 2$: Runs in $\tilde{O}(p \cdot nnz(A)\epsilon^{-3})$ time (near-linear in matrix non-zeros).
  • For $p < 2$: Scales smoothly between near-linear and sub-matrix-multiplication time.
  • Conditional Lower Bounds:
  • Any algorithm approximating Schatten $p$-norms ($p \ne 2$), log-determinant, $\text{tr}(A^{-1})$, or $\text{tr}(\exp(A))$ within $(1 \pm \epsilon)$ in $O(n^\gamma \epsilon^{-c})$ time implies triangle detection in $O(n^{\gamma + O(c)})$ time.
  • Accurately computing all effective resistances in a graph faster than matrix multiplication time is shown to be conditionally impossible without a major algorithmic breakthrough.

Limitations and Future Work

  • Steep Error Dependency: Runtimes scale as $\epsilon^{-3}$ to $\epsilon^{-5}$. While fine-grained lower bounds explain why $\log(1/\epsilon)$ is impossible in sub-matrix-multiplication time, closing the gap between the algorithmic exponent of $1/\epsilon$ and the lower bound exponent remains an open problem.
  • Sparsity Assumptions: The strongest sparse runtimes require uniform row sparsity ($d_s(A) = O(nnz(A)/n)$). For matrices with highly irregular row densities, performance degrades toward worst-case bounds.
  • Practical Implementation: The multi-layered construction (deflation + SVRG-based ridge regression + polynomial smoothing + random shifts + Hutchinson sampling) presents substantial constant factors, leaving empirical benchmarking and practical tuning for future work.

Summary updated

BibTeX
@inproceedings{musco2018spectrum,
  author = {Cameron Musco and Praneeth Netrapalli and Aaron Sidford and Shashanka Ubaru and David P. Woodruff},
  title = {{Spectrum Approximation Beyond Fast Matrix Multiplication: Algorithms and Hardness}},
  booktitle = {ITCS},
  year = {2018},
  url = {https://openreview.net/forum?id=f0OObiRRE2E},
}
Figure