betaFeedback

WorksComputer Science

Optimal Online Regret for Context-Lumpable Bandits

Abstract

We study stochastic contextual bandits with an unknown context-lumpable structure. The SS contexts are partitioned into rr blocks, and every arm has the same mean reward across contexts in the same block. Under arbitrary context distributions and without separation assumptions, we design an algorithm with expected regret O~(r(S+K)T)\widetilde{O}(\sqrt{r(S+K)T}), matching the lower bound of Lee et al. (2023) up to logarithmic factors and improving their previous upper bound by a factor of rr. The algorithm operates over dyadic accuracy levels, using a baseline policy and confidence-based early stopping to control exploration. It then performs cross-context elimination: since rewards are identical within a block, one selected arm eliminates all surviving records from that block, requiring at most rr selections at each level. Multi-scale exploration assigns finer accuracies to frequent blocks and coarser accuracies to rare blocks, yielding a near-optimal arm for every block while keeping the weighted policy error small.

Introduction

In contextual bandits, the learner observes a context, selects an arm, and receives feedback only for that arm. In recommendation, for example, feedback is observed only for displayed items (Li et al. 2010). Sharing observations across contexts can reduce learning cost, but the relation between their rewards may be unknown.

In context-lumpable stochastic bandits [11], SS contexts form r≤min⁡{S,K}r \le\min\{S,K\} unknown blocks. Each of the KK arms has the same mean reward within a block. Observations can thus be shared within blocks, but the learner sees context identities without their block assignments. It must find useful arms and learn where they perform well from bandit feedback. Running a separate bandit for each context gives expected regret O~(SKT)\widetilde{O}(\sqrt{SKT}) over TT rounds [10], which can be wasteful when rr is small. Yet exploration across contexts incurs regret: an informative arm may be poor where it is sampled. Finding a good policy and minimizing regret are therefore distinct challenges. Lee et al. [11] established nearly optimal sample complexity for finding a near-optimal policy of O~(r(S+K)ϵ2)\widetilde{O}\left(\frac{r(S+K)}{\epsilon^2}\right), while a sub-optimal regret bound of O~(r3(S+K)T)\widetilde{O}\left(\sqrt{r^3(S+K)T}\right). Their regret algorithm refines a context partition while eliminating arms; ensuring that refinements do not split a true block incurs an extra factor of rr. They left O~(r(S+K)T)\widetilde{O}\left(\sqrt{r(S+K)T}\right) regret open. We attain this rate by controlling exploration during candidate-arm selection, without recovering the partition.

Our Results

For every context distribution ν\nu and its induced block distribution ω\omega, our algorithm achieves expected regret

Reg⁡T=O~(r(S+K)T),\operatorname{Reg}_{T}=\widetilde{O}\left(\sqrt{r(S+K)T}\right),

where O~(⋅)\widetilde{O}(\cdot) hides polylogarithmic factors in SS, KK, rr, and TT. For a known horizon, this guarantee is achieved by Algorithm 4; a standard doubling restart gives the same order without knowing TT. This rate matches the Ω(r(S+K)T)\Omega\left(\sqrt{r(S+K)T}\right) lower bound of Lee et al. [11] up to logarithmic factors. It improves their online upper bound O~(r3(S+K)T)\widetilde{O}\left(\sqrt{r^{3}(S+K)T}\right) to O~(r(S+K)T)\widetilde{O}\left(\sqrt{r(S+K)T}\right), removing an additional factor of rr. The guarantee holds for arbitrary block and context distributions and does not require any separation between the reward vectors of different blocks. Conceptually, the algorithm exploits the equality of mean rewards within each block without first recovering the unknown context partition: it constructs a shared set of candidate arms that contains a sufficiently good arm for every block and then selects among these candidates separately at each context.

The first technical ingredient is a phased exploration procedure with geometrically decreasing accuracy levels. In phase hh, the algorithm targets accuracy εh\varepsilon_h and first estimates the preceding policy πh−1\pi_{h-1} at every context, obtaining a context-wise baseline Bh(i)B_h(i). It then runs the Collect procedure at levels εn=2−n/2\varepsilon_n=2^{-n/2} for n=0,…,hn=0,\ldots,h. At level nn, each context receives qh,n≍rKεn/(Sεh)q_{h,n}\asymp rK\varepsilon_n/(S\varepsilon_h) random arm assignments, and each assignment is sampled up to mh,n≍1/εn2m_{h,n}\asymp1/\varepsilon_n^2 times. Sampling stops as soon as the arm’s upper confidence bound falls below the baseline by a margin of order εn\varepsilon_n. On the joint concentration event, every arm stopped in this way is worse than the preceding policy by a constant multiple of εn\varepsilon_n, whereas every arm that completes its budget has an εn\varepsilon_n-accurate estimate. Thus, the algorithm avoids repeatedly paying for assignments that have already been certified to be harmful, while the multiple accuracy levels allow it to search for good arms at a scale adapted to the frequency of each block.

The second ingredient is a multi-scale, cross-context elimination rule. At each level, the algorithm selects the surviving context-arm record with the largest estimated reward, evaluates the selected arm across all contexts, and removes every record for which the selected arm or the preceding policy is sufficiently better. Since all contexts in the selected arm’s true block have the same mean reward, one selection removes all remaining records from that block; consequently, at most rr selections are needed at any level, even though the block partition is never identified. In the uniform-context analysis, define

εh,b=max⁡{1,1rω(b)}εh.\varepsilon_{h,b}=\max\left\{1,\frac{1}{r\omega(b)}\right\}\varepsilon_h.

For every block with εh,b≤1\varepsilon_{h,b}\leq1, the assignment budget ensures that its optimal arm is represented at some level satisfying εh,b≤εn<2 εh,b\varepsilon_{h,b} \le\varepsilon_n < \sqrt{2}\,\varepsilon_{h,b}. The elimination step then leaves the candidate set with an arm whose gap on block bb is O(εh,b)O(\varepsilon_{h,b}). The final finest-scale update, which retains πh−1\pi_{h-1} as a fallback, therefore satisfies

max⁡j∈[K]A(i,j)−A(i,πh(i))≤min⁡{1,10εh,b},i∈B(b).\max_{j\in[K]} A(i,j)-A(i,\pi_h(i)) \le\min\{1,10\varepsilon_{h,b}\}, \qquad i\in B(b).

Although small blocks are learned only at coarser accuracy, their errors are weighted by their smaller arrival probabilities:

∑b=1rω(b)εh,b=εh∑b=1rmax⁡{ω(b),1r}≤2εh.\sum_{b=1}^{r}\omega(b)\varepsilon_{h,b}=\varepsilon_h\sum_{b=1}^{r}\max\left\{\omega(b),\frac{1}{r}\right\}\le2\varepsilon_h.

Hence the phase policy has average gap O(εh)O(\varepsilon_h), while early stopping and the at most rr eliminations per level keep the exploration cost at O~(r(S+K)/εh)\widetilde{O}(r(S+K)/\varepsilon_h). Balancing this cost with phases of length O~(r(S+K)/εh2)\widetilde{O}(r(S+K)/\varepsilon_h^2) and summing over the geometric sequence of phases yields the stated regret bound. For an arbitrary context distribution, Algorithm 4 first groups contexts with comparable estimated arrival probabilities, applies the same procedure separately within each approximately uniform group, discards only a low-frequency set of small total probability mass, and combines the group guarantees by Cauchy–Schwarz inequality.

Related Work

Contextual and latent bandits. Linear contextual bandits share reward parameters through known features [1], whereas Maillard and Mannor (2014) studied latent bandits with clustered rewards. Online clustering for linear bandits has been studied under parameter separation [2] and with item-dependent groups [3]. Kausik et al. [9] learned a shared reward-parameter subspace from offline data for online linear latent contextual bandits. We assume neither such features nor offline data.

Bandits with identical reward vectors. Pal et al. (2023) combined clustering and matrix completion for identical within-cluster reward vectors under a uniform context distribution. Their near-optimal regret guarantee assumes incoherence, bounded condition number, and a column-subset condition; their main presentation treats the number of clusters and their size ratio as constants. Lee et al. [11] studied context lumpability without these matrix conditions. We follow this setting, with explicit dependence on the number of blocks and arbitrary block and context distributions.

Low-rank bandits. A reward matrix with at most rr distinct rows has rank at most rr, so context lumpability is a special case of low-rank structure. Jun et al. [6] studied bilinear bandits with known features. Lu et al. (2021) and Kang et al. [7] considered low-rank generalized linear bandits, where actions have known matrix features and the unknown parameter is low-rank. For linear rewards, Jang et al. [4] used experimental design to obtain regret bounds that depend on the geometry of the arm set. Other work addresses heavy-tailed rewards [8] and minimax lower bounds for low-rank matrix parameters (Zeng and Honorio 2025).

For low-rank reward matrices, Stojanovic et al. (2023) combined spectral estimation with arm elimination when the learner can choose any matrix entry. Closer to our setting, Jedra et al. [5] studied randomly arriving contexts using singular-subspace estimation and a reduction to misspecified linear bandits. Our analysis instead exploits equality of mean rewards within each block, a stronger assumption than low rank alone, without estimating a factorization or singular subspaces.

Notation and problem formulation

Write [n]={1,…,n}[n] = \{1, \ldots, n\}, and take all logarithms to be natural. A context-lumpable bandit (Lee et al. [11]) has SS contexts, KK arms, and rr nonempty blocks, where 1≤r≤min⁡{S,K}1 \le r \le\min\{S, K\}. An unknown map g:[S]→[r]g : [S] \to[r] defines the blocks B(b)={i∈[S]:g(i)=b}\mathcal{B}(b) = \{i \in[S] : g(i) = b\}. For an unknown μ:[r]×[K]→R\mu: [r] \times[K] \to\mathbb{R}, the mean reward matrix satisfies

A(i,j)=μ(g(i),j),(i,j)∈[S]×[K].A(i,j) = \mu(g(i),j), \qquad(i,j) \in[S] \times[K].

The learner knows SS, KK, rr, but not gg or AA. No positive separation between the mean-reward vectors of distinct blocks is assumed.

At round tt, a context iti_t is drawn from an unknown, fixed context distribution ν\nu on [S][S], independently of the preceding history. The learner observes iti_t, chooses jt∈[K]j_t \in[K], and receives yt=A(it,jt)+ηty_t = A(i_t,j_t) + \eta_t. We assume, almost surely,

E[ηt∣i1,j1,y1,…,it,jt]=0,E[eληt∣i1,j1,y1,…,it,jt]≤eλ2/2(λ∈R).(1)\begin{aligned} \mathbb{E}[\eta_t \mid i_1,j_1,y_1,\ldots,i_t,j_t] &= 0,\\ \mathbb{E}[e^{\lambda\eta_t} \mid i_1,j_1,y_1,\ldots,i_t,j_t] &\le e^{\lambda^2/2} \qquad(\lambda\in\mathbb{R}). \tag*{(1)} \end{aligned}

Here and below, conditioning also includes the learner’s randomness revealed before the current reward. Thus, ηt\eta_t is conditionally 1-sub-Gaussian given the information available immediately before yty_t. The mean rewards have unit span:

max⁡j∈[K]A(i,j)−min⁡j∈[K]A(i,j)≤1,i∈[S].(2)\max_{j \in[K]} A(i,j) - \min_{j \in[K]} A(i,j) \le1, \qquad i \in[S]. \tag*{(2)}

Consequently, every play incurs at most one unit of regret, including rounds used only for initial exploration.

The block distribution is given by ω(b)=∑i∈B(b)ν(i)\omega(b) = \sum_{i \in\mathcal{B}(b)} \nu(i); it is unknown to the learner. Under a uniform context distribution, ω(b)=∣B(b)∣/S\omega(b) = |\mathcal{B}(b)|/S. We impose no restriction on the block distribution.

The arrival probability ν(i)\nu(i) controls how often an arm can be tested at context ii, whereas ω(b)\omega(b) controls how often a choice on block bb affects expected regret. Under a uniform context distribution, a smaller block offers fewer opportunities to find a good arm, but choosing a suboptimal arm there also has less influence on regret. This balance motivates the use of multiple sampling accuracies below.

A policy is a map π:[S]→[K]\pi:[S]\to[K]. For each block bb, fix jb⋆∈arg⁡max⁡j∈[K]μ(b,j)j_b^\star\in\arg\max_{j\in[K]}\mu(b,j). The expected regret over T≥1T\ge1 rounds is

Reg⁡T=E[∑t=1T(max⁡j∈[K]A(it,j)−A(it,jt))]\operatorname{Reg}_T=\mathbb{E}\left[\sum_{t=1}^{T}\left(\max_{j\in[K]}A(i_t,j)-A(i_t,j_t)\right)\right]

The expectation includes contexts, rewards, and the learner’s randomness. The notation O~(⋅)\widetilde{O}(\cdot) hides universal constants and factors polylogarithmic in S,K,r,TS,K,r,T. Algorithm 1 does not require TT; Algorithm 4 uses TT, while Theorem 2 also gives a horizon-free version.

Regret under a Uniform Context Distribution

Online Algorithm

We now describe our algorithm in detail. As shown in Algorithm 1, it proceeds in phases indexed by dyadic precision levels. Each phase consists of the following four steps.

Parameter settings. Set εn=2−n/2\varepsilon_n=2^{-n/2} for n≥0n\ge0. In phase h≥1h\ge1, we use βh=20log⁡(16SKr2h)\beta_h=20\log(16SKr2^h), assignment counts qh,n=⌈βhrKεnSεh⌉q_{h,n}=\left\lceil\frac{\beta_h rK\varepsilon_n}{S\varepsilon_h}\right\rceil and sample budgets mh,n=⌈8βhεn2⌉m_{h,n}=\left\lceil\frac{8\beta_h}{\varepsilon_n^2}\right\rceil for n∈{0,…,h}n\in\{0,\ldots,h\}, and Lh(k)=⌈128S(k+βh)⌉L_h(k)=\lceil128S(k+\beta_h)\rceil. Write mh=mh,hm_h=m_{h,h} for the finest-level sample budget.

Step 1. We first estimate the mean reward of the preceding policy at each context using Baseline. These estimates provide a reference for Collect to stop sampling an arm when its reward is sufficiently below the baseline, avoiding unnecessary regret (Lemma 1).

Step 2. Since the block distribution is unknown, we explore all accuracy levels n=0,…,hn=0,\ldots,h. Coarser levels assign more arms to each context but collect fewer rewards per arm, increasing the chance of sampling an optimal arm from a small block. Finer levels provide more accurate estimates. For each level, Dh,nD_{h,n} records the context-arm pairs that complete sampling without being stopped. This allows optimal arms from different blocks to be sampled at suitable levels (Lemmas 2–4).

Step 3. For each level, we select the arm j⋆j^\star with the largest estimated reward in Dh,nD_{h,n} and evaluate it across all contexts. We remove records for which either j⋆j^\star or the preceding policy achieves a reward sufficiently close to the selected estimate. Since contexts in the same block have identical mean rewards, each iteration removes all remaining records from at least one true block. Thus, at most rr iterations are needed per level, and the resulting candidate set WhW_h contains a near-optimal arm for every block at an accuracy depending on its size, without recovering the block partition (Lemma 6).

Step 4. Finally, we evaluate the arms in WhW_h at the finest level and select the arm with the largest estimated reward for each context, retaining the preceding policy as an option. Although smaller blocks may have larger estimation errors, they also appear less frequently. Consequently, the resulting

Algorithm 1 Online Algorithm for Arbitrary Block Distributions

Let $t$ denote the current time and initialize $W_0 \leftarrow \{1\}$, $\pi_0(i) \leftarrow 1$ for $i \in [S]$
for $phase$ $h = 1, 2, \ldots$ do
  $t_h \leftarrow t$, $W_h \leftarrow W_{h-1}$
  Step 1. Baseline estimation
  $B_h \leftarrow \operatorname{Baseline}(h, \pi_{h-1})$
  Step 2. Random arm exploration
  for $n = 0, \ldots, h$ do
    $Q_{h,n}(i) \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \operatorname{Unif}([K]^{q_{h,n}})$ for $i \in [S]$
    $(D_{h,n}, \widehat{A}_{h,n}) \leftarrow \operatorname{Collect}(h,n,Q_{h,n},\pi_{h-1},B_h)$
  Step 3. Candidate selection
  for $n = 0, \ldots, h$ do
    for $\ell = 1, \ldots, r$ do
      if $D_{h,n} = \varnothing$ then
        break
      $(i^\star,j^\star) \in \operatorname*{arg\,max}_{(i,j)\in D_{h,n}} \widehat{A}_{h,n}(i,j)$, $W_h \leftarrow W_h \cup \{j^\star\}$
      Set $Q(i) = \{j^\star\}$ for all $i$; $(D,\widehat{A}) \leftarrow \operatorname{Collect}(h,n,Q,\pi_{h-1},B_h)$
      $\widehat{V}(i,j^\star) = \begin{cases}
      \max\{B_h(i),\widehat{A}(i,j^\star)\}, & (i,j^\star) \in D,\\
      B_h(i), & (i,j^\star) \notin D,
      \end{cases}\quad i \in [S]$
      $D_{h,n} \leftarrow \{(i,j) \in D_{h,n} : \widehat{V}(i,j^\star) < \widehat{A}_{h,n}(i,j^\star) - 4\varepsilon_n\}$
  Step 4. Policy update
  Set $Q(i) = W_h$ for all $i$; $(D,\widehat{A}) \leftarrow \operatorname{Collect}(h,h,Q,\pi_{h-1},B_h)$
  $D \leftarrow D \cup \{(i,\pi_{h-1}(i)) : i \in [S]\}$, $\widehat{A}(i,\pi_{h-1}(i)) \leftarrow B_h(i)$ for all $i$
  $\pi_h(i) \leftarrow \operatorname*{arg\,max}_{j:(i,j)\in D}\widehat{A}(i,j)$ for all $i$
  while $t-t_h < [16\beta_h^3 r(S+K)/\varepsilon_h^2]$ do
    Receive $i_t$; play $\pi_h(i_t)$

policy satisfies

1S∑i=1S[max⁡jA(i,j)−A(i,πh(i))]≤20εh\frac{1}{S}\sum_{i=1}^{S}\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\le20\varepsilon_h

on the event guaranteed by Lemma 5 (Lemma 7). Together with early stopping, this allows us to control the exploration regret in each phase and obtain the bound in Theorem 1.

Subroutines

The online algorithm uses two subroutines, Baseline and Collect, described below.

Baseline. In phase hh, Baseline plays the preceding policy πh−1\pi_{h-1} for Lh(mh)L_h(m_h) rounds. Under a uniform context distribution, this duration ensures that every context appears at least mhm_h times with probability at least 1−Se−8βh1-Se^{-8\beta_h}. Averaging the first mhm_h observed rewards at each context ii gives Bh(i)B_h(i), an estimate of A(i,πh−1(i))A(i,\pi_{h-1}(i)). Since mh=⌈8βh/εh2⌉m_h = \lceil8\beta_h/\varepsilon_h^2\rceil, concentration guarantees

∣Bh(i)−A(i,πh−1(i))∣≤εh/2,i∈[S],\left|B_h(i)-A(i,\pi_{h-1}(i))\right|\leq\varepsilon_h/2,\qquad i\in[S],

with high probability (Lemma 1).

Algorithm 2 Baseline(h,π)(h,\pi)

n_i ← 0, B_h(i) ← 0 for i ∈ [S]
for τ = 1, . . . , L_h(m_h) do
    Receive i_t; play π(i_t) and observe y_t
    if n_{i_t} < m_h then B_h(i_t) ← (n_{i_t}B_h(i_t) + y_t)/(n_{i_t}+1), n_{i_t} ← n_{i_t}+1
return B_h = (B_h(i))_{i∈[S]}

Algorithm 3 Collect(h,n,Q,π,Bh)(h,n,Q,\pi,B_h)

D ← ∅, a_i ← 1, n_i ← 0 for i ∈ [S]
Â_0(i,j) ← 0 for (i,j) ∈ [S] × [K]
for τ = 1, . . . , L_h(m_{h,n} \max_i |Q(i)|) do
    Receive i_t
    if a_{i_t} > |Q(i_t)| then
        Play π(i_t)
    else
        j ← Q(i_t)_{a_{i_t}}; play j and observe y_t
        Â_{n_{i_t}+1}(i_t,j) ← (n_{i_t}Â_{n_{i_t}}(i_t,j) + y_t)/(n_{i_t}+1), n_{i_t} ← n_{i_t}+1
        if j ≠ π(i_t) and Â_{n_{i_t}}(i_t,j) + √(2β_h/n_{i_t}) < B_h(i_t) − 3ε_n then
            a_{i_t} ← a_{i_t}+1, n_{i_t} ← 0
        else
            if n_{i_t} = m_{h,n} then
                D ← D ∪ {(i_t,j)}, Â(i_t,j) ← Â_{m_{h,n}}(i_t,j)
                a_{i_t} ← a_{i_t}+1, n_{i_t} ← 0
return (D, Â)

Collect. At level nn, Collect samples the arms in Q(i)Q(i) one by one, with at most mh,nm_{h,n} observations per arm. The stopping rule ensures that whenever an arm jj is stopped early at context ii, A(i,j)≤A(i,πh−1(i))−52εnA(i,j)\leq A(i,\pi_{h-1}(i))-\frac{5}{2}\varepsilon_n on the event Ωh\Omega_h (Lemmas 1–2). Thus, early stopping avoids further regret from arms that perform substantially worse than the preceding policy. Arms that are not stopped are recorded in DD, together with their estimated mean rewards A^(i,j)\widehat{A}(i,j), after mh,nm_{h,n} observations. The duration Lh(mh,nmax⁡i∣Q(i)∣)L_h(m_{h,n}\max_i|Q(i)|) ensures that every context appears sufficiently often to process all arms in Q(i)Q(i), with probability at least 1−Se−8βh1-Se^{-8\beta_h} (Lemma 3). Once all arms in Q(i)Q(i) have been processed, Collect plays πh−1(i)\pi_{h-1}(i) whenever context ii appears.

Regret Analysis

We now state our main result.

Theorem 1. Under a uniform context distribution ν\nu and an arbitrary induced block distribution ω\omega, Algorithm 1 requires no knowledge of TT and satisfies Reg⁡T=O~(r(S+K)T)\operatorname{Reg}_{T} = \widetilde{O}\left(\sqrt{r(S+K)T}\right).

Proof sketch. The key is to bound the regret incurred by Collect. If an arm is much worse than the preceding policy, Collect stops sampling it early. Otherwise, its reward is not much lower than that of the preceding policy. Since πh−1\pi_{h-1} has an average gap of O(εh)O(\varepsilon_h) (Lemma 7), sampling one arm at every context at level nn incurs at most O(Sβh/εn)O(S\beta_h/\varepsilon_n) regret. Summing over the arms sampled in Steps 2–4 gives O(βh3r(S+K)/εh)O(\beta_h^3r(S+K)/\varepsilon_h).

The remaining rounds play either πh−1\pi_{h-1} or πh\pi_h, both with average gap O(εh)O(\varepsilon_h) (Lemma 7). Since phase hh lasts O(βh3r(S+K)/εh2)O(\beta_h^3r(S+K)/\varepsilon_h^2) rounds, these rounds contribute the same regret order. Lemma 5 bounds the regret from the events where these guarantees fail. Finally, using εh=2−h/2\varepsilon_h = 2^{-h/2} and summing over phases yields Reg⁡T=O~(r(S+K)T)\operatorname{Reg}_{T} = \widetilde{O}\left(\sqrt{r(S+K)T}\right). The full proof is in Appendix § 7.

General Context Distributions

In this section we extend the result for a uniform context distribution to arbitrary context distributions in two steps.

Approximately Uniform Context Distributions

Corollary 1. Suppose 1/(8S)≤ν(i)≤8/S1/(8S) \le\nu(i) \le8/S for all i∈[S]i \in[S] and the induced block distribution is arbitrary. Algorithm 1 satisfies Reg⁡T=O~(r(S+K)T)\operatorname{Reg}_{T} = \widetilde{O}\left(\sqrt{r(S+K)T}\right). The same holds when r≤min⁡{S,K}r \le\min\{S,K\} is only an upper bound on the number of nonempty blocks; neither ν\nu nor TT need be known.

Corollary 1 extends Theorem 1 to approximately uniform context distributions. The lower bound on ν(i)\nu(i) ensures that Baseline and Collect receive sufficiently many observations, while the upper bound allows the average policy regret to remain O(εh)O(\varepsilon_h). Thus, the same regret rate is preserved up to constant factors. This extension allows Algorithm 1 to be applied to groups of contexts with similar probabilities, which will be used to handle general context distributions.

The proof is in Appendix § 8.§ 1.

Arbitrary Context Distributions

For an arbitrary context distribution ν\nu, we adapt the frequency-based grouping approach of Lee et al. [11]. Algorithm 4 partitions contexts according to their estimated arrival probabilities and runs Algorithm 1 separately within each retained group. With probability at least 1−(T+1)−21-(T+1)^{-2}, each group’s conditional context distribution satisfies the assumptions of Corollary 1, while the remaining low-frequency contexts have total probability at most 2S/T2\sqrt{S/T}. For a given horizon TT, define J=⌈32STlog⁡(2S(T+1)2)⌉J=\lceil32\sqrt{ST\log(2S(T+1)^2)}\rceil. We may assume J≤TJ\le T.

Algorithm 4 Online Algorithm for General Context Distributions

Let tt denote the current time and initialize J←⌈32STlog⁡(2S(T+1)2)⌉J\leftarrow\lceil32\sqrt{ST\log(2S(T+1)^2)}\rceil, L←1+⌈log⁡2ST⌉L\leftarrow1+\lceil\log_2\sqrt{ST}\rceil

Play arm 1 for JJ rounds

ν^(i)←J−1∑t=1J1{it=i}\widehat{\nu}(i)\leftarrow J^{-1}\sum_{t=1}^{J}\mathbf{1}\{i_t=i\} for i∈[S]i\in[S]

Xℓ←{i∈[S]:2−ℓ−1<ν^(i)≤2−ℓ, ν^(i)≥1/ST}\mathcal{X}_\ell\leftarrow\{i\in[S]:2^{-\ell-1}<\widehat{\nu}(i)\le2^{-\ell},\ \widehat{\nu}(i)\ge1/\sqrt{ST}\} for ℓ=0,…,L−1\ell=0,\ldots,L-1

XL←{i∈[S]:ν^(i)<1/ST}\mathcal{X}_L\leftarrow\{i\in[S]:\widehat{\nu}(i)<1/\sqrt{ST}\}

for each nonempty Xℓ\mathcal{X}_\ell with ℓ<L\ell<L do

Initialize Algorithm 1 on Xℓ\mathcal{X}_\ell, using

S=∣Xℓ∣S=|\mathcal{X}_\ell| and r=min⁡{r,∣Xℓ∣}r=\min\{r,|\mathcal{X}_\ell|\}

for t=J+1,…,Tt=J+1,\ldots,T do

Receive iti_t

if it∈XLi_t\in\mathcal{X}_L then

Play arm 1

else

Find ℓ<L\ell<L such that it∈Xℓi_t\in\mathcal{X}_\ell

Use Algorithm 1 for Xℓ\mathcal{X}_\ell to select an arm

Play the selected arm and observe the reward

Update only Algorithm 1 for Xℓ\mathcal{X}_\ell

Theorem 2. For an arbitrary context distribution ν\nu and its induced block distribution ω\omega, Algorithm 4 satisfies Reg⁡T=O~(r(S+K)T)\operatorname{Reg}_T=\widetilde{O}(\sqrt{r(S+K)T}). Restarting Algorithm 4 on intervals of lengths 1,2,4,…1,2,4,\ldots gives the same bound without knowing TT.

The initial estimation rounds and the discarded contexts each contribute at most O~(ST)\widetilde{O}(\sqrt{ST}) expected regret. Applying Corollary 1 within each remaining group and summing by Cauchy–Schwarz gives the stated rate; see Appendix § 8.

Conclusions and Future Directions

We establish expected regret O~(r(S+K)T)\widetilde{O}(\sqrt{r(S+K)T}) for context-lumpable stochastic bandits under arbitrary block and context distributions, matching the lower bound up to logarithmic factors. Rather than recovering the unknown block partition, our approach constructs a shared candidate set WhW_h containing a near-optimal arm for each block, and then selects a near-optimal arm for each context from this set. Together with early stopping to control exploration regret, this improves the dependence on rr in the previous online regret bound without requiring separation between blocks.

Context-lumpable bandits can be viewed as a special case of lumpable Markov decision processes (MDPs) with i.i.d. state transitions. Extending our approach to general lumpable MDPs, where transitions may depend on the state and action, is a natural direction for future work.

AI Disclosure

OpenAI’s ChatGPT and Codex were used to assist with language polishing, LaTeX formatting, compilation error checking. The authors take full responsibility for all theoretical results, proofs, and the final manuscript.

Uniform Context Distribution and Arbitrary Block Distributions

All phase-hh probability bounds below also hold conditional on the observations and learner’s random choices before round tht_h. The letter CC denotes an absolute constant that may change between inequalities. For the analysis, recall

εh,b=max⁡{1,Sr∣B(b)∣}εh=max⁡{1,1rω(b)}εh.(3)\varepsilon_{h,b}=\max\left\{1,\frac{S}{r|\mathcal{B}(b)|}\right\}\varepsilon_h=\max\left\{1,\frac{1}{r\omega(b)}\right\}\varepsilon_h. \tag*{(3)}

The second equality uses ω(b)=∣B(b)∣/S\omega(b)=|\mathcal{B}(b)|/S. This choice follows Lee et al. [11]; Algorithm 1 does not use εh,b\varepsilon_{h,b} or the block distribution.

Lemmas

Algorithm 1 ensures

πh−1(i)∈Wh−1⊆Wh⊆[K],∣Wh∣≤min⁡{K,1+rh(h+3)2}≤r(h+1)2≤rβh2.(4)\pi_{h-1}(i)\in W_{h-1}\subseteq W_h\subseteq[K],\qquad|W_h|\le\min\left\{K,1+\frac{rh(h+3)}{2}\right\}\le r(h+1)^2\le r\beta_h^2. \tag*{(4)}

Each phase ℓ\ell adds at most r(ℓ+1)r(\ell+1) arms, so ∣Wh∣≤1+r∑ℓ=1h(ℓ+1)|W_h|\le1+r\sum_{\ell=1}^{h}(\ell+1). The parameters give

βh≥h+1,mh,n≤9βhεn2,Sqh,n≤βhrKεnεh+S,\beta_h\ge h+1,\qquad m_{h,n}\le\frac{9\beta_h}{\varepsilon_n^2},\qquad Sq_{h,n}\le\frac{\beta_h rK\varepsilon_n}{\varepsilon_h}+S,
∑n=0hεn−2=2h+1−1≤2εh−2,∑n=0hεn−1=2(h+1)/2−12−1≤4εh−1.\sum_{n=0}^{h}\varepsilon_n^{-2}=2^{h+1}-1\le2\varepsilon_h^{-2},\qquad \sum_{n=0}^{h}\varepsilon_n^{-1}=\frac{2^{(h+1)/2}-1}{\sqrt{2}-1}\le4\varepsilon_h^{-1}.

In particular,

∑n=0hSqh,nmh,n≤36βh2rK+18Sβhεh2,∑n=0hmh,n≤18βhεh2.(5)\sum_{n=0}^{h}S_{q_h,n}m_{h,n}\le\frac{36\beta_h^2rK+18S\beta_h}{\varepsilon_h^2},\qquad \sum_{n=0}^{h}m_{h,n}\le\frac{18\beta_h}{\varepsilon_h^2}. \tag*{(5)}

Lemma 1. The output of Baseline with input (h,π)(h,\pi) satisfies ∣Bh(i)−A(i,π(i))∣≤εh/2|B_h(i)-A(i,\pi(i))|\le\varepsilon_h/2 for every i∈[S]i\in[S], with probability at least

1−2S(16SKr2h)−20−S(16SKr2h)−160.1-2S(16SKr2^h)^{-20}-S(16SKr2^h)^{-160}.

Lemma 2. With probability at least 1−218(16SKr2h)−181-2^{18}(16SKr2^h)^{-18}, every empirical mean computed by Collect during phase hh satisfies

∣A^k(i,j)−A(i,j)∣≤2βh/k.|\widehat{A}_k(i,j)-A(i,j)|\le\sqrt{2\beta_h/k}.

For each entry jj in Q(i)Q(i), k≥1k\ge1 counts its recorded rewards; the bound applies whenever that count is reached.

Lemma 3. With probability at least 1−S[(r+1)(h+1)+1](16SKr2h)−1601-S[(r+1)(h+1)+1](16SKr2^h)^{-160}, Collect ends with ai>∣Q(i)∣a_i>|Q(i)| for every i∈[S]i\in[S] each time it is used in phase hh.

Lemma 4. With probability at least 1−r(h+1)(16SKr2h)−201-r(h+1)(16SKr2^h)^{-20}, the random selections in Step 2 satisfy

∃i∈B(b):jb⋆∈Qh,n(i)\exists i\in B(b):j_b^\star\in Q_{h,n}(i)

simultaneously for every b∈[r]b\in[r] and n∈{0,…,h}n\in\{0,\ldots,h\} for which εn≥εh,b\varepsilon_n\ge\varepsilon_{h,b}.

Let Ωh\Omega_h be the event that the following hold simultaneously in phase hh:

  1. Baseline returns ∣Bh(i)−A(i,πh−1(i))∣≤εh/2|B_h(i)-A(i,\pi_{h-1}(i))|\le\varepsilon_h/2 for every i∈[S]i\in[S].

  1. Every empirical mean computed by Collect satisfies the inequality in Lemma 2.

  1. Collect ends with ai>∣Q(i)∣a_i>|Q(i)| for every i∈[S]i\in[S] each time it is used.

  1. For every b,nb,n with εn≥εh,b\varepsilon_n\ge\varepsilon_{h,b}, some i∈B(b)i\in B(b) satisfies jb⋆∈Qh,n(i)j_b^\star\in Q_{h,n}(i) in Step 2.

Lemma 5. For every phase hh, Pr⁡(Ωh)≥1−(16SKr2h)−8\Pr(\Omega_h)\ge1-(16SKr2^h)^{-8}.

Lemma 6. On Ωh\Omega_h, Step 3 empties each Dh,nD_{h,n} within rr iterations. The resulting candidate set satisfies

μ(b,jb⋆)−max⁡j∈Whμ(b,j)≤min⁡{1,62 εh,b},b∈[r].\mu(b,j_b^\star)-\max_{j\in W_h}\mu(b,j)\le\min\{1,6\sqrt{2}\,\varepsilon_{h,b}\},\qquad b\in[r].

Lemma 7. On Ωh\Omega_h, the policy returned in phase hh satisfies

max⁡jA(i,j)−A(i,πh(i))≤min⁡{1,10εh,b},i∈B(b), b∈[r],\max_j A(i,j)-A(i,\pi_h(i))\le\min\{1,10\varepsilon_{h,b}\},\qquad i\in B(b),\ b\in[r],
1S∑i=1S[max⁡jA(i,j)−A(i,πh(i))]≤20εh.\frac{1}{S}\sum_{i=1}^{S}\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\le20\varepsilon_h.

These inequalities hold simultaneously with probability at least 1−(16SKr2h)−81-(16SKr2^h)^{-8}, regardless of the preceding policy’s accuracy.

Proof of Theorem 1

Using the parameter bounds preceding Lemma 1 and Lh(k)≤272SkL_h(k) \le272Sk for k≥βhk \ge\beta_h, Steps 1–4 take at most

Lh(mh)+∑n=0hLh(qh,nmh,n)+r∑n=0hLh(mh,n)+Lh(∣Wh∣mh)L_h(m_h) + \sum_{n=0}^{h} L_h(q_{h,n}m_{h,n}) + r\sum_{n=0}^{h} L_h(m_{h,n}) + L_h(|W_h|m_h)
≤272S[mh(1+∣Wh∣)+∑n=0h(qh,n+r)mh,n]≤214βh3r(S+K)εh2.(6)\begin{aligned} \le272S\left[m_h(1+|W_h|)+\sum_{n=0}^{h}(q_{h,n}+r)m_{h,n}\right] \\ &\le\frac{2^{14}\beta_h^3r(S+K)}{\varepsilon_h^2}. \tag*{(6)} \end{aligned}

The final loop fixes the phase length at

th+1−th=⌈216βh3r(S+K)εh2⌉.(7)t_{h+1}-t_h=\left\lceil\frac{2^{16}\beta_h^3r(S+K)}{\varepsilon_h^2}\right\rceil. \tag*{(7)}

Fix h≥2h \ge2. On Ωh−1\Omega_{h-1}, Lemma 7 gives

1S∑i=1S[max⁡jA(i,j)−A(i,πh−1(i))]≤20εh−1<30εh.(8)\frac{1}{S}\sum_{i=1}^{S}\left[\max_j A(i,j)-A(i,\pi_{h-1}(i))\right]\le20\varepsilon_{h-1}<30\varepsilon_h. \tag*{(8)}

In Collect at level n≤hn \le h, fix one entry jj of Q(i)Q(i) that receives k≥1k \ge1 samples. If k≥2k \ge2 and j≠πh−1(i)j \ne\pi_{h-1}(i), the stopping inequality was false after sample k−1k-1. On Ωh\Omega_h, Lemmas 1–2 give

(k−1)[A(i,πh−1(i))−A(i,j)]≤(k−1)(3εn+εh/2)+22βh(k−1)≤72mh,nεn+22βhmh,n.\begin{aligned} (k-1)[A(i,\pi_{h-1}(i))-A(i,j)]\le(k-1)(3\varepsilon_n+\varepsilon_h/2)+2\sqrt{2\beta_h}(k-1) \\ &\le\frac{7}{2}m_{h,n}\varepsilon_n+2\sqrt{2\beta_h}m_{h,n}. \end{aligned}

For k=1k=1 or j=πh−1(i)j=\pi_{h-1}(i), the left-hand side is zero. Using (2) for the last sample and k≤mh,n≤9βh/εn2k\le m_{h,n}\le9\beta_h/\varepsilon_n^2 gives

k[max⁡j′A(i,j′)−A(i,j)]≤mh,n[max⁡j′A(i,j′)−A(i,πh−1(i))]+72mh,nεn+22βhmh,n+1≤9βhεn2[max⁡j′A(i,j′)−A(i,πh−1(i))]+41βhεn.\begin{aligned} k\left[\max_{j'}A(i,j')-A(i,j)\right] \\ &\le m_{h,n}\left[\max_{j'}A(i,j')-A(i,\pi_{h-1}(i))\right]+\frac{7}{2}m_{h,n}\varepsilon_n+2\sqrt{2\beta_h}m_{h,n}+1 \\ &\le\frac{9\beta_h}{\varepsilon_n^2}\left[\max_{j'}A(i,j')-A(i,\pi_{h-1}(i))\right]+\frac{41\beta_h}{\varepsilon_n}. \end{aligned}

Summing over one assignment per context and using (8), we obtain, on Ωh−1∩Ωh\Omega_{h-1}\cap\Omega_h,

∑i=1S(9βhεn2[max⁡jA(i,j)−A(i,πh−1(i))]+41βhεn)≤Sβh(270εhεn2+41εn)≤311Sβhεn.(9)\sum_{i=1}^{S}\left(\frac{9\beta_h}{\varepsilon_n^2}\left[\max_j A(i,j)-A(i,\pi_{h-1}(i))\right]+\frac{41\beta_h}{\varepsilon_n}\right) \le S\beta_h\left(\frac{270\varepsilon_h}{\varepsilon_n^2}+\frac{41}{\varepsilon_n}\right) \le\frac{311S\beta_h}{\varepsilon_n}. \tag*{(9)}

On Ωh−1∩Ωh\Omega_{h-1}\cap\Omega_h, summing (9) over the entries tested in Steps 2–4 gives

Step 2:311Sβh∑n=0hqh,nεn≤Cβh2rK(h+1)+Sβhεh.\text{Step 2:}\quad311S\beta_h\sum_{n=0}^{h}\frac{q_{h,n}}{\varepsilon_n} \le C\frac{\beta_h^2rK(h+1)+S\beta_h}{\varepsilon_h}.

Step 3: 311Srβh∑n=0hεn−1≤CSrβhεh311Sr\beta_h \sum_{n=0}^{h} \varepsilon_n^{-1} \le\frac{CSr\beta_h}{\varepsilon_h},

Step 4: 311Sβh∣Wh∣εh≤CSrβh3εh\frac{311S\beta_h\lvert W_h\rvert}{\varepsilon_h} \le\frac{CSr\beta_h^3}{\varepsilon_h}.

Here Step 2 tests qh,nq_{h,n} entries per context, Step 3 tests at most rr per level, and Step 4 tests ∣Wh∣≤rβh2\lvert W_h\rvert\le r\beta_h^2. We used h+1≤βhh+1 \le\beta_h and ∑n=0hεn−1≤4/εh\sum_{n=0}^{h}\varepsilon_n^{-1} \le4/\varepsilon_h.

All other plays use πh−1\pi_{h-1} or πh\pi_h. Since Ωh−1\Omega_{h-1} and πh−1\pi_{h-1} are fixed before tht_h, independence of context arrivals and (8) give

E[1Ωh−1∑t=thth+1−1(max⁡jA(it,j)−A(it,πh−1(it)))]=E[1Ωh−1th+1−thS∑i(max⁡jA(i,j)−A(i,πh−1(i)))]≤30εh(th+1−th).\mathbb{E}\left[\mathbf{1}_{\Omega_{h-1}}\sum_{t=t_h}^{t_{h+1}-1}\left(\max_j A(i_t,j)-A(i_t,\pi_{h-1}(i_t))\right)\right] = \mathbb{E}\left[\mathbf{1}_{\Omega_{h-1}}\frac{t_{h+1}-t_h}{S}\sum_i\left(\max_j A(i,j)-A(i,\pi_{h-1}(i))\right)\right] \le30\varepsilon_h(t_{h+1}-t_h).

This bounds the plays of πh−1\pi_{h-1} after dropping 1Ωh\mathbf{1}_{\Omega_h} and including all rounds of the phase. In the final loop, Ωh\Omega_h and πh\pi_h are determined before the next context arrives. The same calculation with Lemma 7 bounds those plays by 20εh(th+1−th)20\varepsilon_h(t_{h+1}-t_h). Therefore

E[1Ωh−1∩Ωh∑t=thth+1−1(max⁡jA(it,j)−A(it,jt))]≤Cβh3r(S+K)εh+50εh(th+1−th)≤Cβh3r(S+K)εh.\mathbb{E}\left[\mathbf{1}_{\Omega_{h-1}\cap\Omega_h}\sum_{t=t_h}^{t_{h+1}-1}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right] \le\frac{C\beta_h^3r(S+K)}{\varepsilon_h}+50\varepsilon_h(t_{h+1}-t_h) \le\frac{C\beta_h^3r(S+K)}{\varepsilon_h}.

By Lemma 5, Pr⁡((Ωh−1∩Ωh)c)≤257(16SKr2h)−8\Pr((\Omega_{h-1}\cap\Omega_h)^c)\le257(16SKr^2h)^{-8}. On this complement, regret is at most the phase length by (2). Thus

E[∑t=thth+1−1(max⁡jA(it,j)−A(it,jt))]≤Cβh3r(S+K)2h/2+257(th+1−th)(16SKr2h)8.\mathbb{E}\left[\sum_{t=t_h}^{t_{h+1}-1}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right] \le C\beta_h^3r(S+K)^{2h/2}+\frac{257(t_{h+1}-t_h)}{(16SKr^2h)^8}.

Since (log⁡x)3≤2x(\log x)^3\le2x for x≥1x\ge1, we have βh3≤16000(16SKr2h)\beta_h^3\le16000(16SKr^{2h}). Consequently,

∑h=2∞257(th+1−th)(16SKr2h)8≤Cr(S+K)(16SKr)7∑h=2∞2−6h=O(1).(10)\sum_{h=2}^{\infty}\frac{257(t_{h+1}-t_h)}{(16SKr^{2h})^8} \le\frac{Cr(S+K)}{(16SKr)^7}\sum_{h=2}^{\infty}2^{-6h}=O(1). \tag*{(10)}

Let HH satisfy tH≤T<tH+1t_H\le T<t_{H+1}. Completing the last phase only increases regret, so

Reg⁡T≤min⁡{T,t2−t1}+Cr(S+K)∑h=2Hβh32h/2+O(1).\operatorname{Reg}_T\le\min\{T,t_2-t_1\}+Cr(S+K)\sum_{h=2}^{H}\beta_h^3 2^{h/2}+O(1).

The first term satisfies

min⁡{T,t2−t1}≤(t2−t1)T≤Cβ13/2r(S+K)T.\min\{T,t_2-t_1\}\le\sqrt{(t_2-t_1)T}\le C\beta_1^{3/2}\sqrt{r(S+K)T}.

If the sum is nonempty, phase H−1H-1 is complete and

216βH−13r(S+K)2H−1≤tH−tH−1<T,βH≤2βH−1.2^{16}\beta_{H-1}^{3}r(S+K)2^{H-1}\le t_H-t_{H-1}<T,\qquad\beta_H\le2\beta_{H-1}.

It follows that

r(S+K)∑h=2Hβh32h/2≤4βH3r(S+K)2H/2≤4βH3215/2βH−13/2r(S+K)T≤CβH3/2r(S+K)T.\begin{aligned} r(S+K)\sum_{h=2}^{H}\beta_h^3 2^{h/2}\le4\beta_H^3r(S+K)2^{H/2} \\ &\le\frac{4\beta_H^3}{2^{15/2}\beta_{H-1}^{3/2}}\sqrt{r(S+K)T}\le C\beta_H^{3/2}\sqrt{r(S+K)T}. \end{aligned}

The sum is zero for H=1H=1. By (7), 2H≤2(T+1)2^H\le2(T+1), so βH≤40log⁡(16SKr(T+1))\beta_H\le40\log(16SKr(T+1)). Thus

Reg⁡T≤Clog⁡3/2(16SKr(T+1))r(S+K)T=O~(r(S+K)T).\operatorname{Reg}_T\le C\log^{3/2}(16SKr(T+1))\sqrt{r(S+K)T}=\widetilde{O}\left(\sqrt{r(S+K)T}\right).

Proofs of the Lemmas

Proof of Lemma 1. Suppose Baseline or Collect begins at round τ\tau; condition on the observations and learner’s random choices before iτi_\tau is drawn. Fix ii and j=π(i)j=\pi(i) for Baseline, or one entry jj of Q(i)Q(i) for Collect. For k≥1k\ge1, let ItI_t indicate whether yty_t is among the first kk rewards recorded for this choice; sums below run over that algorithm’s rounds.

Whether It=1I_t=1 is determined before observing yty_t. By (1) and iterated expectations,

Eexp⁡(λ∑tItηt−λ22∑tIt)≤1.\mathbb{E}\exp\left(\lambda\sum_t I_t\eta_t-\frac{\lambda^2}{2}\sum_t I_t\right)\le1.

With λ=2βh/k\lambda=\sqrt{2\beta_h/k}, Markov’s inequality gives

Pr⁡(∑tIt=k, ∑tItηt>2βhk)≤e−βh.\Pr\left(\sum_t I_t=k,\ \sum_t I_t\eta_t>\sqrt{2\beta_h k}\right)\le e^{-\beta_h}.

When ∑tIt=k\sum_t I_t=k, ∑tItηt=k(A^k(i,j)−A(i,j))\sum_t I_t\eta_t=k(\widehat{A}_k(i,j)-A(i,j)). Applying the same bound with −λ-\lambda yields

Pr⁡(∑tIt=k, ∣A^k(i,j)−A(i,j)∣>2βh/k)≤2e−βh.(11)\Pr\left(\sum_t I_t=k,\ \left|\widehat{A}_k(i,j)-A(i,j)\right|>\sqrt{2\beta_h/k}\right)\le2e^{-\beta_h}. \tag*{(11)}

Over Lh(k)L_h(k) rounds starting at τ\tau, independence and the uniform context distribution give

Pr⁡(∑t=ττ+Lh(k)−11{it=i}<k)≤ek(1−1−e−1S)Lh(k)≤ek−Lh(k)/(2S)≤e−8βh.(12)\Pr\left(\sum_{t=\tau}^{\tau+L_h(k)-1}\mathbf{1}\{i_t=i\}<k\right)\le e^k\left(1-\frac{1-e^{-1}}{S}\right)^{L_h(k)} \le e^{k-L_h(k)/(2S)}\le e^{-8\beta_h}. \tag*{(12)}

Here 1−e−1>1/21-e^{-1}>1/2 and Lh(k)≥128S(k+βh)L_h(k)\ge128S(k+\beta_h). For Baseline, use k=mhk=m_h and 2βh/mh≤εh/2\sqrt{2\beta_h/m_h}\le\varepsilon_h/2. Equations (11)–(12) and a union bound give

Pr⁡(∃i:∣Bh(i)−A(i,π(i))∣>εh/2)≤2Se−βh+Se−8βh.\Pr\left(\exists i:\left|B_h(i)-A(i,\pi(i))\right|>\varepsilon_h/2\right)\le2Se^{-\beta_h}+Se^{-8\beta_h}.

Proof of Lemma 2. Conditional on the choices of Q(i)Q(i), (11) applies to every entry and each k≤mh,nk \le m_{h,n}. Counting repeated arms separately, Steps 2–4 compute at most

S∑n=0h(qh,n+r)mh,n+S∣Wh∣mh≤36βh2rK+18Sβh+18Srβh+9S∣Wh∣βhεh2≤64βh3r(S+K)εh2.S\sum_{n=0}^{h}(q_{h,n}+r)m_{h,n}+S|W_h|m_h \le\frac{36\beta_h^2rK+18S\beta_h+18Sr\beta_h+9S|W_h|\beta_h}{\varepsilon_h^2} \le\frac{64\beta_h^3r(S+K)}{\varepsilon_h^2}.

The inequalities use (5) and (4). A union bound, r(S+K)≤2SKrr(S+K) \le2SKr, and βh3≤16000(16SKr2)h\beta_h^3 \le16000(16SKr^2)^h bound the failure probability by

128βh3r(S+K)2he−βh≤256000(16SKr2)18≤218(16SKr2)18.128\beta_h^3r(S+K)2^he^{-\beta_h} \le\frac{256000}{(16SKr^2)^18} \le\frac{2^{18}}{(16SKr^2)^18}.

Proof of Lemma 3. In Collect at level nn, each entry of Q(i)Q(i) uses at most mh,nm_{h,n} samples. Over its Lh(mh,nmax⁡i∣Q(i)∣)L_h(m_{h,n}\max_i|Q(i)|) rounds,

∑t1{it=i}≥mh,n∣Q(i)∣⟹ai>∣Q(i)∣ at the end.\sum_t 1\{i_t=i\}\ge m_{h,n}|Q(i)|\quad\Longrightarrow\quad a_i>|Q(i)|\text{ at the end.}

Equation (12) bounds the failure probability by Se−8βhSe^{-8\beta_h}. Summing over the uses of Collect in Steps 2–4 gives

S[(h+1)+r(h+1)+1]e−8βh=S[(r+1)(h+1)+1](16SKr2h)−160.S[(h+1)+r(h+1)+1]e^{-8\beta_h} =S[(r+1)(h+1)+1](16SKr^2{}^h)^{-160}.

Proof of Lemma 4. Fix b,nb,n with εn≥εh,b\varepsilon_n\ge\varepsilon_{h,b}. The block has ∣B(b)∣=Sω(b)|B(b)|=S\omega(b) contexts. Thus

Pr⁡(jb∗∉Qh,n(i) ∀i∈B(b))=(1−1/K)qh,n∣B(b)∣≤exp⁡(−qh,n∣B(b)∣/K)≤exp⁡(−βhrω(b)εn/εh)≤e−βh,\Pr(j_b^*\notin Q_{h,n}(i)\ \forall i\in B(b)) =(1-1/K)^{q_{h,n}|B(b)|} \le\exp(-q_{h,n}|B(b)|/K) \le\exp(-\beta_hr\omega(b)\varepsilon_n/\varepsilon_h) \le e^{-\beta_h},

since rω(b)εn/εh≥rω(b)εh,b/εh=max⁡{rω(b),1}≥1r\omega(b)\varepsilon_n/\varepsilon_h\ge r\omega(b)\varepsilon_{h,b}/\varepsilon_h=\max\{r\omega(b),1\}\ge1. There are at most r(h+1)r(h+1) relevant pairs b,nb,n. A union bound gives the claim.

Proof of Lemma 5. Lemmas 1–4 give

Pr⁡(Ωhc)≤218(16SKr2h)18+2S+r(h+1)(16SKr2h)20+S[(r+1)(h+1)+2](16SKr2h)160≤218(16SKr2h)18+1(16SKr2h)19+1(16SKr2h)159≤1(16SKr2h)8.\begin{aligned} \Pr(\Omega_h^c)\le\frac{2^{18}}{(16SKr^2{}^h)^{18}}+\frac{2S+r(h+1)}{(16SKr^2{}^h)^{20}}+\frac{S[(r+1)(h+1)+2]}{(16SKr^2{}^h)^{160}} \\ &\le\frac{2^{18}}{(16SKr^2{}^h)^{18}}+\frac{1}{(16SKr^2{}^h)^{19}}+\frac{1}{(16SKr^2{}^h)^{159}}\le\frac{1}{(16SKr^2{}^h)^8}. \end{aligned}

The second inequality follows from h+1≤2hh+1\le2^h, and the last from 16SKr2h≥3216SKr^2{}^h\ge32.

Proof of Lemma 6. On Ωh\Omega_h, if the stopping inequality holds at level nn, then

A(i,j)≤A^k(i,j)+2βh/k<Bh(i)−3εn≤A(i,πh−1(i))+εh/2−3εn≤A(i,πh−1(i))−5εn/2.(13)\begin{aligned} A(i,j)\le\widehat{A}_k(i,j)+\sqrt{2\beta_h/k}<B_h(i)-3\varepsilon_n \\ &\le A(i,\pi_{h-1}(i))+\varepsilon_h/2-3\varepsilon_n \le A(i,\pi_{h-1}(i))-5\varepsilon_n/2. \tag*{(13)} \end{aligned}

An optimal arm cannot satisfy this inequality. By (iii)–(iv), whenever εn≥εh,b\varepsilon_n \ge\varepsilon_{h,b}, Step 2 records (i,jb⋆)∈Dh,n(i,j_b^\star) \in D_{h,n} for some i∈B(b)i \in\mathcal{B}(b).

In Step 3, (i,j⋆)∉D(i,j^\star) \notin D implies A(i,j⋆)<A(i,πh−1(i))A(i,j^\star) < A(i,\pi_{h-1}(i)) by (iii) and (13). Since completed estimates and BhB_h have error at most εn/2\varepsilon_n/2, the definition of V^\widehat{V} gives

∣V^(i,j⋆)−max⁡{A(i,πh−1(i)),A(i,j⋆)}∣≤εn/2.(14)\left|\widehat{V}(i,j^\star)-\max\{A(i,\pi_{h-1}(i)),A(i,j^\star)\}\right|\le\varepsilon_n/2. \tag*{(14)}

For the selected (i⋆,j⋆)(i^\star,j^\star) and any i∈B(g(i⋆))i \in\mathcal{B}(g(i^\star)),

V^(i,j⋆)≥A(i,j⋆)−εn/2=A(i⋆,j⋆)−εn/2≥A^h,n(i⋆,j⋆)−εn>A^h,n(i⋆,j⋆)−4εn.\begin{aligned} \widehat{V}(i,j^\star) \ge A(i,j^\star)-\varepsilon_n/2=A(i^\star,j^\star)-\varepsilon_n/2 \\ &\ge\widehat{A}_{h,n}(i^\star,j^\star)-\varepsilon_n > \widehat{A}_{h,n}(i^\star,j^\star)-4\varepsilon_n. \end{aligned}

All remaining records from this block are deleted. No records are added during Step 3, so each Dh,nD_{h,n} becomes empty within rr iterations.

For εh,b≤1\varepsilon_{h,b}\le1, choose the largest n≤hn\le h with εn≥εh,b\varepsilon_n\ge\varepsilon_{h,b}. Since ε0=1\varepsilon_0=1 and εh,b≥εh\varepsilon_{h,b}\ge\varepsilon_h, εh,b≤εn<2εh,b\varepsilon_{h,b}\le\varepsilon_n<\sqrt{2}\varepsilon_{h,b}. Choose (i,jb⋆)∈Dh,n(i,j_b^\star)\in D_{h,n} with i∈B(b)i\in\mathcal{B}(b). When this record is deleted,

A^h,n(i⋆,j⋆)≥A^h,n(i,jb⋆)≥μ(b,jb⋆)−εn,\widehat{A}_{h,n}(i^\star,j^\star)\ge\widehat{A}_{h,n}(i,j_b^\star)\ge\mu(b,j_b^\star)-\varepsilon_n,
V^(i,j⋆)≥A^h,n(i⋆,j⋆)−4εn.\widehat{V}(i,j^\star)\ge\widehat{A}_{h,n}(i^\star,j^\star)-4\varepsilon_n.

Since j⋆,πh−1(i)∈Whj^\star,\pi_{h-1}(i)\in W_h, (14) implies

max⁡j∈Whμ(b,j)≥max⁡{A(i,πh−1(i)),A(i,j⋆)}≥V^(i,j⋆)−εn≥μ(b,jb⋆)−6εn≥μ(b,jb⋆)−62εh,b.\begin{aligned} \max_{j\in W_h}\mu(b,j)\ge\max\{A(i,\pi_{h-1}(i)),A(i,j^\star)\} \\ &\ge\widehat{V}(i,j^\star)-\varepsilon_n\ge\mu(b,j_b^\star)-6\varepsilon_n\ge\mu(b,j_b^\star)-6\sqrt{2}\varepsilon_{h,b}. \end{aligned}

The gap is also at most one by (2). For εh,b>1\varepsilon_{h,b}>1, this alone suffices. □

Proof of Lemma 7. In Step 4, (iii) and (13) ensure that every j∈Whj\in W_h with A(i,j)≥A(i,πh−1(i))A(i,j)\ge A(i,\pi_{h-1}(i)) is recorded in DD. Since πh−1(i)∈Wh\pi_{h-1}(i)\in W_h, this includes an arm maximizing A(i,j)A(i,j) over WhW_h. Using the error bound εh/2\varepsilon_h/2 for all estimates, including BhB_h,

A(i,πh(i))≥A^(i,πh(i))−εh/2=max⁡j:(i,j)∈DA^(i,j)−εh/2≥max⁡j∈WhA(i,j)−εh.\begin{aligned} A(i,\pi_h(i))\ge\widehat{A}(i,\pi_h(i))-\varepsilon_h/2 \\ &=\max_{j:(i,j)\in D}\widehat{A}(i,j)-\varepsilon_h/2\ge\max_{j\in W_h}A(i,j)-\varepsilon_h. \end{aligned}

For i∈B(b)i\in\mathcal{B}(b), Lemma 6 and (2) give

max⁡jA(i,j)−A(i,πh(i))≤min⁡{1,62εh,b+εh}≤min⁡{1,10εh,b}.\max_j A(i,j)-A(i,\pi_h(i))\le\min\{1,6\sqrt{2}\varepsilon_{h,b}+\varepsilon_h\}\le\min\{1,10\varepsilon_{h,b}\}.

Finally,

1S∑i[max⁡jA(i,j)−A(i,πh(i))]≤10∑bω(b)εh,b=10εh∑bmax⁡{ω(b),1/r}\frac{1}{S}\sum_i\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\le10\sum_b\omega(b)\varepsilon_{h,b}=10\varepsilon_h\sum_b\max\{\omega(b),1/r\}
≤10εh∑b(ω(b)+1/r)=20εh.\le10\varepsilon_h\sum_b(\omega(b)+1/r)=20\varepsilon_h.

Only Ωh\Omega_h was used, so Lemma 5 gives the stated probability. □

General Context Distributions

Proof of Corollary 1

Proof. Use the first definition in (3), with sums over the nonempty blocks:

εh,b=max⁡{1,Sr∣B(b)∣}εh,∑b∣B(b)∣S=1,∑b1r≤1.\varepsilon_{h,b}=\max\left\{1,\frac{S}{r\lvert\mathcal{B}(b)\rvert}\right\}\varepsilon_h,\qquad\sum_b\frac{\lvert\mathcal{B}(b)\rvert}{S}=1,\qquad\sum_b\frac{1}{r}\leq1.

Conditional on the history at a call’s start τ\tau, ν(i)≥1/(8S)\nu(i)\geq1/(8S) gives

Pr⁡(∑t=ττ+Lh(k)−11{it=i}<k)≤ek[1−(1−e−1)ν(i)]Lh(k)≤ek−Lh(k)/(16S)≤e−7k−8βh≤e−8βh.\begin{aligned} \Pr\left(\sum_{t=\tau}^{\tau+L_h(k)-1}\mathbf{1}\{i_t=i\}<k\right)\leq e^k\left[1-\left(1-e^{-1}\right)\nu(i)\right]^{L_h(k)} \\ &\leq e^{k-L_h(k)/(16S)}\leq e^{-7k-8\beta_h}\leq e^{-8\beta_h}. \end{aligned}

Together with (11), this preserves Lemmas 1–3. For εn≥εh,b\varepsilon_n\geq\varepsilon_{h,b},

Pr⁡(jb⋆∉Qh,n(i) ∀i∈B(b))≤exp⁡(−qh,n∣B(b)∣K)≤exp⁡(−βhr∣B(b)∣εnSεh)≤e−βh.\begin{aligned} \Pr\left(j_b^\star\notin Q_{h,n}(i)\ \forall i\in\mathcal{B}(b)\right)\leq\exp\left(-\frac{q_{h,n}\lvert\mathcal{B}(b)\rvert}{K}\right) \\ &\leq\exp\left(-\frac{\beta_h r\lvert\mathcal{B}(b)\rvert\varepsilon_n}{S\varepsilon_h}\right)\leq e^{-\beta_h}. \end{aligned}

Hence Pr⁡(Ωhc)≤(16SKr2h)−8\Pr(\Omega_h^c)\leq(16SKr2^h)^{-8} as in Lemmas 4–5. On Ωh\Omega_h, the same comparisons as in Lemmas 6–7 yield

1S∑i[max⁡jA(i,j)−A(i,πh(i))]≤10S∑b∣B(b)∣εh,b=10εh∑bmax⁡{∣B(b)∣/S,1/r}≤20εh,\begin{aligned} \frac{1}{S}\sum_i\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\leq\frac{10}{S}\sum_b\lvert\mathcal{B}(b)\rvert\varepsilon_{h,b} \\ &=10\varepsilon_h\sum_b\max\{\lvert\mathcal{B}(b)\rvert/S,1/r\}\leq20\varepsilon_h, \end{aligned}
∑iν(i)[max⁡jA(i,j)−A(i,πh(i))]≤8S∑i[max⁡jA(i,j)−A(i,πh(i))]≤160εh.\sum_i\nu(i)\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\leq\frac{8}{S}\sum_i\left[\max_j A(i,j)-A(i,\pi_h(i))\right]\leq160\varepsilon_h.

For h≥2h\geq2, use (9) for assigned plays. For plays of πh−1\pi_{h-1}, drop 1Ωh\mathbf{1}_{\Omega_h} and condition at each call’s start; for πh\pi_h, condition at the final loop’s start. By (4) and (7),

E[1Ωh−1∩Ωh∑t=thth+1−1(max⁡jA(it,j)−A(it,jt))]≤CSβh[∑n=0hqh,n+rεn+rβh2εh]+160(εh−1+εh)(th+1−th)≤Cβh3r(S+K)εh.\begin{aligned} \mathbb{E}\left[\mathbf{1}_{\Omega_{h-1}\cap\Omega_h}\sum_{t=t_h}^{t_{h+1}-1}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right] \\ &\leq CS\beta_h\left[\sum_{n=0}^{h}\frac{q_{h,n}+r}{\varepsilon_n}+\frac{r\beta_h^2}{\varepsilon_h}\right]+160(\varepsilon_{h-1}+\varepsilon_h)(t_{h+1}-t_h) \\ &\leq\frac{C\beta_h^3r(S+K)}{\varepsilon_h}. \end{aligned}

For tH≤T<tH+1t_H\leq T<t_{H+1}, (10) and the phase summation in Appendix § 7.§ 2 now give

Reg⁡T≤min⁡{T,t2−t1}+Cr(S+K)∑h=2Hβh32h/2+O(1).≤CβH3/2r(S+K)T≤Clog⁡3/2(16SKr(T+1))r(S+K)T.\begin{aligned} \operatorname{Reg}_T\leq\min\{T,t_2-t_1\}+Cr(S+K)\sum_{h=2}^{H}\beta_h^{3}2^{h/2}+O(1). \\ &\le C\beta_H^{3/2}\sqrt{r(S+K)T}\le C\log^{3/2}(16SKr(T+1))\sqrt{r(S+K)T}. \end{aligned}

Estimation of the Context Distribution

Lemma 8. Suppose J<TJ<T, with J,L,ν^J,L,\hat{\nu} and the sets Xℓ\mathcal{X}_{\ell} defined in § 4.2. With probability at least 1−(T+1)−21-(T+1)^{-2}, both of the following hold:

(i) For every nonempty Xℓ\mathcal{X}_{\ell} with ℓ<L\ell<L and every i∈Xℓi\in\mathcal{X}_{\ell},

18∣Xℓ∣≤ν(i)∑i′∈Xℓν(i′)≤8∣Xℓ∣.\frac{1}{8|\mathcal{X}_{\ell}|}\le\frac{\nu(i)}{\sum_{i'\in\mathcal{X}_{\ell}}\nu(i')}\le\frac{8}{|\mathcal{X}_{\ell}|}.

(ii) The remaining set has probability mass

∑i∈XLν(i)≤2S/T.\sum_{i\in\mathcal{X}_{L}}\nu(i)\le2\sqrt{S/T}.

Proof. Bernstein’s inequality and a union bound give, simultaneously for all i∈[S]i\in[S], with probability at least 1−(T+1)−21-(T+1)^{-2},

∣ν^(i)−ν(i)∣≤2ν(i)log⁡(2S(T+1)2)J+log⁡(2S(T+1)2)J≤ν(i)4+3log⁡(2S(T+1)2)J≤ν(i)4+332ST.\begin{aligned} |\hat{\nu}(i)-\nu(i)|\le\sqrt{\frac{2\nu(i)\log(2S(T+1)^2)}{J}}+\frac{\log(2S(T+1)^2)}{J} \\ &\le\frac{\nu(i)}{4}+\frac{3\log(2S(T+1)^2)}{J}\le\frac{\nu(i)}{4}+\frac{3}{32\sqrt{ST}}. \end{aligned}

Therefore

45ν^(i)−340ST≤ν(i)≤43ν^(i)+18ST.\frac{4}{5}\hat{\nu}(i)-\frac{3}{40\sqrt{ST}}\le\nu(i)\le\frac{4}{3}\hat{\nu}(i)+\frac{1}{8\sqrt{ST}}.

For i,i′∈Xℓi,i'\in\mathcal{X}_{\ell} with ℓ<L\ell<L,

ν^(i)≥1ST⟹12ν^(i)≤ν(i)≤2ν^(i),\hat{\nu}(i)\ge\frac{1}{\sqrt{ST}}\Longrightarrow\frac{1}{2}\hat{\nu}(i)\le\nu(i)\le2\hat{\nu}(i),
ν(i)ν(i′)≤4ν^(i)ν^(i′)≤8,\frac{\nu(i)}{\nu(i')}\le4\frac{\hat{\nu}(i)}{\hat{\nu}(i')}\le8,
18∣Xℓ∣≤ν(i)∑i′∈Xℓν(i′)≤8∣Xℓ∣.\frac{1}{8|\mathcal{X}_{\ell}|}\le\frac{\nu(i)}{\sum_{i'\in\mathcal{X}_{\ell}}\nu(i')}\le\frac{8}{|\mathcal{X}_{\ell}|}.

For the remaining contexts,

∑i∈XLν(i)≤∑i∈XL(43ν^(i)+18ST)≤2∣XL∣ST≤2S/T.\sum_{i\in\mathcal{X}_{L}}\nu(i)\le\sum_{i\in\mathcal{X}_{L}}\left(\frac{4}{3}\hat{\nu}(i)+\frac{1}{8\sqrt{ST}}\right)\le\frac{2|\mathcal{X}_{L}|}{\sqrt{ST}}\le2\sqrt{S/T}.

Proof of Theorem 2

Proof. If J≥TJ \ge T, (2) gives

Reg⁡T≤T≤J≤33STlog⁡(2S(T+1)2)≤Clog⁡(16SKr(T+1))r(S+K)T.\operatorname{Reg}_{T} \le T \le J \le33\sqrt{ST}\log(2S(T+1)^2) \le C\log(16SKr(T+1))\sqrt{r(S+K)T}.

For J<TJ<T, let E\mathcal{E} be the event in Lemma 8 and Tℓ=∑t=J+1T1{it∈Xℓ}T_{\ell}=\sum_{t=J+1}^{T}1\{i_t\in\mathcal{X}_{\ell}\} for 0≤ℓ≤L0\le\ell\le L. The groups and E\mathcal{E} depend only on the initial observations, so

E[1ETL]≤(T−J)E[1E∑i∈XLν(i)]≤2ST,\mathbb{E}[1_{\mathcal{E}}T_L]\le(T-J)\mathbb{E}\left[1_{\mathcal{E}}\sum_{i\in\mathcal{X}_L}\nu(i)\right]\le2\sqrt{ST},
(T−J)Pr⁡(Ec)≤T−J(T+1)2≤1.(T-J)\Pr(\mathcal{E}^{c})\le\frac{T-J}{(T+1)^2}\le1.

On E\mathcal{E}, condition on the initial history and subsequent group memberships until we average below; each TℓT_{\ell} is then fixed. For i∈Xℓi\in\mathcal{X}_{\ell} at a round assigned to copy ℓ<L\ell<L, independence of context arrivals gives

Pr⁡(it=i∣i1,j1,y1,…,it−1,jt−1,yt−1)=ν(i)∑i′∈Xℓν(i′)∈[18∣Xℓ∣,8∣Xℓ∣].\Pr(i_t=i\mid i_1,j_1,y_1,\ldots,i_{t-1},j_{t-1},y_{t-1})=\frac{\nu(i)}{\sum_{i'\in\mathcal{X}_{\ell}}\nu(i')}\in\left[\frac{1}{8|\mathcal{X}_{\ell}|},\frac{8}{|\mathcal{X}_{\ell}|}\right].

Future memberships are independent of preceding rewards, and the current membership is fixed by iti_t. Thus (1) remains valid, also for each copy’s local history by iterated conditioning. Each nonempty group has at most min⁡{r,∣Xℓ∣}\min\{r,|\mathcal{X}_{\ell}|\} blocks, so Corollary 1 gives (trivially if Tℓ=0T_{\ell}=0)

E[∑J<t≤Tit∈Xℓ(max⁡jA(it,j)−A(it,jt))]≤Clog⁡3/2(16SKr(T+1))r(∣Xℓ∣+K)Tℓ.\mathbb{E}\left[\sum_{\substack{J<t\le T\\i_t\in\mathcal{X}_{\ell}}}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right]\le C\log^{3/2}(16SKr(T+1))\sqrt{r(|\mathcal{X}_{\ell}|+K)T_{\ell}}.

Cauchy–Schwarz yields

∑ℓ<Lr(∣Xℓ∣+K)Tℓ≤r(∑ℓ<L∣Xℓ∣+LK)∑ℓ<LTℓ≤r(S+LK)(T−J).\sum_{\ell<L}\sqrt{r(|\mathcal{X}_{\ell}|+K)T_{\ell}}\le\sqrt{r\left(\sum_{\ell<L}|\mathcal{X}_{\ell}|+LK\right)\sum_{\ell<L}T_{\ell}}\le\sqrt{r(S+LK)(T-J)}.

Averaging over the conditioning and using (2),

Reg⁡T≤J+E[1E∑ℓ<L∑J<t≤Tit∈Xℓ(max⁡jA(it,j)−A(it,jt))]+E[1ETL]+(T−J)Pr⁡(Ec)≤J+2ST+1+Clog⁡3/2(16SKr(T+1))r(S+LK)T≤Clog⁡2(16SKr(T+1))r(S+K)T.\begin{aligned} \operatorname{Reg}_{T} &\le J+\mathbb{E}\left[1_{\mathcal{E}}\sum_{\ell<L}\sum_{\substack{J<t\le T\\i_t\in\mathcal{X}_{\ell}}}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right]\\ &\quad+\mathbb{E}[1_{\mathcal{E}}T_L]+(T-J)\Pr(\mathcal{E}^{c})\\ &\le J+2\sqrt{ST}+1+C\log^{3/2}(16SKr(T+1))\sqrt{r(S+LK)T}\\ &\le C\log^2(16SKr(T+1))\sqrt{r(S+K)T}. \end{aligned}

The last step uses J≤CSTlog⁡(16SKr(T+1))J\le C\sqrt{ST}\log(16SKr(T+1)) and L≤Clog⁡(16SKr(T+1))L\le C\log(16SKr(T+1)).

Restarting on rounds 2p,…,2p+1−12^p,\ldots,2^{p+1}-1, the same bound holds conditional on each restart’s history. Complete the last interval and sum:

Reg⁡T≤∑p=0⌊log⁡2T⌋E[∑t=2p2p+1−1(max⁡jA(it,j)−A(it,jt))]≤Clog⁡2(16SKr(T+1))r(S+K)2(⌊log⁡2T⌋+1)/2−12−1≤Clog⁡2(16SKr(T+1))r(S+K)T.\begin{aligned} \operatorname{Reg}_T &\le\sum_{p=0}^{\lfloor\log_2 T \rfloor} \mathbb{E}\left[\sum_{t=2^p}^{2^{p+1}-1}\left(\max_j A(i_t,j)-A(i_t,j_t)\right)\right] \\ &\le C\log^2(16SKr(T+1))\sqrt{r(S+K)}\frac{2^{(\lfloor\log_2 T \rfloor+1)/2}-1}{\sqrt{2}-1} \\ &\le C\log^2(16SKr(T+1))\sqrt{r(S+K)T}. \end{aligned}

□\square

References

  1. [1]Wei Chu, Lihong Li, Lev Reyzin, and Robert Schapire. Contextual bandits with linear payoff functions. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pages 208–214. PMLR, 2011.
  2. [2]Claudio Gentile, Shuai Li, and Giovanni Zappella. Online clustering of bandits. In Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pages 757–765. PMLR, 2014.arxiv.org/abs/1401.8257
  3. [3]Claudio Gentile, Shuai Li, Purushottam Kar, Alexandros Karatzoglou, Giovanni Zappella, and Evans Etrue. On context-dependent clustering of bandits. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1253–1262. PMLR, 2017.arxiv.org/abs/1608.03544
  4. [4]Kyoungseok Jang, Chicheng Zhang, and Kwang-Sung Jun. Efficient low-rank matrix estimation, experimental design, and arm-set-dependent low-rank bandits. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 21329–21372. PMLR, 2024.arxiv.org/abs/2402.11156
  5. [5]Yassir Jedra, William Réveillard, Stefan Stojanovic, and Alexandre Proutiere. Low-rank bandits via tight two-to-infinity singular subspace recovery. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 21430–21485. PMLR, 2024.arxiv.org/abs/2402.15739
  6. [6]Kwang-Sung Jun, Rebecca Willett, Stephen Wright, and Robert Nowak. Bilinear bandits with low-rank structure. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3163–3172. PMLR, 2019.
  7. [7]Yue Kang, Cho-Jui Hsieh, and Thomas Chun Man Lee. Efficient frameworks for generalized low-rank matrix bandit problems. In Advances in Neural Information Processing Systems, volume 35, pages 19971–19983. Curran Associates, Inc., 2022. doi: 10.52202/068431-1452.DOI
  8. [8]Yue Kang, Cho-Jui Hsieh, and Thomas Chun Man Lee. Low-rank matrix bandits with heavy-tailed rewards. In Proceedings of the Fortieth Conference on Uncertainty in Artificial Intelligence, volume 244 of Proceedings of Machine Learning Research, pages 1863–1889. PMLR, 2024.arxiv.org/abs/2404.17709
  9. [9]Chinmaya Kausik, Kevin Tan, and Ambuj Tewari. Leveraging offline data in linear latent contextual bandits. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 29345–29389. PMLR, 2025.arxiv.org/abs/2405.17324
  10. [10]Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020. doi: 10.1017/9781108571401.DOI
  11. [11]Chung-Wei Lee, Qinghua Liu, Yasin Abbasi-Yadkori, Chi Jin, Tor Lattimore, and Csaba Szepesvári. Context-lumpable stochastic bandits. In Advances in Neural Information Processing Systems, volume 36, pages 77915–77941. Curran Associates, Inc., 2023. doi: 10.52202/075280-3404.DOI

Paper details

vlnc:W_aftn7ux6
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

OpenAI’s ChatGPT, Codex

View statement
Looking for related papers…
Contents