Faster Algorithms for Schatten-p Low Rank Approximation

Praneeth Kacham, David P. Woodruff · DOI

Low Rank Approximation (LRA) is the "Swiss Army Knife" of large-scale data analysis. Whether you are compressing data, denoising signals, or performing latent semantic analysis, you are likely looking for a way to represent a massive matrix $A$ as a product of two much smaller matrices.

While the Frobenius norm (Schatten-2) is the standard tool for measuring LRA error, it isn't always the best. In a new paper, Praneeth Kacham and David P. Woodruff from CMU and Google Research push the boundaries of LRA for the more general Schatten-p norms, offering faster algorithms and the first rigorous look at numerical stability for a popular iterative method.

TL;DR

The authors accelerate Schatten-p Low Rank Approximation by optimizing block sizes with fast rectangular matrix multiplication and hybridizing sketching-based methods with iterative ones. Crucially, they provide the first stability analysis for the LazySVD algorithm, proving it can run on standard floating-point hardware with only logarithmic precision.

What Problem Does This Paper Address?

Given an $m \times n$ matrix $A$, the goal of LRA is to find a rank-$k$ matrix $B$ that minimizes the error $\|A - B\|$. While the Singular Value Decomposition (SVD) provides the perfect answer, it is computationally expensive ($O(n^\omega)$). Researchers instead look for $(1+\epsilon)$-approximate solutions that run much faster.

The Schatten-p norm (the $p$-th root of the sum of the $p$-th powers of singular values) offers a flexible error metric. For example, $p=1$ (the nuclear norm) is more robust to outliers than the standard Frobenius norm ($p=2$). However, algorithms for $p \neq 2$ are significantly more complex. Existing approaches generally fall into two camps:

  1. Sketching-based: Fast, but often require many rows/columns to get high accuracy.
  2. Iterative (Krylov-based): High accuracy with fewer matrix-vector products, but can be slower per iteration.

This paper aims to bridge these gaps and solve a lingering question: Are these fast iterative algorithms stable on real-world computers?

Methods

The authors introduce three main technical contributions:

  1. Fast Rectangular Matrix Multiplication (FRMM): They show that by using FRMM algorithms and carefully choosing different block sizes for different parts of the iteration, they can improve upon the state-of-the-art iterative algorithms (specifically Bakshi et al., STOC 2022).
  2. The Hybrid Approach: They combine their improved iterative algorithm with the sketching-based approach of Li and Woodruff (ICML 2020). By using the iterative method to solve sub-problems within the sketching framework, they achieve "near-linear" time for a wider range of $p$ values.
  3. Stability Analysis for LazySVD: LazySVD is a single-vector iterative method that is very fast but lacked a proof that it works under finite precision. The authors provide a "Modified LazySVD" and prove it is stable on floating-point machines using only $O(\log n)$ bits of precision.

Datasets

This is a theoretical paper focused on algorithmic complexity and numerical analysis. As such, it does not use standard machine learning datasets (like ImageNet or GLUE).

  • Synthetic Timing Experiment: The authors include a small experiment (Figure 1 in the paper) measuring the time to multiply an $n \times n$ matrix by an $n \times d$ matrix on a 2-core machine. This experiment validates their "Implications to Practice" section, showing that larger block sizes are more efficient on modern hardware due to data locality and parallelization.

Key Insights and Ideas

  • The Block-Size Trade-off: Most iterative algorithms optimize for the number of matrix-vector products. However, on modern hardware, multiplying a matrix by a block of vectors is often much faster than doing individual products sequentially. The authors exploit this by using FRMM theory to find the "sweet spot" for block sizes.
  • Breaking the Crossover Point: There is usually a "crossover point" (around $p \approx 7.4$ or $p \approx 12.8$ depending on the algorithm) where sketching becomes faster than iterative methods. By hybridizing the two, the authors push this boundary, achieving near-linear time for $p$ values up to approximately 22.
  • Subspace Induction: The "aha moment" for the stability analysis was realizing they didn't need to prove that each individual vector in the iteration was close to the "true" eigenvector. Instead, they used induction to show that the projection matrices onto the subspaces spanned by these vectors remain close. This is a much more robust way to handle floating-point errors.

Key Results

  • Speedups: For $p \in [1, 2)$, the new algorithm is faster than previous work when the desired accuracy $\epsilon$ is small.
  • Near-Linear Time: The combined algorithm runs in $O(n^2 \text{ poly}(\log n))$ time for all $p \lesssim 22$ under certain accuracy regimes.
  • LazySVD Stability: They proved that LazySVD can output a $(1+\epsilon)$ approximation using only $O((k/\sqrt{\epsilon}) \text{ poly}(\log n))$ matrix-vector products on a machine with polylogarithmic bits of precision. This is the first such analysis for an algorithm with this complexity.

Limitations and Future Work

  • Practicality of FRMM: While the paper uses Fast Rectangular Matrix Multiplication to prove theoretical bounds, these algorithms (like Coppersmith-Winograd variants) are notoriously difficult to implement efficiently in practice. The authors acknowledge this but point out that the principle of using larger blocks is still beneficial on standard hardware.
  • Numerical Linear Algebra Gaps: The authors note that showing the stability of the standard Block Krylov iteration (not just LazySVD) remains a major open question in the field.
  • Parameter Dependencies: The running times involve complex exponents related to $\omega$ (the matrix multiplication constant) and $p$, which may be difficult to tune for specific real-world applications.

Summary updated

BibTeX
@inproceedings{kacham2024faster,
  author = {Praneeth Kacham and David P. Woodruff},
  title = {{Faster Algorithms for Schatten-p Low Rank Approximation}},
  booktitle = {APPROX/RANDOM},
  year = {2024},
  url = {https://openreview.net/forum?id=U7Ws2h0Vpa},
}
Figure