[Paper Review] Engineering fast multilevel support vector machines
This paper proposes a multilevel support vector machine (SVM) framework that accelerates nonlinear SVM training on large-scale and imbalanced datasets by leveraging hierarchical coarsening and algebraic multigrid-inspired techniques. The method achieves up to two orders of magnitude faster training than LibSVM and one order of magnitude faster than DC-SVM, while maintaining or improving classification accuracy, especially on highly imbalanced data, using PETSc for efficient linear algebra and scalability.
The computational complexity of solving nonlinear support vector machine (SVM) is prohibitive on large-scale data. In particular, this issue becomes very sensitive when the data represents additional difficulties such as highly imbalanced class sizes. Typically, nonlinear kernels produce significantly higher classification quality to linear kernels but introduce extra kernel and model parameters which requires computationally expensive fitting. This increases the quality but also reduces the performance dramatically. We introduce a generalized fast multilevel framework for regular and weighted SVM and discuss several versions of its algorithmic components that lead to a good trade-off between quality and time. Our framework is implemented using PETSc which allows an easy integration with scientific computing tasks. The experimental results demonstrate significant speed up compared to the state-of-the-art nonlinear SVM libraries. Reproducibility: our source code, documentation and parameters are available at https:// github.com/esadr/mlsvm.
Motivation & Objective
- Address the high computational cost of training nonlinear SVMs on large-scale datasets, particularly when data is imbalanced or noisy.
- Overcome the performance-quality trade-off inherent in traditional nonlinear SVMs, which suffer from slow training due to expensive kernel and parameter fitting.
- Develop a scalable, sequential multilevel framework that maintains high classification quality while drastically reducing training time.
- Integrate the framework into PETSc to enable seamless use in scientific computing pipelines and future parallelization.
- Demonstrate robustness and efficiency on real-world industrial datasets with strong multiscale or hierarchical structure.
Proposed method
- Apply algebraic multigrid (AMG) and multiscale optimization principles to coarsen data hierarchically, creating multiple levels of increasingly smaller training sets.
- Use a coarsening strategy based on clustering and distance-based aggregation to preserve class structure and reduce data size at each level.
- Train SVM models at coarse levels using fast, approximate parameter selection (e.g., NUD algorithm) to guide refinement at finer levels.
- Employ a recursive uncoarsening process that propagates models from coarse to fine levels, using adaptive filtering and kernel parameter tuning.
- Integrate the framework into PETSc to leverage its scalable sparse linear algebra and support for scientific computing workloads.
- Use a dynamic partitioning strategy where training is split across levels based on data size, with thresholds (e.g., Q_t = 5000) to trigger coarsening.
Experimental results
Research questions
- RQ1Can a multilevel framework significantly reduce the training time of nonlinear SVMs without sacrificing classification accuracy on large-scale datasets?
- RQ2How does hierarchical coarsening affect model generalization, especially in the presence of class imbalance?
- RQ3What is the impact of different coarsening strategies (e.g., IIS vs. AMG) and filtering parameters (θ, r) on model quality and speed?
- RQ4Can model selection at coarse levels effectively guide parameter tuning at fine levels, reducing the need for exhaustive search?
- RQ5To what extent does the multilevel approach outperform state-of-the-art SVM libraries like LibSVM and DC-SVM in terms of speed and accuracy?
Key findings
- The proposed multilevel SVM framework achieves up to a 100-fold speedup over LibSVM and a 10-fold speedup over DC-SVM on datasets with over 100,000 samples.
- On the MNIST8M dataset (1M samples), the framework reduced training time by more than two orders of magnitude compared to LibSVM while maintaining high accuracy.
- For highly imbalanced datasets like HIGGS and SUSY, the multilevel approach achieved better or comparable G-mean and AUC scores than baseline methods.
- The framework demonstrated stable performance across diverse datasets, with low standard deviation in accuracy (e.g., <0.03 across MNIST8M classes), indicating robustness.
- The use of coarse-level model selection (e.g., NUD algorithm) with adaptive filtering (θ=0.05) and coarsening threshold (Q_t=5000) led to consistent performance gains.
- The implementation in PETSc enabled efficient linear algebra operations and provided a foundation for future parallelization and integration into HPC workflows.
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.