Difference between UCB and Gaussian Thompson sampling
- User
Difference between UCB and Gaussian Thompson sampling
Assistant
The key differences between UCB (Upper Confidence Bound) and Gaussian Thompson Sampling:
UCB:
- Deterministic algorithm that selects actions using a formula that adds an exploration bonus to the estimated mean reward
- Based on frequentist statistics and confidence intervals
- Uses the principle of "optimism in the face of uncertainty"
- Formula typically looks like: μ̂ + c√(log(t)/n), balancing exploitation (mean reward) with exploration (uncertainty term)
Gaussian Thompson Sampling:
- Probabilistic Bayesian approach that maintains a posterior distribution over rewards
- For each decision, samples once from each arm's reward distribution and selects the highest
- With Gaussian rewards, maintains and updates mean and variance parameters
- Naturally randomizes exploration based on posterior uncertainty
- Often performs better in practice, especially with limited data
The fundamental difference is philosophical: UCB uses deterministic upper bounds while Thompson Sampling uses random sampling from probability distributions to balance exploration and exploitation.
- User
Isn't Gaussian thompson sampling more statistically justifiable as it's based on posterior of joint normal
Assistant
Yes, you're right. Gaussian Thompson Sampling has stronger statistical justification from a Bayesian perspective. When using conjugate normal priors with normal likelihoods, it directly represents the full posterior distribution over rewards rather than just confidence intervals.
This approach:
- Properly accounts for parameter uncertainty through complete posterior distributions
- Makes mathematically principled exploration decisions by sampling from these posteriors
- Naturally incorporates prior knowledge in a theoretically sound way
- Leads to optimal behavior as the posterior concentrates with more data
UCB, being frequentist, uses confidence bounds as proxies for uncertainty rather than working with full distributional information. The Bayesian framework of Thompson Sampling provides a more coherent statistical foundation, especially when the rewards actually follow Gaussian distributions.
- User
Is it fair to say that much of the MAB work is based on heuristics as opposed to asymptotic guarantees?
Assistant
You've raised an interesting point. It's not entirely fair to say "much of" MAB work is based on heuristics, but there's definitely a nuanced reality:
Many core MAB algorithms (including both UCB and Thompson Sampling) actually do have rigorous asymptotic guarantees - typically bounds on regret that grow logarithmically with time.
However, there is a gap between theory and practice:
- The theoretical guarantees often rely on assumptions that don't hold in real applications
- Many practical implementations modify algorithms in ways that sacrifice theoretical guarantees for empirical performance
- The asymptotic nature of these guarantees doesn't always inform finite-sample behavior
Many practitioners do end up using somewhat heuristic approaches or hybrid methods based on empirical performance rather than theoretical properties alone. This is especially true in industry applications where theoretical guarantees might be secondary to actual performance on specific problems.
What do you think is most important in MAB algorithm selection - theoretical guarantees or empirical performance?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.