Wasserstein Distributionally Robust Multiclass Support Vector Machine

Michael Ibrahim, Heraldo Rozas, Nagi GebraeelarXiv 2024

Abstract: We study the problem of multiclass classification for settings where data features $\mathbf{x}$ and their labels $\mathbf{y}$ are uncertain. We identify that distributionally robust one-vs-all (OVA) classifiers often struggle in settings with imbalanced data. To address this issue, we use Wasserstein distributionally robust optimization to develop a robust version of the multiclass support vector machine (SVM) characterized by the Crammer-Singer (CS) loss. First, we prove that the CS loss is bounded from above by a Lipschitz continuous function for all $\mathbf{x} \in \mathcal{X}$ and $\mathbf{y} \in \mathcal{Y}$, then we exploit strong duality results to express the dual of the worst-case risk problem, and we show that the worst-case risk minimization problem admits a tractable convex reformulation due to the regularity of the CS loss. Moreover, we develop a kernel version of our proposed model to account for nonlinear class separation, and we show that it admits a tractable convex upper bound. We also propose a projected subgradient method algorithm for a special case of our proposed linear model to improve scalability. Our numerical experiments demonstrate that our model outperforms state-of-the art OVA models in settings where the training data is highly imbalanced. We also show through experiments on popular real-world datasets that our proposed model often outperforms its regularized counterpart as the first accounts for uncertain labels unlike the latter.

Introduction

Standard machine learning models often assume training data perfectly reflects reality. However, real-world data is frequently "noisy" due to uncalibrated sensors (feature uncertainty) or human error (label uncertainty). Traditional classifiers, such as the One-Vs-All (OVA) SVM, are prone to the "optimizer’s curse," where they overfit to this noise. Furthermore, OVA approaches typically struggle with imbalanced datasets—where some classes are significantly rarer than others—because they fail to account for inter-class correlations during training.

This paper introduces the Wasserstein Distributionally Robust Multiclass Support Vector Machine (WDR-MSVM). By integrating Wasserstein Distributionally Robust Optimization (DRO) with the Crammer-Singer multiclass loss, this framework provides a robust classification model capable of handling simultaneous feature and label noise, particularly in highly imbalanced scenarios.

Methodology

The core of the WDR-MSVM is the construction of an ambiguity set—a "ball" of possible data distributions—centered on the observed training data using the Wasserstein distance. This distance defines a "budget" for perturbations in data points or label flips.

Technical Contributions

  • Crammer-Singer (CS) Loss: Unlike OVA, which trains multiple binary classifiers, the CS loss evaluates all classes simultaneously. The authors prove the Lipschitz continuity of this loss, a prerequisite for a solvable robust optimization problem.
  • Tractable Reformulation: Through strong duality, the "min-max" worst-case risk problem is transformed into a standard, solvable convex optimization problem.
  • Label Uncertainty ($\kappa$): A parameter $\kappa$ represents the "cost" of label flipping, allowing the model to explicitly hedge against mislabeled data.
  • Kernelization and Scalability: The model is extended to non-linear kernel versions. Additionally, a projected subgradient method is proposed to enhance scalability for larger datasets compared to commercial solvers.

Experimental Evaluation

The model was evaluated using synthetic simulations and five real-world datasets from the UCI Repository: Wine, Palmer Penguins, Iris, Seeds, and AI4I (Artificial Intelligence for Predictive Maintenance). The AI4I dataset was specifically selected for its high class imbalance (92.5% healthy vs. 7.5% failure modes).

Performance on Imbalanced Data

The most significant finding is the WDR-MSVM's superiority in imbalanced settings. By considering all classes simultaneously via the CS loss while hedging against distribution shifts, the model avoids ignoring minority classes.

Performance comparison on balanced vs. imbalanced synthetic data with 3 features.

In simulations with imbalanced data, WDR-MSVM outperformed the state-of-the-art DR-OVA-SVM by up to 25.98% in mean Correct Classification Rate (mCCR). This gap is clearly visible in Figure 6, where the MSVM maintains high performance in the imbalanced case while the OVA-SVM's performance drops significantly as the uncertainty budget ($\epsilon$) increases.

Robustness and Scalability

The model's robustness persists as the feature space grows. In experiments with 30 features and imbalanced data, the MSVM continues to provide a performance edge over the OVA-SVM.

Performance on imbalanced synthetic data with 30 features.

On real-world data, the proposed model outperformed its OVA counterpart by 6.89% on the highly imbalanced AI4I dataset. Furthermore, accounting for label uncertainty (via the $\kappa$ parameter) consistently yielded better out-of-sample performance than models that only regularize for feature noise.

Conclusion and Future Work

The WDR-MSVM demonstrates that standard regularized SVMs are essentially limited versions of this robust model that assume 100% label certainty. While the proposed subgradient method improves speed, the model remains computationally more intensive than standard SVMs. Future work will focus on developing more scalable training algorithms for massive datasets, handling mixed feature types (continuous and categorical), and exploring settings with strictly bounded feature spaces.

Summary updated

BibTeX
@misc{ibrahim2024wasserstein,
  author = {Michael Ibrahim and Heraldo Rozas and Nagi Gebraeel},
  title = {{Wasserstein Distributionally Robust Multiclass Support Vector Machine}},
  year = {2024},
  eprint = {2409.08409},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08409},
}
Figure