Abstract
Most metric learning algorithms, as well as Fisher's Discriminant Analysis (FDA), optimize some cost function of different measures of within-and between-class distances. On the other hand, Support Vector Machines(SVMs) and several Multiple Kernel Learning (MKL) algorithms are based on the SVM large margin theory. Recently, SVMs have been analyzed from SVM and metric learning, and to develop new algorithms that build on the strengths of each. Inspired by the metric learning interpretation of SVM, we develop here a new metric-learning based SVM framework in which we incorporate metric learning concepts within SVM. We extend the optimization problem of SVM to include some measure of the within-class distance and along the way we develop a new within-class distance measure which is appropriate for SVM. In addition, we adopt the same approach for MKL and show that it can be also formulated as a Mahalanobis metric learning problem. Our end result is a number of SVM/MKL algorithms that incorporate metric learning concepts. We experiment with them on a set of benchmark datasets and observe important predictive performance improvements.
Introduction
Support Vector Machines (SVMs) are a cornerstone of supervised learning, primarily celebrated for their "large margin" principle. By maximizing the distance between the decision boundary and the nearest training samples (the support vectors), SVMs effectively maximize the between-class distance. However, traditional SVM formulations often overlook the within-class distance, which characterizes the spread of data points within their respective classes.
In contrast, metric learning algorithms like Fisher's Discriminant Analysis (FDA) explicitly optimize both between-class and within-class measures. This paper introduces a novel framework that bridges these two paradigms, incorporating metric learning concepts into SVM and Multiple Kernel Learning (MKL) to enhance predictive robustness.
Methodology
The proposed framework reinterprets SVM through the lens of metric learning. Specifically, the authors demonstrate that SVM can be viewed as learning a Mahalanobis metric with a diagonal transformation. To address the lack of within-class consideration in standard SVMs, a new bandwidth-based distance measure is introduced.
Instead of merely pushing classes apart, this approach defines a "band" around the margin hyperplane. Points that stray too far from this band are penalized, effectively forcing instances of a class to remain tightly clustered near their side of the boundary.
The resulting optimization problem, termed $SVM_m$, balances margin maximization with bandwidth minimization. A key advantage of this formulation is that it remains a convex quadratic programming problem, preserving the efficiency and "kernelizability" of standard SVMs. This logic is further extended to Multiple Kernel Learning, resulting in the $MKL_m$ algorithm, which learns optimal kernel combinations while accounting for within-class spread.
Experimental Setup
The performance of $SVM_m$ and $MKL_m$ was evaluated on several benchmark datasets from the UCI Machine Learning Repository, including Sonar, Ionosphere, Musk1, Wdbc, Stroke, Ovarian, Liver, and Wpbc. The algorithms were tested across a variety of kernel functions, including linear, polynomial (degrees 2 and 3), and Gaussian (RBF) kernels.
Key Results and Discussion
Experimental results indicate that $SVM_m$ consistently outperforms standard SVM and $\epsilon$-SVM. Specifically, $SVM_m$ achieved the lowest error rates in 19 out of 28 experimental configurations.
The Corrective Effect of Within-Class Constraints
A significant insight from the study is the "corrective effect" provided by within-class constraints. While standard SVM performs adequately with a perfectly matched kernel, $SVM_m$ shows its greatest strength when the chosen kernel is suboptimal. In such cases, the within-class constraint acts as a regularizer that improves classification accuracy. This was particularly evident in Gaussian kernel tests, where $SVM_m$ demonstrated superior robustness.
Computational Efficiency
While $SVM_m$ introduces additional constraints, it remains computationally viable. As shown in the timing comparisons, $SVM_m$ is slightly slower than standard SVM but significantly faster than $\epsilon$-SVM, which often struggles with computational overhead.
In the context of Multiple Kernel Learning, $MKL_m$ and its variant $\epsilon$-MKL showed consistent improvements over the SimpleMKL baseline, further validating the framework's effectiveness across different learning architectures.
Conclusion
By integrating metric learning principles into the SVM and MKL frameworks, this research provides a unified perspective on distance-based classification. The proposed $SVM_m$ and $MKL_m$ algorithms offer improved predictive performance and robustness to kernel choice while maintaining the desirable property of convexity. Future work may involve deriving formal generalization bounds and extending the framework to multi-class and regression tasks.
Summary updated