Introduction
The contextual bandit problem is a fundamental framework for sequential decision-making under uncertainty, where an agent must choose actions based on contextual information to maximize cumulative rewards. Traditional approaches, such as LinUCB, often rely on the assumption of a linear relationship between contexts and rewards. Furthermore, these models typically assume stationarity, where the underlying data distribution remains constant over time. However, real-world applications like online advertising and recommendation systems frequently encounter non-linear patterns and shifting user behaviors (non-stationarity).
This paper introduces NeuralBandit, an algorithmic framework that replaces linear reward models with a committee of neural networks. By leveraging adversarial bandit techniques to manage these networks, the system can automatically tune hyperparameters online and adapt to changing environments.
The NeuralBandit Framework
The authors propose three progressively sophisticated versions of their approach:
- NeuralBandit1: This baseline replaces the linear model with a Multi-Layer Perceptron (MLP) for each action. To balance exploration and exploitation, it employs a $\gamma$-greedy strategy. A key contribution is a modified Stochastic Gradient Descent (SGD) update rule using importance sampling. This ensures that the neural network training remains unbiased, accounting for the fact that rewards are only observed for chosen actions.
- NeuralBandit2 (The Committee): Neural networks are highly sensitive to hyperparameters such as learning rates and hidden layer sizes. NeuralBandit2 addresses this by running multiple instances of NeuralBandit1 (a "committee") with varying configurations in parallel. An EXP3 algorithm—designed for adversarial settings—acts as a meta-learner, selecting which model's advice to follow at each time step.
- NeuralBandit3: This version extends the committee concept by assigning a dedicated EXP3 manager to each individual action, allowing for even greater flexibility in modeling action-specific reward functions.
Experimental Evaluation
The algorithms were tested using the Forest Cover Type dataset (581,000 instances). Continuous variables were binarized and categorical variables one-hot encoded to create a 94-dimensional binary feature space. The seven target classes served as the available actions.
To evaluate robustness, the authors simulated "concept drift" by rotating class labels every 500,000 iterations. This forced the algorithms to adapt to sudden, significant changes in the reward structure.
Results and Discussion
In stationary environments, NeuralBandit2 outperformed standard benchmarks, achieving a 76% classification rate compared to 72% for LinUCB and 73% for Contextual Thompson Sampling (CTS). The Banditron algorithm performed significantly worse at 57%.
The advantage of the committee approach became even more pronounced in non-stationary settings. As shown in the regret curves below, linear models like LinUCB and CTS struggled to adapt after concept drifts, leading to a sharp increase in cumulated regret. In contrast, the NeuralBandit variants (NB2 and NB3) successfully recovered, demonstrating their ability to "re-learn" the environment.
The use of an adversarial manager (EXP3) is central to this success. Because EXP3 makes minimal assumptions about reward distributions, it can effectively switch between MLPs as their relative performance changes, whether due to local minima or environmental shifts. While NeuralBandit3 offers the most flexibility, NeuralBandit2 often converged faster in practice due to its lower management overhead.
Conclusion and Future Directions
NeuralBandit demonstrates that combining the representational power of neural networks with the robustness of adversarial meta-learners provides a powerful solution for complex, non-stationary bandit problems. While the transition to non-linear models sacrifices the theoretical regret bounds associated with linear methods, the empirical gains in real-world-like scenarios are substantial.
Future research may explore more advanced neural architectures or attempt to derive tighter theoretical guarantees for non-linear contextual bandits. Additionally, optimizing the computational efficiency of managing large committees remains an important consideration for high-throughput production systems.
Summary updated