SVM
A Support Vector Machine (SVM) finds the maximum-margin hyperplane separating classes, relying solely on critical boundary points called support vectors. While a linear SVM scores samples via direct inner products in input space, an RBF (Gaussian) kernel SVM measures similarity as exp(-||x - x_c||^2 / (2 sigma^2)), implicitly mapping data into an infinite-dimensional feature space for non-linear decision boundaries.

Linear vs. RBF Kernel SVM
The key operational difference between a linear SVM and an RBF kernel SVM lies in how similarity is measured between a test point and each support vector :
-
Linear SVM:
- Similarity measure: Direct inner (dot) product (equivalent to cosine similarity only when inputs are -normalized).
- Decision boundary: A linear hyperplane in the original input space.
-
RBF (Gaussian) Kernel SVM:
- Similarity measure: Radial Basis Function kernel
- When is close to , .
- When is far from , .
- Decision boundary: Smooth, non-linear boundary in input space (corresponding to a linear hyperplane in an implicit high-dimensional feature space).
Intuitive Explanation of Support Vectors
- What they are: Support vectors are the subset of training points with non-zero dual weights () that directly determine the decision boundary:
- In a hard-margin SVM (linearly separable data), support vectors are strictly the points closest to the separating hyperplane lying right on the margin ().
- In a soft-margin SVM (allowing slack for noisy or non-separable data), support vectors include both points on the margin and points inside the margin or misclassified ().
- Why they are sufficient: Removing non-support-vector points () leaves the optimal boundary completely unchanged, whereas moving a support vector shifts the boundary.
- Inference efficiency: At prediction time, the model only evaluates over the stored support vectors rather than the entire training dataset.
Why Does the Gaussian Kernel Map Data to an Infinite-Dimensional Space?
A valid kernel corresponds to an inner product in some feature space. Expand the Gaussian RBF kernel algebraically (setting for clarity, or keeping explicitly):
Now expand using its Taylor series:
Each term is proportional to an inner product over all degree- monomials of the input coordinates. Because the Taylor series contains infinitely many non-zero polynomial orders , the implicit feature map lives in an infinite-dimensional Hilbert space—yet the kernel trick evaluates in time directly in input space.
