Abstract
Similar Unlabeled (SU) classification is a critical weakly-supervised learning task where models are trained using only similar pairs (data points known to share the same class) and a pool of unlabeled data. While kernel methods effectively capture nonlinear patterns in SU learning, they suffer from prohibitive $O(n^3)$ computational and $O(n^2)$ space complexities. This paper introduces TSGSU (Triply Stochastic Gradient for SU classification), an algorithm designed to scale nonlinear SU learning to massive datasets. By leveraging three layers of randomness—sampling similar pairs, sampling unlabeled data, and utilizing random Fourier features—TSGSU reduces complexity to a level manageable on standard hardware for datasets with millions of samples. We further address the "negative risk" problem with a consistent correction function and provide theoretical convergence guarantees for the resulting non-convex optimization problem.
Introduction
In many practical scenarios, obtaining precise labels is difficult or sensitive. Similar Unlabeled (SU) classification offers a solution by utilizing "weak" labels: knowing that two instances belong to the same category without knowing the category itself. Despite its utility, existing nonlinear SU algorithms are bottlenecked by the scalability of kernel methods. As dataset sizes grow into the millions, the cubic complexity of traditional approaches leads to memory exhaustion and impractical runtimes. TSGSU is proposed to break this cubic barrier, enabling efficient, large-scale nonlinear SU classification.
Methodology: The Triply Stochastic Approach
The core innovation of TSGSU lies in its "triply stochastic" gradient descent mechanism. In each iteration, the gradient is estimated by incorporating three distinct sources of randomness:
- Similar Pair Sampling: Randomly selecting an instance from the set of similar pairs.
- Unlabeled Data Sampling: Randomly selecting an instance from the unlabeled pool.
- Random Feature Mapping: Utilizing Random Fourier Features (RFF) to approximate the kernel function on the fly.
By using RFF, the algorithm avoids the need to store or compute a full kernel matrix. Instead, it generates pseudo-random features that approximate the nonlinear mapping, significantly reducing the memory footprint.
Handling Negative Risk and Non-Convexity
A common challenge in SU learning is the estimation of the objective function, which can produce mathematically impossible negative risk values, leading to overfitting. TSGSU employs a "Consistent Correction Function" (such as ReLU) to ensure non-negative risk. While this correction makes the optimization problem non-convex, we provide a theoretical framework proving that TSGSU converges to a stationary point at a rate of $O(1/\sqrt{T})$.
Complexity Analysis
The efficiency of TSGSU is best understood through a comparison of its complexity against existing state-of-the-art methods. Traditional kernel-based SU algorithms like SUSL and SUDH scale cubically with the number of samples $n$. In contrast, TSGSU's complexity is tied to the number of random features $D$ and iterations $T$.
As shown in the table above, TSGSU achieves a space complexity of $O(T)$, making it uniquely suited for large-scale applications where other methods encounter "Out of Memory" errors.
Experimental Evaluation
TSGSU was evaluated on several large-scale benchmark and high-dimensional datasets, including Poker (11 million samples), Susy (5 million samples), and Mnist8m (8.1 million samples). To simulate the SU scenario, these datasets were "weakened" by using only 5,000 similar pairs and treating the remainder as unlabeled.
Key Findings
- Scalability: TSGSU successfully processed the Poker and Mnist8m datasets, whereas previous methods like SUSL and SUDH failed due to memory constraints.
- Efficiency: On the Acoustic dataset, TSGSU reached peak accuracy in approximately 10 seconds, significantly outperforming the convergence speed of the CUU algorithm.
- Generalization: Despite the approximations inherent in the triply stochastic approach, TSGSU maintained or exceeded the accuracy of exact methods. For instance, it achieved 83.88% accuracy on the Combined dataset, the highest among all tested SU algorithms.
Conclusion
TSGSU represents a significant advancement in weakly-supervised learning, transforming nonlinear SU classification from a medium-scale task into a truly large-scale one. By breaking the cubic complexity barrier through triply stochastic gradients and addressing the negative risk problem, the algorithm provides a robust and efficient framework for handling millions of data points. Future work will explore extending this framework to other complex constraints and improving the convergence rate for non-convex landscapes.
Summary updated