Variance Reduced Online Gradient Descent for Kernelized Pairwise Learning with Limited Memory

Hilal AlQuabeh, Bhaskar Mukhoty, Bin Gu

Abstract

Pairwise learning is essential in machine learning, especially for problems involving loss functions defined on pairs of training examples. Online gradient descent (OGD) algorithms have been proposed to handle online pairwise learning, where data arrives sequentially. However, the pairwise nature of the problem makes scalability challenging, as the gradient computation for a new sample involves all past samples. Recent advancements in OGD algorithms have aimed to reduce the complexity of calculating online gradients, achieving complexities less than $O(T)$ and even as low as $O(1)$. However, these approaches are primarily limited to linear models and have induced variance. In this study, we propose a limited memory OGD algorithm that extends to kernel online pairwise learning while improving the sublinear regret. Specifically, we establish a clear connection between the variance of online gradients and the regret, and construct online gradients using the most recent stratified samples with a limited buffer of size $s$ representing all past data, which have a complexity of $O(sT)$ and employs $O(\sqrt{T}\log{T})$ random Fourier features for kernel approximation. Importantly, our theoretical results demonstrate that the variance-reduced online gradients lead to an improved sublinear regret bound. The experiments on real-world datasets demonstrate the superiority of our algorithm over both kernelized and linear online pairwise learning algorithms.

Introduction

In standard machine learning, loss functions typically evaluate one data point at a time. However, pairwise learning—where the loss depends on pairs of examples—is critical for tasks like AUC maximization (ranking positive results higher than negative ones) and metric learning.

The primary challenge in pairwise learning is scalability. In an "online" setting where data arrives in a stream, a new sample $z_t$ should ideally be compared to all $T$ previous samples to calculate an accurate gradient. This leads to a computational complexity of $O(T^2)$, which is prohibitive for large-scale streaming data. While previous research has attempted to mitigate this using buffers or linear approximations, these methods often suffer from high gradient variance or are restricted to simple linear models.

Comparison of FPOGD with state-of-the-art online pairwise learning algorithms.

As shown in the comparative landscape above, most existing algorithms for AUC or general pairwise learning are either restricted to linear models or lack variance reduction (V.R.) mechanisms. Our proposed method, Fourier Pairwise Online Gradient Descent (FPOGD), fills this gap by providing a kernelized, variance-reduced online approach with efficient time and space complexity.

Methodology: The FPOGD Algorithm

FPOGD addresses the limitations of previous methods through two primary technical pillars:

1. Kernelization via Random Fourier Features (RFF)

To handle complex, non-linear data without the prohibitive cost of traditional kernel methods, FPOGD utilizes Random Fourier Features. This technique maps data into a lower-dimensional space where linear operations can approximate complex Mercer kernels (such as the Gaussian kernel). The authors prove that $O(\sqrt{T} \log T)$ features are sufficient to maintain a low error rate while keeping the model computationally tractable.

2. Online Stratified Sampling (OSS)

Instead of using simple random sampling for the buffer—which can introduce significant noise—FPOGD employs a clustering-based buffering strategy. As new data arrives, the algorithm maintains "centroids" of clusters in a limited buffer of size $s$. When a new point arrives, it updates the nearest cluster's representative. This stratified approach ensures the buffer remains a diverse representation of the entire data history, which theoretically reduces the variance of gradient updates.

The FPOGD framework: mapping incoming data via RFFs and updating a stratified buffer through clustering.

Theoretical and Experimental Results

Theoretical Insights

A key contribution of this work is the formal establishment of a link between the variance of the stochastic gradient and the regret bound (the performance gap between the online algorithm and the optimal offline model). By reducing variance through stratified sampling, FPOGD achieves a tighter sublinear regret bound than previous methods.

Empirical Performance

The algorithm was evaluated on seven real-world datasets from the LIBSVM repository, including mnist, usps, and ijcnn1. Key findings include:

  • Superior Accuracy: On the mnist dataset, FPOGD achieved an AUC of 92.98, significantly outperforming both standard kernel methods (89.21) and linear OGD (88.65).
  • Stability: On the ijcnn1 dataset, it reached an AUC of 92.32, compared to 87.01 for the popular SPAM-NET algorithm.
  • Efficiency: By leveraging RFFs and a fixed buffer size $s$, the time complexity is reduced to $O(sT)$, making kernelized pairwise learning practical for large-scale applications for the first time.

Conclusion and Future Work

FPOGD represents a significant step forward in online pairwise learning, offering a robust framework for non-linear learning with limited memory. While the algorithm shows excellent performance, future work may address the "curse of dimensionality" in worst-case clustering scenarios and explore automated hyperparameter tuning for truly autonomous streaming environments. Extending this variance-reduction framework to non-convex deep learning models also remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{alquabeh2023variance,
  author = {Hilal AlQuabeh and Bhaskar Mukhoty and Bin Gu},
  title = {{Variance Reduced Online Gradient Descent for Kernelized Pairwise Learning with Limited Memory}},
  booktitle = {ACML},
  year = {2023},
  url = {https://openreview.net/forum?id=xcVnBGVoBV},
}
Figure