On the Optimization of Margin Distribution

Meng-Zhang Qian, Zheng Ai, Teng Zhang, Wei Gao

Abstract

Traditional Support Vector Machines (SVMs) focus on maximizing the minimum margin to ensure generalization. However, recent research suggests that the entire margin distribution, characterized by the mean and variance, plays a more critical role. This paper introduces a novel theoretical framework using "margin semi-variance" and "average margin" to bound generalization error. Based on this theory, the authors propose MSVMAv, an efficient algorithm that optimizes these distributional properties. Empirical results across 30 datasets demonstrate that MSVMAv significantly outperforms state-of-the-art margin-based methods.

Introduction

In supervised learning, the "margin"—the distance between a data instance and the decision boundary—serves as a measure of classification confidence. Since the inception of Support Vector Machines (SVMs), the Large Margin Principle has focused on maximizing the minimum margin (the distance to the nearest data point). While effective, this "weakest link" approach is sensitive to outliers and ignores the overall distribution of data relative to the boundary. Recent empirical evidence suggests that optimizing the mean and variance of margins can lead to better generalization, yet a rigorous theoretical foundation and efficient optimization methods have been lacking.

Theoretical Framework: Moving Beyond the Minimum

The authors propose a new generalization error bound that shifts focus from the minimum margin to the entire distribution. Two key statistics are introduced:

  1. Average Margin ($\theta_h$): The mean distance of all training points from the decision boundary.
  2. Margin Semi-Variance ($SV(h)$): Unlike standard variance, which penalizes all deviations from the mean, semi-variance only considers points with margins smaller than the average. This ensures that "over-achieving" points (those with very large margins) are not penalized, focusing the optimization on pulling up the "laggards" in the dataset.

The paper proves that the generalization error is bounded by the ratio $SV(h)/\theta_h^2$, providing a mathematical justification for focusing on these specific distributional properties rather than just the minimum margin.

The MSVMAv Algorithm

To practically apply this theory, the authors developed MSVMAv (Margin Semi-Variance and Average). The algorithm addresses a non-convex objective function through an alternating optimization strategy:

  • Optimization Strategy: It iteratively maximizes the average margin while minimizing the semi-variance.
  • Computational Efficiency: High-dimensional tasks often suffer from $O(d^3)$ complexity due to matrix inversions. MSVMAv utilizes the Sherman-Morrison formula to update solutions iteratively, significantly reducing computational overhead.
  • Kernelization: The method is extended to non-linear spaces using the Representer Theorem, allowing the use of Gaussian RBF kernels.

Experimental Evaluation

The performance of MSVMAv was evaluated on 30 benchmark datasets, including 20 small-to-medium scale (e.g., australian, emotions) and 10 large-scale datasets (e.g., nomao, phishing). The study compared MSVMAv against standard SVMs and modern variants like the Optimal Margin Distribution Machine (ODM) and Fast Margin Maximization (FMM).

Results and Discussion

MSVMAv demonstrated superior accuracy across the board. In linear kernel tests, it achieved a Win/Tie/Loss record of 23/6/1 against standard SVMs. This dominance persisted in non-linear settings, with 20 wins or ties out of 20 datasets using Gaussian kernels.

Cumulative frequency of margins for four datasets (emotions, halloffame, vehicle, nomao). MSVMAv (red solid line) consistently shifts the distribution towards larger margins compared to SVM, ODM, and FMM.

As shown in the cumulative frequency plots above, MSVMAv consistently pushes the margin distribution "to the right." This indicates that a higher percentage of data points achieve larger margins compared to competing methods, validating the theoretical goal of improving the overall distribution. This shift is particularly evident when compared to the standard SVM, which focuses only on the minimum margin.

Conclusion

By shifting the focus from the minimum margin to the average and semi-variance, MSVMAv provides a more robust and theoretically grounded approach to classification. The algorithm's efficiency and superior empirical performance suggest that margin distribution optimization is a powerful alternative to traditional SVM-based methods. Future work may explore higher-order statistics to further refine the characterization of margin geometry.

Summary updated

BibTeX
@inproceedings{qian2022optimization,
  author = {Meng-Zhang Qian and Zheng Ai and Teng Zhang and Wei Gao},
  title = {{On the Optimization of Margin Distribution}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/470},
}
Figure