Introduction
Multi-Armed Bandit (MAB) algorithms are fundamental to modern recommendation systems, yet they often face a critical trade-off between bias and convergence speed. Classic non-parametric MABs are unbiased but converge slowly in large arm spaces. Conversely, parametric contextual bandits leverage shared features for faster convergence but suffer from high regret if the underlying model—typically linear—is misspecified. Furthermore, existing semi-parametric models often assume static arm features, which fails in dynamic environments like e-commerce flash sales where user interests and item contexts evolve rapidly.
This paper introduces SPUCB (Semi-Parametric Upper-Confidence Bound), a framework designed to handle dynamic contextual features while maintaining computational efficiency for real-world production systems.
The SPUCB Framework
The core of SPUCB is a semi-parametric reward model that decomposes the expected reward of an arm $a$ at time $t$ into two components: $$w^*_{t,a} = g(\theta^*, x_{t,a}) + b^*_a$$ where $g(\theta^*, x_{t,a})$ represents the parametric component based on evolving features $x_{t,a}$, and $b^*_a$ is an arm-specific bias (the non-parametric component). This bias term acts as a "residual correction," allowing the model to adapt when the parametric function $g$ fails to fully capture the reward signal, preventing the algorithm from converging on sub-optimal strategies.
The algorithm proceeds in two main stages:
- UCB Calculation: Computing an upper confidence bound that integrates uncertainty from both the global parameters $\theta$ and the local bias $b_a$.
- Online Updates: Updating the global model via ridge regression and refining individual arm biases upon observing rewards.
Computational Optimization
A significant barrier to deploying contextual bandits in production is the $O(d^3)$ complexity of matrix inversions required for standard linear models, where $d$ is the feature dimension. To address this, the authors derive an iterative optimization that reduces the update complexity to $O(d^2)$. This optimization is critical for real-time systems, enabling sub-20ms updates even with thousands of features.
Experimental Evaluation
The SPUCB framework was evaluated using both synthetic simulations and real-world e-commerce data from Alibaba. The real-world dataset involved 100 items with 42-dimensional features, using a Deep Neural Network (DNN) trained on historical logs to simulate the environment.
Key Results
- Superior Convergence: In synthetic tests, SPUCB demonstrated consistent convergence within 10,000 steps, whereas traditional models like LinUCB and standard UCB struggled with complex reward functions.
- Real-World Performance: On the Alibaba dataset, SPUCB significantly outperformed both LinUCB and LSPS. The non-parametric bias term proved essential in mitigating the model misspecification inherent in pure linear approaches.
- Efficiency Gains: The $O(d^2)$ optimization provided a 34x speedup for 5,000-dimensional feature vectors, making the algorithm viable for high-scale production environments.
Conclusion
SPUCB offers a robust and practical solution for contextual bandit problems with dynamic features. By combining the strengths of parametric modeling with non-parametric bias correction and providing a high-efficiency optimization, it bridges the gap between theoretical performance and real-world deployment requirements. Future work may explore extending the parametric component to non-linear kernels or neural networks within this framework.
Summary updated