A statistical perspective on algorithmic leveraging

Ping Ma, Michael W. Mahoney, Bin Yu

TL;DR

Algorithmic leveraging is a popular technique for speeding up large-scale computations by sampling data based on leverage scores. This paper provides the first statistical analysis of this method, revealing that while leverage-based sampling offers algorithmic advantages, it doesn't uniformly outperform simple uniform sampling from a statistical bias/variance perspective. The authors introduce two new algorithms, SLEV and LEVUNW, that achieve improved statistical performance while retaining algorithmic benefits.

What Problem Does This Paper Address?

When dealing with massive datasets, especially in linear regression, directly computing solutions can be computationally prohibitive. Algorithmic leveraging offers a solution by sampling rows (or columns) of the data matrix based on their "leverage scores." These scores indicate how influential a data point is, and sampling them preferentially can lead to significant speedups in algorithms for problems like least-squares approximation. However, existing research has primarily focused on the algorithmic efficiency and worst-case performance of these methods. The statistical properties, specifically the bias and variance of the resulting estimates, have been largely unaddressed. This paper aims to bridge this gap by providing a rigorous statistical analysis of algorithmic leveraging, understanding its behavior in terms of bias and variance, and proposing improved methods.

Methods

The core of the paper's theoretical contribution lies in a Taylor series analysis of the subsampling estimators. By approximating the estimators as linear combinations of random sampling matrices, the authors derive expressions for their conditional and unconditional biases and variances. This framework allows them to compare different sampling strategies.

Key novelties include:

  • Statistical Framework: The paper introduces a statistical lens to analyze algorithmic leveraging, moving beyond purely algorithmic worst-case bounds.
  • New Algorithms:
    • Shrinked Leveraging (SLEV): This method samples data using a convex combination of leverage score probabilities and uniform probabilities. This "shrinks" the influence of extremely large leverage scores, mitigating variance inflation, while still benefiting from leverage-based sampling.
  • Unweighted Leveraging (LEVUNW): This approach samples data using leverage scores but then solves an unweighted least-squares subproblem. This deviates from the standard leveraging approach where sampling and reweighting probabilities are aligned.
  • Theoretical Analysis: The authors derive detailed formulas for the bias and variance of various leveraging estimators, including the proposed SLEV and LEVUNW.

Datasets

The paper uses both synthetic and real-world datasets for evaluation:

  • Synthetic Data: Three types of synthetic datasets were generated to represent different leverage score distributions:
  • GA (Gaussian): Nearly uniform leverage scores.
  • T3 (Multivariate t-distribution, df=3): Moderately nonuniform leverage scores.
  • T1 (Multivariate t-distribution, df=1): Very nonuniform leverage scores. These datasets were used to systematically study the impact of leverage score distribution on estimator performance.

  • Real Data:

    • RNA-Seq Data: A dataset of read counts from embryonic mouse stem cells was used to illustrate performance on a dataset with nearly uniform leverage scores.
  • Microarray Data: A dataset from cancer patients was used to illustrate performance on a dataset with moderately nonuniform leverage scores.

Key Insights and Ideas

  • Algorithmic vs. Statistical Trade-offs: The most striking insight is that while leverage-based sampling offers superior algorithmic worst-case guarantees compared to uniform sampling, this advantage doesn't translate to uniform statistical superiority in terms of bias and variance. Neither method strictly dominates the other across all scenarios.
  • Leverage Score Inflation: Extremely small leverage scores can significantly inflate the variance of standard leverage-based estimators (LEV). This is a key motivation for the proposed SLEV method.
  • The Power of "Shrinking": The SLEV algorithm, by combining leverage-based and uniform sampling, effectively "shrinks" the influence of extreme leverage scores. This leads to improved bias and variance, especially in scenarios with highly nonuniform leverage scores.
  • Unweighted Subproblems: The LEVUNW approach, by decoupling sampling and reweighting, offers benefits in terms of unconditional bias and variance, particularly when the goal is to estimate the true underlying parameter.
  • Fast Approximation is Key: The paper highlights the importance of fast algorithms for approximating leverage scores. Using these approximations (e.g., via the BFast/GFast algorithms) allows for efficient application of leveraging methods to much larger datasets than exact computation would permit, with minimal loss in statistical accuracy.

Key Results

  • Theoretical Findings: The paper provides analytical expressions for the bias and variance of various subsampling estimators, demonstrating that LEV and UNIF have complementary strengths and weaknesses.
  • Empirical Validation: Extensive experiments on synthetic and real data confirm the theoretical predictions.
  • LEV vs. UNIF: LEV generally performs comparably to or better than UNIF, especially when leverage scores are nonuniform. However, UNIF can be more robust when leverage scores are extremely small.
  • SLEV Performance: SLEV, particularly with a high weight on leverage scores (α ≈ 0.9), consistently shows improved bias and variance compared to LEV and UNIF, striking a good balance.
  • LEVUNW Performance: LEVUNW often achieves the smallest unconditional bias and variance, especially for nonuniform leverage scores, but can exhibit larger conditional biases.
  • Fast Approximation: The use of approximate leverage scores via algorithms like BFast and GFast enables processing of datasets that are 1.5x larger than what exact methods can handle, with nearly identical statistical results.

Limitations and Future Work

  • Approximation Accuracy: While the paper demonstrates the effectiveness of approximate leverage scores, a deeper theoretical characterization of when the linear approximation regime holds (i.e., when the remainder term $R_w$ is small) is still an open question.
  • Rank Deficiency: The paper touches upon the consequences of rank loss in subsampled problems, particularly for aggressive downsampling. Further investigation into the statistical implications of rank deficiency in these methods could be valuable.
  • Generalization: The current analysis primarily focuses on linear regression. Extending the statistical perspective to other matrix-based problems where algorithmic leveraging is applied (e.g., low-rank approximation, robust regression) would be a natural next step.
  • Parameter Tuning: For SLEV, the choice of the convex combination parameter $\alpha$ is crucial. While the paper suggests $\alpha \approx 0.9$ as a good heuristic, further work on optimal parameter selection strategies could be beneficial.

Summary updated

BibTeX
@article{ma2015statistical,
  author = {Ping Ma and Michael W. Mahoney and Bin Yu},
  title = {{A statistical perspective on algorithmic leveraging}},
  journal = {J. Mach. Learn. Res.},
  year = {2015},
  url = {https://openreview.net/forum?id=sUlqLrCxD6},
}
Figure