Skip to main content
QUICK REVIEW

[Paper Review] Neural Thompson Sampling

Weitong Zhang, Dongruo Zhou|arXiv (Cornell University)|Oct 2, 2020
Advanced Bandit Algorithms ResearchDecision Sciences50 references26 citations
TL;DR

This paper proposes Neural Thompson Sampling (NeuralTS), a contextual bandit algorithm that uses deep neural networks with a novel posterior distribution—where the mean is the neural network output and the variance is derived from neural tangent features. The method achieves a cumulative regret of $\mathcal{O}(T^{1/2})$, matching optimal bounds for contextual bandits, and is empirically validated on benchmark datasets with strong performance.

ABSTRACT

Thompson Sampling (TS) is one of the most effective algorithms for solving contextual multi-armed bandit problems. In this paper, we propose a new algorithm, called Neural Thompson Sampling, which adapts deep neural networks for both exploration and exploitation. At the core of our algorithm is a novel posterior distribution of the reward, where its mean is the neural network approximator, and its variance is built upon the neural tangent features of the corresponding neural network. We prove that, provided the underlying reward function is bounded, the proposed algorithm is guaranteed to achieve a cumulative regret of $\mathcal{O}(T^{1/2})$, which matches the regret of other contextual bandit algorithms in terms of total round number $T$. Experimental comparisons with other benchmark bandit algorithms on various data sets corroborate our theory.

Motivation & Objective

  • To develop a Thompson Sampling algorithm that effectively integrates deep neural networks for both exploration and exploitation in contextual bandits.
  • To provide a theoretical regret guarantee for neural network-based Thompson Sampling, which was previously limited to simpler models.
  • To design a posterior distribution where the mean is the neural network prediction and the variance is based on neural tangent features, enabling principled uncertainty quantification.
  • To empirically validate the algorithm’s performance against state-of-the-art baselines on real-world benchmark datasets.

Proposed method

  • The algorithm uses a fully connected feedforward neural network $ f(\mathbf{x}; \bm{\theta}) $ with ReLU activations and scaled output to model the expected reward.
  • A novel posterior distribution is constructed with mean $ f(\mathbf{x}; \bm{\theta}) $ and variance $ \sigma_{t,k}^2 = \lambda \mathbf{g}^\top(\mathbf{x}_{t,k}; \bm{\theta}_{t-1}) \mathbf{U}_{t-1}^{-1} \mathbf{g}(\mathbf{x}_{t,k}; \bm{\theta}_{t-1}) / m $, where $ \mathbf{g} $ is the neural tangent feature vector.
  • The uncertainty in the reward estimate is derived from the inverse of the empirical Fisher information matrix $ \mathbf{U}_{t-1} $, approximated via the neural tangent kernel (NTK).
  • Thompson sampling is applied by drawing samples from this posterior to select the next arm, balancing exploration and exploitation.
  • The regret analysis leverages the effective dimension $ \widetilde{d} $, defined as $ \widetilde{d} = \log \det(\mathbf{I} + \mathbf{H}/\lambda) / \log(1 + TK) $, where $ \mathbf{H} $ is the NTK Gram matrix.
  • High-probability bounds on the neural tangent feature norm and posterior variance are derived using concentration inequalities and matrix analysis.

Experimental results

Research questions

  • RQ1Can a neural network-based Thompson Sampling algorithm achieve a near-optimal regret bound in contextual bandits?
  • RQ2How can uncertainty in deep neural network predictions be properly quantified for effective exploration in bandit settings?
  • RQ3What is the theoretical regret performance of a Thompson Sampling algorithm that uses neural tangent features for variance estimation?
  • RQ4How does the proposed method compare empirically to existing neural bandit algorithms in terms of regret and cumulative reward?

Key findings

  • The proposed Neural Thompson Sampling algorithm achieves a cumulative regret of $ \mathcal{O}(T^{1/2}) $, matching the optimal rate for contextual bandits.
  • The regret bound is $ \widetilde{\mathcal{O}}(\widetilde{d} \sqrt{T}) $, where $ \widetilde{d} $ is the effective dimension, and this bound is tight in the linear case.
  • The algorithm provides a principled way to incorporate uncertainty across all network layers via the neural tangent kernel, unlike prior methods that only consider the final layer.
  • Empirical evaluations on multiple benchmark datasets show that NeuralTS performs competitively with state-of-the-art baselines, confirming its practical utility.
  • Theoretical analysis shows that the posterior variance is bounded with high probability, ensuring stable exploration.
  • When contexts lie in a low-dimensional nonlinear subspace of the RKHS induced by the NTK, the effective dimension $ \widetilde{d} $ is bounded by $ d' + 1 $, where $ d' $ is the intrinsic dimension of the subspace.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.