Asymptotics of the Sketched Pseudoinverse

Daniel LeJeune, Pratik Patil, Hamid Javadi, Richard G. Baraniuk, Ryan J. Tibshirani

TL;DR

This paper uses random matrix theory to show that sketching a matrix before computing its pseudoinverse is equivalent to adding a specific type of regularization. This provides a precise understanding of how sketching affects computations and offers new ways to analyze and improve sketching-based algorithms.

What Problem Does This Paper Address?

In large-scale data analysis, sketching (or random projections) is a popular technique to reduce the dimensionality of data, making computations more efficient. While it's known that sketching can preserve statistical performance, the exact way it alters the results of computational methods, like computing a pseudoinverse, has been less understood. This paper aims to precisely characterize this effect, showing that sketching implicitly introduces a form of regularization, akin to ridge regression. This understanding is crucial for analyzing the behavior of sketching-based algorithms and for developing new ones that leverage this implicit regularization.

Methods

The authors employ a random matrix theory (RMT) approach to analyze the asymptotic behavior of sketched matrices. They extend existing results on asymptotic equivalence of random matrices to the real-valued setting, specifically for regularization. A key technique is the use of asymptotic equivalence, a notion that precisely quantifies how two sequences of random matrices behave similarly as their dimensions grow. They also leverage the calculus of asymptotic equivalences, particularly a derivative trick, to derive second-order equivalences that capture variance-like inflation due to sketching. The paper also explores free probability to generalize results to a broader class of "free" sketching matrices.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and uses synthetic matrix structures (e.g., positive semidefinite matrices, isotropic and Marchenko-Pastur spectra) for illustrative examples and proofs.

Key Insights and Ideas

  • Sketching as Implicit Regularization: The most significant insight is that sketching a matrix before computing its pseudoinverse is mathematically equivalent to applying a specific form of ridge regularization to the original matrix. This provides a concrete interpretation of sketching's effect beyond just dimensionality reduction.
  • First- and Second-Order Equivalences: The paper provides both first-order (linear) and second-order (quadratic) equivalences. The first-order equivalence shows how the main component of the sketched pseudoinverse relates to a regularized inverse, while the second-order equivalence captures additional effects like variance inflation.
  • Negative Regularization: The work explicitly handles negative regularization, which can be beneficial in certain machine learning scenarios (e.g., undersampled settings), and provides a precise characterization of its limits in sketched computations.
  • Universality for Free Sketches: The results are generalized beyond i.i.d. sketching matrices to a broader class of "free" sketching matrices, demonstrating that the core phenomenon holds for a wider range of practical sketching techniques.
  • Understanding Sketching Trade-offs: By providing precise analytical tools, the paper enables a deeper understanding of the trade-offs between different sketching matrices, their computational costs, and the resulting regularization effects.

Key Results

  • Asymptotic First-Order Equivalence: The paper establishes that the sketched regularized pseudoinverse $S(S^T A S + \lambda I_q)^{-1} S^T$ is asymptotically equivalent to $(A + \mu I_p)^{-1}$, where $\mu$ is a regularization parameter determined by $A$, the sketch size $q$, and the original regularization $\lambda$. This equivalence holds under mild assumptions on $A$ and $S$.
  • Asymptotic Second-Order Equivalence: A second-order equivalence is derived, showing that the sketched pseudoinverse can be expressed as $(A + \mu I_p)^{-1}(\Psi + \mu' I_p)(A + \mu I_p)^{-1}$, where $\mu'$ is an inflation factor that captures variance-like effects.
  • Characterization of Smallest Eigenvalue: The work provides a precise characterization of the limiting smallest nonzero eigenvalue of sketched matrices, which is of independent interest.
  • Analysis of Sketch-and-Project and Sketched Ridge Regression: The theoretical results are applied to analyze the performance and computational complexity of sketch-and-project and sketched ridge regression algorithms, offering new insights into their behavior.
  • Generalization to Free Sketches: The framework is extended to asymptotically free sketching matrices, showing that the equivalence holds for a broader class of sketches beyond i.i.d. ones.

Limitations and Future Work

  • Asymptotic Nature: The results are primarily asymptotic, meaning they describe the behavior as matrix dimensions grow infinitely large. While these results provide strong intuition and are often accurate for practical finite systems, a precise characterization for non-asymptotic settings is still needed.
  • Rate of Convergence: The rate of convergence in the asymptotic equivalences depends on factors like the choice of $A$ and higher-order moments of the sketching matrix elements, which are not precisely characterized.
  • Extension to Real Arguments: While the paper deals with real-valued regularization, the extension of free sketching results to real arguments and further investigation of their properties are left for future work.
  • Adaptive Sketching: The paper touches upon adaptive sketching but suggests further work is needed to fully characterize its behavior, particularly in relation to generalized ridge regression.
  • Broader Applications: The authors suggest that their framework can be extended to analyze predicted values and quadratic errors in sketched ridge regression, and potentially combined with other techniques for analyzing implicit regularization in nonlinear models.

Summary updated

BibTeX
@article{lejeune2022asymptotics,
  author = {Daniel LeJeune and Pratik Patil and Hamid Javadi and Richard G. Baraniuk and Ryan J. Tibshirani},
  title = {{Asymptotics of the Sketched Pseudoinverse}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2022},
  url = {https://openreview.net/forum?id=huWzSxRnc6},
}
Figure