[Paper Review] Parallel Support Vector Machines in Practice
This paper proposes an implicitly parallel approach to kernel support vector machines (SVMs) using dense linear algebra operations, enabling high performance on both multi-core CPUs and GPUs without hand-optimized code. The SP-SVM method achieves up to 601× speedup over single-core LibSVM and outperforms explicit parallelization methods like GPU SVM and GTSVM, especially on large datasets, due to efficient use of optimized BLAS libraries and reduced implementation complexity.
In this paper, we evaluate the performance of various parallel optimization methods for Kernel Support Vector Machines on multicore CPUs and GPUs. In particular, we provide the first comparison of algorithms with explicit and implicit parallelization. Most existing parallel implementations for multi-core or GPU architectures are based on explicit parallelization of Sequential Minimal Optimization (SMO)---the programmers identified parallelizable components and hand-parallelized them, specifically tuned for a particular architecture. We compare these approaches with each other and with implicitly parallelized algorithms---where the algorithm is expressed such that most of the work is done within few iterations with large dense linear algebra operations. These can be computed with highly-optimized libraries, that are carefully parallelized for a large variety of parallel platforms. We highlight the advantages and disadvantages of both approaches and compare them on various benchmark data sets. We find an approximate implicitly parallel algorithm which is surprisingly efficient, permits a much simpler implementation, and leads to unprecedented speedups in SVM training.
Motivation & Objective
- To evaluate and compare explicit and implicit parallelization strategies for kernel SVMs on modern multicore and GPU architectures.
- To investigate whether implicitly parallelized algorithms—based on highly optimized linear algebra libraries—can outperform hand-optimized, explicitly parallelized implementations.
- To develop and benchmark a practical, portable, and high-performance SVM training method that leverages dense linear algebra operations for both CPU and GPU platforms.
- To assess the trade-offs between accuracy, memory usage, and training speed in implicit vs. explicit parallelization approaches for SVMs.
Proposed method
- The SP-SVM method reformulates the SVM optimization problem as a sequence of dense matrix-vector and matrix-matrix operations, enabling use of highly optimized BLAS libraries on both CPUs and GPUs.
- The algorithm uses an approximate, reduced-basis formulation to manage memory usage, avoiding the quadratic memory overhead of exact implicit methods.
- Implementation is done in high-level languages (e.g., MATLAB, Python) by linking to optimized libraries such as Intel MKL and CuBLAS, minimizing low-level coding.
- The method is evaluated on multiple benchmark datasets using both multi-core CPUs and GPUs, with performance compared against explicit parallelization methods like LibSVM, GPU SVM, and GTSVM.
- Parallelism is achieved implicitly through data-parallel operations in linear algebra routines, rather than explicit thread management or kernel tuning.
- The approach relies on the assumption that large, dense linear algebra operations dominate the computation, allowing the algorithm to benefit from highly optimized, portable libraries.
Experimental results
Research questions
- RQ1Can implicitly parallelized SVM algorithms, based on dense linear algebra, outperform explicitly parallelized implementations on modern multicore and GPU architectures?
- RQ2How does the performance of SP-SVM compare to state-of-the-art explicit parallel SVM methods like GPU SVM and GTSVM across different data sizes and platforms?
- RQ3What is the trade-off between accuracy and speed in implicit parallelization, particularly when using an approximate, reduced-basis formulation?
- RQ4To what extent do highly optimized linear algebra libraries enable portable, high-performance SVM training without low-level code tuning?
Key findings
- SP-SVM achieves up to 601× speedup over single-core LibSVM on GPUs and 193× on multi-core CPUs, significantly outperforming GPU SVM and GTSVM on large datasets like MITFaces and FD.
- On the MNIST8M dataset, SP-SVM achieves a test error of 1.0%, outperforming GPU SVM (1.4%) and GTSVM (7.9%), with speedups increasing with dataset size.
- SP-SVM trains all binary classification datasets in an average of 11 minutes, compared to several hours required by standard LibSVM, demonstrating practical efficiency.
- The implicit approach using dense linear algebra operations leads to simpler, more portable code that automatically benefits from hardware advances without reimplementation.
- Despite using an approximate, reduced-basis formulation, SP-SVM maintains competitive accuracy, with only minor performance degradation on highly imbalanced datasets like MITFaces.
- The method shows consistent speedup across platforms: 1.5× to 5× faster than other GPU methods and 1.3× to 4.3× faster than multi-core SP-SVM on GPUs.
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.