Introduction
Second-order kernel methods offer superior "logarithmic" regret in online learning, but they are typically too slow for real-time use because their computational complexity explodes as more data arrives. This paper introduces Sketched-KONS, an algorithm that uses adaptive matrix sketching—based on ridge leverage scores—to maintain high-quality predictions while slashing computational costs from quadratic to nearly linear in time.
The Challenge: Online Convex Optimization with Kernels
In Online Convex Optimization (OCO), a learner attempts to minimize cumulative loss against an adversary over time. When using Kernel OCO (KOCO), data is mapped into a high-dimensional feature space to capture non-linear patterns.
Historically, practitioners face a strict trade-off:
- First-order methods (like Gradient Descent) are fast—requiring $O(t)$ time per step—but their "regret" (the gap between the learner and the best possible fixed model) grows relatively quickly at a rate of $O(\sqrt{T})$.
- Second-order methods (like Online Newton Step) exploit the curvature of the loss function to achieve much better "logarithmic" regret ($O(\log T)$). However, they are computationally brutal. They require storing and inverting a matrix that grows with every new data point, leading to $O(t^2)$ or $O(t^3)$ complexity.
The authors aim to break this "curse of kernelization" by creating a second-order method that is computationally efficient without sacrificing the logarithmic regret guarantee.
Proposed Solution: KONS and Adaptive Sketching
The authors propose two main innovations to solve the complexity bottleneck: KONS and KORS.
1. KONS (Kernel Online Newton Step)
First, the authors introduce a direct kernelization of the Online Newton Step algorithm. Because weights cannot be explicitly represented in infinite-dimensional Hilbert spaces, they derive a closed-form update that works entirely through inner products using the "kernel trick."
2. KORS (Kernel Online Row Sampling) and Sketched-KONS
To solve the scaling issue inherent in KONS, the authors introduce an adaptive sketching technique called KORS. Instead of using all $t$ points to build the Newton preconditioner, KORS maintains a small "dictionary" of representative points.
This is achieved using Ridge Leverage Scores (RLS), which measure how "important" or "unique" a new data point is relative to the existing dictionary. If a point has a high RLS, it is added to the dictionary; otherwise, it is skipped. This keeps the dictionary size proportional to the effective dimension ($d_{eff}$) of the problem, which is often much smaller than the total number of time steps $T$.
The final algorithm, Sketched-KONS, combines these techniques by using the sketch to approximate the Hessian of the loss, allowing for fast, second-order updates.
Key Insights
- Effective Dimension is Key: The regret of KONS doesn't depend on the (potentially infinite) dimension of the feature space, but on the effective dimension ($d_{eff}$), which measures the actual complexity of the data seen so far.
- The Variance Trade-off: In sketching, there is a choice between "weighted unbiased" sketches and "unweighted biased" sketches. The authors find that for second-order online learning, unweighted sketches are actually better. While biased, they have much lower variance, which prevents the regret from exploding over consecutive steps.
- Computational Elasticity: By tuning a parameter $\gamma$, users can explicitly trade off regret for speed. Setting a larger $\gamma$ reduces the dictionary size (saving time and memory) at the cost of a linear increase in regret.
Results and Performance
This paper is primarily theoretical, focusing on proving regret bounds and complexity guarantees rather than large-scale empirical benchmarks.
Crucially, the authors prove that Sketched-KONS achieves a regret of $O(d_{eff} \log T)$, matching the performance of the full, non-sketched version of the algorithm. Simultaneously, it reduces the per-step time and space complexity from $O(t^2)$ to $O(d_{eff}^2 + t^2\gamma^2)$. In many practical cases where the data has a low effective rank, this represents a massive speedup. Ultimately, the paper successfully bridges the gap between batch kernel approximations (like Nyström methods) and online learning theory.
Limitations and Future Work
While a significant step forward, the framework has a few limitations:
- Add-only Dictionary: The current KORS algorithm can add points to the dictionary but cannot remove them. If the importance of a point fades over time, the dictionary remains unnecessarily large.
- Adversarial Sensitivity: A clever adversary could potentially exploit the dictionary-based sampling. The authors suggest that "merging" points (similar to the Frequent Directions algorithm) might be more robust, but kernelizing such methods remains an open challenge.
- Curvature Dependency: The logarithmic regret only holds for "curved" losses (like squared loss or logistic loss). For simple Lipschitz losses, the algorithm reverts to standard $O(\sqrt{T})$ performance.
Summary updated