Abstract
By leveraging the representation power of deep neural networks, neural upper confidence bound (UCB) algorithms have shown success in contextual bandits. To further balance the exploration and exploitation, we propose Neural-$\sigma^2$-LinearUCB, a variance-aware algorithm that utilizes $\sigma^2_t$, i.e., an upper bound of the reward noise variance at round $t$, to enhance the uncertainty quantification quality of the UCB, resulting in a regret performance improvement. We provide an oracle version for our algorithm characterized by an oracle variance upper bound $\sigma^2_t$ and a practical version with a novel estimation for this variance bound. Theoretically, we provide rigorous regret analysis for both versions and prove that our oracle algorithm achieves a better regret guarantee than other neural-UCB algorithms in the neural contextual bandits setting. Empirically, our practical method enjoys a similar computational efficiency, while outperforming state-of-the-art techniques by having a better calibration and lower regret across multiple standard settings, including on the synthetic, UCI, MNIST, and CIFAR-10 datasets.
Introduction
In the contextual bandit problem, an agent must choose an action (an "arm") based on a given context to maximize cumulative rewards. This necessitates a delicate balance between exploration (learning about new actions) and exploitation (leveraging known high-reward actions). While Deep Neural Networks (DNNs) excel at learning complex feature representations, standard Neural UCB algorithms often struggle with uncertainty quantification. They are frequently either computationally expensive—exploring the entire DNN parameter space—or poorly calibrated, leading to suboptimal exploration.
Researchers from Johns Hopkins University address this by introducing Neural-$\sigma^2$-LinearUCB. This algorithm combines the efficiency of deep representation learning with a "variance-aware" mechanism to refine uncertainty estimates and improve regret performance.
Methodology: Variance-Aware Exploration
Neural-$\sigma^2$-LinearUCB builds upon the Neural-LinUCB framework, which uses a DNN to map contexts into a feature space and performs UCB exploration only over the final linear layer. The key innovation is the integration of reward noise variance into the exploration strategy.
The Variance-Aware Mechanism
Unlike standard methods that assume a constant worst-case noise level, this algorithm utilizes $\sigma_t^2$, an upper bound of the reward noise variance at each round $t$. By acknowledging that some contexts are inherently noisier than others, the algorithm can adjust its exploration confidence intervals.
As illustrated in the figure above, the algorithm becomes more certain when the noise $\xi$ is small and more uncertain when it is high. This leads to a more "calibrated" model where predicted confidence intervals more accurately reflect the true reward distribution.
Practical Estimation and Weighted Regression
In practice, the true variance is often unknown. The authors introduce a practical estimation trick: if rewards fall within a range $[a, b]$, the variance bound can be estimated using the current predicted mean $\hat{h}$ as $\hat{\sigma}_t^2 = (b - \hat{h})(\hat{h} - a)$. The linear model is then updated via weighted ridge regression, where samples with higher predicted noise are given less weight, effectively tuning the exploration ellipsoid based on local noise levels.
Empirical Results
The method was evaluated against state-of-the-art baselines, including NeuralUCB and Neural-LinUCB, across synthetic and real-world datasets.
Performance on Real-World Benchmarks
The proposed method consistently achieved lower cumulative regret across diverse datasets, including MNIST, UCI-shuttle, UCI-covertype, and CIFAR-10.
Key empirical findings include:
- Lower Regret: On MNIST, Neural-$\sigma^2$-LinearUCB achieved significantly lower regret (below 1000) compared to Neural-LinUCB (~1600) and NeuralUCB (~2200).
- Computational Efficiency: The method maintains the low latency of linear exploration, being roughly 15x faster in arm selection than full NeuralUCB.
- Better Calibration: Reliability diagrams confirmed that the variance-aware approach produces confidence intervals that are much closer to ideal calibration than standard baselines.
Conclusion
Neural-$\sigma^2$-LinearUCB offers a significant advancement in neural contextual bandits by making exploration "variance-aware." Theoretically, it achieves tighter regret bounds than existing neural-UCB methods. Empirically, it demonstrates superior performance and calibration across a wide range of benchmarks without sacrificing computational efficiency. Future work may explore more sophisticated variance estimation techniques to further bridge the gap between oracle and practical implementations.
Summary updated