Skip to main content
QUICK REVIEW

[Paper Review] An Efficient Algorithm For Generalized Linear Bandit: Online Stochastic Gradient Descent and Thompson Sampling

Qin Ding, Cho‐Jui Hsieh|arXiv (Cornell University)|Jun 7, 2020
Advanced Bandit Algorithms ResearchDecision Sciences31 references8 citations
TL;DR

This paper proposes SGD-TS, an efficient algorithm for generalized linear bandits that combines online stochastic gradient descent (SGD) with Thompson Sampling to achieve $×sim O(\sqrt{T})$ regret with linear time complexity $O(Td)$. By re-calibrating exploration via Thompson Sampling and avoiding matrix inversion, it achieves state-of-the-art performance with constant per-round time and memory complexity.

ABSTRACT

We consider the contextual bandit problem, where a player sequentially makes decisions based on past observations to maximize the cumulative reward. Although many algorithms have been proposed for contextual bandit, most of them rely on finding the maximum likelihood estimator at each iteration, which requires $O(t)$ time at the $t$-th iteration and are memory inefficient. A natural way to resolve this problem is to apply online stochastic gradient descent (SGD) so that the per-step time and memory complexity can be reduced to constant with respect to $t$, but a contextual bandit policy based on online SGD updates that balances exploration and exploitation has remained elusive. In this work, we show that online SGD can be applied to the generalized linear bandit problem. The proposed SGD-TS algorithm, which uses a single-step SGD update to exploit past information and uses Thompson Sampling for exploration, achieves $ ilde{O}(\sqrt{T})$ regret with the total time complexity that scales linearly in $T$ and $d$, where $T$ is the total number of rounds and $d$ is the number of features. Experimental results show that SGD-TS consistently outperforms existing algorithms on both synthetic and real datasets.

Motivation & Objective

  • To address the high computational cost of existing generalized linear bandit (GLB) algorithms that require $O(T)$ memory and $O(T^2)$ time due to repeated matrix inversion and maximum likelihood estimation (MLE) at each round.
  • To enable online stochastic gradient descent (SGD) in contextual bandits with theoretical guarantees, overcoming challenges in unbiased gradient estimation and balancing exploration-exploitation.
  • To design a method that maintains low regret while achieving constant per-round time and memory complexity, making it suitable for real-time applications.
  • To demonstrate empirically that the proposed algorithm outperforms existing state-of-the-art methods on both synthetic and real-world datasets.

Proposed method

  • The algorithm uses a single-step SGD update at each round to incrementally update the model parameter based on newly observed rewards, reducing time and memory complexity to $O(1)$ per round.
  • It integrates Thompson Sampling for exploration by sampling from a re-calibrated posterior distribution to compensate for the bias in the SGD estimator compared to the MLE.
  • The method avoids explicit matrix inversion by leveraging the online SGD update, which is computationally cheaper than solving for MLE or inverting $d \times d$ matrices at each step.
  • The exploration component is re-calibrated to ensure sufficient exploration despite the non-i.i.d. nature of the SGD updates and partial feedback in bandit settings.
  • Theoretical analysis assumes a 'diversity' condition on the feature vectors to ensure sufficient information gain over time.
  • The algorithm is applied to logistic bandits in experiments, using feature vectors derived from cluster centroids or random samples from clusters.

Experimental results

Research questions

  • RQ1Can online stochastic gradient descent be successfully applied to generalized linear bandits with theoretical regret guarantees?
  • RQ2Can Thompson Sampling be effectively re-calibrated to provide sufficient exploration when used with SGD-based parameter updates in a bandit setting?
  • RQ3Does avoiding matrix inversion and MLE computation at each round lead to a significant reduction in time and memory complexity without sacrificing regret performance?
  • RQ4How does the proposed algorithm compare to existing GLB methods in terms of cumulative regret and frequency of pulling optimal arms on real and synthetic data?

Key findings

  • SGD-TS achieves a regret bound of $\tilde{O}(\sqrt{T})$ under the diversity assumption, matching the theoretical performance of state-of-the-art GLB algorithms.
  • The algorithm scales linearly in $T$ and $d$, with total time complexity $O(Td)$, making it the most efficient GLB algorithm to date.
  • On both synthetic and real-world datasets, including a forest cover type dataset with $d=55$ features, SGD-TS consistently outperforms existing algorithms in cumulative regret and frequency of pulling the best arms.
  • In scenario 1 (10 features), SGD-TS outperforms UCB-GLM, GLM-TSL, and GLOC, with the latter three frequently getting stuck in sub-optimal arms.
  • In scenario 2 (55 features, dynamic features), SGD-TS remains the top-performing algorithm, while others, including GLOC, fail to identify the best arm as frequently.
  • Runtime measurements show that SGD-TS has the lowest computational cost, as it avoids matrix inversion and MLE computation at each round, unlike UCB-GLM, GLM-TSL, SupCB-GLM, and GLOC.

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.