Stochastic Gradient Twin Support Vector Machine for Large Scale Problems

Zhen Wang, Zhen Wang 0002, Yuan-Hai Shao, Lan Bai, Li-Ming Liu, Nai-Yang DengarXiv 2017

Introduction

Support Vector Machines (SVMs) are fundamental tools in machine learning, yet they struggle with two primary issues in the era of big data: computational scalability and sensitivity to random sampling. While stochastic gradient descent (SGD) methods like PEGASOS have addressed speed, they remain "brittle" because they rely heavily on a small subset of data points—the support vectors. This paper introduces SGTSVM (Stochastic Gradient Twin Support Vector Machine), an algorithm that leverages the structural advantages of Twin SVMs (TWSVM) to provide a faster, more robust classification framework for datasets with millions of samples.

The Scalability and Sampling Challenge

Traditional SVMs solve a Quadratic Programming Problem (QPP) that scales poorly with the number of samples. SGD-based solvers speed this up by using random subsets of data. However, standard SVMs are highly sensitive to these subsets. If a random sample misses the critical support vectors that define the margin, the resulting classifier's performance degrades significantly.

Standard SVM sensitivity to support vectors. The decision boundary and margins are heavily influenced by specific edge points, leading to instability during stochastic sampling.

The SGTSVM Solution

SGTSVM addresses these issues by reformulating the TWSVM objective into an unconstrained optimization problem solvable via SGD. Instead of one separating hyperplane, TWSVM finds two non-parallel hyperplanes, each proximal to one of the two classes.

SGTSVM approach using two non-parallel proximal hyperplanes. This structure is more stable across different samples because it captures the general distribution of each class.

Key Methodological Features

  • Update Rule: In each iteration, SGTSVM randomly selects just two samples (one from each class) to update the hyperplanes. This makes each step computationally lightweight, requiring only $8n + 4$ multiplications.
  • Robustness: Because the hyperplanes are designed to be proximal to the bulk of their respective classes rather than just the edges, the model is less dependent on specific "support vectors." This makes the SGD process significantly more stable.
  • Nonlinear Extension: To handle complex data, the authors use a reduced kernel strategy. By using a small random subset (0.01% to 1%) of the data to represent the kernel space, they avoid the memory explosions typical of standard kernel methods.
  • Convergence: Unlike many SGD variants that only offer probabilistic guarantees, the authors provide a formal proof of strict convergence for SGTSVM.

Experimental Validation

The researchers evaluated SGTSVM against standard SVM and PEGASOS on benchmarks ranging from small UCI sets to massive datasets like Hepmass (10.5 million samples).

  • Stability: In "restricted sampling" scenarios where key support vectors were intentionally omitted, PEGASOS's accuracy fluctuated wildly. In contrast, SGTSVM remained stable, demonstrating its inherent robustness.
  • Performance on Big Data: SGTSVM successfully processed datasets with over 10 million samples in under 200 seconds on standard hardware. Competing methods like Liblinear often ran out of memory on these scales, as SGTSVM only needs to access samples relevant to the current iteration rather than the entire dataset.
  • Accuracy: On the Gashome dataset, SGTSVM achieved approximately 89% testing accuracy, significantly outperforming PEGASOS's 73%.

Conclusion

SGTSVM represents a significant step forward for large-scale classification. By combining the efficiency of SGD with the structural robustness of Twin SVMs, it offers a solution that is not only faster but also more reliable under the random sampling conditions inherent to big data processing. Future work may explore more advanced sampling techniques, such as importance sampling, to further accelerate convergence.

Summary updated

BibTeX
@misc{wang2017stochastic,
  author = {Zhen Wang and Zhen Wang and Yuan-Hai Shao and Lan Bai and Li-Ming Liu and Nai-Yang Deng},
  title = {{Stochastic Gradient Twin Support Vector Machine for Large Scale Problems}},
  year = {2017},
  eprint = {1704.05596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.05596},
}
Figure