Ranking Bandits

Online learning to rank. Each round the learner shows an ordered shortlist of m out of ℓ items, observes clicks, and is scored against the best ranking's expected click count. Click models factor the click probability into attractiveness and examination (document-based, position-based, cascade), and a generic model assumes only four properties of v(a,k). TopRank maintains a graph of statistically certified "i beats j" relations, ranks the items in topological layers, shuffles within each layer, and certifies a new pair when the click difference between two items sharing a layer crosses an anytime ternary-martingale boundary. The analysis shows conditional click differences are at least Δᵢⱼ/(α(i)+α(j)), so the order is learned with no wrong certifications and a uniformly randomised block captures the optimal clicks. Regret is O(Σⱼ Σ_{i≤min(m,j−1)} α(i) log n/Δᵢⱼ) and O(√(m³ℓn log n)), robust to time-varying click models. Notes cover the cascade model with CascadeUCB/KL-UCB, linear features, and adversarial ranked bandits (NP-hard offline, greedy (1−1/e) guarantees, semi-bandit reductions), plus the diversity critique.

· 16 min read · 3,103 words

Corresponds to Lattimore & Szepesvári, Chapter 32.

Motivation: rankings are too many to treat as arms

IntuitionThe problem

A streaming service shows each user an ordered shortlist of mm movies out of ℓ\ell, with no query. The user clicks on what they like, possibly several items, and the goal is to maximise expected clicks over nn rounds. There are ℓ!/(ℓ−m)!\ell!/(\ell - m)! ordered shortlists, so treating each as an independent arm is hopeless. Ranking illustrates the fundamental model-choice dilemma: a rich model of clicks has low misspecification error but is slow to learn, while a coarse model learns fast but may be wrong. The book’s coverage is deliberately narrow; practical large-scale online ranking is still far off.

DefinitionStochastic ranking

Actions are permutations A\mathcal A of [ℓ][\ell]: At(k)A_t(k) is the item in position kk, and At−1(i)A_t^{-1}(i) is item ii‘s position. Only the first mm positions are shown. The learner observes click indicators Cti∈{0,1}C_{ti}\in\{0,1\} for every item. The probability of a click at position kk under ranking aa is v(a,k)v(a,k), an unknown function v:A×[ℓ]→[0,1]v : \mathcal A\times[\ell]\to[0,1]:

Rn=nmax⁡a∈A∑k=1ℓv(a,k)−E[∑t=1n∑i=1ℓCti]R_n = n\max_{a\in\mathcal A}\sum_{k=1}^\ell v(a,k) - \mathbb E\Big[\sum_{t=1}^n\sum_{i=1}^\ell C_{ti}\Big]


Click models

NoteAttractiveness times examination

Every standard model says a click needs the item to be attractive (an item property α(i)∈[0,1]\alpha(i)\in[0,1]) and its position to be examined (depending on the position, and possibly on the items above it). Which model fits depends on the interface, for example whether clicking navigates away. The information-retrieval literature studies this extensively (Chuklin et al. 2015; Craswell et al. 2008).

Modelv(a,k)v(a,k)ParametersWhen appropriate
Document-basedα(a(k)) I{k≤m}\alpha(a(k))\,\mathbb I\{k\le m\}ℓ\ellposition irrelevant within the shortlist
Position-basedα(a(k)) χ(k)\alpha(a(k))\,\chi(k), with χ(k)=0\chi(k) = 0 for k>mk > mℓ+m\ell + mfixed examination probability per slot
Cascadeα(a(k)) χ(a,k)\alpha(a(k))\,\chi(a,k), χ(a,k)=∏k′<k(1−α(a(k′)))\chi(a,k) = \prod_{k'<k}(1 - \alpha(a(k'))) for 1<k≤m1 < k\le m, χ(a,1)=1\chi(a,1) = 1ℓ\elluser scans in order and stops at the first click (clicking leaves the page)

WarningMarginals, not independence

v(a,k)v(a,k) fixes only each click’s marginal probability. The CtiC_{ti} need not be independent. In the cascade model, the standard generative story has at most one click: Ct,At(k)=0C_{t,A_t(k)} = 0 once an earlier position was clicked, and otherwise the click probability given no earlier click is α(At(k))\alpha(A_t(k)).

The generic model

Definitionα\alpha-optimal action

An action is α\alpha-optimal if it shortlists the mm most attractive items, sorted: α(a(k))=max⁡k′≥kα(a(k′))\alpha(a(k)) = \max_{k'\ge k}\alpha(a(k')) for all k∈[m]k\in[m].

DefinitionAssumption 32.1

There is an attractiveness function α\alpha such that, for any action aa, items i,ji, j with α(i)≥α(j)\alpha(i)\ge\alpha(j), and σ\sigma the transposition of ii and jj:

  1. No clicks off the list: v(a,k)=0v(a,k) = 0 for k>mk > m.
  2. Sorted is optimal: every α\alpha-optimal a∗a^* maximises ∑k≤mv(a,k)\sum_{k\le m}v(a,k).
  3. Swapping changes clicks at least proportionally to attractiveness: v(a,a−1(i))≥α(i)α(j)v(σ∘a,a−1(i))v(a,a^{-1}(i))\ge\frac{\alpha(i)}{\alpha(j)}v(\sigma\circ a,a^{-1}(i)). Putting the better item ii in a slot instead of jj raises that slot’s click probability by at least the factor α(i)/α(j)\alpha(i)/\alpha(j).
  4. Correct placements are never worse off: if α(a(k))=α(a∗(k))\alpha(a(k)) = \alpha(a^*(k)) for some α\alpha-optimal a∗a^*, then v(a,k)≥v(a∗,k)v(a,k)\ge v(a^*,k).

IntuitionWhy these assumptions are reasonable

Write v(a,k)=α(a(k))χ(a,k)v(a,k) = \alpha(a(k))\chi(a,k), with examination depending only on the items above kk.

  • (3) If ii‘s slot is above jj‘s, the swap leaves everything above ii‘s slot unchanged, so the ratio is exactly α(i)/α(j)\alpha(i)/\alpha(j). If ii‘s slot is below, the swap puts the better item ii higher up, which can only lower examination of the later slot. This relies on users searching harder after unattractive items, the most easily criticised assumption.
  • (4) Items above a correctly placed item can’t be more attractive than those in the optimal list, so that position is examined at least as often.

Assumption 32.1 is partly chosen so the proof works, but it contains all three models (Exercise 32.1). There are many parameters, but the learner never needs to learn χ\chi, only the order of α\alpha.

ProofThe cascade model satisfies (3) and (4) (Exercise 32.1, sketch)

(3): let k=a−1(i)k = a^{-1}(i). If jj sits below kk, the items above kk are unchanged, so χ(σ∘a,k)=χ(a,k)\chi(\sigma\circ a,k) = \chi(a,k) and equality holds. If jj sits above (at k′<kk' < k), then in σ∘a\sigma\circ a the better item ii is at k′k', so χ(σ∘a,k)=χ(a,k)1−α(i)1−α(j)≤χ(a,k)\chi(\sigma\circ a,k) = \chi(a,k)\frac{1 - \alpha(i)}{1 - \alpha(j)}\le\chi(a,k), and v(a,k)=α(i)χ(a,k)≥α(i)α(j)α(j)χ(σ∘a,k)v(a,k) = \alpha(i)\chi(a,k)\ge\frac{\alpha(i)}{\alpha(j)}\alpha(j)\chi(\sigma\circ a,k).

(4): the α\alpha-optimal list puts the top k−1k-1 items above kk, so any other list has items above kk that are no more attractive. Hence ∏k′<k(1−α(a(k′)))≥∏k′<k(1−α(a∗(k′)))\prod_{k'<k}(1 - \alpha(a(k')))\ge\prod_{k'<k}(1 - \alpha(a^*(k'))).

The position-based model satisfies (3) with equality, and the document-based model is the special case χ(k)=I{k≤m}\chi(k) = \mathbb I\{k\le m\}. (Sketch worked here.)

∎


The TopRank policy

AlgorithmTopRank (Lattimore et al. 2018)

Step 0: input δ\delta, ℓ\ell, mm. Set the relation G1=∅G_1 = \emptyset. A pair (i,j)∈Gt(i,j)\in G_t means “proved with high probability that α(i)<α(j)\alpha(i) < \alpha(j)”.

Step 1: Layer by topological sort. With min⁡Gt(A)={i∈A:(i,j)∉Gt ∀j∈A}\min_{G_t}(A) = \{i\in A : (i,j)\notin G_t\ \forall j\in A\} (items not proven worse than any remaining item),

Ptd=min⁡Gt([ℓ]∖⋃c<dPtc),d=1,…,Mt\mathcal P_{td} = \min_{G_t}\Big([\ell]\setminus\bigcup_{c<d}\mathcal P_{tc}\Big),\qquad d = 1, \ldots, M_t

If GtG_t is acyclic, this is a partition of [ℓ][\ell] (Exercise 32.5). A cycle is a failure event; then play any fixed action.

Step 2: Shuffle within layers. Layer dd gets the consecutive positions Itd\mathcal I_{td}, which follow the earlier layers’ positions. AtA_t is uniform over the rankings with σ(Itd)=Ptd\sigma(\mathcal I_{td}) = \mathcal P_{td} for all dd: shuffle layer 1 into the top slots, then layer 2, and so on. DtiD_{ti} denotes item ii‘s layer.

Step 3: Compare items only within a layer. With Utij=I{Dti=Dtj}(Cti−Ctj)U_{tij} = \mathbb I\{D_{ti} = D_{tj}\}(C_{ti} - C_{tj}), Stij=∑s≤tUsijS_{tij} = \sum_{s\le t}U_{sij} and Ntij=∑s≤t∣Usij∣N_{tij} = \sum_{s\le t}\lvert U_{sij}\rvert,

Gt+1=Gt∪{(j,i):Stij≥2Ntijlog⁡cNtijδ}G_{t+1} = G_t\cup\Big\{(j,i) : S_{tij}\ge\sqrt{2N_{tij}\log\frac{c\sqrt{N_{tij}}}\delta}\Big\}

with c≈3.43c\approx3.43 from the ternary-martingale bound (Exercise 20.10).

ExampleOne round, worked

With ℓ=5\ell = 5, m=4m = 4 and Gt={(3,1),(5,2),(5,3)}G_t = \{(3,1),(5,2),(5,3)\} (item 3 proven worse than 1; item 5 worse than 2 and 3):

  • Pt1={1,2,4}\mathcal P_{t1} = \{1,2,4\} (none proven worse than a rival), placed in positions {1,2,3}\{1,2,3\} in random order;
  • Pt2={3}\mathcal P_{t2} = \{3\} in position 4;
  • Pt3={5}\mathcal P_{t3} = \{5\}, not shown.

Only layers whose positions reach mm need computing.

IntuitionWhy shuffle and why compare only within layers

  • Shuffling makes items in a layer exchangeable in position. A click difference between two layer-mates then reflects attractiveness only: position effects cancel in expectation. This is why χ\chi never needs to be learned.
  • The certification rule is a sequential test on a {−1,0,1}\{-1,0,1\}-valued martingale, counting only informative rounds (exactly one of the two clicked). It is anytime-valid, so GtG_t stays consistent with the true order.
  • Layers refine over time: certified pairs split layers, so items settle into their correct positions. GtG_t need not be transitive; it is just a set of certified comparisons.

Regret analysis

TheoremTheorem 32.2 — Regret of TopRank

Under Assumption 32.1, labelling items so that α(1)>⋯>α(ℓ)\alpha(1) > \cdots > \alpha(\ell) (for presentation only; the algorithm doesn’t use the order), with Δij=α(i)−α(j)\Delta_{ij} = \alpha(i) - \alpha(j):

Rn≤δnmℓ2+∑j=1ℓ∑i=1min⁡{m,j−1}(1+6(α(i)+α(j))log⁡(cn/δ)Δij)R_n\le\delta nm\ell^2 + \sum_{j=1}^\ell\sum_{i=1}^{\min\{m,j-1\}}\Big(1 + \frac{6(\alpha(i) + \alpha(j))\log(c\sqrt n/\delta)}{\Delta_{ij}}\Big)

and Rn≤δnmℓ2+mℓ+4m3ℓnlog⁡(cn/δ)R_n\le\delta nm\ell^2 + m\ell + \sqrt{4m^3\ell n\log(c\sqrt n/\delta)}. With δ=1/n\delta = 1/n:

Rn=O(∑j=1ℓ∑i≤min⁡{m,j−1}α(i)log⁡nΔij),Rn=O(m3ℓnlog⁡n)R_n = O\Big(\sum_{j=1}^\ell\sum_{i\le\min\{m,j-1\}}\frac{\alpha(i)\log n}{\Delta_{ij}}\Big),\qquad R_n = O\big(\sqrt{m^3\ell n\log n}\big)

IntuitionProof plan

(a) Misplacing items costs regret only while the algorithm is gaining information that will certify the right order. (b) Once GtG_t is rich enough, the play is optimal. Only pairs involving a top-mm item ii matter: that is the double sum’s range.

LemmaLemma 32.3 — Within a layer, better items get clicked more

If α(i)≥α(j)\alpha(i)\ge\alpha(j) share layer dd in round ss, then on {Usij≠0}\{U_{sij}\ne0\}:

Es−1[Usij∣Usij≠0]≥Δijα(i)+α(j),Es−1[Usji∣Usji≠0]≤0\mathbb E_{s-1}[U_{sij}\mid U_{sij}\ne0]\ge\frac{\Delta_{ij}}{\alpha(i) + \alpha(j)},\qquad\mathbb E_{s-1}[U_{sji}\mid U_{sji}\ne0]\le0

ProofExchangeability from shuffling, plus Assumption 32.1(3)

Step 1: adding and subtracting P(Ci=Cj=1)\mathbb P(C_i = C_j = 1),

E[U∣U≠0]=P(Ci=1)−P(Cj=1)P(Ci≠Cj)≥E v(A,A−1(i))−E v(A,A−1(j))E v(A,A−1(i))+E v(A,A−1(j))(32.2)\mathbb E[U\mid U\ne0] = \frac{\mathbb P(C_i = 1) - \mathbb P(C_j = 1)}{\mathbb P(C_i\ne C_j)}\ge\frac{\mathbb E\,v(A,A^{-1}(i)) - \mathbb E\,v(A,A^{-1}(j))}{\mathbb E\,v(A,A^{-1}(i)) + \mathbb E\,v(A,A^{-1}(j))} \tag{32.2}

using P(Ci≠Cj)≤P(Ci=1)+P(Cj=1)\mathbb P(C_i\ne C_j)\le\mathbb P(C_i = 1) + \mathbb P(C_j = 1) (the numerator is nonnegative by Step 2).

Step 2: Swap symmetry. TopRank makes aa and σ∘a\sigma\circ a equally likely (σ\sigma swaps i,ji, j), and a−1(i)=(σ∘a)−1(j)a^{-1}(i) = (\sigma\circ a)^{-1}(j). By Assumption 32.1(3),

E v(A,A−1(i))≥α(i)α(j)∑aP(A=σ∘a) v(σ∘a,(σ∘a)−1(j))=α(i)α(j)E v(A,A−1(j))\mathbb E\,v(A,A^{-1}(i))\ge\frac{\alpha(i)}{\alpha(j)}\sum_a\mathbb P(A = \sigma\circ a)\,v(\sigma\circ a,(\sigma\circ a)^{-1}(j)) = \frac{\alpha(i)}{\alpha(j)}\mathbb E\,v(A,A^{-1}(j))

Step 3: the ratio x−yx+y=1−21+x/y\frac{x - y}{x + y} = 1 - \frac2{1 + x/y} increases in x/y≥α(i)/α(j)x/y\ge\alpha(i)/\alpha(j), so it is at least α(i)−α(j)α(i)+α(j)\frac{\alpha(i) - \alpha(j)}{\alpha(i) + \alpha(j)}. Part 2 follows from Usji=−UsijU_{sji} = -U_{sij}.

∎

LemmaLemmas 32.4–32.6 — Certifications are correct, so layers are well-ordered

Let FtF_t be the event that some pair’s sum SsijS_{sij} deviates from its conditional drift ∑uEu−1[Uuij∣Uuij≠0]∣Uuij∣\sum_u\mathbb E_{u-1}[U_{uij}\mid U_{uij}\ne0]\lvert U_{uij}\rvert by at least the boundary 2Nsijlog⁡(cNsij/δ)\sqrt{2N_{sij}\log(c\sqrt{N_{sij}}/\delta)}, for some s<ts < t.

  • 32.4: P(Fn)≤δℓ2\mathbb P(F_n)\le\delta\ell^2 (union bound over pairs and the ternary-martingale bound).
  • 32.5: on FtcF_t^c, no wrong pair is ever certified: (i,j)∉Gt(i,j)\notin G_t when i<ji < j. The drift of SsjiS_{sji} is at most 0 by Lemma 32.3, so it never crosses the boundary.
  • 32.6: on FtcF_t^c, layer dd‘s best item satisfies Itd∗=min⁡Ptd≤1+∑c<d∣Ptc∣I_{td}^* = \min\mathcal P_{td}\le1 + \sum_{c<d}\lvert\mathcal P_{tc}\rvert. Each layer contains an item at least as good as the item that belongs in its first slot. If the overall best remaining item sits in a later layer, a chain of correct certifications links it back to a strictly better item in layer dd.

LemmaLemma 32.7 — Each pair’s click gap stays logarithmic

On FncF_n^c, for i<ji < j: Snij≤1+6(α(i)+α(j))Δijlog⁡cnδS_{nij}\le1 + \frac{6(\alpha(i) + \alpha(j))}{\Delta_{ij}}\log\frac{c\sqrt n}\delta.

ProofThe drift pushes SS up, certification caps it

Once StijS_{tij} crosses the boundary, ii and jj are split into different layers and stop accumulating, so Snij≤1+2Nlog⁡(cN/δ)S_{nij}\le1 + \sqrt{2N\log(c\sqrt N/\delta)}. On FncF_n^c and by Lemma 32.3, Snij≥ΔijNα(i)+α(j)−2Nlog⁡(⋅)S_{nij}\ge\frac{\Delta_{ij}N}{\alpha(i) + \alpha(j)} - \sqrt{2N\log(\cdot)}. Combining: ΔijNα(i)+α(j)≤(1+22)Nlog⁡cnδ\frac{\Delta_{ij}N}{\alpha(i) + \alpha(j)}\le(1 + 2\sqrt2)\sqrt{N\log\frac{c\sqrt n}\delta}, so N≤(1+22)2(α(i)+α(j))2Δij2log⁡(⋅)N\le\frac{(1 + 2\sqrt2)^2(\alpha(i) + \alpha(j))^2}{\Delta_{ij}^2}\log(\cdot). Substituting back, S≤1+2(1+22)α(i)+α(j)Δijlog⁡(⋅)S\le1 + \sqrt2(1 + 2\sqrt2)\frac{\alpha(i) + \alpha(j)}{\Delta_{ij}}\log(\cdot), and 2(1+22)≈5.4≤6\sqrt2(1 + 2\sqrt2)\approx5.4\le6.

∎

ProofProof of Theorem 32.2: optimal clicks are captured layer by layer

Step 1: Each layer’s best item collects the optimal clicks for its slots. Fix layer dd and I∗=Itd∗I^* = I_{td}^*, placed uniformly in Itd\mathcal I_{td}. By Lemma 32.6, I∗I^* belongs at or above any of these slots. Assumptions 32.1(3–4) give v(At,k)≥v(σ∘At,k)≥v(a∗,k)v(A_t,k)\ge v(\sigma\circ A_t,k)\ge v(a^*,k) for I∗I^* in slot kk. Hence Et−1[CtI∗]≥1∣Itd∣∑k∈Itdv(a∗,k)\mathbb E_{t-1}[C_{tI^*}]\ge\frac1{\lvert\mathcal I_{td}\rvert}\sum_{k\in\mathcal I_{td}}v(a^*,k) and ∑k≤mv(a∗,k)≤∑d∣Itd∣ Et−1[CtItd∗]\sum_{k\le m}v(a^*,k)\le\sum_d\lvert\mathcal I_{td}\rvert\,\mathbb E_{t-1}[C_{tI_{td}^*}].

Step 2: Per-round regret becomes within-layer click differences.

∑kv(a∗,k)−Et−1∑jCtj≤∑d∑j∈PtdEt−1[UtItd∗j]≤∑j=1ℓ∑i=1min⁡{m,j−1}Et−1[Utij](32.4)\sum_kv(a^*,k) - \mathbb E_{t-1}\sum_jC_{tj}\le\sum_d\sum_{j\in\mathcal P_{td}}\mathbb E_{t-1}[U_{tI_{td}^*j}]\le\sum_{j=1}^\ell\sum_{i=1}^{\min\{m,j-1\}}\mathbb E_{t-1}[U_{tij}] \tag{32.4}

since E[Utij]≥0\mathbb E[U_{tij}]\ge0 for i<ji < j (Lemma 32.3), and layers whose best item is beyond mm aren’t shown.

Step 3: Sum over time. At most nmnm clicks occur in total, so Rn≤nmP(Fn)+∑j∑i≤min⁡{m,j−1}E[I{Fnc}Snij]R_n\le nm\mathbb P(F_n) + \sum_j\sum_{i\le\min\{m,j-1\}}\mathbb E[\mathbb I\{F_n^c\}S_{nij}] (32.5). Apply Lemmas 32.4 and 32.7. The worst-case bound comes from stopping the proof of Lemma 32.7 early (Exercise 32.6).

∎

ImportantWhat makes TopRank work

Randomising within layers turns an unknown, position-dependent click model into pairwise duels whose drift depends only on attractiveness. The regret is a sum over pairs involving a top-mm item of “duel length × gap”, the ranking analogue of ∑log⁡n/Δ\sum\log n/\Delta. The α(i)+α(j)\alpha(i) + \alpha(j) factor makes regret small when items are rarely clicked, KL-UCB-style.


Notes

RemarkRobust to time-varying click models (Note 1)

The analysis never used that vv is fixed. If v1,…,vnv_1, \ldots, v_n all satisfy Assumption 32.1 with the same α\alpha, the same bounds hold for the regret ∑t∑kvt(a∗,k)−E∑t,iCti\sum_t\sum_kv_t(a^*,k) - \mathbb E\sum_{t,i}C_{ti}, with no change to the algorithm. This is a structured form of non-stationarity.

AlgorithmCascade bandits with independence (Note 2)

The usual cascade formalisation: Zti∼Bernoulli(α(i))Z_{ti}\sim\mathrm{Bernoulli}(\alpha(i)) independent; Mt=min⁡{k≤m:ZtAt(k)=1}M_t = \min\{k\le m : Z_{tA_t(k)} = 1\}; Cti=1C_{ti} = 1 iff Mt≤mM_t\le m and At(Mt)=iA_t(M_t) = i. Each round reveals that all items above the click were unattractive and the clicked one attractive, so α\alpha can be estimated directly with no randomisation. Sort items by upper confidence bounds and show the top mm: CascadeUCB (Hoeffding) or CascadeKL-UCB (Chernoff; KL-UCB). KL helps a lot in practice because most attractiveness values are barely above zero (Kveton et al. 2015; asymptotically optimal variants by Combes et al. 2015).

RemarkScaling with ℓ\ell (Note 3)

The linear dependence on ℓ\ell hurts with huge catalogues. Assume α(i)=⟨θ,ϕi⟩\alpha(i) = \langle\theta,\phi_i\rangle with known features, the linear-bandit idea (cascade: Zong et al. 2016; generic: Li et al. 2019).

DefinitionAdversarial ranked bandits (Notes 4–5; Radlinski et al. 2008)

The adversary picks sets St⊆[ℓ]S_t\subseteq[\ell] of items the user would like. The reward is 1 iff some shortlisted item is in StS_t: Xt(a)=I{St∩{a(1),…,a(m)}≠∅}X_t(a) = \mathbb I\{S_t\cap\{a(1), \ldots, a(m)\}\ne\emptyset\}. The feedback is the first clicked position. This is the cascade model with St={i:Zti=1}S_t = \{i : Z_{ti} = 1\}.

  • The offline problem, best ranking in hindsight, is NP-hard (maximum coverage).
  • If ℓ,m\ell, m are small, exhaustive search works. Otherwise the greedy approach is essentially the best possible: there are efficient algorithms with E∑tXt(At)≥(1−1e)max⁡a∑tXt(a)−O(mnℓlog⁡ℓ)\mathbb E\sum_tX_t(A_t)\ge(1 - \frac1e)\max_a\sum_tX_t(a) - O(m\sqrt{n\ell\log\ell}). This is approximate regret against a (1−1/e)(1 - 1/e)-scaled benchmark.

TheoremAdversarial document- and position-based ranking as semi-bandits (Exercises 32.3–32.4)

  • Document-based (Xt(a)=∣St∩{a(1),…,a(m)}∣X_t(a) = \lvert S_t\cap\{a(1), \ldots, a(m)\}\rvert, clicks on shown items observed): a combinatorial semi-bandit over mm-sets with d=ℓd = \ell. Theorem 30.2 gives Rn≤2mℓn(1+log⁡ℓ)R_n\le\sqrt{2m\ell n(1 + \log\ell)}.
  • Position-based (Xt(a)=∑kI{a(k)∈Stk}X_t(a) = \sum_k\mathbb I\{a(k)\in S_{tk}\}): coordinates are (item, position) pairs, d=mℓd = m\ell, and actions are assignments with ∥a∥1=m\lVert a\rVert_1 = m. Theorem 30.2 gives 2nm⋅mℓ(1+log⁡ℓ)=m2ℓn(1+log⁡ℓ)\sqrt{2nm\cdot m\ell(1 + \log\ell)} = m\sqrt{2\ell n(1 + \log\ell)}.

(Reductions sketched here.) No computational issues arise for the document-based case: mm-sets are efficient.

ExampleThe diversity critique (Exercise 32.2)

Radlinski et al. argue against ranking by individual relevance (the probability ranking principle, Maron–Kuhns 1960; validity conditions in Robertson 1977). Relevance probabilities are dependent: if one “jaguar car” page is irrelevant, the others probably are too. Relevance varies across users. And users want one good result. So the right objective is “at least one attractive item” (coverage), which favours diverse lists.

Counterpoints: whether the critique bites depends on the objective. For total clicks under document- or position-based models, sorting by attractiveness is optimal (Assumption 32.1(2)). For satisfaction-style objectives with correlated preferences (the cascade/coverage view), diversity matters. Assumption 32.1(3)‘s “search harder after bad items” is exactly where the two views diverge.

RemarkRelated models

Position-based model algorithms with logarithmic regret and lower bounds: Lagrée et al. (2016). Dependent click model, where the reward is unobserved satisfaction: Katariya et al. (2016). Rank-1 bandits (one item in one of mm positions): Katariya et al. (2017). TopRank generalises Zoghi et al. (2017), who factored v=αχv = \alpha\chi and constrained χ\chi, with weaker assumptions and stronger bounds. Practical issues such as cold start: Glowacka (2019).


Quick reference

ObjectStatementNote
Actionpermutation aa; top mm shownℓ!/(ℓ−m)!\ell!/(\ell-m)! rankings
Regretnmax⁡a∑kv(a,k)−E∑t,iCtin\max_a\sum_kv(a,k) - \mathbb E\sum_{t,i}C_{ti}clicks
Document-basedα(a(k))I{k≤m}\alpha(a(k))\mathbb I\{k\le m\}ℓ\ell parameters
Position-basedα(a(k))χ(k)\alpha(a(k))\chi(k)ℓ+m\ell + m parameters
Cascadeα(a(k))∏k′<k(1−α(a(k′)))\alpha(a(k))\prod_{k'<k}(1 - \alpha(a(k')))first click only
GenericAssumption 32.1(1)–(4)contains all three
TopRanktopological layers of certified pairs, shuffledlearns the order of α\alpha only
CertificationStij≥2Ntijlog⁡(cNtij/δ)S_{tij}\ge\sqrt{2N_{tij}\log(c\sqrt{N_{tij}}/\delta)}ternary martingale, c≈3.43c\approx3.43
Duel driftE[Uij∣Uij≠0]≥Δij/(α(i)+α(j))\mathbb E[U_{ij}\mid U_{ij}\ne0]\ge\Delta_{ij}/(\alpha(i) + \alpha(j))from shuffling + Assumption 32.1(3)
Duel lengthSnij≤1+6α(i)+α(j)Δijlog⁡cnδS_{nij}\le1 + 6\frac{\alpha(i) + \alpha(j)}{\Delta_{ij}}\log\frac{c\sqrt n}\delta
RegretO(∑j∑i≤min⁡(m,j−1)α(i)log⁡n/Δij)O(\sum_j\sum_{i\le\min(m,j-1)}\alpha(i)\log n/\Delta_{ij}); O(m3ℓnlog⁡n)O(\sqrt{m^3\ell n\log n})δ=1/n\delta = 1/n
Cascade (independent)CascadeUCB / CascadeKL-UCBno randomisation needed
Ranked bandits(1−1e)(1 - \frac1e)-approximate regret O(mnℓlog⁡ℓ)O(m\sqrt{n\ell\log\ell})offline NP-hard
Semi-bandit reductionsdocument: 2mℓn(1+log⁡ℓ)\sqrt{2m\ell n(1 + \log\ell)}; position: m2ℓn(1+log⁡ℓ)m\sqrt{2\ell n(1 + \log\ell)}Theorem 30.2

Facts to keep to hand

  • Rankings need a click model. Treating rankings as arms is hopeless. Click models factor clicks into item attractiveness and position examination, and the generic assumptions only require that better items earn proportionally more clicks and that sorted lists are optimal.
  • TopRank learns an order, not a model. Shuffling within layers cancels position effects, so pairwise click differences between layer-mates have drift Δij/(α(i)+α(j))\Delta_{ij}/(\alpha(i) + \alpha(j)). Anytime-certified comparisons build up a correct topological layering, and the examination model is never estimated.
  • Regret is a sum of pairwise duels. Each pair involving a top-mm item costs about α(i)Δijlog⁡n\frac{\alpha(i)}{\Delta_{ij}}\log n, worst case m3ℓnlog⁡n\sqrt{m^3\ell n\log n}, and the guarantee survives click models that change over time with the same attractiveness.
  • The objective matters. Total clicks favour sorting by attractiveness. “At least one good result” favours diversity, makes the offline problem NP-hard, and leads to (1−1/e)(1 - 1/e)-approximate regret.

References

  • Lattimore & Szepesvári, Bandit Algorithms — Chapter 32
  • Lattimore, Kveton, Li & Szepesvári, “TopRank: A practical algorithm for online stochastic ranking” (2018)
  • Chuklin, Markov & de Rijke, Click Models for Web Search (2015)
  • Radlinski, Kleinberg & Joachims, “Learning diverse rankings with multi-armed bandits” (2008)

← All notes