Scalable Multi-Class Bayesian Support Vector Machines for Structured and Unstructured Data

Martin Wistuba, Ambrish RawatarXiv 2018

Introduction

Support Vector Machines (SVMs) are renowned for their robust performance in classification tasks due to the "maximum margin" principle. However, traditional SVMs provide point estimates without uncertainty measures, which are critical in high-stakes domains like medicine or security. While Bayesian SVMs address this by providing probabilistic outputs, they have historically struggled with multi-class scalability, often relying on computationally expensive one-vs-rest strategies. This research introduces a scalable, multi-class Bayesian SVM that leverages variational inference and inducing point approximations to achieve high accuracy and reliable uncertainty estimates across large-scale structured and unstructured datasets.

Problem Statement

The primary challenges in existing Bayesian SVM frameworks are two-fold:

  1. Uncertainty Quantification: Standard SVMs do not inherently provide confidence levels for their predictions, making it difficult to identify when a model is guessing.
  2. Multi-Class Scalability: Extending Bayesian SVMs to multi-class problems typically involves training multiple independent binary models, leading to high computational complexity. This approach is prohibitive for large datasets and fails to capture inter-class relationships effectively.

Methodology

The proposed approach reformulates the multi-class hinge loss into a probabilistic framework using several key innovations:

Pseudo-Likelihood Formulation

The authors introduce a "pseudo-likelihood" for multi-class hinge loss, representing it as a location-scale mixture of Gaussians through latent variables. This mathematical bridge allows the SVM objective to be integrated into a Bayesian framework, enabling the use of standard probabilistic inference techniques.

Scalable Variational Inference

To overcome the cubic complexity of Gaussian Processes, the model employs inducing point approximations. By learning a small set of "representative" points that summarize the data distribution, the complexity is significantly reduced, allowing the model to scale to millions of instances.

Hybrid Bayesian Neural Networks

The Bayesian SVM can be integrated as the final layer of a deep learning architecture. This hybrid model uses convolutional layers to extract features from unstructured data (like images) while the Bayesian SVM layer provides margin-based classification and uncertainty quantification at the output.

Hybrid Bayesian Neural Network architecture combining convolutional feature extraction with a Bayesian SVM output layer.

Experimental Evaluation

The model was evaluated on 68 structured datasets from the Penn Machine Learning Benchmarks (PMLB), ranging from small sets to those with over one million instances, as well as unstructured image datasets including MNIST and CIFAR-10.

Results and Discussion

Accuracy and Performance

On the PMLB datasets, the multi-class Bayesian SVM significantly outperformed both binary Bayesian SVMs and Scalable Variational Gaussian Processes (SVGP). The multi-class formulation achieved a mean rank of 1.68, compared to 1.96 for the binary version and 2.33 for SVGP, indicating that learning all classes simultaneously captures class relationships better than a collection of binary classifiers.

Comparison of Multi-Class Bayesian SVM accuracy against Binary Bayesian SVM and Sparse Variational Gaussian Process across PMLB datasets.

Computational Efficiency

The unified multi-class model demonstrated a massive speedup, often being up to an order of magnitude faster than the one-vs-rest binary approach. This efficiency stems from training a single model to handle all classes simultaneously rather than training $C$ separate models for $C$ classes.

Adversarial Detection and Active Learning

The model's uncertainty estimates, specifically the Variation Ratio, proved effective for detecting adversarial attacks. On MNIST, the model achieved an ROC-AUC of nearly 1.0 in distinguishing clean images from adversarial ones. Furthermore, the uncertainty-aware nature of the model enabled efficient active learning, reaching high accuracy faster by specifically requesting labels for data points where the model was most uncertain.

Conclusion

This work presents a scalable framework for multi-class Bayesian SVMs that bridges the gap between margin-based classification and probabilistic inference. By providing both superior accuracy and reliable uncertainty estimates, the model is well-suited for complex, high-stakes applications. Future work will focus on reducing the training overhead for hybrid BNNs and improving performance on more complex image tasks like CIFAR-10.

Summary updated

BibTeX
@misc{wistuba2018scalable,
  author = {Martin Wistuba and Ambrish Rawat},
  title = {{Scalable Multi-Class Bayesian Support Vector Machines for Structured and Unstructured Data}},
  year = {2018},
  eprint = {1806.02659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.02659},
}
Figure