Skip to main content
QUICK REVIEW

[Paper Review] Fast Randomized PCA for Sparse Data

Feng Xu, Yuyang Xie|arXiv (Cornell University)|Oct 16, 2018
Face and Expression RecognitionComputer Science13 citations
TL;DR

This paper proposes frPCA, a fast randomized PCA algorithm optimized for large sparse matrices, leveraging modified power iteration and efficient handling of tall-skinny matrices to achieve up to 9.1× speedup over basic randomized SVD and 20× over MATLAB's svds, with negligible accuracy loss and reduced memory usage—enabling processing of massive sparse datasets that conventional methods fail to handle due to memory constraints.

ABSTRACT

Principal component analysis (PCA) is widely used for dimension reduction and embedding of real data in social network analysis, information retrieval, and natural language processing, etc. In this work we propose a fast randomized PCA algorithm for processing large sparse data. The algorithm has similar accuracy to the basic randomized SVD (rPCA) algorithm (Halko et al., 2011), but is largely optimized for sparse data. It also has good flexibility to trade off runtime against accuracy for practical usage. Experiments on real data show that the proposed algorithm is up to 9.1X faster than the basic rPCA algorithm without accuracy loss, and is up to 20X faster than the svds in Matlab with little error. The algorithm computes the first 100 principal components of a large information retrieval data with 12,869,521 persons and 323,899 keywords in less than 400 seconds on a 24-core machine, while all conventional methods fail due to the out-of-memory issue.

Motivation & Objective

  • Address the computational and memory bottlenecks of conventional PCA and SVD methods when applied to large sparse real-world datasets such as social networks, information retrieval, and recommender systems.
  • Develop a randomized PCA algorithm tailored for sparse data, improving runtime and memory efficiency over existing methods like svds and basic rPCA.
  • Enable flexible trade-offs between runtime and accuracy by supporting odd numbers of passes via a modified power iteration scheme.
  • Handle matrices with more columns than rows efficiently, a case often overlooked in prior work.
  • Ensure scalability to extremely large sparse matrices (e.g., 12M×323K) that exceed main memory capacity, where standard methods fail.

Proposed method

  • Propose frPCA, a modified randomized SVD algorithm using random projection and power iteration to identify the dominant subspace of a sparse matrix.
  • Introduce a novel power iteration scheme that supports odd numbers of passes over the data matrix, enabling finer-grained runtime-accuracy trade-offs.
  • Design a specialized variant, frPCAt, for matrices with more columns than rows, improving efficiency in tall-skinny matrix scenarios.
  • Optimize computational cost by minimizing floating-point operations and leveraging sparse matrix operations throughout the algorithm.
  • Use theoretical analysis to model the algorithm’s efficiency in relation to sparsity, power iteration parameter q, and number of desired components.
  • Implement memory-efficient computation to reduce peak memory usage, enabling processing of datasets that exceed available RAM.

Experimental results

Research questions

  • RQ1Can a randomized PCA algorithm be significantly accelerated for sparse data while maintaining high accuracy?
  • RQ2How does the proposed algorithm’s performance scale with varying sparsity levels, number of components, and power iteration parameters?
  • RQ3Can odd-numbered passes over the data matrix be effectively used to improve runtime-accuracy trade-offs in randomized SVD?
  • RQ4Does the algorithm outperform standard methods like svds and eigSVDs in both speed and memory efficiency on large sparse matrices?
  • RQ5Can the algorithm process extremely large sparse datasets (e.g., 12M×323K) that cause out-of-memory failures in conventional methods?

Key findings

  • The proposed frPCA algorithm achieves up to 9.1× speedup over the basic randomized SVD (rPCA) algorithm with negligible accuracy loss on real sparse datasets.
  • On the largest dataset (Aminer, 12.9M×323K), frPCA completes in under 400 seconds using only 23 GB memory, while svds fails due to memory overflow (>32 GB required).
  • The algorithm is up to 20× faster than MATLAB’s svds function, with a speedup of 13× on the SNAP social network dataset.
  • Memory usage of frPCA is significantly lower than svds—0.35 GB vs. 0.58 GB on the SNAP dataset—demonstrating superior memory efficiency.
  • Theoretical analysis confirms that the speedup ratio (Sp1) closely matches empirical results, validating the model’s accuracy in predicting performance.
  • The algorithm successfully computes the first 100 principal components for all test datasets, including those with over 12 million rows, where conventional methods fail.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.