Fast Second-Order Online Kernel Learning through Incremental Matrix Sketching and Decomposition

Dongxie Wen, Xiao Zhang, Zhewei WeiarXiv 2024 · DOI

Introduction

Online Kernel Learning (OKL) is a cornerstone of non-linear pattern recognition in streaming data environments. However, practitioners often face a stark trade-off: first-order methods like Online Gradient Descent are computationally efficient but suffer from high cumulative error (regret), while second-order methods utilize the "curvature" of the data (the Hessian matrix) for superior accuracy at the cost of prohibitive computational overhead.

Specifically, the standard Singular Value Decomposition (SVD) required for feature mapping in second-order OKL scales cubically ($O(B^3)$) with the model budget $B$, rendering it impractical for high-speed, large-scale data streams. Previous attempts to mitigate this using sampling still resulted in at least quadratic complexity ($O(B^2)$), leaving a significant performance gap.

The FORKS Framework

To address these limitations, the authors introduce FORKS (Fast Second-Order Online Kernel Learning Using Incremental Sketching). This framework achieves the gold-standard logarithmic regret of second-order methods while maintaining linear time complexity relative to the model's budget.

Figure 1: The FORKS system architecture, illustrating the pipeline from data input to kernel matrix approximation, feature mapping via TISVD, and second-order online learning.

The core of FORKS lies in two primary innovations:

  1. Incremental Matrix Sketching: Instead of storing the full kernel matrix, FORKS employs randomized sketching (specifically the Sparse Johnson-Lindenstrauss Transform) to maintain a compressed, fixed-size approximation. These sketches are updated incrementally using rank-1 modifications as new data arrives.
  2. Truncated Incremental SVD (TISVD): Standard incremental SVD methods often struggle with data that isn't strictly low-rank. TISVD introduces a truncation step that allows singular value matrix updates in $O(s_p k + k^3)$ time, where $s_p$ is the sketch size and $k$ is the rank. This is a significant improvement over the standard $O(s_p^3)$ complexity, effectively breaking the quadratic barrier.

Experimental Evaluation

The researchers evaluated FORKS against several state-of-the-art methods across diverse benchmarks, including standard classification tasks (german, spambase, ijcnn1), adversarial scenarios with periodic label flipping to simulate concept drift, and a massive real-world recommendation dataset (KuaiRec) containing 4.5 million instances.

Performance and Efficiency

FORKS demonstrates a superior trade-off between running time and accuracy. On the codrna dataset, FORKS achieved a running time of 0.918 seconds, compared to 114.983 seconds for the state-of-the-art PROS-N-KONS—a speedup of over 100x while maintaining better accuracy.

Figure 6: Comparison of running time versus average mistake rate for various OKL methods using Hinge and Squared Hinge loss. FORKS consistently occupies the lower-left region, indicating optimal performance.

Robustness to Concept Drift

A unique feature of the FORKS algorithm is its "Two-Stage Strategy with Reset." By periodically resetting the model's internal Hessian state during feature map updates, the algorithm prevents itself from being misled by outdated patterns or adversarial "poisoning." In tests where labels were flipped, FORKS remained stable while competing methods experienced significant error spikes, demonstrating its effectiveness in capturing concept drift.

Conclusion

By breaking the quadratic complexity barrier, FORKS makes second-order online kernel learning viable for massive, high-velocity data streams. It outperforms existing methods in both speed and accuracy, particularly in adversarial environments. Future work may explore adapting this framework for non-convex loss functions or integrating it into more complex deep kernel learning architectures.

Summary updated

BibTeX
@misc{wen2024fast,
  author = {Dongxie Wen and Xiao Zhang and Zhewei Wei},
  title = {{Fast Second-Order Online Kernel Learning through Incremental Matrix Sketching and Decomposition}},
  year = {2024},
  eprint = {2410.11188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11188},
}
Figure