Large-scale paralleled sparse principal component analysis

Weifeng Liu, Huimin Zhang, Dapeng Tao, Yanjiang Wang, Ke Lu

TL;DR

This paper introduces a GPU-accelerated parallel implementation of Sparse Principal Component Analysis (SPCA) called GP-SPCA. By leveraging the parallel processing power of GPUs, they achieve significant speedups over CPU-based implementations, making SPCA more practical for large-scale, high-dimensional datasets.

What Problem Does This Paper Address?

Principal Component Analysis (PCA) is a powerful technique for dimensionality reduction, but its principal components (PCs) are often linear combinations of all original variables, making them difficult to interpret. Sparse PCA (SPCA) aims to address this by finding PCs that are sparse, meaning they are primarily influenced by a few original variables, thus improving interpretability while retaining statistical fidelity. However, applying SPCA to large datasets can be computationally expensive. This paper tackles the challenge of making SPCA efficient and scalable for "big data" by developing a parallel implementation that utilizes Graphics Processing Units (GPUs).

Methods

The core of this work is the parallel implementation of the Generalized Power Method for Sparse Principal Component Analysis (GP-SPCA) on GPUs. GP-SPCA is an efficient SPCA approach that considers four different optimization formulations to extract sparse principal components. The authors leverage NVIDIA's CUDA parallel computing platform and the CUBLAS library (a GPU-accelerated Basic Linear Algebra Subprograms library) to implement these formulations. The strategy involves allocating data on both host (CPU) and device (GPU) memory, transferring data to the GPU for parallel computation, and then transferring results back. This approach is designed to exploit the highly parallel architecture of GPUs for intensive computations.

Datasets

The paper evaluates the effectiveness of their GP-SPCA implementation on several benchmark datasets:

  • USPS database: A handwritten digit database containing 9298 16x16 pixel images.
  • COIL20 database: Contains 1440 images of 20 objects, with each object represented by 72 images taken at 5-degree intervals.
  • Isolet spoken letter recognition database: Consists of 150 subjects, each speaking each letter of the alphabet twice.

These datasets are used to compare the recognition performance of SPCA against standard PCA.

Key Insights and Ideas

  • GPU Acceleration for SPCA is Crucial: The inherent parallelism of GPUs is a natural fit for the computationally intensive nature of SPCA, especially for large datasets.
  • GP-SPCA's Versatility: The paper highlights that GP-SPCA offers four distinct formulations, allowing for flexibility in balancing sparsity and variance based on the specific problem.
  • Practical Advantage of SPCA: Beyond computational efficiency, the experimental results suggest that SPCA often provides a practical advantage in tasks like image recognition, outperforming standard PCA.
  • Scalability is Key for "Big Data": The increasing size of datasets in various fields necessitates methods that can scale efficiently, and GPU-based parallelization is a promising avenue.

Key Results

The primary quantitative results focus on the speedup achieved by the GPU implementation of GP-SPCA:

  • The parallel GPU implementation of GP-SPCA is up to 11 times faster than a corresponding CPU implementation using CBLAS.
  • It is up to 107 times faster than a standard MATLAB implementation.

Qualitatively, experiments on benchmark datasets demonstrate that SPCA generally outperforms PCA in recognition tasks, indicating its practical utility.

Limitations and Future Work

  • Limitations: The paper focuses on the GP-SPCA method and its GPU implementation. While it demonstrates significant speedups, the generalizability to all SPCA methods or other parallel computing architectures is not explored. The specific hardware used (NVIDIA Tesla C2050) might influence the exact speedup figures.
  • Future Work: The authors suggest that this work has potential applications in large-scale, high-dimension reduction problems such as video indexing and web image annotation, which they intend to explore further. This implies that extending the framework to these specific applications and potentially exploring other SPCA variants on GPUs are areas for future research.

Summary updated

Abstract

Principal component analysis (PCA) is a statistical technique commonly used in multivariate data analysis. However, PCA can be difficult to interpret and explain since the principal components (PCs) are linear combinations of the original variables. Sparse PCA (SPCA) aims to balance statistical fidelity and interpretability by approximating sparse PCs whose projections capture the maximal variance of original data. In this paper we present an efficient and paralleled method of SPCA using graphics processing units (GPUs), which can process large blocks of data in parallel. Specifically, we construct parallel implementations of the four optimization formulations of the generalized power method of SPCA (GP-SPCA), one of the most efficient and effective SPCA approaches, on a GPU. The parallel GPU implementation of GP-SPCA (using CUBLAS) is up to eleven times faster than the corresponding CPU implementation (using CBLAS), and up to 107 times faster than a MatLab implementation. Extensive comparative experiments in several real-world datasets confirm that SPCA offers a practical advantage.
BibTeX
@article{liu2016large,
  author = {Weifeng Liu and Huimin Zhang and Dapeng Tao and Yanjiang Wang and Ke Lu},
  title = {{Large-scale paralleled sparse principal component analysis}},
  journal = {Multimedia Tools and Applications},
  year = {2016},
  url = {https://openreview.net/forum?id=p0n2TBZb9o},
}
Figure