Abstract
A large number of experimental data shows that Support Vector Machine (SVM) algorithm has obvious advantages in text classification, handwriting recognition, image classification, bioinformatics, and some other fields. To some degree, the optimization of SVM depends on its kernel function and Slack variable, the determinant of which is its parameters $\sigma$ and $c$ in the classification function. That is to say, to optimize the SVM algorithm, the optimization of the two parameters play a huge role. Ant Colony Optimization (ACO) is an optimization algorithm which simulates ants to find the optimal path. In the available literature, we mix the ACO algorithm and Parallel algorithm together to find well-tuned parameters.
Introduction
Support Vector Machines (SVMs) are robust classifiers, but their effectiveness is highly dependent on two critical hyperparameters: the penalty parameter $C$ (slack variable) and the kernel parameter $\sigma$ (specifically for the Radial Basis Function kernel). $C$ manages the trade-off between margin maximization and error minimization, while $\sigma$ determines the reach of individual training examples. Finding the optimal values for these parameters is often a computational bottleneck, typically requiring exhaustive grid searches. This paper proposes a parallelized Ant Colony Optimization (ACO) approach using OpenCL to accelerate the search for these optimal parameters.
Methodology
The proposed framework combines biological heuristics with high-performance parallel computing to navigate the parameter space efficiently.
Discretized Parameter Mapping
The continuous search space for $C$ and $\sigma$ is mapped onto a 2D coordinate system. By treating significant digits as coordinates, the authors transform the hyperparameter tuning problem into a discrete pathfinding task suitable for ACO. "Ants" traverse this grid, depositing pheromones on paths that yield higher classification accuracy, thereby guiding the colony toward optimal regions.
OpenCL Parallelization
The core innovation lies in parallelizing the most computationally expensive components using the OpenCL framework:
- Ant Movement: Multiple ants explore the parameter grid simultaneously rather than sequentially.
- Fitness Evaluation: The system utilizes $k$-fold cross-validation to assess parameter sets. By offloading these cross-validation kernels to parallel hardware, the system can evaluate multiple parameter combinations at once, significantly reducing total execution time.
Experimental Results
The algorithm was evaluated using the Wine SVM dataset, a standard benchmark consisting of 178 samples (90 for training, 88 for testing) categorized by chemical analysis.
Performance and Convergence
The parallel ACO-SVM approach achieved a peak classification accuracy of 95.45% (76/88 correct). The algorithm demonstrated strong convergence, with the colony settling on an average accuracy of 86.36%. For this specific dataset, the optimal parameters identified were $c = 18.605$ and $\sigma = 0.6643$.
As shown in the figure above, the "best accuracy path" (a) emerges clearly from the aggregate search data (b). This visualization confirms that the pheromone-driven logic effectively steers the colony away from low-performing regions and toward the global optimum.
Conclusion
By integrating Ant Colony Optimization with OpenCL-based parallelization, this research provides a faster, more efficient method for SVM parameter selection. The approach maintains high classification accuracy while mitigating the time-intensive nature of traditional sequential searches. Future work may involve benchmarking the speedup ratios against other metaheuristics like Particle Swarm Optimization (PSO) and testing the framework's scalability on larger, more complex datasets.
Summary updated