Abstract
Semi-supervised learning (SSL) plays an increasingly important role in the big data era because a large number of unlabeled samples can be used effectively to improve the performance of the classifier. Semi-supervised support vector machine (S$^3$VM) is one of the most appealing methods for SSL, but scaling up S$^3$VM for kernel learning is still an open problem. Recently, a doubly stochastic gradient (DSG) algorithm has been proposed to achieve efficient and scalable training for kernel methods. However, the algorithm and theoretical analysis of DSG are developed based on the convexity assumption which makes them incompetent for non-convex problems such as S$^3$VM. To address this problem, in this paper, we propose a triply stochastic gradient algorithm for S$^3$VM, called TSGS$^3$VM. Specifically, to handle two types of data instances involved in S$^3$VM, TSGS$^3$VM samples a labeled instance and an unlabeled instance as well with the random features in each iteration to compute a triply stochastic gradient. We use the approximated gradient to update the solution. More importantly, we establish new theoretic analysis for TSGS$^3$VM which guarantees that TSGS$^3$VM can converge to a stationary point. Extensive experimental results on a variety of datasets demonstrate that TSGS$^3$VM is much more efficient and scalable than existing S$^3$VM algorithms.
Introduction
In the era of big data, labeling data is often expensive and time-consuming, while unlabeled data is abundant. Semi-supervised learning (SSL) leverages this unlabeled data to improve classifier performance. The Semi-Supervised Support Vector Machine (S³VM) is a prominent SSL method that seeks a decision boundary in low-density regions. However, S³VM faces significant challenges in scalability and optimization. Traditional kernel methods scale quadratically ($O(n^2)$) with the number of samples, making them impractical for large datasets. Furthermore, the S³VM objective function is non-convex, complicating the optimization process. While "doubly stochastic" methods have addressed kernel scaling for convex problems, they are insufficient for the non-convex, dual-source nature of S³VM.
Methodology: Triply Stochastic Gradients
To overcome these hurdles, we introduce the Triply Stochastic Gradient (TSGS³VM) algorithm. The "triple" stochasticity arises from sampling three distinct sources of randomness in each iteration:
- Labeled Data: A random instance from the labeled set.
- Unlabeled Data: A random instance from the unlabeled set.
- Random Features: A set of random Fourier features used to approximate the kernel function.
Key Innovations
- Reformulated Objective: The S³VM objective is adapted to use empirical means for labeled data and expected errors for unlabeled data, facilitating stochastic optimization.
- Memory Efficiency: By using pseudo-random number generators to regenerate features on the fly, memory complexity is reduced from $O(n^2)$ to $O(T)$, where $T$ is the iteration count.
- Theoretical Convergence: We provide a novel analysis proving that TSGS³VM converges to a stationary point at a sublinear rate, even for non-convex objectives, without requiring strong initialization.
Experimental Evaluation
TSGS³VM was evaluated against state-of-the-art solvers on eight benchmark datasets, ranging from medium-scale (e.g., CodRNA, Dota2) to large-scale (e.g., SUSY with 5M samples and HEPMASS with 10.5M samples). In all experiments, only 200 instances were labeled to simulate a realistic semi-supervised scenario.
Results and Discussion
The experimental results highlight three major advantages of TSGS³VM:
- Superior Scalability: TSGS³VM successfully processed the HEPMASS dataset (10.5M samples), whereas traditional solvers like
S3VMlightandBLS³VMoften crashed or exceeded memory limits on much smaller subsets. - Computational Efficiency: TSGS³VM is orders of magnitude faster than existing methods. As shown in the training time analysis, its advantage grows significantly with dataset size.
- Competitive Accuracy: Despite using triple approximations, TSGS³VM maintains generalization performance comparable to, or better than, exact kernel methods.
Conclusion
TSGS³VM addresses the long-standing scalability issue of kernel-based S³VM. By integrating random feature approximation with dual-source data sampling, it enables training on datasets with over 10 million samples on standard hardware. While the method converges to stationary points in a non-convex landscape, its empirical performance and theoretical guarantees make it a powerful tool for large-scale semi-supervised learning. Future work includes exploring its performance with a wider variety of kernels and optimizing hyperparameter selection.
Summary updated