F-SVM: Combination of Feature Transformation and SVM Learning via Convex Relaxation

Xiaohe Wu, Wangmeng Zuo, Yuanyuan Zhu, Liang Lin

TL;DR

F-SVM improves the generalization of Support Vector Machines (SVM) by jointly learning a feature transformation and a classifier through a novel convex relaxation of the radius-margin bound. By minimizing the ratio of the data's radius to its margin, F-SVM achieves superior accuracy and significantly faster training times compared to previous non-convex or restricted radius-margin models.

What Problem Does This Paper Address?

Standard SVMs are built on the "max-margin" principle: find the hyperplane that maximizes the distance to the nearest training samples. However, statistical learning theory tells us that the generalization error isn't just a function of the margin ($\gamma$); it depends on the radius-margin ratio ($R^2/\gamma^2$), where $R$ is the radius of the smallest ball enclosing the data.

While standard SVMs ignore the radius (assuming it's fixed for a given feature space), the radius becomes a critical variable when you try to learn a feature transformation alongside the classifier. The challenge is that the radius-margin bound is inherently non-convex. Previous attempts to solve this either restricted the transformation to simple feature weighting (diagonal matrices) or relied on computationally expensive, unstable non-convex optimization. F-SVM aims to provide a robust, convex, and efficient framework for joint learning.

Methods

The authors introduce F-SVM, which stands for Feature-transformation SVM. Their approach hinges on three main technical contributions:

  1. Convex Relaxation: They derive new lower and upper bounds for the radius of the minimum enclosing ball (MEB). By using these bounds, they relax the non-convex radius-margin objective into a convex optimization problem.
  2. Holistic Inequality Constraint: Instead of applying individual constraints to every data point to keep them within a certain radius (which is sensitive to outliers), they combine these into a single "holistic" constraint. This makes the model more robust to noisy data.
  3. Alternating Minimization: To solve the model, they use an efficient algorithm that alternates between two steps:
  4. Updating the classifier $(w, b)$: Using standard, off-the-shelf SVM solvers in a transformed space.
  5. Updating the transformation matrix ($M$): Using gradient descent.
Fig. 1. Illustration of the alternating minimization algorithm for F-SVM. First, a semi-whitened based initialization scheme is proposed to initialize M. Then, the alternating minimization algorithm is adopted by updating (w, b) and M alternatively. When the algorithm converges, as shown in Fig. 1, we can learn both a better matrix M to reduce the radius of MEB in feature space and a max-margin classifier (w, b).

The authors also provide a "semi-whitened PCA" initialization scheme to ensure the algorithm starts near a good solution and extend the model to non-linear classification via Kernel PCA.

Datasets

The model was evaluated on two primary benchmarks:

  • UCI Machine Learning Repository: 11 diverse datasets (e.g., Breast Cancer, Diabetes, German Credit, Heart) covering both binary and multi-class problems.
  • Labeled Faces in the Wild (LFW): A challenging real-world dataset for face verification, tested under the "restricted" setting using SIFT and attribute features.

Key Insights and Ideas

  • Radius is a Control Knob: By learning a transformation that shrinks the data's radius while maximizing the margin, you can significantly tighten the generalization error bound compared to just maximizing the margin alone.
  • Convexity Enables Scalability: Moving from non-convex formulations to a convex relaxation allows the use of efficient gradient-based methods, making the joint learning process practical for larger datasets.
  • Beyond Feature Weighting: Unlike many previous models that only scaled individual features (diagonal transformation), F-SVM learns a full transformation matrix. This allows the model to capture complex interactions between features.
  • Kernel PCA as a Bridge: The authors show that performing linear F-SVM in a Kernel PCA space is a mathematically sound way to extend the benefits of radius-margin learning to non-linear kernels.

Key Results

  • Accuracy Gains: On the UCI datasets, linear F-SVM outperformed standard SVM on 9 out of 11 datasets. In the kernelized version, it outperformed kernel SVM on 10 out of 11 datasets.
  • Training Speed: F-SVM is remarkably efficient. Compared to other radius-margin methods like RMM or R-SVM+, F-SVM was found to be $10^3$ to $10^4$ times faster because it avoids complex Quadratically Constrained Quadratic Programming (QCQP) solvers.
  • Face Verification: On the LFW dataset, F-SVM achieved a peak accuracy of 83.25%, outperforming standard SVM (81.90%) and several other specialized metric learning methods.
Classification accuracy (%) of kernel SVM and kernel F-SVM under different kernel PCA dimensions.

As shown in Figure 2, F-SVM consistently maintains higher accuracy than standard SVM across various dimensions of the projected feature space.

Limitations and Future Work

  • Computational Overhead: While much faster than previous radius-margin competitors, F-SVM is still slightly slower than a standard SVM due to the iterative nature of the alternating minimization.
  • Future Directions: The authors suggest extending this relaxed radius-margin bound to other types of classifiers beyond SVMs. They also aim to explore specialized forms of feature transformations tailored for specific high-dimensional applications like video analysis or genomic data.

Summary updated

BibTeX
@misc{wu2015f,
  author = {Xiaohe Wu and Wangmeng Zuo and Yuanyuan Zhu and Liang Lin},
  title = {{F-SVM: Combination of Feature Transformation and SVM Learning via Convex Relaxation}},
  year = {2015},
  eprint = {1504.05035},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1504.05035},
}
Figure