Incremental Randomized Sketching for Online Kernel Learning

Xiao Zhang, Shizhong Liao

Online Kernel Learning (OKL) is a powerful tool for capturing non-linear patterns in streaming data. However, it faces a fundamental "curse of kernelization": as more data arrives, the model size grows linearly, eventually becoming a computational bottleneck. This paper introduces SkeGD (Sketched Online Gradient Descent), a method that uses a novel incremental sketching technique to keep kernel learning fast and accurate, even in adversarial environments.

The "Curse of Kernelization"

In standard online learning, models are updated point-by-point as new data arrives. When using kernels to handle non-linear data, the model is typically represented as a weighted sum of previously seen "support vectors." The problem is that in a stream of $T$ instances, you might end up with $T$ support vectors. This makes prediction and updates progressively slower, creating a severe linear growth problem.

Existing solutions usually involve "budgeted" methods that either discard old support vectors or project new ones onto a fixed-size buffer. However, these often lack strong theoretical guarantees or struggle when the data distribution changes (such as in adversarial environments). The core challenge is finding a way to approximate the kernel matrix efficiently and incrementally without losing the convergence guarantees of the original algorithm.

Methods: Incremental Randomized Sketching

The authors' primary innovation is Incremental Randomized Sketching. Instead of keeping a buffer of discrete data points, SkeGD maintains a compressed "sketch" of the kernel matrix.

Visual representation of the incremental rank-1 matrix updates used to maintain the kernel sketch without full recomputation.
  1. Two-Matrix Sketching: The method utilizes two specific sketch matrices:
  2. $S_p$: A Sparser Johnson-Lindenstrauss Transform (SJLT) matrix to reduce the complexity of the approximation.
  3. $S_m$: A sub-sampling matrix to keep the approximate kernel matrix size manageable.
  4. Rank-1 Modifications: The breakthrough insight is that when a new data point arrives, the sketch doesn't need to be recomputed from scratch. The sketches can be updated using rank-1 modifications, which operate in constant time and are computationally very cheap.
  5. Time-Varying Explicit Feature Mapping: Using these sketches, the algorithm constructs a mapping that transforms the input data into a low-dimensional feature space where a linear model can approximate the kernel function. This mapping is updated periodically to adapt to new data.
  6. SkeGD Algorithm: The algorithm starts with standard kernelized gradient descent until a predefined budget $B$ is reached. Then, it switches to using the incremental sketches to perform updates in the approximate feature space.

Key Insights

  • Sketching vs. Budgeting: Most OKL research focuses on which points to keep in a buffer. This paper shifts the focus to approximating the kernel operator itself. By sketching the matrix, SkeGD captures the global structure of the data more effectively than simple point-discarding rules.
  • SJLT Efficiency: By using Sparser Johnson-Lindenstrauss Transforms, the sketch matrices remain very sparse, significantly speeding up matrix multiplications.
  • Robustness to Adversaries: Because randomized sketching doesn't rely on uniform sampling (unlike the Nyström method), it is much more robust to non-uniform data structures and adversarial shifts in the data stream.
  • Constant Complexity: The method achieves the "holy grail" of online learning: per-step time and space costs that do not depend on the total number of instances $T$.

Results and Performance

The authors evaluated SkeGD on several standard classification benchmarks, ranging from small datasets to large ones with up to ~580k instances, as well as simulated adversarial environments with label flipping.

  • Accuracy: SkeGD consistently outperformed popular budgeted algorithms like Forgetron, Projectron, and NOGD in terms of mistake rates across almost all datasets.
  • Speed: On large datasets like cod-rna, SkeGD was significantly faster than the state-of-the-art NOGD while maintaining higher accuracy.
  • Adversarial Performance: In label-flipping experiments, SkeGD maintained a much lower mistake rate (~16-17%) compared to FOGD (~37%) and NOGD (~30%), proving its high adaptability.
  • Theoretical Guarantees: The authors proved a sublinear regret bound, meaning that as more data is processed, the average loss of the algorithm converges to the loss of the best possible fixed model in hindsight.
Parameter sensitivity of SkeGD, illustrating the trade-offs between average mistake rate and running time across different budgets and hyperparameters.

Limitations and Future Work

While SkeGD offers a robust solution to OKL scaling, it does require careful hyperparameter tuning. Performance depends on tuning the budget $B$ and the update cycle $\rho$, which currently require empirical adjustment. Additionally, the theoretical regret guarantees rely on the assumption that the eigenvalues of the kernel matrix decay polynomially. While true for common kernels like Gaussian, it might not hold universally for custom kernels.

Finally, the authors note that while their first-order method is fast, second-order online kernel learning (which uses curvature information) can be even more accurate. Combining incremental sketching with second-order updates remains a highly promising direction for future research.

Summary updated

BibTeX
@inproceedings{zhang2019incremental,
  author = {Xiao Zhang and Shizhong Liao},
  title = {{Incremental Randomized Sketching for Online Kernel Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure