[Paper Review] Single-Pass PCA of Large High-Dimensional Data
This paper proposes a single-pass randomized algorithm for principal component analysis (PCA) of large, high-dimensional data, enabling efficient computation with only one pass over data stored on disk or in streaming form. It achieves high accuracy with minimal memory usage—processing a 150 GB dataset in 24 minutes using under 1 GB RAM—while outperforming existing single-pass methods in error reduction and scalability.
Principal component analysis (PCA) is a fundamental dimension reduction tool in statistics and machine learning. For large and high-dimensional data, computing the PCA (i.e., the singular vectors corresponding to a number of dominant singular values of the data matrix) becomes a challenging task. In this work, a single-pass randomized algorithm is proposed to compute PCA with only one pass over the data. It is suitable for processing extremely large and high-dimensional data stored in slow memory (hard disk) or the data generated in a streaming fashion. Experiments with synthetic and real data validate the algorithm's accuracy, which has orders of magnitude smaller error than an existing single-pass algorithm. For a set of high-dimensional data stored as a 150 GB file, the proposed algorithm is able to compute the first 50 principal components in just 24 minutes on a typical 24-core computer, with less than 1 GB memory cost.
Motivation & Objective
- Address the challenge of computing PCA on extremely large, high-dimensional datasets that exceed main memory capacity.
- Develop a single-pass algorithm suitable for data stored on slow storage (e.g., hard disk) or generated in a streaming fashion.
- Improve accuracy over existing single-pass PCA methods while maintaining low memory and computational costs.
- Enable practical PCA computation on terabyte-scale datasets using standard hardware with limited RAM.
- Provide theoretical error bounds and empirical validation for robustness across diverse data distributions.
Proposed method
- Use a randomized sketching technique based on structured random matrices to project high-dimensional data into a lower-dimensional subspace.
- Apply a single-pass matrix sketching scheme that maintains a compact representation of the data using orthogonal projection matrices.
- Reconstruct the principal components via truncated SVD on the sketched matrix, ensuring computational efficiency.
- Leverage randomized QB approximation to identify the dominant singular subspace with minimal data access.
- Enforce numerical stability by using orthogonalization and structured random projections to reduce error propagation.
- Integrate a power scheme (one additional pass) to enhance accuracy without significantly increasing runtime or memory usage.
Experimental results
Research questions
- RQ1Can a single-pass algorithm achieve high-accuracy PCA for large, high-dimensional datasets that do not fit in main memory?
- RQ2How does the proposed algorithm compare in accuracy and efficiency to existing single-pass PCA methods like those based on frequent-directions or basic randQB?
- RQ3What is the memory and time complexity of the algorithm when processing terabyte-scale data with limited RAM?
- RQ4Can the algorithm be effectively applied to real-world streaming or disk-stored data, such as high-dimensional image matrices?
- RQ5To what extent does the use of structured random matrices improve accuracy and stability compared to unstructured random projections?
Key findings
- The algorithm computes the first 50 principal components of a 150 GB, 102,042 × 393,216 matrix in 1453 seconds (~24 minutes) using less than 1 GB of memory.
- For a 150 GB dataset, the proposed method achieves a maximum error of 1.8e-3, significantly lower than the 2.2e-2 error of the baseline single-pass algorithm.
- On a 10,000 × 10,000 matrix, the algorithm computes the first 50 components in 0.69 seconds, compared to 219 seconds for MATLAB’s 'svds' function.
- Applying the power scheme (one additional pass) reduces the maximum error to 4.6e-7 for Type 1 matrices and 3e-6 for Type 2 matrices, with only a marginal increase in runtime.
- The algorithm’s memory cost ranges from 402 MB to 490 MB across experiments, while standard SVD methods fail due to excessive memory demands.
- Computed eigenfaces from the FERET dataset closely match those from prior work, confirming the method’s fidelity and practical utility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.