Cluster based RBF Kernel for Support Vector Machines

Wojciech Marian Czarnecki, Jacek TaborarXiv 2014

Introduction

Support Vector Machines (SVMs) are a cornerstone of supervised learning, largely due to their ability to handle non-linear data through the "kernel trick." The most prevalent choice is the Radial Basis Function (RBF) kernel. However, a significant limitation of the standard RBF kernel is its assumption of a uniform, global geometry across the entire feature space. In practice, real-world datasets often exhibit complex local structures—clusters with varying shapes, orientations, and densities—that a single global parameter cannot adequately capture.

This paper introduces the $C_kRBF$ kernel, a novel approach that incorporates local data geometry by partitioning the feature space. By assigning local covariance matrices to different regions, the $C_kRBF$ kernel provides a more flexible and stable alternative to traditional RBF kernels.

Methodology: The $C_kRBF$ Framework

The core innovation of the $C_kRBF$ kernel lies in its ability to "warp" the distance metric based on local data characteristics. The construction process follows four primary stages:

  1. Data Partitioning: The input space is divided into $k$ disjoint clusters using the k-means algorithm.
  2. Local Covariance Estimation: For each cluster $i$, an empirical covariance matrix $\Sigma_i$ is calculated, capturing the local shape and spread of the data.
  3. Probabilistic Feature Mapping: Points are mapped to a high-dimensional space not as discrete vectors, but as multivariate Gaussian distributions $\mathcal{N}(x, \Sigma_x)$, where $\Sigma_x$ corresponds to the covariance of the cluster to which point $x$ belongs.
  4. Kernel Computation: The kernel function is defined as the $L^2$ scalar product of these Gaussian distributions.

The authors rigorously prove that this formulation satisfies Mercer’s conditions, ensuring it is a valid kernel for SVM optimization. The resulting metric effectively accounts for the local density of both points being compared, leading to a more nuanced decision boundary.

Experimental Evaluation

The performance of the $C_kRBF$ kernel was benchmarked against standard RBF and Mahalanobis RBF kernels using nine datasets from the UCI Machine Learning Repository, including Australian, Diabetes, and Breast-cancer. These datasets represent a diverse range of dimensionalities and internal geometries.

Stability and Hyperparameter Tuning

One of the primary challenges with standard RBF kernels is the intensive hyperparameter tuning required for the regularization parameter $C$ and the kernel width $\gamma$. This process typically involves an exhaustive grid search, which is computationally expensive and often results in a narrow "sweet spot" of high performance.

Grid search comparison showing the expanded region of high accuracy (yellow) for the $C_kRBF$ kernel compared to standard RBF variants.

As illustrated in Figure 1, the $C_kRBF$ kernel exhibits significantly higher stability. The "sweet spot" for optimal parameters is much larger than that of its competitors. To quantify this, the authors introduced the $P_f(\alpha)$ index, representing the probability of finding a high-accuracy parameter set through random sampling. The $C_kRBF$ kernel consistently showed a higher $P_f(\alpha)$, suggesting that it is much easier to tune in practice.

Adapting to Local Geometry

The advantage of the $C_kRBF$ approach is most visible when examining how it models the underlying data distribution. While standard kernels apply a rigid, global transformation, $C_kRBF$ adapts to the specific clusters within the data.

Comparison of data geometry assumptions: Standard RBF (left), Mahalanobis RBF (center), and the proposed $C_kRBF$ (right) adapting to local cluster shapes.

Figure 2 demonstrates this adaptation on the Iris dataset. While the standard RBF assumes a spherical geometry (left) and the Mahalanobis RBF assumes a single global ellipsoid (center), the $C_kRBF$ kernel (right) successfully identifies and adapts to the distinct orientations of local clusters.

Key Results and Discussion

The experimental results indicate that $C_kRBF$ achieves competitive or superior classification accuracy across the majority of tested datasets. Notably, even with a minimal number of clusters (e.g., $k=2$), the kernel provides substantial benefits in both accuracy and tuning efficiency.

The computational overhead introduced by the clustering and matrix inversion steps is minimal for low-to-medium dimensional data, making it a practical alternative for many real-world applications. However, the authors note that the choice of $k$ remains a hyperparameter that may require cross-validation, and the reliance on k-means suggests that future iterations could benefit from more sophisticated partitioning methods.

Conclusion

The $C_kRBF$ kernel represents a significant step forward in making SVMs more robust and easier to deploy. By integrating local geometric information directly into the kernel function, it reduces the sensitivity to hyperparameter choices while maintaining high classification performance. Future research will focus on automated selection of the cluster count $k$ and scaling the approach for extremely high-dimensional feature spaces.

Summary updated

BibTeX
@misc{czarnecki2014cluster,
  author = {Wojciech Marian Czarnecki and Jacek Tabor},
  title = {{Cluster based RBF Kernel for Support Vector Machines}},
  year = {2014},
  eprint = {1408.2869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.2869},
}
Figure