---
title: "Analysis of Thompson Sampling for the multi-armed bandit problem"
description: "How Thompson sampling balances exploration and reward, why its expected regret grows logarithmically, and where the proof remains loose."
canonical: "https://research.elamur.ai/free/en/papers/agrawal-2011-analysis-thompson-sampling-multi-armed/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/agrawal-2011-analysis-thompson-sampling-multi-armed/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2011](https://md.research.elamur.ai/free/en/papers/2011/) / Analysis of Thompson Sampling for the multi-armed bandit problem

# Analysis of Thompson Sampling for the multi-armed bandit problem

Paper · 2011 · Shipra Agrawal and Navin Goyal

**Authors:** [Shipra Agrawal](https://md.research.elamur.ai/free/en/authors/shipra-agrawal/) and [Navin Goyal](https://md.research.elamur.ai/free/en/authors/navin-goyal/) · **Year:** 2011 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1111.1797)
- [arXiv 1111.1797](https://arxiv.org/abs/1111.1797)

## What it is about

How Thompson sampling balances exploration and reward, why its expected regret grows logarithmically, and where the proof remains loose. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A system that repeatedly chooses among uncertain alternatives faces a difficult tradeoff. It can select the option that currently looks strongest, collecting reward from what it already knows, or try something less familiar and learn whether it is better. Thompson sampling handles this choice through uncertainty itself: it draws a plausible reward rate for every alternative and selects the one with the largest draw. Agrawal and Goyal study why this simple randomized rule works. Their contribution is a mathematical guarantee for the stochastic multi-armed bandit problem, where each alternative has a fixed but unknown reward distribution.

The paper addresses a mismatch between practical evidence and theoretical understanding. Earlier studies had reported that Thompson sampling performed well, sometimes approaching a known regret lower bound and handling delayed observations effectively. Yet the available guarantees were much weaker than those for established upper-confidence-bound methods. Agrawal and Goyal prove that Thompson sampling has logarithmic expected regret as the number of decisions grows. Regret measures the expected reward lost by selecting inferior alternatives instead of always choosing an optimal one. Logarithmic growth means that this accumulated loss increases slowly with the decision horizon, although the size of the bound also depends on how difficult the alternatives are to distinguish.

The algorithm uses a beta distribution to represent uncertainty about each arm’s success probability. A success increases one distribution parameter; a failure increases the other. At each decision, an independent draw from every arm’s current distribution determines the selection. The authors first analyze rewards that are either 0 or 1. They then extend the procedure to arbitrary rewards in [0, 1] by turning each observed reward into the success probability of an additional Bernoulli trial. This transformation preserves the expected reward associated with the arm and makes the same analysis applicable.

For the setting with two arms, the expected-regret guarantee has the form O((ln T)/∆ + 1/∆³), where T is the horizon and ∆ is the difference between the arms’ expected rewards. With N arms, the main guarantee is O((Σₐ₌₂ᴺ 1/∆ₐ²)² ln T). These results establish the desired logarithmic dependence on T. They do not establish the best possible dependence on the reward gaps. The authors explicitly acknowledge that their general guarantee is weaker in this respect than the UCB1 guarantee they discuss.

The central achievement is therefore an explanation of how randomized posterior sampling avoids spending too long on inferior choices. The proof follows the waiting time between successive selections of the best arm, rather than merely showing that inferior arms eventually become well understood. For multiple arms, it additionally tracks interruptions caused by alternatives that have not yet been sampled enough. This is a theoretical paper: it presents algorithms, probability arguments, and regret bounds, without a new experimental benchmark or an empirical results table.

### Ideas worth borrowing

Treat uncertainty as a selection mechanism. Thompson sampling turns uncertainty into action by drawing plausible values and comparing them. An option with limited evidence can occasionally win because its distribution remains broad, while an option supported by many observations is represented more narrowly. This offers a reusable approach to sequential experimentation when an engineer wants exploration to respond to evidence rather than follow a fixed schedule.

Separate the decision rule from its justification. The operational algorithm requires only counts, beta draws, and a comparison. The analysis introduces thresholds, saturated sets, and waiting-time variables that the implementation never needs to know. Keeping these roles separate helps prevent an elegant proof device from becoming an unnecessary runtime dependency. The same distinction matters when analyzing adaptive testing, resource allocation, or rule selection.

Study recovery after misleading evidence. A weak early estimate of the best option can matter more than persistent uncertainty about an inferior one. The authors therefore examine how long the best arm remains unselected after its current evidence has been fixed. This perspective is useful whenever a sequential system can become temporarily discouraged by unlucky observations. It asks whether the system will recover, rather than assuming that enough evidence about its competitors guarantees recovery.

Reduce a difficult observation type to a tractable one. The bounded-reward extension converts a real-valued observation into a binary event with the same expectation. This permits the authors to reuse their Bernoulli analysis. The broader lesson is to identify exactly which property a proof needs and construct an interface that preserves it. Such reductions can simplify statistical software and verification, provided that discarded information and added randomness remain explicit.

Distinguish unfinished exploration from residual mistakes. The saturated-versus-unsaturated partition separates arms that still need evidence from arms whose uncertainty should already be small. These categories require different arguments. An analogous separation can help diagnose adaptive pipelines: some errors arise because a candidate remains insufficiently tested, while others persist in spite of substantial evidence and demand a different explanation.

Expose the source of a loose guarantee. The authors identify their worst-case treatment of interruptions as a major reason for the unfavorable reward-gap dependence with many arms. This makes the limitation actionable. In other analyses, identifying the precise relaxation that enlarges a bound can be more informative than presenting a final inequality alone. It tells later researchers which part of the argument needs refinement.

Evaluate every axis of a guarantee. Logarithmic dependence on the horizon does not imply optimality in the number of alternatives, the reward gaps, or the constants. The paper compares these dimensions separately. This is a useful habit in [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/): a method can match the desired scaling in one variable while remaining substantially weaker in another.

### How Mova uses it

Mova is a small, transparent language system written in Rust. Its existing mechanisms include bounded self-study, logged experiments, held-out checks, explicit routing, and source-bound knowledge admission. Those mechanisms provide possible places to test ideas from this paper. They do not establish that Mova already uses Thompson sampling. The status marks below are proposals assessed against the documented mechanisms; effects specific to these transfers remain unknown.

Idea: Use uncertainty to allocate exploratory work. Where: Section 1.2, Thompson Sampling. Area: sequential decision-making. Mova: нове. A bounded research worker could maintain separate evidence for candidate repair strategies and occasionally select an uncertain strategy through posterior sampling. This would concern experiment allocation, with ordinary admission gates still deciding whether a change is accepted. Why Mova: a transparent statistical selector could distribute scarce experimental effort without replacing native linguistic reasoning.

Idea: Keep exploration outside ordinary deterministic inference. Where: Algorithm 1. Area: architecture. Mova: частково є (README.md, deterministic native inference; docs/training.md, separate self-play and revision gates). The paper’s randomized selection could be investigated in an offline experiment controller whose seed and decisions are recorded. Ordinary answers would continue to use admitted rules and parameters. The proposed sampling controller is unverified; the separation between experimentation and shipped behavior already exists.

Idea: Preserve evidence beyond success and failure counts. Where: Section 1.2 and Algorithm 1. Area: data and auditability. Mova: частково є (docs/training.md, experiment journals; tools/dictindex/README.md, source-bound records). Beta updates need compact counts, but a Mova experiment should retain the actual task, outcome, version, and evidence behind each update. This would make a sampling decision inspectable and allow investigators to determine whether apparently comparable trials really measured the same objective.

Idea: Distinguish an assumed prior from a factual assertion. Where: Introduction and Section 1.2. Area: knowledge representation. Mova: частково є (prag/src/frames.rs, typed evidential information; retained-knowledge admission gates). The authors use priors to organize uncertainty while evaluating fixed unknown arm means. Mova could similarly label an exploration prior as a controller assumption. It should never become a dictionary fact or a claim about the world merely because it influenced a selection.

Idea: Test sensitivity to initialization. Where: Section 1.2, the Beta(1, 1) initialization; Conclusion, prior mismatch. Area: statistics and evaluation. Mova: нове. If a sampling controller is introduced, alternative initial assumptions should be compared on authorized development tasks. The paper proves its result for the specified initialization and leaves broader prior questions open. Why Mova: this would reveal whether a scheduler’s apparent preferences come from observations or from choices made before observations began.

Idea: Represent the amount of evidence alongside its average. Where: Section 1.2, beta-distribution discussion. Area: statistics. Mova: частково є (prag/src/eval.rs, confidence reliability reports; tools/dictindex/README.md, support counts and explained proposals). Candidate strategies with similar observed success rates may have very different amounts of evidence. A proposed controller could expose both counts and uncertainty. Existing confidence diagnostics are relevant groundwork, but they do not establish a beta-based exploration mechanism.

Idea: Separate runtime requirements from proof-only quantities. Where: Algorithms 1–2 and Proof Techniques. Area: software design and mathematics. Mova: частково є (source-bound groupants, explicit observations, invariants, and checks). Thompson sampling does not require the unknown reward gaps that appear in its proof. Mova could document a proposed scheduler in the same way: distinguish information required for execution from quantities used only to establish a conditional guarantee.

Idea: Measure cumulative opportunity cost. Where: Section 1.1, expected-regret definition. Area: evaluation. Mova: нове. A controller study could report the cumulative cost of selecting weaker experimental strategies, alongside the final quality of the resulting rules. Such a study would need a defensible reference strategy and a fixed reward definition. Why Mova: final quality alone can hide an expensive sequence of failed experiments, particularly when worker time or teacher review is scarce.

Idea: Define reward before adapting the selection policy. Where: Section 1.1, fixed arm distributions and expected rewards. Area: experimental design. Mova: частково є (README.md, measured changes and held-out gates; tools/enrich/README.md, same-question comparisons). A candidate reward must distinguish a completed experiment from a verified improvement. Existing Mova gates already resist treating more output as better output. A sampling controller would need an equally explicit outcome definition, with no established transfer guarantee yet.

Idea: Turn bounded outcomes into binary trials when justified. Where: Algorithm 2 and Section 1.2. Area: statistics and data processing. Mova: нове. A bounded development score could supply the success probability of an auxiliary Bernoulli trial, allowing reuse of a binary controller. The transformation would need its own recorded random draw and a clear account of discarded information. Why Mova: it offers a mathematically explicit adapter between heterogeneous bounded scores and a compact statistical selection mechanism.

Idea: Preserve the mean that matters to the objective. Where: Section 1.2, justification of the general-reward extension. Area: mathematics and interfaces. Mova: частково є (groupants and typed correspondences, declared observations and conformance conditions). The transferable principle is to state which observable survives a transformation. A Mova adapter should claim mean preservation only when its construction supports that claim. It should separately record any loss of variance, structure, or task-specific evidence.

Idea: Check the stationary-reward assumption. Where: Section 1.1, stochastic bandit assumptions. Area: experimental validity. Mova: нове. Repair strategies can change effectiveness after the parser, dictionary, or corpus changes. Before borrowing this theorem, a controller study should determine whether repeated trials still represent one stable arm. Why Mova: versioned language resources make silent pooling across changed conditions especially likely, and this paper’s guarantee does not cover that pooling.

Idea: Bind controller evidence to source and configuration versions. Where: Section 1.1, fixed reward distributions. Area: provenance. Mova: частково є (tools/dictindex/README.md, immutable source versions and index epochs; tools/enrich/README.md, source fingerprints). Existing version boundaries could help define when a sequence of observations remains comparable. Resetting or separating scheduler evidence after a substantive change is a proposal, rather than an implemented consequence of those storage mechanisms.

Idea: Analyze recovery from an unlucky beginning. Where: Proof Techniques, the discussion of an insufficiently sampled optimal arm. Area: robustness. Mova: нове. A development-only scheduler could be tested on controlled reward sequences where the strongest strategy initially receives discouraging observations. The question would be whether exploration returns to it without seeing future outcomes. Why Mova: early parser failures or difficult dictionary cases should not permanently exclude a useful experimental approach.

Idea: Measure waiting time between useful selections. Where: the two-arm proof, the variables Yⱼ and X(j, s, y). Area: analysis. Mova: нове. A controller trace could report how long a promising strategy goes unused after each observation. This would expose starvation that aggregate success rates might conceal. Why Mova: bounded workers need timely opportunities to revisit underexplored strategies, and waiting-time diagnostics can reveal whether those opportunities actually occur.

Idea: Separate insufficient evidence from surprising residual errors. Where: the N-arm proof, saturated and unsaturated arms. Area: diagnostics. Mova: частково є (tools/dictindex/README.md, support thresholds; docs/training.md, tested repair proposals). A proposed experiment report could distinguish candidates that have barely been tried from candidates that fail after substantial testing. The paper’s exact saturation thresholds cannot be transferred directly without the corresponding statistical assumptions.

Idea: Track interruptions from competing work. Where: Proof Techniques and the N-arm proof, the event M(t) and γⱼ. Area: scheduling. Mova: нове. A worker controller could record when a strategy becomes eligible for selection but another exploratory task wins the available slot. This would support analysis of competition between queues. Why Mova: shared bounded execution can delay useful work even when that work’s own evidence has not deteriorated.

Idea: Condition on history before combining adaptive quantities. Where: Lemma 5 and Appendix C.5. Area: probability and verification. Mova: нове. Any mathematical analysis of an adaptive Mova controller should make dependencies explicit before multiplying an expected interruption count by an expected waiting time. The paper handles this through conditioning. Why Mova: logged decisions depend on previous outcomes, so independence assumptions that look harmless in static reports can become false in adaptive workflows.

Idea: Use pre-indexed outcome sequences in controlled studies. Where: Appendix C.4, the variables Zᵢ,ₘ. Area: evaluation. Mova: нове. Synthetic scheduler tests could associate each candidate with a fixed sequence of outcomes and reveal the next outcome only when selected. This is an experimental design proposal, not a guarantee about real language tasks. Why Mova: it can separate differences in selection policy from differences caused by generating fresh test conditions for every comparison.

Idea: Reuse exact distribution identities. Where: Lemma 1 and Appendix B, Fact 1. Area: mathematics. Mova: частково є (math, exact numerical and symbolic facilities; source-bound mathematical tooling). The beta–binomial relationship could be represented as a documented identity for probability calculations or proof inspection. Whether Mova currently supports the required special functions is unknown. Its existing mathematical core should therefore be treated as a possible host, without implying that this identity is implemented.

Idea: Split analysis into low-evidence and high-evidence regimes. Where: Lemma 3 and Appendix C.2. Area: statistics. Mova: частково є (prag/src/eval.rs, confidence-stratified evaluation; tools/dictindex/README.md, support-aware proposals). The paper uses different arguments where concentration is unavailable and where it becomes effective. A Mova study could similarly report sparse-evidence behavior separately. Existing stratification mechanisms support the general practice, but no bandit-specific analysis is established.

Idea: Bound bad events and their consequences together. Where: Lemma 2 and the two-arm regret proof. Area: risk analysis. Mova: нове. A controller analysis should record both how rarely an undesirable selection event occurs and how much loss it can cause within the authorized horizon. A small probability alone is insufficient. Why Mova: bounded execution provides a natural place to state the maximum consequence, making exceptional behavior easier to assess quantitatively.

Idea: Attribute loose guarantees to explicit relaxations. Where: Proof Techniques, worst-case interruption allocation. Area: mathematical reporting. Mova: частково є (groupants, declared assumptions and evidence; tools/enrich/README.md, distinction between idealized simulations and runtime forecasts). A controller report could name the step that introduces pessimism. This would help distinguish weak evidence from a deliberately conservative bound and identify what additional observations might justify a sharper analysis.

Idea: Compare horizon, gap, and candidate-count dependence separately. Where: Section 1.3, Theorems 1–2 and Remark 1. Area: evaluation. Mova: частково є (README.md, measured claims with explicit limits; bounded worker measurements). A proposed scheduling report should avoid calling a policy efficient on the basis of one favorable scaling variable. The number of strategies, their closeness in quality, and the experiment horizon may create different costs.

Idea: Keep delayed feedback outside an immediate-feedback guarantee. Where: Introduction and Conclusion. Area: execution and evaluation. Mova: частково є (explicit worker outcomes and persistent execution state in the operational layer). Mova workers can have pending results, but this paper’s theorem assumes immediate reward observation. A sampling controller with unfinished reviews would require a separate study. Existing worker receipts make the distinction representable; they do not supply the missing theoretical result.

Idea: Test partial feedback without treating missing outcomes as failures. Where: Section 1.1 and the Conclusion’s discussion of delayed or batched observations. Area: data handling. Mova: нове. A proposed scheduler should distinguish completed negative trials from trials whose results are still unavailable. This follows from recognizing that delayed feedback changes the paper’s setup. Why Mova: review queues and interrupted experiments can remain pending, and conflating pending evidence with failure would change the statistical process being studied.

Idea: Preserve admission gates after adaptive selection. Where: Section 1.2, selection from observed rewards; Section 1.1, the specified objective. Area: learning governance. Mova: вже є (tools/enrich/README.md, staged drafts remain separate from admitted knowledge; docs/training.md, gated revisions). A bandit chooses what to try; it does not establish that a resulting rule or definition is true. Mova’s existing separation remains essential if adaptive experiment allocation is added.

Idea: Protect assessment data from adaptive reuse. Where: Section 1.1, decisions depend on previous observed outcomes. Area: evaluation. Mova: вже є (docs/architecture.md and docs/training.md, teacher-separated assessment and held-out release evaluation). Feeding assessment outcomes repeatedly into a selection controller would make them part of its adaptive evidence. Mova already distinguishes development from assessment. Any proposed controller should operate within that distinction, with its effects measured on separately protected questions.

Idea: Report theoretical and empirical support separately. Where: Introduction, Section 1.3, and Conclusion. Area: scientific communication. Mova: вже є (README.md, measured claims and implementation limits; docs/hybrid-system.md, direction separated from current behavior). The paper’s logarithmic theorem, earlier practical observations, and proposed extensions have different evidential status. The same distinction should govern a Mova implementation: a successful bounded trial would not establish the theorem’s assumptions or a general scheduling guarantee.

### The problem and its context

#### Learning while rewards are being collected

The multi-armed bandit problem describes repeated choices with incomplete feedback. An arm is simply an available action. Selecting it produces a reward, but the decision-maker does not observe what the other arms would have produced at that moment. Learning therefore consumes opportunities: trying an inferior arm may teach something useful, while sacrificing expected reward on the current decision.

The stochastic setting makes this difficulty precise without allowing the environment itself to change arbitrarily. Every arm has a fixed reward distribution. Repeated rewards from an arm are independent and identically distributed, and the reward sequences of different arms are independent. The unknown quantity that matters for selection is each arm’s expected reward.

The aim is cumulative performance. An algorithm can make an informative choice that is poor in immediate reward yet valuable over the remaining horizon. Conversely, an algorithm can repeatedly choose the currently strongest-looking arm and fail because it never discovers that another arm is better. This tension connects the problem to [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) through adaptive evidence collection, rather than through a separate training phase followed by an entirely fixed deployment phase.

The authors express performance through expected regret. Imagine a reference policy that knows which arm has the largest mean and selects an optimal arm throughout. Regret is the expected reward lost relative to that reference. The reference does not know future random outcomes; its advantage is knowledge of the arm means.

This distinction prevents a common misunderstanding. A suboptimal arm can produce a large realized reward on a particular play, and an optimal arm can produce a small one. Regret in the paper concerns expected opportunity cost. An arm is inferior because its mean is lower, rather than because every reward it produces is smaller.

#### Why Thompson sampling needed analysis

The paper situates Thompson sampling among several approaches to this tradeoff. Upper-confidence-bound methods had established theoretical guarantees. Their selection rules add an optimism term to observed performance, encouraging exploration of arms with insufficient evidence. The paper also discusses a Bayesian allocation approach associated with known priors and geometrically discounted rewards, which addresses a differently specified objective.

Thompson’s randomized method dates to 1933 in the account given by the authors. Rather than adding a deterministic bonus, it selects an arm according to the probability that the arm is best under the current posterior distributions. The algorithm’s appeal comes in part from how directly this turns uncertainty into exploration.

The authors describe earlier empirical studies as favorable. They report that those studies found strong regret performance, competitive behavior in advertising and recommendation settings, and robustness when feedback was delayed or delivered in batches. These observations motivate the paper, but they are not experiments performed within it.

The theoretical situation was less satisfactory. The earlier guarantees discussed by the authors bounded expected regret by o(T). That notation establishes growth slower than linear, but it leaves open a large range of possible behavior. A logarithmic guarantee is substantially more specific about how accumulated loss scales with the horizon.

Agrawal and Goyal therefore ask whether a practical sampling rule can receive a finite-time guarantee comparable in its horizon dependence to established confidence-bound algorithms. Their answer is affirmative, with qualifications about reward-gap dependence and constants.

#### Bayesian computation with fixed unknown parameters

The algorithm’s use of priors does not mean that the theorem assumes nature drew the true arm means from those priors. The authors emphasize that the reward parameters are fixed and unknown. The beta distributions are internal representations used by the decision procedure.

This distinction determines how to read the result. The expectation in the guarantee covers randomness from rewards and algorithmic selections. It is not merely an average over an assumed population of possible arm means. The guarantee can therefore be compared with frequentist guarantees for the same stochastic bandit setting.

An internal distribution has an operational purpose: it records what the algorithm currently treats as plausible and supplies randomized samples for selection. Its usefulness is assessed by the regret of the resulting actions. The theorem does not require the initial uniform distribution to describe a known distribution of real-world arm quality.

This separation is also why the paper can discuss prior mismatch as future work. The analyzed initialization is specific, while the broader question of how other assumptions affect performance remains open within the paper.

### The method, step by step

#### The observable process and its objective

There are N arms. At time t, the algorithm chooses one arm, observes its reward immediately, and uses the accumulated history to make later choices. Rewards lie in [0, 1]. Let µᵢ be the mean reward of arm i.

The best mean is defined by:

```
µ* = maxᵢ µᵢ
```

Here µ* denotes the largest expected reward available, and the maximum ranges over the arms. The algorithm does not know these means.

The gap associated with an arm is:

```
∆ᵢ = µ* − µᵢ
```

The quantity ∆ᵢ is the expected loss from choosing arm i rather than an optimal arm on a particular decision. An optimal arm has no such expected loss. Arms whose means are close to the optimum have small gaps and are harder to distinguish reliably.

The paper writes expected regret through the expected rewards of selected arms:

```
E[R(T)] = E[Σₜ₌₁ᵀ (µ* − µᵢ₍ₜ₎)]
```

T is the horizon, R(T) is cumulative regret, and i(t) is the arm selected at time t. E denotes expectation. The expression adds the mean reward lost at every decision.

Grouping these losses by arm makes the analysis depend on selection counts. Each time a suboptimal arm is chosen, its gap contributes to expected regret. Accordingly, bounding how frequently inferior arms are selected is enough to control the objective.

#### Maintaining beta distributions

For Bernoulli rewards, an arm produces either success or failure. Its mean is its success probability. The algorithm maintains a success count Sᵢ and a failure count Fᵢ for each arm.

The beta family is convenient because a Bernoulli observation changes its parameters by a simple count update. Its density is:

```
f(x; α, β) = Γ(α + β) x^(α − 1) (1 − x)^(β − 1) / (Γ(α)Γ(β))
```

The variable x lies in (0, 1). The positive parameters α and β determine the distribution’s shape, and Γ is the gamma function appearing in its normalization. This density describes uncertainty about a probability, instead of the distribution of the binary reward itself.

The beta mean is:

```
E[x] = α / (α + β)
```

The numerator α is the success-side parameter, while α + β combines both parameters. Their relative sizes determine the center. The accumulated evidence represented by them also controls concentration.

Every arm begins with Beta(1, 1), which is uniform on (0, 1). The algorithm therefore starts without favoring any region of possible success probabilities for any particular arm.

After observations, the distribution used for arm i is:

```
µᵢ ~ Beta(Sᵢ + 1, Fᵢ + 1)
```

This notation describes the algorithm’s posterior representation of µᵢ. Sᵢ counts observed successes and Fᵢ counts observed failures. The added 1 in each parameter comes from the specified initialization.

A success increments Sᵢ. A failure increments Fᵢ. Only the selected arm receives a new observation, so the other arms’ counts remain unchanged.

#### Drawing a decision

At each time, the procedure samples a candidate mean for every arm:

```
θᵢ(t) ~ Beta(Sᵢ + 1, Fᵢ + 1)
```

The random variable θᵢ(t) is a fresh draw for arm i at time t. It is not a newly observed reward. It is a sampled value used to decide which arm to play.

The selection rule is:

```
i(t) = arg maxᵢ θᵢ(t)
```

The expression arg max returns the arm associated with the largest draw. Drawing jointly and selecting the winner implements probability matching: the chance of selecting an arm equals its posterior probability of having the largest mean.

An arm with many observations generally has a concentrated distribution. An uncertain arm has more room to generate a high sample and win. Exploration therefore emerges from the distribution of plausible values, without adding an explicit deterministic optimism bonus.

Thompson sampling with bounded rewards The steps in order.

For rewards that are already Bernoulli, the conversion step simply uses the observed success or failure. For general bounded rewards, the authors introduce an additional randomized operation.

#### Extending the observation interface

Suppose the observed reward is r̃ₜ, a real value in [0, 1]. The generalized algorithm generates a Bernoulli outcome rₜ whose success probability is r̃ₜ. The resulting binary outcome updates the same success and failure counts.

The key calculation is:

```
Pr(rₜ = 1 | arm i is selected) = ∫₀¹ r̃ fᵢ(r̃) dr̃ = µᵢ
```

The function fᵢ denotes the arm’s reward density in the authors’ expression. The integration averages the auxiliary success probability r̃ over possible observed rewards. Its value is the original arm mean µᵢ.

This preserves what matters for the Bernoulli analysis: the probability of a success from an arm. The count process therefore has the same behavior as a Bernoulli bandit with the corresponding means.

The reward used in the regret objective remains the original bounded reward. The auxiliary binary observation is an internal update mechanism. This distinction matters because the method is a particular adaptation of Thompson sampling to general rewards; the theorem does not automatically cover every conceivable posterior update for bounded observations.

The conversion also makes the proof modular. Once the authors establish that the binary count process matches the Bernoulli setting, they can restrict subsequent arguments to Bernoulli rewards without narrowing the stated reward support of the generalized algorithm.

#### Why the proof follows the best arm

An intuitive but incomplete argument would say that an inferior arm stops being troublesome once enough observations reveal its true quality. The authors show why this is insufficient for Thompson sampling.

Even if an inferior arm is well understood, the optimal arm may remain poorly sampled. Its distribution can still produce low draws with substantial probability. The algorithm can therefore continue choosing the inferior arm because of uncertainty or discouraging evidence about the best arm.

The paper illustrates the issue with an optimal arm that has never been played. Its sample remains uniform. A well-estimated inferior arm can still beat it with appreciable probability. Concentration of the inferior arm alone does not force the optimal arm to win almost every comparison.

The analysis consequently tracks how many observations the optimal arm has received and how favorable those observations were. Between successive plays of that arm, its posterior parameters stay fixed. Fresh draws from the unchanged distribution provide a tractable description of how long the algorithm waits before returning to it.

#### The two-arm threshold

For the two-arm analysis, arm 1 is optimal and arm 2 is inferior. Their mean difference is ∆. The proof first allows arm 2 a sufficient amount of exploration:

```
L = 24(ln T) / ∆²
```

L is an analysis threshold for the number of selections of arm 2. It depends on the horizon T and the unknown gap ∆. The algorithm itself does not calculate or use this threshold.

Before arm 2 reaches this level of sampling, its regret contribution is bounded by counting its selections and charging ∆ for each. Afterwards, concentration arguments show that its beta draws are unlikely to rise far above its true mean.

The comparison threshold used for the optimal arm is:

```
y = µ₂ + ∆/2
```

The value y lies between the arm means. If the optimal arm’s draw exceeds y while the inferior arm’s draw stays below y, the optimal arm wins.

The analysis then separates ordinary waiting from exceptional events in which arm 2 produces an unusually large sample in spite of having enough observations. This decomposition avoids demanding that every posterior draw behave typically.

#### Geometric waiting times

Let j be the number of previous plays of the optimal arm, and let s be the successes among them. During the interval before its next play, its draws come from Beta(s + 1, j − s + 1).

Define X(j, s, y) as the number of unsuccessful draws before one exceeds y. Since the posterior does not change during this waiting period, the successive draws are independent with the same success probability.

Its expectation is:

```
E[X(j, s, y)] = 1 / Pr(θ₁ > y) − 1
```

The probability in the denominator is the chance that a draw from the fixed optimal-arm posterior crosses the threshold. The subtraction reflects the convention that X counts failures before the successful draw.

This construction turns a complicated adaptive process into a simpler waiting-time calculation, conditional on the current success count. The remaining challenge is that s itself is random.

The paper does not replace s by its average and proceed. It averages over its binomial distribution. That step captures the possibility that the optimal arm has accumulated an unusually discouraging record.

#### The beta–binomial bridge

A distribution identity makes the waiting-time expression easier to analyze:

```
Fᵝᵉᵗᵃ₍α,β₎(y) = 1 − Fᴮ₍α+β−1,y₎(α − 1)
```

Fᵝᵉᵗᵃ is a beta cumulative distribution function. Fᴮ is a binomial cumulative distribution function. The identity applies to positive integer parameters α and β.

The left side is the probability that a beta draw is at most y. The binomial expression describes the complementary probability through a count of successes. Appendix B explains the connection using ordered uniform draws: the location of an ordered value corresponds to how many of the draws lie below a threshold.

Applying the identity yields:

```
E[X(j, s, y)] = 1 / Fᴮ₍j+1,y₎(s) − 1
```

The denominator is a binomial cumulative probability evaluated at s. This is useful because the proof can now compare the distribution of observed successes from the optimal arm with binomial probabilities associated with the lower threshold y.

#### Sparse and abundant evidence require different arguments

When j is large, concentration controls both the empirical success rate of arm 1 and the beta distribution around it. The observed rate is likely to remain close to µ₁, and a posterior draw is likely to remain above a threshold strictly below µ₁.

The paper uses Chernoff–Hoeffding inequalities for these steps. One stated form is:

```
Pr(Sₙ ≥ nµ + a) ≤ e^(−2a²/n)
```

Here Sₙ is a sum of n bounded observations, µ is their common conditional mean in the stated assumptions, and a is a non-negative deviation. The corresponding lower-tail inequality controls deviations below the mean.

When j is small, the proof cannot rely on strong concentration. A disappointing record can still have substantial probability, and the resulting waiting time may be long. The authors instead compare binomial probability terms directly.

Their divergence quantity is:

```
D = y ln(y/µ₁) + (1 − y) ln((1 − y)/(1 − µ₁))
```

D measures the separation between Bernoulli probabilities y and µ₁ in the orientation written in the paper. It appears in an exponentially decreasing factor that controls contributions from unfavorable success counts.

The analysis also uses a ratio:

```
R = µ₁(1 − y) / (y(1 − µ₁))
```

R compares the corresponding odds. Together, this ratio, the divergence, and binomial median facts let the authors bound the low-evidence regime instead of assuming it away.

The eventual two-arm result comes from summing these waiting-time contributions, adding the initial exploration cost, and bounding the rare concentration failures.

#### More arms introduce interruptions

With many arms, the proof classifies each suboptimal arm according to whether it has enough observations:

```
Lₐ = 24(ln T) / ∆ₐ²
```

Arm a is saturated once its previous selection count reaches Lₐ. Otherwise it is unsaturated. These are proof categories, not labels maintained by the algorithm.

Saturated arms have beta draws that are tightly concentrated around their means with high probability. Unsaturated arms still account for a bounded amount of unfinished exploration because each becomes saturated after enough selections.

The complication is competition. The optimal arm can draw a value sufficient to beat every saturated arm and still lose to an unsaturated arm. Such a selection interrupts the waiting-time argument.

The authors define the event:

```
M(t): θ₁(t) > maxₐ∈C(t) (µₐ + ∆ₐ/2)
```

C(t) is the saturated set at time t. The event says that the optimal arm’s sample exceeds all the comparison thresholds associated with that set. When the set is empty, the proof treats the event as holding automatically.

Between successive plays of the optimal arm, occurrences of M(t) divide time into subintervals. The count γⱼ records how frequently the event occurs without the optimal arm being played during the interval under consideration.

Such an occurrence must be explained by an unsaturated competitor or by an exceptional draw from a saturated arm. The total number of unsaturated selections is bounded by the sum of the saturation thresholds. Rare saturated-arm deviations receive separate probability bounds.

#### Dependencies cannot be ignored

The number of interruptions and the lengths of the waiting intervals are not generally independent. Both depend on the evolving selection history.

Lemma 5 handles this through conditional expectations. The proof conditions on the optimal arm’s success count and on the history before a subinterval begins. Under that conditioning, a subinterval’s length can be dominated by a geometric waiting variable.

This is a crucial distinction between a valid adaptive-process argument and an informal multiplication of averages. The proof needs to establish when a waiting-time bound remains applicable after the preceding decisions have been observed.

The authors then combine the bounded interruption budget with bounds on potentially unfavorable waiting times. Their worst-case treatment of where interruptions occur is a principal source of the loose gap dependence in the final many-arm theorem.

The proof is therefore more than a repeated comparison between the best arm and each competitor separately. Other arms affect when those comparisons occur and how much evidence the optimal arm has acquired. The analysis must keep that shared history in view.

### Experiments and results

#### The results are mathematical guarantees

The paper presents no new dataset, experimental split, simulation study, or empirical comparison table. Its results are finite-time expected-regret bounds derived under the stochastic assumptions. Earlier experimental findings are discussed as motivation and context, without becoming measurements produced by this analysis.

The relevant metric is expected cumulative regret. The principal comparison concerns how its upper bound depends on the horizon, the number of arms, and the reward gaps. These are different dimensions of the result and should not be collapsed into a single ranking.

For two arms, Theorem 1 states:

```
E[R(T)] = O((ln T)/∆ + 1/∆³)
```

T is the number of decisions and ∆ is the positive difference between the optimal and inferior arm means. The notation O hides multiplicative constants. The logarithmic term controls growth with the horizon, while the inverse-gap term can be substantial when the arms are close.

The proof gives an explicit bound:

```
E[R(T)] ≤ (40 ln T)/∆ + 48/∆³ + 18∆
```

The coefficients 40, 48, and 18 belong to this proved inequality. They are not measurements from a bandit experiment. The expression shows both the desired horizon dependence and a potentially large gap-dependent contribution.

The paper’s intermediate selection-count bound is:

```
E[k₂(T)] ≤ (40 ln T)/∆² + 48/∆⁴ + 18
```

Here k₂ denotes the count associated with selections of the inferior arm in the paper’s notation. Multiplying its contributions by the arm gap produces the regret guarantee.

This distinction explains why a selection-count exponent and a regret exponent need not be identical. Counting inferior choices and measuring their expected cost are connected, but they are different quantities.

#### The general guarantee

Theorem 2 gives:

```
E[R(T)] ≤ O((Σₐ₌₂ᴺ 1/∆ₐ²)² ln T)
```

The sum ranges over suboptimal arms after identifying arm 1 as optimal. N is the number of arms, and ∆ₐ is each arm’s gap.

The bound is logarithmic in T for a fixed bandit instance with positive suboptimality gaps. Its weakness is the squared sum of inverse squared gaps. The authors describe the general gap exponent as effectively 4, compared with 1 in the UCB1 guarantee they discuss.

Gap exponents described for general-arm regret bounds The Thompson sampling proof gives weaker gap dependence than the UCB1 comparison.

**The numbers**

| System or setting | gap exponent in the discussed bound |
| --- | --- |
| UCB1 | 1 |
| Thompson sampling, general-arm analysis (this paper) | 4 |

This chart compares features of theoretical bounds, not observed regret. The star identifies the method analyzed by the paper. A weaker bound does not demonstrate worse empirical behavior; it means that this proof supplies a less favorable guarantee along that dimension.

Remark 1 offers another form:

```
E[R(T)] ≤ O((∆max/∆min³)(Σₐ₌₂ᴺ 1/∆ₐ²) ln T)
```

∆min is the smallest suboptimality gap and ∆max is the largest. The authors describe this alternative as improving dependence on the number of arms while worsening dependence on the gaps.

The existence of these alternatives matters. There is no universally strongest expression obtained simply by reading off the logarithmic factor. Which upper bound is more informative depends on the configuration of arm means.

#### Comparison with earlier guarantees

The paper reproduces an asymptotic lower bound from Lai and Robbins, expressed through reward gaps and KL divergence. It also discusses their asymptotically achieving procedures, while noting an efficiency drawback.

For UCB1, the paper gives:

```
E[R(T)] ≤ 8(Σᵢ₌₂ᴺ 1/∆ᵢ) ln T + (1 + π²/3)Σᵢ₌₂ᴺ ∆ᵢ
```

The first sum describes the gap dependence of the logarithmic component. The second is an additive contribution. π is the mathematical constant in the stated bound.

The comparison establishes a limited but meaningful conclusion. Thompson sampling receives the same logarithmic order in the horizon, while the general theorem remains weaker in other respects. For two arms, the authors characterize the comparison as substantially closer.

They also discuss Bayes-UCB, whose confidence values are obtained from beta posterior quantiles. In their account, it combines aspects of posterior reasoning with a confidence-bound selection rule and has guarantees near the lower bound for Bernoulli rewards.

None of these comparisons is a new head-to-head experiment. They locate the contribution among existing analyses. The paper supplies theoretical support for a method already reported to work well, while leaving a gap between its demonstrated behavior and the sharpness of its guarantee.

### What the ablations show

The paper contains no experimental ablations; its informative controlled comparisons are changes in analytical setting, proof decomposition, and alternative bounding arguments.

#### Two arms isolate the waiting-time problem

The two-arm setting removes competition from additional exploratory alternatives. Once the inferior arm is well sampled, the main issue is how long the algorithm waits for a sufficiently favorable draw from the optimal arm.

This analysis identifies a difficulty specific to the randomized rule. A well-understood competitor does not automatically force selection of a poorly sampled optimal arm. The optimal arm’s own observation history remains central.

The comparison with the general setting shows what additional arms change. They introduce interruptions by arms that are still collecting evidence. The proof cannot simply add independent copies of the two-arm argument, because all competitors share the same history of selections of the optimal arm.

#### The reward conversion isolates a sufficient property

The Bernoulli and general bounded-reward algorithms differ in how observations become count updates. Their analytical connection depends on preserving the arm mean through the auxiliary trial.

This is a reduction, rather than an experimental comparison. It shows why the Bernoulli proof applies to the specified generalized procedure. It does not show that converting rewards to binary observations is empirically preferable to retaining more information.

The distinction is useful because the authors claim a general reward-support result without analyzing arbitrary reward-specific posterior families. The adapter provides exactly the bridge their proof needs.

#### Low-evidence analysis prevents a hidden assumption

Lemma 3 separates cases where the optimal arm has many observations from cases where it has few. The large-sample case is controlled through concentration. The sparse case needs explicit probability comparisons.

This division reveals why a proof based only on eventual concentration would be incomplete. An algorithm’s cumulative regret can depend heavily on what happens before concentration becomes reliable.

The paper’s detailed low-evidence argument is consequently part of its substantive contribution. It accounts for unlucky early histories rather than treating them as negligible without a bound.

#### Alternative bounds reveal the price of simplification

The main many-arm analysis tracks which saturated arm has the largest mean during relevant portions of an interval. This permits regret to be charged according to a more local comparison.

The alternative argument in Remark 1 uses the largest gap to bound the cost of saturated-arm selections and relates waiting to the strongest suboptimal competitor. This changes how arm-count and gap dependence appear.

Neither expression comes from altering the algorithm. The comparison shows that different ways of accounting for the same process produce different guarantees. Analytical convenience can move the weakness from one parameter to another.

#### Conditional bounds support adaptive reasoning

Lemma 4 includes a concentration statement conditioned on the optimal arm’s success count. Appendix C.5 then uses conditioning on history to handle subinterval lengths.

These stronger statements are not cosmetic. The relevant quantities are chosen within an adaptive process. A probability bound that holds without conditioning may not be sufficient at the point where the proof needs to combine events.

The analysis therefore illustrates a general lesson about sequential systems: a guarantee must survive the information already used to choose the next action. Its usefulness depends on where it can be applied, not solely on how small its numerical bound appears.

### Limitations

#### Limits the authors explicitly identify

The authors acknowledge that their guarantee is not fully optimal. Its logarithmic horizon dependence matches the desired order, but its constants and reward-gap dependence leave room for improvement. The general many-arm result is particularly loose relative to the UCB1 comparison.

They distinguish improvements that might follow from more careful algebra from improvements that would require a stronger argument. Sharpening constants appears more accessible in their discussion. Reducing the unfavorable gap dependence is presented as harder.

Their explanation points to worst-case interruption allocation. Unsaturated arms have a bounded total exploration budget, but the proof allows those interruptions to fall in especially unfavorable places. This conservative step enlarges the regret guarantee.

Delayed and batched feedback remain outside the established theorem. The authors discuss favorable earlier empirical behavior under those conditions, but explicitly present a theoretical explanation as future work. Their analyzed setting observes the reward immediately after an arm is played.

Contextual bandits, prior mismatch, and posterior reshaping are also identified as extensions to investigate. The Conclusion further notes that richer multiparameter applications, including regularized logistic regression, lack the theoretical analysis being sought.

The paper does not claim that its guarantee proves Thompson sampling superior to other methods. In the delayed-feedback discussion, the authors note that such a comparison would require a tighter Thompson sampling analysis and suitable lower bounds for alternatives.

#### Limits implied by the setup

The reward distributions are fixed. If an action changes quality over time, then the central stationary assumption fails. The theorem supplies no stated protection against this kind of change.

Rewards from repeated plays are independent and identically distributed within an arm, and the reward processes of different arms are independent. Correlated outcomes or feedback effects between actions require additional analysis.

The action set is finite and described through N arms. The paper’s algorithm samples one value for every arm at each decision. The result does not establish a general mechanism for selecting among an unrestricted space of structured actions.

Reward support is bounded by [0, 1]. The generalized procedure relies directly on that interval because the observed reward becomes a Bernoulli success probability. Unbounded rewards do not fit this adapter as stated.

The objective is cumulative expected regret. The authors explicitly set aside PAC-style performance measures. A logarithmic expected-regret theorem should therefore not be read as a guarantee about a fixed identification deadline, a particular confidence level for the final choice, or every realized run.

Expectation is itself a limitation when interpreting practical risk. A bound on average cumulative loss does not specify how regret is distributed across runs. The paper controls certain bad events as part of its proof, but the headline theorem is an expected-regret result.

#### Limits of the general-reward adaptation

Mean preservation is enough to transfer the Bernoulli analysis for the stated objective. It does not imply preservation of all information in the original reward.

The auxiliary trial replaces a real-valued observation with a binary update. A careful reader should distinguish the original reward process from the internal evidence used by the algorithm. The theorem concerns this specified procedure.

The result therefore does not justify every approach that uses beta distributions with bounded rewards. Different updates can create different stochastic processes. They require their own argument or a demonstrated equivalence.

Similarly, the use of Beta(1, 1) is part of the analyzed design. The paper’s broader discussion of prior mismatch does not establish the same theorem for arbitrary initialization choices.

#### Limits of the empirical interpretation

There are no newly reported empirical regret curves or application measurements. The paper cannot support numerical claims about runtime, practical regret reduction, or superiority on a particular dataset.

Its discussion of earlier studies is valuable context, but those studies and this proof answer different questions. Strong observed behavior motivates analysis; a logarithmic bound explains one aspect of long-run behavior under specified assumptions.

The unfavorable exponent in the general theorem also does not measure the algorithm’s actual sensitivity in an experiment. It identifies the strength of the available guarantee. Treating proof looseness as measured weakness would misread the contribution.

Conversely, logarithmic dependence should not be turned into an unrestricted claim of efficiency. Large gap-dependent factors can make a theorem uninformative for particular horizons and closely matched arms. The paper establishes an important order of growth while openly leaving sharper characterization unfinished.

#### Limits concerning optimal-arm multiplicity

The main presentation assumes a unique optimal arm and labels it arm 1. The authors regard the labeling as a convenience and address multiple optimal arms in Appendix A.

Their argument compares adding an optimal arm with removing the regret-free times at which it is selected. This is the paper’s justification for reducing attention to a unique optimum.

For a reader applying the theorem, the useful conclusion is narrow: the analysis treats positive gaps for suboptimal arms and provides its own discussion of tied optimal arms. It should not be generalized into a claim that arbitrary changes to an action set can only help. Adding inferior alternatives introduces further exploration, and the main many-arm proof is specifically concerned with that competition.

### What came after

The later citation trail connects this analysis with work on uncertainty in neural networks and with language-related applications of bandit selection. The available bibliographic information identifies the works and their citation relationship, but does not describe their methods, experiments, or the exact role of this theorem. Those details cannot be inferred from the citations alone.

[Weight Uncertainty in Neural Networks](https://md.research.elamur.ai/free/en/papers/blundell-2015-weight-uncertainty-neural-networks/) appeared in 2015 and cites Agrawal and Goyal. Its title places uncertainty at the center of its subject. That makes the connection to a sampling-based decision rule worth investigating, but the citation alone does not establish how the later work uses Thompson sampling or whether it relies on these regret bounds. No transfer of the theorem to neural-network parameters is demonstrated by the information available here.

[LLM Prompt Duel Optimizer: Efficient Label-Free Prompt Optimization](https://md.research.elamur.ai/free/en/papers/wu-2026-llm-prompt-duel-optimizer-efficient/) is a 2026 citing work concerned, by its title, with selecting prompts through a label-free optimization procedure. It belongs to a different application setting from fixed stochastic arms with immediately observed bounded rewards. Establishing the relationship would require examining how it defines alternatives, obtains feedback, and interprets uncertainty. Its citation does not by itself show that those conditions match the theorem.

[MAB-DQA: Addressing Query Aspect Importance in Document Question Answering with Multi-Armed Bandits](https://md.research.elamur.ai/free/en/papers/xiang-2026-mab-dqa-addressing-query-aspect/) also appeared in 2026. Its title explicitly connects multi-armed bandits with [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), specifically the importance of query aspects in document questions. The bibliographic record establishes that application direction and the citation. It does not establish its reward definition, selection rule, experimental outcome, or use of the proof’s technical machinery.

These references show that the paper remained relevant beyond its original theoretical setting. They do not support a claim that every later uncertainty-based selector inherits its guarantee. The lasting methodological contribution is more precise: randomized selection can be analyzed through posterior concentration, recovery waiting times, and competition from unfinished exploration. Applying that contribution elsewhere requires stating which parts of the original stochastic assumptions remain valid and which parts demand a new argument.

## Cite

Cite as Shipra Agrawal and Navin Goyal. 2011. Analysis of Thompson Sampling for the multi-armed bandit problem. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1111.1797](https://doi.org/10.48550/arxiv.1111.1797) · [arXiv 1111.1797](https://arxiv.org/abs/1111.1797)

```bibtex
@misc{agrawal2011analysis,
  title = {{Analysis of Thompson Sampling for the multi-armed bandit problem}},
  author = {Shipra Agrawal and Navin Goyal},
  year = {2011},
  doi = {10.48550/arxiv.1111.1797},
  eprint = {1111.1797},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1111.1797}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
