Abstract
In this paper, we tackle the computational efficiency of kernelized UCB algorithms in contextual bandits. While standard methods require a $\mathcal{O}(CT^3)$ complexity where $T$ is the horizon and the constant $C$ is related to optimizing the UCB rule, we propose an efficient contextual algorithm for large-scale problems. Specifically, our method relies on incremental Nyström approximations of the joint kernel embedding of contexts and actions. This allows us to achieve a complexity of $\mathcal{O}(CTm^2)$ where $m$ is the number of Nyström points. To recover the same regret as the standard kernelized UCB algorithm, $m$ needs to be of order of the effective dimension of the problem, which is at most $\mathcal{O}(\sqrt{T})$ and nearly constant in some cases.
TL;DR
The paper introduces EK-UCB, a highly efficient version of the Kernelized Upper Confidence Bound algorithm for contextual bandits. By leveraging incremental Nyström approximations and a clever dictionary-building strategy, the authors reduce the total computational complexity from a prohibitive $O(T^3)$ to a scalable $O(T d_{eff}^2)$, where $d_{eff}$ is the problem's effective dimension, all while maintaining the same theoretical regret guarantees as standard, slower methods.
What Problem Does This Paper Address?
Contextual bandits are a framework for sequential decision-making where an agent chooses actions based on "contexts" (like user profiles) to maximize rewards (like ad clicks). When the relationship between context-action pairs and rewards is complex and non-linear, researchers often turn to Kernel methods. These methods model rewards in a Reproducing Kernel Hilbert Space (RKHS), allowing for infinite-dimensional feature maps.
The catch? Scalability. Standard Kernel-UCB algorithms require solving a linear system involving a $t \times t$ kernel matrix at every round $t$. Over a horizon of $T$ rounds, this leads to a total time complexity of $O(T^3)$. For modern applications where $T$ can be in the millions, this is computationally impossible. While some "efficient" variants exist, they often suffer from "misspecification error" (approximating the kernel too crudely) or still have high complexity overheads.
Methods
The authors propose Efficient Kernel-UCB (EK-UCB). The core innovation lies in how it approximates the kernel:
- Incremental Nyström Projections: Instead of using the full kernel matrix, the algorithm projects the feature map onto a lower-dimensional subspace spanned by a "dictionary" of representative past context-action pairs (anchor points).
- KORS (Kernel Online Row Sampling): To keep the dictionary small but informative, they use the KORS algorithm. It decides whether to add the current context-action pair to the dictionary based on its "leverage score"—essentially a measure of how much new information that point provides relative to the current dictionary.
- Rank-One Updates: Because the dictionary grows incrementally, the algorithm can use Sherman-Morrison and Schur complement formulas to update its internal matrices in $O(m^2)$ time (where $m$ is the dictionary size) rather than recomputing everything from scratch.
- Original Feature Map for UCB: Crucially, while the estimates of the mean and variance are computed in the projected space, the UCB rule itself still references the original feature map. This prevents the "misspecification" issues that often lead to linear regret in other approximation methods.
Datasets
The paper evaluates the algorithm on three synthetic environments designed to test non-linear reward structures:
- 'Bump': A 5D environment where rewards are generated by a non-linear "bump" function.
- 'Chessboard': A 2D environment with a piecewise reward function resembling a grid.
- 'Step Diagonal': A 2D environment with rewards concentrated along diagonal bands.
These synthetic benchmarks allow the authors to precisely control the "effective dimension" and verify that the algorithm recovers the theoretical regret-complexity trade-offs.
Key Insights and Ideas
- Incremental vs. Batched: Unlike previous work (like BBKB) that recomputes dictionaries in batches, EK-UCB updates incrementally. This is not just a practical speedup; it allows the authors to use martingale arguments in their proof, leading to cleaner theoretical bounds.
- The Power of $d_{eff}$: The "effective dimension" ($d_{eff}$) is the real hero. For many kernels (like Gaussian), $d_{eff}$ grows much slower than $T$ (often as $\sqrt{T}$ or even near-constant). By tying complexity to $d_{eff}$ rather than $T$, the algorithm becomes truly scalable.
- Bridging Theory and Practice: The authors provide a rigorous regret analysis that explicitly accounts for the approximation error of the Nyström projection, proving that you don't have to trade off "smart" exploration for "fast" computation.
Key Results
- Complexity Reduction: EK-UCB achieves a time complexity of $O(CT d_{eff}^2)$, a massive improvement over the standard $O(CT^3)$.
- Regret Preservation: Theoretically, EK-UCB matches the regret of the "vanilla" Kernel-UCB, scaling as $\tilde{O}(\sqrt{T d_{eff}})$.
- Empirical Performance: In simulations, EK-UCB consistently outperformed baselines like CBBKB and SupK-UCB. It achieved the best "regret-time compromise"—meaning it reached low regret levels significantly faster than any other method tested. For example, in the 'Chessboard' setting, it maintained low regret while running in a fraction of the time required by standard Kernel-UCB.
Limitations and Future Work
- Hyperparameter Sensitivity: Like most UCB-based methods, the theoretical value for the exploration parameter $\beta$ is often too conservative (leading to over-exploration). In practice, users still need to tune this.
- Action Space Optimization: The constant $C$ in the complexity represents the cost of finding the best action (the
argmax). If the action space is continuous and high-dimensional, this remains a challenging optimization problem regardless of the kernel approximation. - Real-World Data: While the synthetic results are robust, testing on massive real-world recommendation datasets would be a natural next step to see how the incremental dictionary handles non-stationary or noisy data.
Summary updated