Large margin distribution machine

Teng Zhang, Zhi-Hua Zhou

Abstract: Traditional Support Vector Machines (SVMs) are built on the principle of maximizing the minimum margin between classes. However, theoretical developments suggest that the minimum margin alone does not fully determine generalization performance. This paper introduces the Large Margin Distribution Machine (LDM), a novel framework that optimizes the entire margin distribution by simultaneously maximizing the margin mean and minimizing the margin variance. We provide efficient optimization algorithms for both kernel-based and large-scale linear settings. Extensive experiments demonstrate that LDM consistently achieves superior generalization compared to SVM and other state-of-the-art margin-based methods.

Introduction

For decades, the "Large Margin" principle has served as the foundation for robust classification, most notably through Support Vector Machines (SVMs). The standard approach focuses on finding a decision boundary that maximizes the distance to the nearest training examples—the minimum margin.

However, theoretical research has revealed limitations in this "minimum-is-everything" perspective. Algorithms like AdaBoost have shown excellent generalization even with small minimum margins, while others that maximize the minimum margin can perform poorly. These observations suggest that the distribution of margins for all training examples is a more reliable predictor of unseen data performance. This paper addresses the challenge of designing a practical learning machine that directly optimizes this distribution.

The Large Margin Distribution Machine (LDM)

To make the concept of margin distribution mathematically tractable, the LDM characterizes it using first- and second-order statistics:

  1. Margin Mean: The average distance of all training points from the decision boundary. LDM seeks to maximize this mean to push the bulk of the data away from the boundary.
  2. Margin Variance: The spread of these distances. LDM minimizes this variance to ensure that margins are consistently large across the entire dataset, rather than just for a few select points.

Objective Function

The resulting objective function balances four critical components:

  • Model Complexity: The standard regularization term $\frac{1}{2}\|\mathbf{w}\|^2$.
  • Margin Variance: Controlled by hyperparameter $\lambda_1$.
  • Margin Mean: Controlled by hyperparameter $\lambda_2$.
  • Classification Error: Standard "slack" variables used in soft-margin formulations to handle non-linearly separable data.

Optimization Strategies

The authors propose two distinct optimization paths to ensure LDM is applicable to various data scales:

  • Kernel LDM: For non-linear problems, a dual coordinate descent method is employed. This approach allows the model to handle complex boundaries while maintaining computational efficiency.
  • Large Scale Linear LDM: For massive datasets where kernel matrices are computationally prohibitive, the authors implement an Averaged Stochastic Gradient Descent (ASGD) approach. This provides an unbiased estimation of the gradient through random sampling, enabling the model to scale to millions of instances.
Algorithm 1: Dual coordinate descent for Kernel LDM.

Key Insights and Ideas

  • Robustness over Minimum Margin: Standard SVMs are sensitive to outliers that define the minimum margin. By optimizing the mean and variance, LDM captures the "global health" of the decision boundary, making it more robust to individual "hard" examples.
  • SVM as a Special Case: LDM is a generalization of SVM; by setting the distribution parameters ($\lambda_1, \lambda_2$) to zero, the model effectively collapses back into a standard SVM.
  • The "Right-Shift" Effect: Cumulative frequency plots of margins show that LDM's curves are consistently shifted to the right compared to SVM. This visually confirms that while LDM might occasionally have a slightly smaller minimum margin, the vast majority of its examples possess significantly larger margins.

Experimental Evaluation

The LDM was evaluated against 20 regular-scale datasets (mostly from the UCI repository) and 12 large-scale datasets, including the massive kdd2010 dataset with over 8.4 million instances.

  • Superior Accuracy: LDM outperformed SVM and other margin-distribution methods (like MDO and MAMC) on the majority of datasets using both linear and RBF kernels.
  • Scalability and Efficiency: Despite the more complex objective function, LDM's training time remains highly competitive with state-of-the-art SVM implementations like LIBLINEAR. The ASGD implementation proved capable of handling "big data" scenarios efficiently.
  • Stability: Sensitivity analysis indicates that LDM's performance is relatively stable across a wide range of hyperparameter values for $\lambda_1$ and $\lambda_2$.

Conclusion

The Large Margin Distribution Machine represents a significant shift from maximizing the minimum margin to optimizing the entire margin distribution. While it introduces additional hyperparameters ($\lambda_1, \lambda_2$) that require tuning, the gains in generalization performance and robustness are substantial. Future work may extend this margin distribution philosophy to regression tasks and explore more flexible loss functions beyond the standard soft-margin constraints.

Summary updated

BibTeX
@inproceedings{zhang2013large,
  author = {Teng Zhang and Zhi-Hua Zhou},
  title = {{Large margin distribution machine}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2013},
  doi = {10.1145/2623330.2623710},
}
Figure