Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Bandit Algorithms

126 missions · 55 completed

Missions

Open71Completed55All126
🏆Completed
Convex OptimizationMachine LearningOperations Research+1·Captain: mikedeng1

Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems V: Bandit Convex Optimization with One-Point FeedbackTextbook

Motivation

In bandit convex optimization a forecaster repeatedly picks a point xtx_txt​ of a convex set K⊆Rd\mathcal K\subseteq\mathbb R^dK⊆Rd, and an adversary picks a convex loss ℓt\ell_tℓt​. The forecaster pays ℓt(xt)\ell_t(x_t)ℓt​(xt​) and observes only that number: it never sees the function, its gradient, or its value elsewhere. This is the model of online optimization with only function-value access, as in tuning a system online from measured costs, dynamic pricing with an unknown convex demand-cost curve, or routing with path costs observed only on the route taken. The question is how fast the forecaster can approach the best fixed point in hindsight.

Chapter 6 of Bubeck and Cesa-Bianchi's monograph (arXiv:1204.5721v2, Foundations and Trends in Machine Learning 5(1), 2012) treats the problem through spherical gradient estimates fed to projected gradient descent. The one-point method is due to Flaxman, Kalai and McMahan (SODA 2005, arXiv:cs/0408007), who obtained an O(n3/4)\mathcal O(n^{3/4})O(n3/4) regret bound. Agarwal, Dekel and Xiao (COLT 2010) showed that two function evaluations per round allow O(n)\mathcal O(\sqrt n)O(n​). Whether one-point feedback admits n\sqrt nn​ regret was open when the monograph was written (p. 94); Bubeck, Eldan and Lee (STOC 2017, arXiv:1607.03084) later obtained n\sqrt nn​ regret up to logarithmic and polynomial-in-ddd factors for convex losses, with a different and much more involved algorithm.

Setting

Let B={x∈Rd:∥x∥≤1}\mathbb B=\{x\in\mathbb R^d:\|x\|\le1\}B={x∈Rd:∥x∥≤1} be the closed Euclidean unit ball and S={x:∥x∥=1}\mathbb S=\{x:\|x\|=1\}S={x:∥x∥=1} the unit sphere, with unnormalized spherical measure σ\sigmaσ, so that σ(S)=d Vol(B)\sigma(\mathbb S)=d\,\mathrm{Vol}(\mathbb B)σ(S)=dVol(B). Fix δ>0\delta>0δ>0. For a loss ℓ\ellℓ, the smoothed loss is ℓ~(x)=E ℓ(x+δB)\widetilde\ell(x)=\mathbb E\,\ell(x+\delta B)ℓ(x)=Eℓ(x+δB) with BBB uniform on B\mathbb BB.

The set K\mathcal KK is closed and convex with rB⊆K⊆RBr\mathbb B\subseteq\mathcal K\subseteq R\mathbb BrB⊆K⊆RB. The losses ℓ1,ℓ2,⋯:Rd→R\ell_1,\ell_2,\dots:\mathbb R^d\to\mathbb Rℓ1​,ℓ2​,⋯:Rd→R are GGG-Lipschitz, differentiable and convex, and are fixed before the game (an oblivious adversary).

OSGD (Online Stochastic Gradient Descent) on a set K′\mathcal K'K′ with learning rate η\etaη starts at x1=0x_1=0x1​=0 and sets xt+1=argmin⁡y∈K′∥y−(xt−ηg~t(xt))∥x_{t+1}=\operatorname{argmin}_{y\in\mathcal K'}\|y-(x_t-\eta\widetilde g_t(x_t))\|xt+1​=argminy∈K′​∥y−(xt​−ηg​t​(xt​))∥, where g~t\widetilde g_tg​t​ is a gradient estimate. With S1,S2,…S_1,S_2,\dotsS1​,S2​,… independent and uniform on S\mathbb SS:

  • the two-point estimate (6.1) is g~t(xt)=d2δ(ℓt(Xt+)−ℓt(Xt−))St\widetilde g_t(x_t)=\frac d{2\delta}\big(\ell_t(X_t^+)-\ell_t(X_t^-)\big)S_tg​t​(xt​)=2δd​(ℓt​(Xt+​)−ℓt​(Xt−​))St​ with Xt±=xt±δStX_t^\pm=x_t\pm\delta S_tXt±​=xt​±δSt​; the played point is Xt+X_t^+Xt+​ or Xt−X_t^-Xt−​ by a fair coin;
  • the one-point estimate (6.3) is g~t(xt)=dδ ℓt(X~t)St\widetilde g_t(x_t)=\frac d\delta\,\ell_t(\widetilde X_t)S_tg​t​(xt​)=δd​ℓt​(Xt​)St​ with played point X~t=xt+δSt\widetilde X_t=x_t+\delta S_tXt​=xt​+δSt​.

OSGD runs on the shrunken set K′=(1−δ/r)K\mathcal K'=(1-\delta/r)\mathcal KK′=(1−δ/r)K, so that the perturbed points stay in K\mathcal KK. The pseudo-regret is

R‾n=E∑t=1nℓt(X~t)−min⁡x∈K∑t=1nℓt(x).\overline R_n=\mathbb E\sum_{t=1}^n\ell_t(\widetilde X_t)-\min_{x\in\mathcal K}\sum_{t=1}^n\ell_t(x).Rn​=Et=1∑n​ℓt​(Xt​)−x∈Kmin​t=1∑n​ℓt​(x).

Formalization targets

Goal: Theorem 6.2, tuned

If in addition ∣ℓt∣≤L|\ell_t|\le L∣ℓt​∣≤L on K\mathcal KK, and δ=(2n)−1/4RdL/((3+R/r)G)\delta=(2n)^{-1/4}\sqrt{RdL/((3+R/r)G)}δ=(2n)−1/4RdL/((3+R/r)G)​, η=(2n)−3/4R3/(dL(3+R/r)G)\eta=(2n)^{-3/4}\sqrt{R^3/(dL(3+R/r)G)}η=(2n)−3/4R3/(dL(3+R/r)G)​, then one-point OSGD satisfies

R‾n≤4n3/4RdL (3+R/r) G.\overline R_n\le 4n^{3/4}\sqrt{RdL\,(3+R/r)\,G}.Rn​≤4n3/4RdL(3+R/r)G​.

Milestones

  1. Lemma 6.1: ∇∫Bℓ(x+δb) db=1δ∫Sℓ(x+δs)s dσ(s)\nabla\int_{\mathbb B}\ell(x+\delta b)\,db=\frac1\delta\int_{\mathbb S}\ell(x+\delta s)s\,d\sigma(s)∇∫B​ℓ(x+δb)db=δ1​∫S​ℓ(x+δs)sdσ(s).
  2. Lemma 6.2: dδE[ℓ(x+δS)S]=∇E ℓ(x+δB)\frac d\delta\mathbb E[\ell(x+\delta S)S]=\nabla\mathbb E\,\ell(x+\delta B)δd​E[ℓ(x+δS)S]=∇Eℓ(x+δB).
  3. Eq. (6.2): ∣ℓ(x)−ℓ~(x)∣≤δG|\ell(x)-\widetilde\ell(x)|\le\delta G∣ℓ(x)−ℓ(x)∣≤δG.
  4. Lemma 6.3: the queried points' regret against xxx is at most the smoothed regret of the iterates against (1−ξ)x(1-\xi)x(1−ξ)x, plus 3δGn+ξGRn3\delta Gn+\xi GRn3δGn+ξGRn.
  5. Theorem 6.1: two-point OSGD has R‾n≤R2/η+η(Gd)2n+δ(3+R/r)Gn\overline R_n\le R^2/\eta+\eta(Gd)^2n+\delta(3+R/r)GnRn​≤R2/η+η(Gd)2n+δ(3+R/r)Gn, and R‾n≤2RGdn+δ(3+R/r)Gn\overline R_n\le 2RGd\sqrt n+\delta(3+R/r)GnRn​≤2RGdn​+δ(3+R/r)Gn for η=R/(Gdn)\eta=R/(Gd\sqrt n)η=R/(Gdn​).
  6. Theorem 6.2, first display: one-point OSGD has R‾n≤R2/η+(dL)2δ2ηn+δ(3+R/r)Gn\overline R_n\le R^2/\eta+\frac{(dL)^2}{\delta^2}\eta n+\delta(3+R/r)GnRn​≤R2/η+δ2(dL)2​ηn+δ(3+R/r)Gn for every 0<δ≤r0<\delta\le r0<δ≤r and η>0\eta>0η>0.

Significance

The n3/4n^{3/4}n3/4 bound shows that a single function value per round suffices for sublinear regret against any oblivious sequence of Lipschitz convex losses, with a forecaster whose only operations are a random perturbation and a Euclidean projection. The smoothing identity of Lemmas 6.1–6.2 is the basic tool of zeroth-order (derivative-free) optimization, used well beyond bandits, and Theorem 6.1 is the n\sqrt nn​ benchmark for two-point methods.

All results are proved in the source. To the best of current knowledge none is formalized: the related items of the Introduction to Online Convex Optimization series on Prove2Me (Hazan's Lemma 6.7 and Theorem 6.9) were formalized with missing hypotheses and are recorded as disproved. This mission produces machine-checked statements with every hypothesis explicit, and the formal infrastructure (sphere measure calculus, a projected stochastic gradient analysis) for later zeroth-order results.

Difficulty

Two steps resist a direct formal treatment. First, Lemma 6.1 is a divergence-theorem identity on the ball; Mathlib has the sphere measure and polar coordinates, but its divergence theorem covers boxes rather than balls, so differentiating the ball average in xxx requires either such a theorem or a direct argument about translates of the ball. Second, the regret analysis takes expectations of quantities that depend on the whole past: the iterate xtx_txt​ is a function of S1,…,St−1S_1,\dots,S_{t-1}S1​,…,St−1​, and unbiasedness E[g~t∣xt]=∇ℓ~t(xt)\mathbb E[\widetilde g_t\mid x_t]=\nabla\widetilde\ell_t(x_t)E[g​t​∣xt​]=∇ℓt​(xt​) holds only conditionally, via independence of StS_tSt​ from the past. A pathwise gradient-descent inequality must be combined with this conditional expectation round by round, with measurability of the projected iterates established along the way. The naive approach of treating the estimate as the true gradient of ℓt\ell_tℓt​ fails: it is a gradient of ℓ~t\widetilde\ell_tℓt​, and the gap is handled only by Eq. (6.2) and Lemma 6.3.

Formalization scope

Points are in EuclideanSpace ℝ (Fin d) with d≥1d\ge1d≥1; rounds are t=1,2,…t=1,2,\dotst=1,2,…, sums run over Finset.Icc 1 n. σ\sigmaσ is Mathlib's Measure.toSphere of Lebesgue measure; the uniform laws are normalized restrictions. Randomness lives on an arbitrary probability space; the directions StS_tSt​ are measurable, mutually independent (iIndepFun) and uniform on S\mathbb SS, and in Theorem 6.1 the pairs (St,Ct)(S_t,C_t)(St​,Ct​) are independent with CtC_tCt​ a fair sign independent of StS_tSt​. A run of OSGD is a predicate (start at 000, each iterate a Euclidean projection onto (1−δ/r)K(1-\delta/r)\mathcal K(1−δ/r)K), which determines the run uniquely, so the forecaster uses only observed values and its own randomness. The losses are Lipschitz, differentiable and convex on all of Rd\mathbb R^dRd; the bound ∣ℓt∣≤L|\ell_t|\le L∣ℓt​∣≤L is on K\mathcal KK, because a convex function bounded on Rd\mathbb R^dRd is constant. The minimum over K\mathcal KK is an infimum over the subtype K\mathcal KK, attained in every theorem.

Conventions and corrections, each stated in the item's Formalization Note:

  • Lemma 6.1 carries the factor 1/δ1/\delta1/δ that the printed statement omits and the proof contains (corrected misprint).
  • Theorem 6.1's second display prints η=R/(GDn)\eta=R/(GD\sqrt n)η=R/(GDn​) and a limit "for δ→0\delta\to0δ→0"; the item states R‾n≤2RGdn+δ(3+R/r)Gn\overline R_n\le 2RGd\sqrt n+\delta(3+R/r)GnRn​≤2RGdn​+δ(3+R/r)Gn for η=R/(Gdn)\eta=R/(Gd\sqrt n)η=R/(Gdn​) and every admissible δ\deltaδ, which implies the limit (corrected misprint).
  • Theorems 6.1 and 6.2 add 0<δ≤r0<\delta\le r0<δ≤r, which the proofs need for Xt±,X~t∈KX_t^\pm,\widetilde X_t\in\mathcal KXt±​,Xt​∈K; for the tuned δ\deltaδ of the goal it is a condition on nnn.
  • The goal adds G,L>0G,L>0G,L>0 and n≥1n\ge1n≥1, which its formulas for δ,η\delta,\etaδ,η need; the constant 444 is the book's rounding of 2⋅23/42\cdot2^{3/4}2⋅23/4 and is kept, as is the form R2/ηR^2/\etaR2/η.

The statements cannot be satisfied trivially: the run is pinned by its recursion, the losses are fixed before the randomness, the expectations are of bounded measurable functions (no zero-valued Bochner integrals), and the minimum is over the nonempty compact K\mathcal KK. Section 6.3 (Lemma 6.4, Theorem 6.3) is not included, because its algorithm box and proof use different stage lengths and its unimodality condition is stated on a smaller set than the proof uses.

Needed infrastructure: calculus of ball averages and sphere integrals, symmetry of the uniform sphere law, nonexpansiveness of projections onto closed convex sets, and conditional-expectation bookkeeping for adapted iterates. Each is reusable for zeroth-order optimization; contributions of any of them as separate lemmas are welcome.

Selected references

  • S. Bubeck, N. Cesa-Bianchi, Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Foundations and Trends in Machine Learning 5(1), 2012. arXiv:1204.5721v2, doi:10.1561/2200000024
  • A. Flaxman, A. Kalai, H. B. McMahan, Online convex optimization in the bandit setting: gradient descent without a gradient, SODA 2005. arXiv:cs/0408007
  • A. Agarwal, O. Dekel, L. Xiao, Optimal algorithms for online convex optimization with multi-point bandit feedback, COLT 2010. link
  • S. Bubeck, R. Eldan, Y. T. Lee, Kernel-based methods for bandit convex optimization, STOC 2017. arXiv:1607.03084
10 thms2 active usersReviewed
Machine LearningOperations ResearchProbability·Captain: mikedeng1

Analysis of Thompson Sampling for the Multi-armed Bandit Problem 1: Logarithmic Regret for Two ArmsResearch Paper

Motivation

Thompson Sampling (TS) is the oldest heuristic for the stochastic multi-armed bandit problem: it was proposed by Thompson in 1933 (Biometrika 25) and is used in practice for online advertising and recommendation, where it often performs as well as or better than upper-confidence-bound methods (Chapelle and Li, NIPS 2011; Scott 2010). Until 2012 its theoretical guarantees for the frequentist regret were weak: earlier analyses gave only o(T)o(T)o(T) regret in time TTT (Granmo 2010; May, Korda, Lee and Leslie 2011).

Agrawal and Goyal, Analysis of Thompson Sampling for the Multi-armed Bandit Problem (arXiv:1111.1797v3, COLT 2012), gave the first logarithmic finite-time bound on the expected regret of TS. This mission formalizes their two-armed result, Theorem 1. A companion mission covers the NNN-armed bound, Theorem 2.

Timeline. Lai and Robbins (1985) proved that every consistent algorithm has regret at least [∑iΔi/D(μi∥μ∗)+o(1)]ln⁡T\big[\sum_i \Delta_i/D(\mu_i\|\mu^*)+o(1)\big]\ln T[∑i​Δi​/D(μi​∥μ∗)+o(1)]lnT. Auer, Cesa-Bianchi and Fischer (2002) gave UCB1 with an O(∑iln⁡T/Δi)O(\sum_i \ln T/\Delta_i)O(∑i​lnT/Δi​) finite-time bound. Agrawal and Goyal (2012) proved O(ln⁡T/Δ+1/Δ3)O(\ln T/\Delta+1/\Delta^3)O(lnT/Δ+1/Δ3) for two-armed TS. Kaufmann, Korda and Munos (ALT 2012) and Agrawal and Goyal (AISTATS 2013) later proved asymptotically optimal bounds for Bernoulli TS.

Setting

There are two arms. Arm i∈{1,2}i\in\{1,2\}i∈{1,2} has a fixed, unknown reward distribution DiD_iDi​ supported in [0,1][0,1][0,1], with mean μi\mu_iμi​. Plays of an arm give i.i.d. rewards, independent of the other arm. Arm 1 is the unique optimal arm, μ1>μ2\mu_1>\mu_2μ1​>μ2​, and Δ=μ1−μ2\Delta=\mu_1-\mu_2Δ=μ1​−μ2​ is the gap.

Thompson Sampling for general stochastic bandits (Algorithm 2 of the paper) keeps, for each arm iii, a success count SiS_iSi​ and a failure count FiF_iFi​, both starting at 000. In each round t=1,2,…t=1,2,\dotst=1,2,… it

  1. samples, independently for each arm, θi(t)∼Beta(Si+1,Fi+1)\theta_i(t)\sim\mathrm{Beta}(S_i+1,F_i+1)θi​(t)∼Beta(Si​+1,Fi​+1);
  2. plays i(t)=arg⁡max⁡iθi(t)i(t)=\arg\max_i\theta_i(t)i(t)=argmaxi​θi​(t) and observes a reward r~t∼Di(t)\tilde r_t\sim D_{i(t)}r~t​∼Di(t)​;
  3. performs a Bernoulli trial with success probability r~t\tilde r_tr~t​, with outcome rt∈{0,1}r_t\in\{0,1\}rt​∈{0,1};
  4. increments Si(t)S_{i(t)}Si(t)​ if rt=1r_t=1rt​=1 and Fi(t)F_{i(t)}Fi(t)​ otherwise.

ki(t)k_i(t)ki​(t) is the number of plays of arm iii before round ttt. The expected regret in time TTT is

E[R(T)]=E[∑t=1T(μ1−μi(t))],\mathbb E[\mathcal R(T)]=\mathbb E\Big[\sum_{t=1}^T(\mu_1-\mu_{i(t)})\Big],E[R(T)]=E[t=1∑T​(μ1​−μi(t)​)],

the expectation being over the rewards and the algorithm's randomness.

The analysis uses the Beta cdf Fα,βbetaF^{beta}_{\alpha,\beta}Fα,βbeta​, the binomial cdf Fn,pBF^B_{n,p}Fn,pB​, and the random variable X(j,s,y)X(j,s,y)X(j,s,y): the number of independent Beta(s+1,j−s+1)\mathrm{Beta}(s+1,j-s+1)Beta(s+1,j−s+1) draws made before one exceeds yyy.

Formalization targets

Goal: Theorem 1 (p. 3)

There is an absolute constant C>0C>0C>0 such that for every two-armed instance with rewards in [0,1][0,1][0,1] and μ1>μ2\mu_1>\mu_2μ1​>μ2​, and every T≥2T\ge 2T≥2,

E[R(T)]≤C(ln⁡TΔ+1Δ3).\mathbb E[\mathcal R(T)]\le C\Big(\frac{\ln T}{\Delta}+\frac1{\Delta^3}\Big).E[R(T)]≤C(ΔlnT​+Δ31​).

The constant is not fixed numerically: the paper states the theorem in O(⋅)O(\cdot)O(⋅) form (footnote 1), and the explicit display it reports on p. 8, 40ln⁡T/Δ+48/Δ3+18Δ40\ln T/\Delta+48/\Delta^3+18\Delta40lnT/Δ+48/Δ3+18Δ, is not the formal claim.

Milestones

  • Fact 1 (p. 12): Fα,βbeta(y)=1−Fα+β−1,yB(α−1)F^{beta}_{\alpha,\beta}(y)=1-F^B_{\alpha+\beta-1,y}(\alpha-1)Fα,βbeta​(y)=1−Fα+β−1,yB​(α−1) for positive integers α,β\alpha,\betaα,β.
  • Lemma 1 (p. 6): E[X(j,s,y)]=1/Fj+1,yB(s)−1\mathbb E[X(j,s,y)]=1/F^B_{j+1,y}(s)-1E[X(j,s,y)]=1/Fj+1,yB​(s)−1.
  • Lemma 6 (p. 13): Hoeffding-type bounds (10)–(11) on binomial cdfs.
  • Fact 2 (p. 13): every median of Binomial(n,p)\mathrm{Binomial}(n,p)Binomial(n,p) is ⌊np⌋\lfloor np\rfloor⌊np⌋ or ⌈np⌉\lceil np\rceil⌈np⌉.
  • Lemma 2 (p. 7): Pr⁡(E2(t))≥1−2/T2\Pr(E_2(t))\ge 1-2/T^2Pr(E2​(t))≥1−2/T2, where E2(t)={θ2(t)≤μ2+Δ/2 or k2(t)<24ln⁡T/Δ2}E_2(t)=\{\theta_2(t)\le\mu_2+\Delta/2\ \text{or}\ k_2(t)<24\ln T/\Delta^2\}E2​(t)={θ2​(t)≤μ2​+Δ/2 or k2​(t)<24lnT/Δ2}.
  • Lemma 3 (p. 7): a three-case bound on E[E[min⁡{X(j,s(j),y),T}∣s(j)]]\mathbb E\big[\mathbb E[\min\{X(j,s(j),y),T\}\mid s(j)]\big]E[E[min{X(j,s(j),y),T}∣s(j)]] for s(j)∼Binomial(j,μ1)s(j)\sim\mathrm{Binomial}(j,\mu_1)s(j)∼Binomial(j,μ1​).
  • Eq. (1) (p. 7): E[k2(T)]≤C(ln⁡T/Δ2+1/Δ4)\mathbb E[k_2(T)]\le C(\ln T/\Delta^2+1/\Delta^4)E[k2​(T)]≤C(lnT/Δ2+1/Δ4).

Significance

The result. Theorem 1 shows that TS, a randomized Bayesian heuristic with no explicit confidence bonus, has regret logarithmic in TTT on every two-armed instance, matching the order in TTT of the Lai–Robbins lower bound. The proof introduced a way to control the optimal arm's waiting time between plays through the Beta–Binomial duality, and later analyses of TS reuse that device.

Formalizing it. The result is proved on paper and has no machine-checked proof that we know of. The platform's existing TS results concern Gaussian TS (Lattimore and Szepesvári, Ch. 36) and Bayesian regret, which are different algorithms or regret notions. A formalization adds a reusable Lean model of Algorithm 2 on [0,1][0,1][0,1]-valued rewards, Beta–Binomial facts (Fact 1, Lemma 1), a binomial-median theorem, and binomial Hoeffding bounds. It also produces a proof with a constant that has been checked, since the printed constants contain an arithmetic slip.

Difficulty

The standard UCB argument does not transfer to TS. For UCB, the optimal arm's index exceeds its mean with high probability however often the arm has been played, because the exploration bonus is deterministic; the analysis then only has to count plays of the suboptimal arm until its own index concentrates, after Θ(ln⁡T/Δ2)\Theta(\ln T/\Delta^2)Θ(lnT/Δ2) plays. Under TS the optimal arm's sample θ1(t)\theta_1(t)θ1​(t) is random and, if the arm has been played rarely or its early rewards were poor, it falls below μ2\mu_2μ2​ with constant probability. The optimal arm may then wait a long, random time between plays, and the length of that wait depends on the arm's posterior, which in turn depends on how long it has waited. Counting plays of the suboptimal arm with a union bound over rounds, under the assumption that the optimal arm is already concentrated, therefore does not work; controlling these waiting times is the central difficulty and is where the 1/Δ31/\Delta^31/Δ3 dependence enters.

Formalization scope

  • Model. The instance is the platform's StochasticBandit 2 (a probability measure on R\mathbb RR per arm, mean banditArmMean), with the hypothesis that each reward law gives mass 111 to [0,1][0,1][0,1]. Lean arm 0 is the paper's arm 1 and Lean arm 1 the paper's arm 2. Lean rounds are indexed from 000.
  • Algorithm. Algorithm 2 is realized on one probability space with three independent i.i.d. tables: Beta draws W(i,t,a,b)∼Beta(a+1,b+1)W(i,t,a,b)\sim\mathrm{Beta}(a+1,b+1)W(i,t,a,b)∼Beta(a+1,b+1), rewards X(i,t)∼DiX(i,t)\sim D_iX(i,t)∼Di​, and uniforms V(i,t)V(i,t)V(i,t). Round ttt uses θi(t)=W(i,t,Si(t),Fi(t))\theta_i(t)=W(i,t,S_i(t),F_i(t))θi​(t)=W(i,t,Si​(t),Fi​(t)), r~t=X(i(t),t)\tilde r_t=X(i(t),t)r~t​=X(i(t),t) and rt=1{V(i(t),t)<r~t}r_t=\mathbf 1\{V(i(t),t)<\tilde r_t\}rt​=1{V(i(t),t)<r~t​}. Ties in the arg max go to the smaller index (a null event).
  • Values. Regret and expectations are lower Lebesgue integrals in [0,∞][0,\infty][0,∞]. X(j,s,y)X(j,s,y)X(j,s,y) is N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}-valued, so Lemma 1 at y=1y=1y=1 reads ∞=∞\infty=\infty∞=∞, as in the paper.
  • O(·). The paper's O(⋅)O(\cdot)O(⋅) (footnote 1: f≤cgf\le cgf≤cg for n≥n0n\ge n_0n≥n0​) is stated with one universal constant C>0C>0C>0, quantified before the instance, the means and the horizon, for all T≥2T\ge 2T≥2. Eq. (1) is stated the same way, without its printed numerals.
  • Not trivial. The goal is about Algorithm 2 itself, with fresh Beta samples, fresh rewards and the Bernoulli coin. A statement about "any policy satisfying Lemma 2's event bound", or one whose constant depends on Δ\DeltaΔ, the reward laws or TTT, would not be Theorem 1.
  • Edge cases. μ1<1\mu_1<1μ1​<1 is assumed only in Lemma 3, where the paper's RRR and DDD require it. It is not a hypothesis of the goal.
  • Infrastructure. A complete proof needs: inverse-transform or order-statistics facts for Beta laws (Fact 1); geometric expectations; Hoeffding's inequality for sums of Bernoulli variables (Mathlib has Hoeffding/Azuma); the binomial median theorem (Jogdeo–Samuels; Kaas–Buhrman); and the coupling from the reward tables to the per-arm i.i.d. output stacks the paper reasons with. Fact 1, Lemma 6 and Fact 2 are reusable beyond this mission. Contributions to any milestone are welcome, and so is a direct proof of the regret bound with an explicit constant.

Selected references

  • S. Agrawal and N. Goyal, Analysis of Thompson Sampling for the Multi-armed Bandit Problem, COLT 2012; arXiv:1111.1797v3. https://arxiv.org/abs/1111.1797
  • W. R. Thompson, On the likelihood that one unknown probability exceeds another in view of the evidence of two samples, Biometrika 25 (1933) 285–294. https://doi.org/10.2307/2332286
  • T. L. Lai and H. Robbins, Asymptotically efficient adaptive allocation rules, Advances in Applied Mathematics 6 (1985) 4–22. https://doi.org/10.1016/0196-8858(85)90002-8
  • P. Auer, N. Cesa-Bianchi and P. Fischer, Finite-time analysis of the multiarmed bandit problem, Machine Learning 47 (2002) 235–256. https://doi.org/10.1023/A:1013689704352
  • K. Jogdeo and S. M. Samuels, Monotone convergence of binomial probabilities and a generalization of Ramanujan's equation, Annals of Mathematical Statistics 39 (1968) 1191–1195. https://doi.org/10.1214/aoms/1177698243
  • R. Kaas and J. M. Buhrman, Mean, median and mode in binomial distributions, Statistica Neerlandica 34 (1980) 13–18. https://doi.org/10.1111/j.1467-9574.1980.tb00681.x
  • O. Chapelle and L. Li, An empirical evaluation of Thompson Sampling, NIPS 2011. https://papers.nips.cc/paper/4321-an-empirical-evaluation-of-thompson-sampling
11 thms2 active usersReviewed
🏆Completed
Machine LearningOptimizationReinforcement Learning·Captain: mikedeng1

Reinforcement Learning: An Introduction I: The Gradient Bandit Algorithm Is Stochastic Gradient AscentTextbook

Motivation

The multi-armed bandit is the simplest setting in which a learner must trade off exploiting what it knows against exploring what it does not: one situation, kkk actions, and a reward drawn from an unknown distribution each time an action is taken. Chapter 2 of Sutton and Barto's Reinforcement Learning: An Introduction (2nd ed., MIT Press, 2018) uses it to introduce, in the smallest possible setting, ideas that run through the rest of the book: incremental estimation with a step size, the bias introduced by the initial estimate, soft-max policies over learned preferences, and learning by following the gradient of expected reward.

The chapter ends with the gradient bandit algorithm (§2.8), which learns a numerical preference for each action instead of a value estimate. A shaded box on pp. 38–40 shows that its expected update is exactly a gradient-ascent step on the expected reward, so the algorithm is an instance of stochastic gradient ascent. The same argument, a score-function (likelihood-ratio) identity with a baseline, reappears in Chapter 13 as the REINFORCE algorithm and the policy gradient theorem. The bandit case is where the book first carries it out in full.

Setting

Actions are 1,…,k1, \dots, k1,…,k. Each action xxx has a reward distribution νx\nu_xνx​ on R\mathbb RR with finite mean q∗(x)q_*(x)q∗​(x), the true action value. At each step the learner holds a vector of action preferences H=(H(1),…,H(k))∈RkH = (H(1), \dots, H(k)) \in \mathbb R^kH=(H(1),…,H(k))∈Rk and selects action AAA with the soft-max probability

π(a)=eH(a)∑b=1keH(b)(2.11).\pi(a) = \frac{e^{H(a)}}{\sum_{b=1}^k e^{H(b)}} \qquad (2.11).π(a)=∑b=1k​eH(b)eH(a)​(2.11).

Given A=xA = xA=x, a reward R∼νxR \sim \nu_xR∼νx​ is received. The expected reward is E[R]=∑xπ(x) q∗(x)\mathbb E[R] = \sum_x \pi(x)\, q_*(x)E[R]=∑x​π(x)q∗​(x), a smooth function of HHH. With a step size α>0\alpha > 0α>0 and a baseline B∈RB \in \mathbb RB∈R, the gradient bandit update (2.12) is

H′(A)=H(A)+α(R−B)(1−π(A)),H′(a)=H(a)−α(R−B) π(a)  (a≠A).H'(A) = H(A) + \alpha (R - B)(1 - \pi(A)), \qquad H'(a) = H(a) - \alpha (R - B)\,\pi(a) \ \ (a \ne A).H′(A)=H(A)+α(R−B)(1−π(A)),H′(a)=H(a)−α(R−B)π(a)  (a=A).

The chapter's estimation sections use a single action's rewards R1,R2,…R_1, R_2, \dotsR1​,R2​,…. The sample average after n−1n-1n−1 selections is Qn=(R1+⋯+Rn−1)/(n−1)Q_n = (R_1 + \cdots + R_{n-1})/(n-1)Qn​=(R1​+⋯+Rn−1​)/(n−1), with an arbitrary initial value Q1Q_1Q1​. A constant step size α∈(0,1]\alpha \in (0,1]α∈(0,1] updates Qn+1=Qn+α[Rn−Qn]Q_{n+1} = Q_n + \alpha [R_n - Q_n]Qn+1​=Qn​+α[Rn​−Qn​] (2.5). The trace of one oˉ0=0\bar o_0 = 0oˉ0​=0, oˉn=oˉn−1+α(1−oˉn−1)\bar o_n = \bar o_{n-1} + \alpha (1 - \bar o_{n-1})oˉn​=oˉn−1​+α(1−oˉn−1​) defines the step size βn=α/oˉn\beta_n = \alpha / \bar o_nβn​=α/oˉn​ (2.8)–(2.9).

Formalization targets

Goal: the expected update is the gradient step

For every action aaa, with A∼πA \sim \piA∼π and R∣A=x∼νxR \mid A = x \sim \nu_xR∣A=x∼νx​,

E[H′(a)]=H(a)+α ∂ E[R]∂H(a),\mathbb E\bigl[H'(a)\bigr] = H(a) + \alpha\, \frac{\partial\, \mathbb E[R]}{\partial H(a)} ,E[H′(a)]=H(a)+α∂H(a)∂E[R]​,

that is, the update (2.12) equals the exact gradient-ascent step (2.13) in expected value, for every baseline BBB that does not depend on the selected action.

Milestones

  1. (2.3): Qn+1=Qn+1n[Rn−Qn]Q_{n+1} = Q_n + \tfrac1n [R_n - Q_n]Qn+1​=Qn​+n1​[Rn​−Qn​] for n≥1n \ge 1n≥1, including Q2=R1Q_2 = R_1Q2​=R1​ for arbitrary Q1Q_1Q1​.
  2. (2.6): Qn+1=(1−α)nQ1+∑i=1nα(1−α)n−iRiQ_{n+1} = (1-\alpha)^n Q_1 + \sum_{i=1}^n \alpha(1-\alpha)^{n-i} R_iQn+1​=(1−α)nQ1​+∑i=1n​α(1−α)n−iRi​, with weights summing to one.
  3. Exercise 2.7: with βn=α/oˉn\beta_n = \alpha/\bar o_nβn​=α/oˉn​, Qn+1=∑i=1nα(1−α)n−ioˉnRiQ_{n+1} = \sum_{i=1}^n \frac{\alpha(1-\alpha)^{n-i}}{\bar o_n} R_iQn+1​=∑i=1n​oˉn​α(1−α)n−i​Ri​ for n≥1n \ge 1n≥1, weights summing to one, and no dependence on Q1Q_1Q1​.
  4. Shift invariance (p. 37): adding a constant ccc to every preference leaves π\piπ unchanged.
  5. Exercise 2.9: for k=2k = 2k=2, π(1)=σ(H(1)−H(2))\pi(1) = \sigma(H(1) - H(2))π(1)=σ(H(1)−H(2)) with σ(x)=1/(1+e−x)\sigma(x) = 1/(1+e^{-x})σ(x)=1/(1+e−x).
  6. Soft-max derivative (p. 40): ∂π(x)/∂H(a)=π(x)(1a=x−π(a))\partial \pi(x)/\partial H(a) = \pi(x)(\mathbb 1_{a=x} - \pi(a))∂π(x)/∂H(a)=π(x)(1a=x​−π(a)).
  7. Zero-sum gradient (p. 39): ∑x∂π(x)/∂H(a)=0\sum_x \partial \pi(x)/\partial H(a) = 0∑x​∂π(x)/∂H(a)=0.
  8. Performance gradient as an expectation (p. 39): ∂E[R]/∂H(a)=E[(R−B)(1a=A−π(a))]\partial \mathbb E[R]/\partial H(a) = \mathbb E[(R - B)(\mathbb 1_{a=A} - \pi(a))]∂E[R]/∂H(a)=E[(R−B)(1a=A​−π(a))].

Significance

The result. The identity makes a model-free algorithm, which uses only the sampled action and reward, an unbiased estimator of the gradient of a quantity that depends on the unknown q∗q_*q∗​. It therefore places the gradient bandit algorithm within stochastic approximation, where convergence theory for stochastic gradient methods applies. It also explains the role of the baseline: any baseline independent of the action leaves the expected update unchanged, so the choice of baseline can only affect the variance of the update, as Figure 2.5 shows empirically. The estimation milestones make precise two claims the chapter uses repeatedly: sample averages can be maintained incrementally, and constant step sizes produce an exponentially recency-weighted average biased by Q1Q_1Q1​. Exercise 2.7 removes that bias.

Formalizing it. All of these results are elementary and proved (or left as routine exercises) in the book. None of them is formalized on Prove2Me or, as far as is known, in Mathlib. What this mission adds is a machine-checked version of the book's argument with the reward model and baseline condition stated precisely, and a reusable soft-max layer (definition, partial derivatives, shift invariance) for later missions of this series, in particular the policy gradient theorem of Chapter 13.

Difficulty

The mathematics is beginning calculus, as the book says. The formal difficulty lies elsewhere. The goal is an identity between an expectation over a two-stage random experiment (an action from π\piπ, then a reward from νA\nu_AνA​) and a partial derivative in one coordinate of a vector-valued parameter. A proof has to justify exchanging the finite sum with the derivative and splitting the reward integral, and it has to use integrability of each νx\nu_xνx​. It also needs the fact that the baseline term vanishes because ∑x∂π(x)/∂H(a)=0\sum_x \partial\pi(x)/\partial H(a) = 0∑x​∂π(x)/∂H(a)=0. A scalar-parameter version of the log-sum-exp derivative does not suffice: the book differentiates in one coordinate H(a)H(a)H(a) while all other preferences are held fixed. For Exercise 2.7 the obvious unrolling of (2.6) does not apply directly, because the step size βn\beta_nβn​ varies with nnn and the book states neither the weights nor the range of α\alphaα.

Formalization scope

  • Actions are Fin k. Every statement quantifies over some action, so k≥1k \ge 1k≥1 whenever it has content. Preferences are vectors Fin k → ℝ. The partial derivative in coordinate aaa is the derivative of h↦f(update H a h)h \mapsto f(\text{update } H\ a\ h)h↦f(update H a h) at H(a)H(a)H(a). The soft-max derivative milestone is stated with HasDerivAt, so it also asserts differentiability.
  • Rewards: each νx\nu_xνx​ is a probability measure on R\mathbb RR with Integrable identity and mean q∗(x)q_*(x)q∗​(x). The expectation of a function of (A,R)(A, R)(A,R) is ∑xπ(x)∫⋅ dνx\sum_x \pi(x) \int \cdot \, d\nu_x∑x​π(x)∫⋅dνx​. The book's normal-distribution testbed is only an example.
  • The baseline is a fixed real BBB, the book's "any scalar that does not depend on" the action (pp. 39–40). The book's Bt=RˉtB_t = \bar R_tBt​=Rˉt​, the average of past rewards, is covered once one conditions on the past. Footnote 1 on p. 37 states that the chapter's experiments used a Rˉt\bar R_tRˉt​ that also included RtR_tRt​. That baseline depends on AtA_tAt​, and the identity does not cover it.
  • Rewards of one action are a sequence indexed from 111. Q1Q_1Q1​ is arbitrary, and 00=10^0 = 100=1 as in the book (p. 33), so α=1\alpha = 1α=1 is included in (2.6).
  • Exercise 2.7 speaks of "a conventional constant step size α>0\alpha > 0α>0". The formalization takes α∈(0,1]\alpha \in (0,1]α∈(0,1], the range of the constant step size in (2.5). For α=2\alpha = 2α=2 the trace oˉn\bar o_noˉn​ vanishes at every even nnn and βn\beta_nβn​ is undefined. "Without initial bias" is read as "for n≥1n \ge 1n≥1, Qn+1Q_{n+1}Qn+1​ is the displayed weighted average of R1,…,RnR_1, \dots, R_nR1​,…,Rn​ with weights summing to one", which in particular does not involve Q1Q_1Q1​.
  • Exercise 2.9 is read as the two equalities π(1)=σ(H(1)−H(2))\pi(1) = \sigma(H(1)-H(2))π(1)=σ(H(1)−H(2)) and π(2)=σ(H(2)−H(1))\pi(2) = \sigma(H(2)-H(1))π(2)=σ(H(2)−H(1)).
  • A trivializing formalization is ruled out: the goal is about the expected value of the algorithm's update (2.12) under the joint law of action and reward, not the soft-max derivative alone and not a version in which the reward is replaced by its mean or the expectation is taken over AAA only.
  • Not formalized: the UCB rule (2.10) and the 10-armed testbed, which carry no provable claim in the chapter, and the stochastic-approximation conditions (2.7), which the book cites without proof.
  • Welcome contributions: a general soft-max library (derivatives, Jacobian, log-sum-exp) over a finite type, reusable for Chapter 13, and proofs of the milestones in the listed order.

Selected references

  • R. S. Sutton, A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018, ISBN 9780262039246, Chapter 2, pp. 25–46. http://incompleteideas.net/book/the-book-2nd.html
  • R. J. Williams, Simple statistical gradient-following algorithms for connectionist reinforcement learning, Machine Learning 8 (1992) 229–256. https://doi.org/10.1007/BF00992696
  • H. Robbins, S. Monro, A stochastic approximation method, Annals of Mathematical Statistics 22 (1951) 400–407. https://doi.org/10.1214/aoms/1177729586
11 thms2 active usersReviewed
🏆Completed
Machine LearningOperations ResearchStatistics·Captain: mikedeng1

Optimal Best Arm Identification with Fixed Confidence II: Characterization of the Optimal Proportions of Arm DrawsResearch Paper

Motivation

In best arm identification with fixed confidence, a learner samples KKK unknown distributions ("arms") sequentially and must name the arm with the largest mean, with error probability at most a prescribed δ\deltaδ, using as few samples as possible. Garivier and Kaufmann (arXiv:1602.04589, COLT 2016) showed that every δ\deltaδ-PAC strategy needs, in expectation, at least T∗(μ) kl(δ,1−δ)T^*(\boldsymbol\mu)\,\mathrm{kl}(\delta,1-\delta)T∗(μ)kl(δ,1−δ) samples, where the characteristic time T∗(μ)T^*(\boldsymbol\mu)T∗(μ) is the value of a max–min optimization problem over the proportions of draws allocated to the arms. The maximizer of that problem, w∗(μ)w^*(\boldsymbol\mu)w∗(μ), is the allocation any asymptotically optimal strategy must follow; the Track-and-Stop algorithm of the same paper computes w∗(μ^)w^*(\hat{\boldsymbol\mu})w∗(μ^​) at plug-in estimates and tracks it.

A strategy can only track w∗w^*w∗ if w∗w^*w∗ can be computed. This mission formalizes the part of the paper (Section 2.2 and Appendix A) that turns the abstract max–min problem into an explicit recipe: a closed form for the inner infimum, and a characterization of w∗w^*w∗ through the root of one increasing scalar function. The problem had been solved in closed form before only for special cases, such as Poisson rewards with all suboptimal arms equal (Vaidhyan and Sundaresan, 2015); the paper's result covers every one-parameter exponential family.

Setting

A canonical one-parameter exponential family is a family of laws νθ\nu_\thetaνθ​, θ∈Θ\theta\in\Thetaθ∈Θ, on R\mathbb RR with density exp⁡(θx−b(θ))\exp(\theta x-b(\theta))exp(θx−b(θ)) with respect to a reference measure ξ\xiξ. The law νθ\nu_\thetaνθ​ has mean b˙(θ)\dot b(\theta)b˙(θ); the set of attainable means is the mean space b˙(Θ)\dot b(\Theta)b˙(Θ). For means μ=b˙(θ)\mu=\dot b(\theta)μ=b˙(θ) and μ′=b˙(θ′)\mu'=\dot b(\theta')μ′=b˙(θ′) the Kullback–Leibler divergence is

d(μ,μ′)=KL(νθ,νθ′)=b(θ′)−b(θ)−b˙(θ)(θ′−θ).d(\mu,\mu')=\mathrm{KL}(\nu_\theta,\nu_{\theta'})=b(\theta')-b(\theta)-\dot b(\theta)(\theta'-\theta).d(μ,μ′)=KL(νθ​,νθ′​)=b(θ′)−b(θ)−b˙(θ)(θ′−θ).

Bernoulli laws and Gaussian laws with known variance are the standard examples.

A bandit model is identified with its vector of means μ=(μ1,…,μK)∈b˙(Θ)K\boldsymbol\mu=(\mu_1,\dots,\mu_K)\in\dot b(\Theta)^Kμ=(μ1​,…,μK​)∈b˙(Θ)K. S\mathcal SS is the set of models with a unique optimal arm a∗(μ)a^*(\boldsymbol\mu)a∗(μ), and Alt(μ)={λ∈S:a∗(λ)≠a∗(μ)}\mathrm{Alt}(\boldsymbol\mu)=\{\boldsymbol\lambda\in\mathcal S:a^*(\boldsymbol\lambda)\ne a^*(\boldsymbol\mu)\}Alt(μ)={λ∈S:a∗(λ)=a∗(μ)} is the set of alternatives. ΣK\Sigma_KΣK​ is the probability simplex. The transportation cost of proportions w∈ΣKw\in\Sigma_Kw∈ΣK​ and the objects of the paper are

cμ(w)=inf⁡λ∈Alt(μ)∑a=1Kwa d(μa,λa),T∗(μ)−1=sup⁡w∈ΣKcμ(w),w∗(μ)=argmax⁡w∈ΣKcμ(w).c_{\boldsymbol\mu}(w)=\inf_{\boldsymbol\lambda\in\mathrm{Alt}(\boldsymbol\mu)}\sum_{a=1}^Kw_a\,d(\mu_a,\lambda_a),\qquad T^*(\boldsymbol\mu)^{-1}=\sup_{w\in\Sigma_K}c_{\boldsymbol\mu}(w),\qquad w^*(\boldsymbol\mu)=\operatorname*{argmax}_{w\in\Sigma_K}c_{\boldsymbol\mu}(w).cμ​(w)=λ∈Alt(μ)inf​a=1∑K​wa​d(μa​,λa​),T∗(μ)−1=w∈ΣK​sup​cμ​(w),w∗(μ)=w∈ΣK​argmax​cμ​(w).

The arms are sorted so that μ1>μ2≥⋯≥μK\mu_1>\mu_2\ge\dots\ge\mu_Kμ1​>μ2​≥⋯≥μK​. The parameterized Jensen–Shannon divergence is, for α∈[0,1]\alpha\in[0,1]α∈[0,1],

Iα(μ1,μ2)=α d(μ1,αμ1+(1−α)μ2)+(1−α) d(μ2,αμ1+(1−α)μ2).I_\alpha(\mu_1,\mu_2)=\alpha\,d\big(\mu_1,\alpha\mu_1+(1-\alpha)\mu_2\big)+(1-\alpha)\,d\big(\mu_2,\alpha\mu_1+(1-\alpha)\mu_2\big).Iα​(μ1​,μ2​)=αd(μ1​,αμ1​+(1−α)μ2​)+(1−α)d(μ2​,αμ1​+(1−α)μ2​).

For a∈{2,…,K}a\in\{2,\dots,K\}a∈{2,…,K} let ga(x)=(1+x)I1/(1+x)(μ1,μa)g_a(x)=(1+x)I_{1/(1+x)}(\mu_1,\mu_a)ga​(x)=(1+x)I1/(1+x)​(μ1​,μa​) for x≥0x\ge0x≥0, let xa=ga−1x_a=g_a^{-1}xa​=ga−1​, and let x1≡1x_1\equiv1x1​≡1. Finally

Fμ(y)=∑a=2Kd(μ1,ma(y))d(μa,ma(y)),ma(y)=μ1+xa(y)μa1+xa(y).F_{\boldsymbol\mu}(y)=\sum_{a=2}^K\frac{d\big(\mu_1,m_a(y)\big)}{d\big(\mu_a,m_a(y)\big)},\qquad m_a(y)=\frac{\mu_1+x_a(y)\mu_a}{1+x_a(y)}.Fμ​(y)=a=2∑K​d(μa​,ma​(y))d(μ1​,ma​(y))​,ma​(y)=1+xa​(y)μ1​+xa​(y)μa​​.

Formalization targets

Goal: Theorem 5 (p. 5)

With D=d(μ1,μ2)D=d(\mu_1,\mu_2)D=d(μ1​,μ2​): FμF_{\boldsymbol\mu}Fμ​ is continuous and strictly increasing on [0,D[[0,D[[0,D[, Fμ(0)=0F_{\boldsymbol\mu}(0)=0Fμ​(0)=0, Fμ(y)→∞F_{\boldsymbol\mu}(y)\to\inftyFμ​(y)→∞ as y→Dy\to Dy→D, the equation Fμ(y)=1F_{\boldsymbol\mu}(y)=1Fμ​(y)=1 has a unique solution y∗∈[0,D[y^*\in[0,D[y∗∈[0,D[, and

w∈w∗(μ)  ⟺  wa=xa(y∗)∑i=1Kxi(y∗)for every arm a.w\in w^*(\boldsymbol\mu)\iff w_a=\frac{x_a(y^*)}{\sum_{i=1}^Kx_i(y^*)}\quad\text{for every arm }a.w∈w∗(μ)⟺wa​=∑i=1K​xi​(y∗)xa​(y∗)​for every arm a.

The equivalence says at once that the argmax exists, that it is a single point, and that it is given by eq. (5).

Milestones

  1. Lemma 3 (p. 5): for every w∈ΣKw\in\Sigma_Kw∈ΣK​,
cμ(w)=min⁡a≠1(w1+wa) Iw1w1+wa(μ1,μa).c_{\boldsymbol\mu}(w)=\min_{a\ne1}(w_1+w_a)\,I_{\frac{w_1}{w_1+w_a}}(\mu_1,\mu_a).cμ​(w)=a=1min​(w1​+wa​)Iw1​+wa​w1​​​(μ1​,μa​).
  1. Claim after eq. (4) (p. 5): gag_aga​ is a strictly increasing one-to-one mapping from [0,+∞[[0,+\infty[[0,+∞[ onto [0,d(μ1,μa)[[0,d(\mu_1,\mu_a)[[0,d(μ1​,μa​)[.
  2. Lemma 4 (p. 5): for every maximizer w∗w^*w∗ and all a,b∈{2,…,K}a,b\in\{2,\dots,K\}a,b∈{2,…,K},
(w1∗+wa∗)Iw1∗w1∗+wa∗(μ1,μa)=(w1∗+wb∗)Iw1∗w1∗+wb∗(μ1,μb).(w^*_1+w^*_a)I_{\frac{w^*_1}{w^*_1+w^*_a}}(\mu_1,\mu_a)=(w^*_1+w^*_b)I_{\frac{w^*_1}{w^*_1+w^*_b}}(\mu_1,\mu_b).(w1∗​+wa∗​)Iw1∗​+wa∗​w1∗​​​(μ1​,μa​)=(w1∗​+wb∗​)Iw1∗​+wb∗​w1∗​​​(μ1​,μb​).

Significance

The result. Theorem 5 reduces a (K−1)(K-1)(K−1)-dimensional non-smooth max–min problem to finding the root of one continuous increasing function on a bounded interval, each evaluation of which requires K−1K-1K−1 scalar inversions. It gives existence and uniqueness of w∗(μ)w^*(\boldsymbol\mu)w∗(μ), which the paper's lower bound only presupposes, and it is the computational core of Track-and-Stop: without an explicit, well-posed w∗w^*w∗ the tracking strategy is not defined. Lemma 3 alone gives the closed form of the inner infimum used again in the analysis of the stopping rule.

Formalizing it. The results are proved in the paper; nothing here is open. To the best of our knowledge none of them has a machine-checked proof: the platform's existing best-arm-identification rows concern Gaussian arms and state the characteristic time at the level of measures, without this characterization. The mission produces a checked reduction for general one-parameter exponential families, including the edge cases the text passes over (ties among suboptimal arms, zero weights, the behaviour of xax_axa​ near the end of its domain).

Difficulty

The infimum in Lemma 3 ranges over Alt(μ)\mathrm{Alt}(\boldsymbol\mu)Alt(μ), a set of models with a unique best arm, so it is an open condition: the minimizing configuration, in which λ1\lambda_1λ1​ and λa\lambda_aλa​ coincide, lies outside Alt(μ)\mathrm{Alt}(\boldsymbol\mu)Alt(μ) and is only approached. Other arms may also compete for the best position. A statement in which the infimum is taken over the closed relaxation {λa≥λ1}\{\lambda_a\ge\lambda_1\}{λa​≥λ1​} is a lemma of the proof, not Lemma 3.

For Theorem 5, the equalization in Lemma 4 needs an argument that holds for every maximizer, not only for one found by a first-order condition, because the objective is a minimum of functions and is not differentiable. The monotonicity of FμF_{\boldsymbol\mu}Fμ​ needs the monotonicity of each xax_axa​ and of each ratio in the moving point mam_ama​, and the limit at DDD rests on the second-best arm(s) only, which is where the ordering μ1>μ2≥…\mu_1>\mu_2\ge\dotsμ1​>μ2​≥… enters. Finally the analytic facts about ddd (continuity, positivity off the diagonal, monotonicity in each argument) must be derived from the exponential family itself.

Formalization scope

Lean represents a model by μ : Fin K → ℝ with 2 ≤ K and every μ a in the mean space deriv F.b '' F.Θ. The paper's arm 111 is index 0, arm 222 is index 1. The exponential family is a structure ExpFamily whose parameter set is a nonempty open interval and whose b is twice continuously differentiable with b¨>0\ddot b>0b¨>0 on Θ\ThetaΘ. These two conditions are added to the paper's "convex, twice differentiable" and are disclosed: strict convexity is what makes the mean parameterization unique, and openness is what lets alternatives approach the boundary of Alt(μ)\mathrm{Alt}(\boldsymbol\mu)Alt(μ). The reference measure and normalization are part of the structure but unused here.

The transportation cost is an infimum in EReal, so it is the true infimum of the set of values rather than a default 0. w∗(μ)w^*(\boldsymbol\mu)w∗(μ) is never defined by choice: "www is optimal" is a predicate, and Theorem 5 characterizes the set of such www. The functions xax_axa​ are the inverse of gag_aga​ on [0,+∞[[0,+\infty[[0,+∞[ and are evaluated only on [0,d(μ1,μ2)[[0,d(\mu_1,\mu_2)[[0,d(μ1​,μ2​)[. "Increasing" in Theorem 5 is stated as strictly increasing, as proved in Appendix A.2. Lemmas 3 and 4 and the claim on gag_aga​ assume only that arm 111 is the unique best arm, which is weaker than the paper's standing ordering.

A formalization that replaces Alt(μ)\mathrm{Alt}(\boldsymbol\mu)Alt(μ) by {λa≥λ1}\{\lambda_a\ge\lambda_1\}{λa​≥λ1​}, assumes the maximizer exists and is unique, or asserts only existence of some y∗y^*y∗ without the formula for w∗w^*w∗, does not state these results and is ruled out.

A complete development needs: basic calculus of exponential families (the Bregman form of ddd, its continuity and strict positivity off the diagonal, its monotonicity in the second argument), the inverse function of a continuous strictly monotone map on an interval, and compactness of the simplex. The divergence facts are reusable in every bandit mission built on exponential families. Proofs of the milestones, of auxiliary facts about ddd and IαI_\alphaIα​, and a sorry-free instance of ExpFamily (Bernoulli or unit-variance Gaussian) are welcome.

Selected references

  • A. Garivier, E. Kaufmann, Optimal Best Arm Identification with Fixed Confidence, COLT 2016 (JMLR W&CP 49), arXiv:1602.04589v2. https://arxiv.org/abs/1602.04589
  • E. Kaufmann, O. Cappé, A. Garivier, On the Complexity of Best-Arm Identification in Multi-Armed Bandit Models, JMLR 17, 2016. https://arxiv.org/abs/1407.4443
  • N. K. Vaidhyan, R. Sundaresan, Learning to detect an oddball target, arXiv:1508.05572, 2015. https://arxiv.org/abs/1508.05572
  • O. Cappé, A. Garivier, O.-A. Maillard, R. Munos, G. Stoltz, Kullback–Leibler upper confidence bounds for optimal sequential allocation, Annals of Statistics 41(3), 2013. https://arxiv.org/abs/1210.1136
6 thms2 active usersReviewed
🏆Completed
Machine LearningOptimization·Captain: mikedeng1

Taming the Monster: A Fast and Simple Algorithm for Contextual Bandits II: The Iteration Bound of Coordinate DescentResearch Paper

Motivation

In the contextual bandit problem a learner repeatedly observes a context, picks one of KKK actions, and sees the reward of that action only. Against a finite class Π\PiΠ of policies, statistically optimal regret of order KTln⁡∣Π∣\sqrt{KT\ln|\Pi|}KTln∣Π∣​ has been known since EXP4 (Auer et al., 2002), but EXP4 maintains a weight per policy and costs Ω(∣Π∣)\Omega(|\Pi|)Ω(∣Π∣) time per round. For the large policy classes used in practice (linear classifiers, trees), that is prohibitive.

The oracle-efficient line of work accesses Π\PiΠ only through a cost-sensitive classification oracle (an arg max oracle, AMO). The RandomizedUCB algorithm of Dudík et al. (2011) obtains optimal regret with polynomially many oracle calls by solving a convex program in each round, but the number of calls is large. Agarwal, Hsu, Kale, Langford, Li and Schapire (2014) replace that solver by a coordinate descent method whose number of iterations, and hence of oracle calls, is bounded independently of ∣Π∣|\Pi|∣Π∣. Their algorithm, ILOVETOCONBANDITS, and its practical variant are now standard references for oracle-based exploration.

This mission formalizes the optimization half of that paper: Algorithm 2 solves the per-epoch problem (OP) after at most 4ln⁡(1/(Kμ))/μ4\ln(1/(K\mu))/\mu4ln(1/(Kμ))/μ coordinate steps.

Setting

Let A={0,…,K−1}A=\{0,\dots,K-1\}A={0,…,K−1} be the actions, XXX any set of contexts, and Π⊆AX\Pi\subseteq A^XΠ⊆AX a finite nonempty set of policies. A history HtH_tHt​ is a sequence of t≥1t\ge1t≥1 records (xi,ai,ri(ai),pi(ai))(x_i,a_i,r_i(a_i),p_i(a_i))(xi​,ai​,ri​(ai​),pi​(ai​)) with ri(ai)∈[0,1]r_i(a_i)\in[0,1]ri​(ai​)∈[0,1] the observed reward and pi(ai)∈(0,1]p_i(a_i)\in(0,1]pi​(ai​)∈(0,1] the probability with which aia_iai​ was chosen. Write E^x∼Ht[f(x)]=1t∑if(xi)\widehat{\mathbb E}_{x\sim H_t}[f(x)]=\frac1t\sum_i f(x_i)Ex∼Ht​​[f(x)]=t1​∑i​f(xi​).

The inverse propensity scoring estimate (Eq. (1)) is

R^t(π)=1t∑i=1tri(ai) 1{π(xi)=ai}pi(ai),\widehat{\mathcal R}_t(\pi)=\frac1t\sum_{i=1}^t\frac{r_i(a_i)\,\mathbb 1\{\pi(x_i)=a_i\}}{p_i(a_i)},Rt​(π)=t1​i=1∑t​pi​(ai​)ri​(ai​)1{π(xi​)=ai​}​,

the estimated regret is Reg^t(π)=max⁡π′∈ΠR^t(π′)−R^t(π)\widehat{\mathrm{Reg}}_t(\pi)=\max_{\pi'\in\Pi}\widehat{\mathcal R}_t(\pi')-\widehat{\mathcal R}_t(\pi)Reg​t​(π)=maxπ′∈Π​Rt​(π′)−Rt​(π), and for a minimum probability μ\muμ one sets bπ=Reg^t(π)/(ψμ)b_\pi=\widehat{\mathrm{Reg}}_t(\pi)/(\psi\mu)bπ​=Reg​t​(π)/(ψμ) with ψ=100\psi=100ψ=100.

Weights are vectors Q∈RΠQ\in\mathbb R^\PiQ∈RΠ; ΔΠ\Delta^\PiΔΠ is the set of nonnegative QQQ with ∑πQ(π)≤1\sum_\pi Q(\pi)\le1∑π​Q(π)≤1. The smoothed projection of QQQ is

Qμ(a∣x)=(1−Kμ)∑π: π(x)=aQ(π)+μ.Q^\mu(a\mid x)=(1-K\mu)\sum_{\pi:\ \pi(x)=a}Q(\pi)+\mu .Qμ(a∣x)=(1−Kμ)π: π(x)=a∑​Q(π)+μ.

The optimization problem (OP) asks for Q∈ΔΠQ\in\Delta^\PiQ∈ΔΠ with

∑π∈ΠQ(π)bπ≤2K(2),E^x∼Ht[1Qμ(π(x)∣x)]≤2K+bπ  ∀π∈Π(3).\sum_{\pi\in\Pi}Q(\pi)b_\pi\le2K\quad(2),\qquad \widehat{\mathbb E}_{x\sim H_t}\Bigl[\frac1{Q^\mu(\pi(x)\mid x)}\Bigr]\le2K+b_\pi\ \ \forall\pi\in\Pi\quad(3).π∈Π∑​Q(π)bπ​≤2K(2),Ex∼Ht​​[Qμ(π(x)∣x)1​]≤2K+bπ​  ∀π∈Π(3).

Algorithm 2 starts from QinitQ_{\mathrm{init}}Qinit​ and loops. With Vπ(Q)=E^[1/Qμ(π(x)∣x)]V_\pi(Q)=\widehat{\mathbb E}[1/Q^\mu(\pi(x)\mid x)]Vπ​(Q)=E[1/Qμ(π(x)∣x)], Sπ(Q)=E^[1/Qμ(π(x)∣x)2]S_\pi(Q)=\widehat{\mathbb E}[1/Q^\mu(\pi(x)\mid x)^2]Sπ​(Q)=E[1/Qμ(π(x)∣x)2] and Dπ(Q)=Vπ(Q)−(2K+bπ)D_\pi(Q)=V_\pi(Q)-(2K+b_\pi)Dπ​(Q)=Vπ​(Q)−(2K+bπ​): if ∑πQ(π)(2K+bπ)>2K\sum_\pi Q(\pi)(2K+b_\pi)>2K∑π​Q(π)(2K+bπ​)>2K it rescales QQQ by c=2K/∑πQ(π)(2K+bπ)c=2K/\sum_\pi Q(\pi)(2K+b_\pi)c=2K/∑π​Q(π)(2K+bπ​) (Eq. (4)); then, if some π\piπ has Dπ(Q)>0D_\pi(Q)>0Dπ​(Q)>0, it adds

απ(Q)=Vπ(Q)+Dπ(Q)2(1−Kμ)Sπ(Q)\alpha_\pi(Q)=\frac{V_\pi(Q)+D_\pi(Q)}{2(1-K\mu)S_\pi(Q)}απ​(Q)=2(1−Kμ)Sπ​(Q)Vπ​(Q)+Dπ​(Q)​

to Q(π)Q(\pi)Q(π) (Step 8) and repeats; otherwise it halts and outputs QQQ.

The analysis uses the potential (Eq. (6)), with τ=t\tau=tτ=t and UA\mathcal U_AUA​ uniform on AAA,

Φm(Q)=τμ(E^x[RE(UA ∥ Qμ(⋅∣x))]1−Kμ+∑πQ(π)bπ2K),RE(p∥q)=∑a(paln⁡paqa+qa−pa).\Phi_m(Q)=\tau\mu\left(\frac{\widehat{\mathbb E}_x[\mathrm{RE}(\mathcal U_A\,\|\,Q^\mu(\cdot\mid x))]}{1-K\mu}+\frac{\sum_\pi Q(\pi)b_\pi}{2K}\right),\qquad \mathrm{RE}(p\|q)=\sum_a\bigl(p_a\ln\tfrac{p_a}{q_a}+q_a-p_a\bigr).Φm​(Q)=τμ(1−KμEx​[RE(UA​∥Qμ(⋅∣x))]​+2K∑π​Q(π)bπ​​),RE(p∥q)=a∑​(pa​lnqa​pa​​+qa​−pa​).

Formalization targets

Goal: Theorem 3 (p. 6)

For 0<μ≤1/(2K)0<\mu\le1/(2K)0<μ≤1/(2K), Algorithm 2 with Qinit=0Q_{\mathrm{init}}=\mathbf 0Qinit​=0 satisfies: every run executes Step 8 at most

4ln⁡(1/(Kμ))μ\frac{4\ln(1/(K\mu))}{\mu}μ4ln(1/(Kμ))​

times, whatever policy each Step 8 chooses among those with Dπ>0D_\pi>0Dπ​>0; and when it halts, its output solves (OP). The bound depends on KμK\muKμ only, not on ∣Π∣|\Pi|∣Π∣ or ttt.

Milestones

  1. Lemma 5 (p. 10). If Algorithm 2 halts and outputs QQQ, then QQQ satisfies (2), (3) and ∑πQ(π)≤1\sum_\pi Q(\pi)\le1∑π​Q(π)≤1.
  2. Lemma 6 (p. 10). If ∑πQ(π)(2K+bπ)>2K\sum_\pi Q(\pi)(2K+b_\pi)>2K∑π​Q(π)(2K+bπ​)>2K and ccc is as in Eq. (4), then Φm(cQ)≤Φm(Q)\Phi_m(cQ)\le\Phi_m(Q)Φm​(cQ)≤Φm​(Q).
  3. Lemma 7 (p. 10). If Dπ(Q)>0D_\pi(Q)>0Dπ​(Q)>0 and Q′Q'Q′ adds απ(Q)\alpha_\pi(Q)απ​(Q) to Q(π)Q(\pi)Q(π), then
Φm(Q)−Φm(Q′)≥τμ24(1−Kμ).\Phi_m(Q)-\Phi_m(Q')\ge\frac{\tau\mu^2}{4(1-K\mu)}.Φm​(Q)−Φm​(Q′)≥4(1−Kμ)τμ2​.

Significance

The result. Theorem 3 is what makes ILOVETOCONBANDITS computationally efficient: each call of Algorithm 2 is implemented with one AMO call per iteration (Lemma 1 of the paper), so the oracle complexity of an epoch is O(ln⁡(1/(Kμ))/μ)O(\ln(1/(K\mu))/\mu)O(ln(1/(Kμ))/μ). Combined with the epoch schedule and warm start, this gives the paper's total of O~(KT/ln⁡(∣Π∣/δ))\tilde O(\sqrt{KT/\ln(|\Pi|/\delta)})O~(KT/ln(∣Π∣/δ)​) oracle calls over TTT rounds. Theorem 3 also gives a constructive proof that (OP) is feasible for every history, which the regret analysis (a separate mission in this series) assumes.

Formalizing it. The result is proved in the paper, with complete proofs of Lemmas 5–7 in Appendix D. No machine-checked version is known. The formalization would give a checked termination bound for a coordinate descent method on a non-smooth feasibility problem, with a fully explicit constant, and a verified definition of the unnormalized relative entropy potential that is reusable for other smoothed-projection analyses (e.g. RandomizedUCB-type convex programs).

Difficulty

Termination cannot be read off the constraints. Step 8 raises one weight and can push the total weight above 1, after which Step 5 shrinks every coordinate, so no constraint and no single weight moves monotonically along a run. The number of policies that violate (3) can also go up after a step. Bounding the number of iterations therefore needs a global quantity that tracks progress through both kinds of step. The rescaling step is the harder of the two: it lowers every Qμ(a∣x)Q^\mu(a\mid x)Qμ(a∣x) at once, which pushes the relative-entropy term the wrong way, and it must be offset by the drop in the regret term. Knowing that (OP) is feasible, or that some convex function has a minimizer, bounds nothing about how many steps a particular method takes; that is the obvious approach, and it gives no count.

Formalization scope

  • Actions are Fin K with K≥1K\ge1K≥1; contexts form an arbitrary type (no measure is needed: Theorem 3 is deterministic). Π\PiΠ is a nonempty Finset (X → Fin K); weights are real functions on its subtype.
  • Histories are indexed by Fin t with t≥1t\ge1t≥1 (0-based indices). The paper allows pi(ai)∈[0,1]p_i(a_i)\in[0,1]pi​(ai​)∈[0,1]; the formalization requires pi(ai)∈(0,1]p_i(a_i)\in(0,1]pi​(ai​)∈(0,1], since Eq. (1) divides by it.
  • Reg^t(π)\widehat{\mathrm{Reg}}_t(\pi)Reg​t​(π) is written as max⁡π′R^t(π′)−R^t(π)\max_{\pi'}\widehat{\mathcal R}_t(\pi')-\widehat{\mathcal R}_t(\pi)maxπ′​Rt​(π′)−Rt​(π), which equals R^t(πt)−R^t(π)\widehat{\mathcal R}_t(\pi_t)-\widehat{\mathcal R}_t(\pi)Rt​(πt​)−Rt​(π) for any maximizer πt\pi_tπt​; ψ=100\psi=100ψ=100 is hard-wired in bπb_\pibπ​.
  • QμQ^\muQμ, VπV_\piVπ​, SπS_\piSπ​, (OP) and Φm\Phi_mΦm​ all use the smoothed projection of the unnormalized weights; there is no default policy in this mission.
  • μ\muμ ranges over (0,1/(2K)](0,1/(2K)](0,1/(2K)], the range of μm\mu_mμm​ in Algorithm 1 that the printed theorem refers to. τ\tauτ in Φm\Phi_mΦm​ is the history length ttt.
  • Algorithm 2 is encoded relationally. A run of length nnn from QinitQ_{\mathrm{init}}Qinit​ is a sequence Q(0)=Qinit,…,Q(n)Q^{(0)}=Q_{\mathrm{init}},\dots,Q^{(n)}Q(0)=Qinit​,…,Q(n) in which each Q(k+1)Q^{(k+1)}Q(k+1) is Step 8, for some policy with Dπ>0D_\pi>0Dπ​>0, applied to the rescaled Q(k)Q^{(k)}Q(k). It halts at Q(n)Q^{(n)}Q(n) when no policy has Dπ>0D_\pi>0Dπ​>0 after rescaling, and it then outputs the rescaled Q(n)Q^{(n)}Q(n). "Iterations" means executions of Step 8. The last pass, which halts at Step 10, is not counted: the paper's proof bounds "the number of times Step 8 is executed". The bound is compared in R\mathbb RR, without rounding.
  • Lemmas 5–7 are stated for nonnegative weight vectors without a bound on their sum, because Algorithm 2 rescales vectors whose sum may exceed 1. Lemma 7's "α=απ(Q)>0\alpha=\alpha_\pi(Q)>0α=απ​(Q)>0" is part of its conclusion.
  • A trivializing formalization is ruled out: the goal quantifies over every run from 0\mathbf 00 and every choice in Step 8, not over some run, and the potential, bπb_\pibπ​ and DπD_\piDπ​ are computed from the history rather than taken as free parameters.
  • The auxiliary facts Φm≥0\Phi_m\ge0Φm​≥0 and Φm(0)≤τμln⁡(1/(Kμ))/(1−Kμ)\Phi_m(\mathbf 0)\le\tau\mu\ln(1/(K\mu))/(1-K\mu)Φm​(0)≤τμln(1/(Kμ))/(1−Kμ) are inline claims in the paper and are not stated separately; contributions stating and proving them are welcome, as are general lemmas on the unnormalized relative entropy.
  • Out of scope: the regret bound (Theorem 2) and the probabilistic model (mission I of this series), the AMO implementation (Lemma 1), warm start and epoch-level oracle counts (Lemmas 2, 3, 8), and the support lower bound (Theorem 4).

Selected references

  • A. Agarwal, D. Hsu, S. Kale, J. Langford, L. Li, R. E. Schapire, Taming the Monster: A Fast and Simple Algorithm for Contextual Bandits, ICML 2014; arXiv:1402.0555v2. https://arxiv.org/abs/1402.0555
  • M. Dudík, D. Hsu, S. Kale, N. Karampatziakis, J. Langford, L. Reyzin, T. Zhang, Efficient Optimal Learning for Contextual Bandits, UAI 2011. https://arxiv.org/abs/1106.2369
  • P. Auer, N. Cesa-Bianchi, Y. Freund, R. E. Schapire, The Nonstochastic Multiarmed Bandit Problem, SIAM J. Comput. 32(1), 2002. https://doi.org/10.1137/S0097539701398375
7 thms2 active usersReviewed
Machine LearningOperations ResearchStatistics·Captain: mikedeng1

Online Decision Making with High-Dimensional Covariates: Regret Bound of the LASSO BanditResearch Paper

Motivation

Many sequential decisions are personalised: a physician chooses a drug dose for each arriving patient, a platform chooses which offer to show each arriving user. Each decision is made after observing a vector of covariates describing the individual, and its outcome is observed only for the option chosen. This is the contextual (covariate) bandit problem, studied in operations research and machine learning since Auer (JMLR 2002) and Goldenshluger and Zeevi (Stochastic Systems 2013).

In medical and e-commerce applications the covariate vector is often high-dimensional: the number of covariates ddd is comparable to or larger than the number of decisions that will ever be made, while the outcome of each option depends on a few of them. Low-dimensional bandit algorithms then incur regret that grows polynomially with ddd. Bastani and Bayati (Operations Research 2020) proposed the LASSO Bandit, which estimates each option's reward model with the LASSO, and proved a regret bound that grows only logarithmically in ddd. The paper evaluates the method on warfarin dosing data.

Timeline:

  • 2002–2003: Auer introduces linear-reward contextual bandits with confidence bounds.
  • 2013: Goldenshluger and Zeevi give a forced-sampling algorithm for two arms in low dimension with O(log⁡T)O(\log T)O(logT) regret under a margin condition and an arm-optimality condition, and an information-theoretic lower bound of the same order.
  • 2020: Bastani and Bayati extend the forced-sampling scheme to KKK arms and high-dimensional sparse parameters, with regret O(s02[log⁡T+log⁡d]2)O(s_0^2[\log T+\log d]^2)O(s02​[logT+logd]2).

Setting

There are KKK arms with unknown parameters β1,…,βK∈Rd\beta_1,\dots,\beta_K\in\mathbb R^dβ1​,…,βK​∈Rd. At each time t=1,2,…,Tt=1,2,\dots,Tt=1,2,…,T a covariate vector Xt∈RdX_t\in\mathbb R^dXt​∈Rd arrives; the XtX_tXt​ are i.i.d. with law PX\mathcal P_XPX​ and take values in a fixed set X\mathcal XX. If arm iii is pulled, the reward is Xt⊤βi+εi,tX_t^\top\beta_i+\varepsilon_{i,t}Xt⊤​βi​+εi,t​, where the noises εi,t\varepsilon_{i,t}εi,t​ are independent, σ\sigmaσ-subgaussian (E[esε]≤eσ2s2/2\mathbb E[e^{s\varepsilon}]\le e^{\sigma^2s^2/2}E[esε]≤eσ2s2/2 for all sss), and independent of the covariates. A policy chooses the arm πt\pi_tπt​ from XtX_tXt​ and the past covariates, arms and observed rewards. Its cumulative expected regret is

RT=∑t=1TE[max⁡jXt⊤βj−Xt⊤βπt].R_T=\sum_{t=1}^T\mathbb E\Big[\max_jX_t^\top\beta_j-X_t^\top\beta_{\pi_t}\Big].RT​=t=1∑T​E[jmax​Xt⊤​βj​−Xt⊤​βπt​​].

The sparsity s0s_0s0​ is the smallest integer s0≥1s_0\ge1s0​≥1 with ∥βi∥0≤s0\|\beta_i\|_0\le s_0∥βi​∥0​≤s0​ for all iii.

The four assumptions are: (1) ∥x∥∞≤xmax⁡\|x\|_\infty\le x_{\max}∥x∥∞​≤xmax​ on X\mathcal XX and ∥βi∥1≤b\|\beta_i\|_1\le b∥βi​∥1​≤b; (2) a margin condition Pr⁡[0<∣X⊤(βi−βj)∣≤κ]≤C0κ\Pr[0<|X^\top(\beta_i-\beta_j)|\le\kappa]\le C_0\kappaPr[0<∣X⊤(βi​−βj​)∣≤κ]≤C0​κ; (3) arm optimality: every arm is either suboptimal by a margin hhh at every covariate, or optimal by margin hhh on a region UiU_iUi​ of probability at least p∗p_*p∗​; (4) a compatibility condition: the conditional second-moment matrix Σi=E[XX⊤∣X∈Ui]\Sigma_i=\mathbb E[XX^\top\mid X\in U_i]Σi​=E[XX⊤∣X∈Ui​] of each optimal arm lies in the set C(supp(βi),ϕ0)\mathcal C(\mathrm{supp}(\beta_i),\phi_0)C(supp(βi​),ϕ0​) of matrices M⪰0M\succeq0M⪰0 with ∥vI∥12≤∣I∣ v⊤Mv/ϕ02\|v_I\|_1^2\le|I|\,v^\top Mv/\phi_0^2∥vI​∥12​≤∣I∣v⊤Mv/ϕ02​ whenever ∥vIc∥1≤3∥vI∥1\|v_{I^c}\|_1\le3\|v_I\|_1∥vIc​∥1​≤3∥vI​∥1​.

The LASSO estimator on nnn samples is any minimizer of ∥Y−Xβ′∥22/n+λ∥β′∥1\|Y-\mathbf X\beta'\|_2^2/n+\lambda\|\beta'\|_1∥Y−Xβ′∥22​/n+λ∥β′∥1​. The LASSO Bandit forces arm iii at the prescribed times Ti={(2n−1)Kq+j:n≥0, q(i−1)<j≤qi}\mathcal T_i=\{(2^n-1)Kq+j : n\ge0,\ q(i-1)<j\le qi\}Ti​={(2n−1)Kq+j:n≥0, q(i−1)<j≤qi}. At every other time it keeps the arms whose forced-sample estimate β^(Ti,t−1,λ1)\hat\beta(\mathcal T_{i,t-1},\lambda_1)β^​(Ti,t−1​,λ1​) is within h/2h/2h/2 of the best. Among them it plays the arm with the largest all-sample estimate β^(Si,t−1,λ2,t−1)\hat\beta(\mathcal S_{i,t-1},\lambda_{2,t-1})β^​(Si,t−1​,λ2,t−1​), trained on every past pull of the arm, with λ2,t=λ2,0(log⁡t+log⁡d)/t\lambda_{2,t}=\lambda_{2,0}\sqrt{(\log t+\log d)/t}λ2,t​=λ2,0​(logt+logd)/t​.

Formalization targets

Goal: Theorem 1 (regret of the LASSO Bandit)

For q≥4⌈q0⌉q\ge4\lceil q_0\rceilq≥4⌈q0​⌉, K≥2K\ge2K≥2, d>2d>2d>2, T≥C5T\ge C_5T≥C5​, λ1=ϕ02p∗h/(64s0xmax⁡)\lambda_1=\phi_0^2p_*h/(64s_0x_{\max})λ1​=ϕ02​p∗​h/(64s0​xmax​) and λ2,0=[ϕ02/(2s0)]1/(p∗C1)\lambda_{2,0}=[\phi_0^2/(2s_0)]\sqrt{1/(p_*C_1)}λ2,0​=[ϕ02​/(2s0​)]1/(p∗​C1​)​,

RT≤C3(log⁡T)2+[2Kbxmax⁡(6q+4)+C3log⁡d]log⁡T+(2bxmax⁡C5+2Kbxmax⁡+C4),R_T\le C_3(\log T)^2+\big[2Kbx_{\max}(6q+4)+C_3\log d\big]\log T+\big(2bx_{\max}C_5+2Kbx_{\max}+C_4\big),RT​≤C3​(logT)2+[2Kbxmax​(6q+4)+C3​logd]logT+(2bxmax​C5​+2Kbxmax​+C4​),

with the explicit constants C1,…,C5C_1,\dots,C_5C1​,…,C5​, q0q_0q0​ of the paper (p. 285).

Milestones

  1. Proposition 1: a LASSO tail inequality for adaptively collected rows with conditionally subgaussian noise.
  2. Lemma 1: a LASSO tail inequality when a constant fraction of the rows is i.i.d. with a compatible second-moment matrix.
  3. Proposition 2: the forced-sample estimator of an optimal arm is within h/(4xmax⁡)h/(4x_{\max})h/(4xmax​) of βi\beta_iβi​ except with probability 5/t45/t^45/t4.
  4. Proposition 3: the all-sample estimator of an optimal arm is within 16(log⁡t+log⁡d)/(p∗3C1t)16\sqrt{(\log t+\log d)/(p_*^3C_1t)}16(logt+logd)/(p∗3​C1​t)​ of βi\beta_iβi​ except with probability 2/t+2e−p∗2C22t/322/t+2e^{-p_*^2C_2^2t/32}2/t+2e−p∗2​C22​t/32.

Significance

The theorem shows that exploiting sparsity makes the regret depend on the ambient dimension only through log⁡d\log dlogd, while its dependence on the horizon is within one log⁡T\log TlogT factor of the Ω(log⁡T)\Omega(\log T)Ω(logT) lower bound known in low dimension. Proposition 1 is a LASSO oracle inequality for adapted designs, where each row may depend on earlier observations. It applies whenever a LASSO is fitted to data gathered by a feedback policy: adaptive experiments, dynamic pricing, sequential treatment assignment.

The results are proved in the paper and its online appendix; none of them has a machine-checked proof. This mission produces a formal model of the covariate bandit with a non-anticipating algorithm, a formal LASSO for adapted designs, and, when complete, a verified regret bound with every constant explicit. Proposition 1 and Lemma 1 are reusable beyond bandits.

Difficulty

The all-sample estimator is trained on the times at which the algorithm chose an arm, and those choices depend on earlier estimates. Its design rows are therefore neither independent nor identically distributed, and the standard LASSO analysis, which starts from i.i.d. rows and a restricted-eigenvalue bound on their population covariance, does not apply. The forced samples are i.i.d. but only O(log⁡t)O(\log t)O(logt) in number, too few for the log⁡t/t\sqrt{\log t/t}logt/t​ rate the regret bound needs. Controlling the compatibility constant of the adaptively selected sample covariance, and the martingale noise term, is where the naive argument breaks.

Formalization scope

Arms are Fin K (paper arm iii is i.val + 1), coordinates Fin d, times are natural numbers from 111. The model is a structure IsCovariateNoiseModel on a probability space: i.i.d. measurable covariates in a measurable set X\mathcal XX, independent subgaussian noises (Mathlib's HasSubgaussianMGF with parameter σ2\sigma^2σ2), noise independent of covariates. Assumptions 1–4 are separate predicates. ∥x∥∞\|x\|_\infty∥x∥∞​ is Mathlib's sup norm, logarithms are natural, and Σi\Sigma_iΣi​ is the uncentred conditional second moment.

The LASSO minimizer and the arg max need not be unique, so the algorithm takes a selection rule and a tie-breaking rule as parameters, and the theorems hold for all of them. Each round reads only the current covariate, the past covariates, the past arms and their observed rewards. The regret theorem and Proposition 3, whose data set Si,t\mathcal S_{i,t}Si,t​ is chosen by the algorithm, require both rules to be measurable. Otherwise the trajectory would not be a random variable, and the expectations in RTR_TRT​ could be integrals of non-measurable functions, which Lean evaluates to 000 and which would make the goal trivially true. For the same reason every assumption constant is required to be positive, and T≥C5T\ge C_5T≥C5​ is imposed on the horizon. Only the explicit inequality of Theorem 1 is stated, not the trailing O(s02[log⁡T+log⁡d]2)O(s_0^2[\log T+\log d]^2)O(s02​[logT+logd]2) or q0=O(s02log⁡d)q_0=O(s_0^2\log d)q0​=O(s02​logd). Proposition 2 is stated for optimal arms (see its note).

A complete development needs matrix concentration for bounded i.i.d. rows, the Azuma–Hoeffding inequality, and the deterministic LASSO basic inequality under a compatibility condition. Contributions of any of these as standalone lemmas are welcome.

Selected references

  • H. Bastani and M. Bayati, Online Decision Making with High-Dimensional Covariates, Operations Research 68(1):276–294, 2020. https://doi.org/10.1287/opre.2019.1902
  • A. Goldenshluger and A. Zeevi, A Linear Response Bandit Problem, Stochastic Systems 3(1):230–261, 2013. https://doi.org/10.1287/11-SSY032
  • P. Auer, Using Confidence Bounds for Exploitation-Exploration Trade-offs, Journal of Machine Learning Research 3:397–422, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • P. Bühlmann and S. van de Geer, Statistics for High-Dimensional Data, Springer, 2011. https://doi.org/10.1007/978-3-642-20192-9
9 thms2 active usersReviewed
🏆Completed
Machine LearningProbability·Captain: mikedeng1

Taming the Monster: A Fast and Simple Algorithm for Contextual Bandits I: The Regret Bound of ILOVETOCONBANDITSResearch Paper

Motivation

In a contextual bandit problem a learner repeatedly observes a context (a user, a patient, a query), chooses one of KKK actions, and observes the reward of the chosen action only. It competes with the best policy of a fixed class Π\PiΠ of maps from contexts to actions. This is the standard model for news and advertisement recommendation, adaptive clinical assignment and other interactive decision problems in which counterfactual rewards are never observed.

Two requirements pull against each other. Statistically, the optimal regret against a finite class is of order KTln⁡∣Π∣\sqrt{KT\ln|\Pi|}KTln∣Π∣​, attained by the exponential-weights algorithm Exp4 (Auer et al. 2002), whose running time is linear in ∣Π∣|\Pi|∣Π∣ per round. Computationally, practical policy classes are exponentially large and are accessed only through a supervised learning routine. Agarwal, Hsu, Kale, Langford, Li and Schapire (2014) give ILOVETOCONBANDITS, which reaches the optimal regret while touching Π\PiΠ only through an arg-max oracle, and only O~(KT/ln⁡∣Π∣)\tilde O(\sqrt{KT/\ln|\Pi|})O~(KT/ln∣Π∣​) times in TTT rounds.

Timeline. Exp4 (2002) attains O(KTln⁡∣Π∣)O(\sqrt{KT\ln|\Pi|})O(KTln∣Π∣​) against adversarial rewards with running time Ω(∣Π∣)\Omega(|\Pi|)Ω(∣Π∣). Epsilon-greedy and Epoch-Greedy (Langford and Zhang 2007) are oracle-efficient but have regret of order T2/3T^{2/3}T2/3. Exp4.P (Beygelzimer et al. 2011) proves the optimal bound with high probability. RandomizedUCB (Dudík et al. 2011) is the first oracle-based algorithm with optimal regret in the i.i.d. model, but its number of oracle calls is a large polynomial in TTT. ILOVETOCONBANDITS (2014) keeps the regret and reduces the calls to O~(KT/ln⁡(∣Π∣/δ))\tilde O(\sqrt{KT/\ln(|\Pi|/\delta)})O~(KT/ln(∣Π∣/δ)​).

Setting

There are KKK actions, a measurable context space XXX, and a finite nonempty policy class Π\PiΠ of measurable maps X→{0,…,K−1}X\to\{0,\dots,K-1\}X→{0,…,K−1}. A distribution D\mathcal DD on X×[0,1]KX\times[0,1]^KX×[0,1]K generates context/reward-vector pairs (xt,rt)(x_t,r_t)(xt​,rt​), t=1,2,…t=1,2,\dotst=1,2,…, independently. In round ttt the learner sees xtx_txt​, draws an action ata_tat​ with probability pt(at)p_t(a_t)pt​(at​), and observes only rt(at)r_t(a_t)rt​(at​). The history HtH_tHt​ is the list of records (xi,ai,ri(ai),pi(ai))(x_i,a_i,r_i(a_i),p_i(a_i))(xi​,ai​,ri​(ai​),pi​(ai​)), i≤ti\le ti≤t.

The expected reward of a policy is R(π)=E(x,r)∼D[r(π(x))]\mathcal R(\pi)=\mathbb E_{(x,r)\sim\mathcal D}[r(\pi(x))]R(π)=E(x,r)∼D​[r(π(x))], π⋆\pi_\starπ⋆​ is any maximizer over Π\PiΠ, and Reg(π)=R(π⋆)−R(π)\mathrm{Reg}(\pi)=\mathcal R(\pi_\star)-\mathcal R(\pi)Reg(π)=R(π⋆​)−R(π). The regret after TTT rounds is the empirical cumulative quantity ∑t=1T(rt(π⋆(xt))−rt(at))\sum_{t=1}^T\bigl(r_t(\pi_\star(x_t))-r_t(a_t)\bigr)∑t=1T​(rt​(π⋆​(xt​))−rt​(at​)).

The inverse propensity scoring estimate is R^t(π)=1t∑i≤tri(ai)1{π(xi)=ai}/pi(ai)\widehat{\mathcal R}_t(\pi)=\frac1t\sum_{i\le t}r_i(a_i)\mathbb 1\{\pi(x_i)=a_i\}/p_i(a_i)Rt​(π)=t1​∑i≤t​ri​(ai​)1{π(xi​)=ai​}/pi​(ai​), and Reg^t(π)=max⁡π′R^t(π′)−R^t(π)\widehat{\mathrm{Reg}}_t(\pi)=\max_{\pi'}\widehat{\mathcal R}_t(\pi')-\widehat{\mathcal R}_t(\pi)Reg​t​(π)=maxπ′​Rt​(π′)−Rt​(π). For nonnegative weights QQQ on Π\PiΠ with total mass at most one, the smoothed projection is Qμ(a∣x)=(1−Kμ)∑π:π(x)=aQ(π)+μQ^\mu(a\mid x)=(1-K\mu)\sum_{\pi:\pi(x)=a}Q(\pi)+\muQμ(a∣x)=(1−Kμ)∑π:π(x)=a​Q(π)+μ.

ILOVETOCONBANDITS takes an epoch schedule 0=τ0<τ1<⋯0=\tau_0<\tau_1<\cdots0=τ0​<τ1​<⋯ and δ∈(0,1)\delta\in(0,1)δ∈(0,1), sets dt=ln⁡(16t2∣Π∣/δ)d_t=\ln(16t^2|\Pi|/\delta)dt​=ln(16t2∣Π∣/δ) and μm=min⁡{1/(2K),dτm/(Kτm)}\mu_m=\min\{1/(2K),\sqrt{d_{\tau_m}/(K\tau_m)}\}μm​=min{1/(2K),dτm​​/(Kτm​)​}. At the end of epoch mmm (round τm\tau_mτm​) it chooses weights QmQ_mQm​ solving the optimization problem (OP): with bπ=Reg^τm(π)/(100μm)b_\pi=\widehat{\mathrm{Reg}}_{\tau_m}(\pi)/(100\mu_m)bπ​=Reg​τm​​(π)/(100μm​),

∑πQ(π)bπ≤2K,E^x∼Hτm[1/Qμm(π(x)∣x)]≤2K+bπ  ∀π∈Π.\sum_\pi Q(\pi)b_\pi\le2K,\qquad \widehat{\mathbb E}_{x\sim H_{\tau_m}}\bigl[1/Q^{\mu_m}(\pi(x)\mid x)\bigr]\le2K+b_\pi\ \ \forall\pi\in\Pi.π∑​Q(π)bπ​≤2K,Ex∼Hτm​​​[1/Qμm​(π(x)∣x)]≤2K+bπ​  ∀π∈Π.

During epoch m+1m+1m+1 it puts the leftover mass on the empirical maximizer πτm\pi_{\tau_m}πτm​​, obtaining a distribution Q~m\widetilde Q_mQ​m​, and draws at∼Q~mμm(⋅∣xt)a_t\sim\widetilde Q_m^{\mu_m}(\cdot\mid x_t)at​∼Q​mμm​​(⋅∣xt​).

Formalization targets

Goal: Theorem 2 in the explicit form of Lemma 17

Assume τm+1≤2τm\tau_{m+1}\le2\tau_mτm+1​≤2τm​ for m≥1m\ge1m≥1 and let m0=min⁡{m≥1:dτm/τm≤1/(4K)}m_0=\min\{m\ge1:d_{\tau_m}/\tau_m\le1/(4K)\}m0​=min{m≥1:dτm​​/τm​≤1/(4K)}, ρ=sup⁡m≥m0τm/τm−1\rho=\sup_{m\ge m_0}\sqrt{\tau_m/\tau_{m-1}}ρ=supm≥m0​​τm​/τm−1​​, c0=4ρ(1+94.1)c_0=4\rho(1+94.1)c0​=4ρ(1+94.1), C0=400+c0C_0=400+c_0C0​=400+c0​, and m(T)=min⁡{m:T≤τm}m(T)=\min\{m:T\le\tau_m\}m(T)=min{m:T≤τm​}. For every TTT, with probability at least 1−δ1-\delta1−δ,

∑t=1T(rt(π⋆(xt))−rt(at))≤C0(4Kdτm0−1+8Kdτm(T)τm(T))+8Tln⁡(2/δ).\sum_{t=1}^T\bigl(r_t(\pi_\star(x_t))-r_t(a_t)\bigr)\le C_0\Bigl(4Kd_{\tau_{m_0-1}}+\sqrt{8Kd_{\tau_{m(T)}}\tau_{m(T)}}\Bigr)+\sqrt{8T\ln(2/\delta)}.t=1∑T​(rt​(π⋆​(xt​))−rt​(at​))≤C0​(4Kdτm0​−1​​+8Kdτm(T)​​τm(T)​​)+8Tln(2/δ)​.

It holds for every (OP)-solution selection and every tie-breaking rule. Since τm(T)≤2(T−1)\tau_{m(T)}\le2(T-1)τm(T)​≤2(T−1) once τm(T)−1≥1\tau_{m(T)-1}\ge1τm(T)−1​≥1, this is the paper's O(KTln⁡(T∣Π∣/δ)+Kln⁡(T∣Π∣/δ))O\bigl(\sqrt{KT\ln(T|\Pi|/\delta)}+K\ln(T|\Pi|/\delta)\bigr)O(KTln(T∣Π∣/δ)​+Kln(T∣Π∣/δ)).

Milestones

Freedman's inequality (Lemma 9); the uniform deviation of true from empirical variances (Lemma 10); the deviation of the IPS estimates (Lemma 11); on the event E\mathcal EE where both deviations hold, the variance bound (Lemma 12), the two-sided comparison of Reg\mathrm{Reg}Reg and Reg^t\widehat{\mathrm{Reg}}_tReg​t​ (Lemma 13), and the low regret of the sampling distribution (Lemma 14); and the deterministic sums of the μm\mu_mμm​ (Lemmas 15, 16).

Significance

The theorem shows that optimal regret in the i.i.d. contextual bandit problem does not require enumerating the policy class: a sequence of convex feasibility problems, each solvable with few oracle calls (Theorem 3, the companion mission), suffices. The inverse-propensity variance constraint of (OP) and the epoch-and-warm-start structure became the template for later oracle-based methods, and the paper's Online Cover variant is implemented in the Vowpal Wabbit learning system.

The result is proved in the paper; none of it is formalized. The platform holds Exp4 (Bandit Algorithms VIII, adversarial rewards and expert advice) and SquareCB (Foundations of RL II, regression oracles), both different algorithms in different models, and Azuma–Hoeffding (bounded_diff_martingale_two_sided), which the proof of Lemma 17 uses. This mission adds the first inverse-propensity estimator, the first oracle-based policy-class bandit algorithm, and Freedman's inequality with a conditional-variance sum. Several statements are proved in the paper only in outline: Lemma 10 has a proof sketch that defers to Dudík et al. (2011), and the paper asserts Pr⁡(E)≥1−δ/2\Pr(\mathcal E)\ge1-\delta/2Pr(E)≥1−δ/2 without spelling out how the first case of (14) follows from Lemma 11.

Difficulty

The regret of the algorithm depends on the quality of its own data. The estimates R^t\widehat{\mathcal R}_tRt​ have variance governed by the distributions Q~m\widetilde Q_mQ​m​ the algorithm chose earlier, and those distributions were chosen from the estimates. A direct union bound over Π\PiΠ with the worst-case variance 1/μ1/\mu1/μ gives regret of order T2/3T^{2/3}T2/3, the Epoch-Greedy rate. The argument that avoids this must show that a policy with large variance was already known to be bad, and the estimated and true regrets must be compared inductively over epochs with constants that do not grow (θ2≥8ρ\theta_2\ge8\rhoθ2​≥8ρ). The inequality must also hold for every solution of (OP), not a particular one.

The martingale structure requires care: the action of round ttt is drawn from a distribution that depends on the whole past and must not look at rtr_trt​, and Lemma 10 must hold uniformly over all distributions PPP on Π\PiΠ, not just finitely supported ones.

Formalization scope

The formalization commits to the following representation and conventions.

  • Actions are Fin K with 0 < K (NeZero K); Π\PiΠ is a nonempty Finset (X → Fin K) of measurable maps; weights on Π\PiΠ are real functions on its subtype. D\mathcal DD is a probability measure on X × (Fin K → ℝ) with rewards in [0,1][0,1][0,1] almost surely.
  • The run lives on a probability space carrying Zt=(xt,rt)Z_t=(x_t,r_t)Zt​=(xt​,rt​) i.i.d. with law D\mathcal DD and UtU_tUt​ i.i.d. uniform on [0,1][0,1][0,1], independent of the ZZZ's. The action is the inverse distribution function of Q~μ(⋅∣xt)\widetilde Q^{\mu}(\cdot\mid x_t)Q​μ(⋅∣xt​) at UtU_tUt​, so it has the right law and is independent of rtr_trt​ given the past and xtx_txt​. The tie-breaking rule and the (OP)-selection are arbitrary measurable functions of the observable history (a list of records). The selection must return an (OP) solution for every history of length τm\tau_mτm​; such selections exist by Theorem 3.
  • Rounds and epochs are 1,2,…1,2,\dots1,2,… as in the paper; ln⁡\lnln is Real.log.
  • μ0:=1/(2K)\mu_0:=1/(2K)μ0​:=1/(2K). The printed formula is 0/00/00/0 at τ0=0\tau_0=0τ0​=0, and the proofs of Lemmas 12 and 14 use this value.
  • The goal and Lemmas 13–14 assume m0≥2m_0\ge2m0​≥2, i.e. dτ1/τ1>1/(4K)d_{\tau_1}/\tau_1>1/(4K)dτ1​​/τ1​>1/(4K), which holds e.g. for τ1=1\tau_1=1τ1​=1. It replaces the paper's "τ1=O(1)\tau_1=O(1)τ1​=O(1)". It makes dτm0−1d_{\tau_{m_0-1}}dτm0​−1​​ finite and ρ≤2\rho\le\sqrt2ρ≤2​, so ρ\rhoρ is a genuine real supremum.
  • Explicit constants: ψ=100\psi=100ψ=100, θ1=94.1\theta_1=94.1θ1​=94.1, θ2=ψ/6.4\theta_2=\psi/6.4θ2​=ψ/6.4, c0=4ρ(1+θ1)c_0=4\rho(1+\theta_1)c0​=4ρ(1+θ1​), C0=4ψ+c0C_0=4\psi+c_0C0​=4ψ+c0​, 6.46.46.4, 757575, 6.36.36.3, 81.381.381.3, e−2e-2e−2. ρ\rhoρ is not replaced by 2\sqrt22​.
  • Where the paper allows λ=0\lambda=0λ=0 or μm=0\mu_m=0μm​=0 (Lemmas 9–11), the bound is +∞+\infty+∞. These cases are excluded (λ>0\lambda>0λ>0, μm>0\mu_m>0μm​>0) because x/0=0x/0=0x/0=0 in Lean. Lemma 9 adds measurability and integrability of XtX_tXt​ and Xt2X_t^2Xt2​.
  • Probability statements bound the (outer) measure of the failure event by δ\deltaδ.

A statement about "a policy mixture with small regret", about the pseudo-regret ∑tReg\sum_t\mathrm{Reg}∑t​Reg of the chosen policies, about a specially chosen (OP) solution, or about actions that may depend on rtr_trt​ is not Theorem 2; none of these is accepted. With these constants the bound exceeds TTT unless TTT is very large, which is a property of the paper's constants, not of the encoding.

Needed infrastructure: Freedman's inequality for the natural filtration, a uniform-over-distributions concentration argument (the probabilistic method of Dudík et al.), measurability of the algorithm's run, and Azuma–Hoeffding. Freedman's inequality and the IPS estimator are reusable beyond this mission. Proofs of any milestone, and sharper or cleaner restatements proved as separate lemmas, are welcome.

Selected references

  • A. Agarwal, D. Hsu, S. Kale, J. Langford, L. Li, R. E. Schapire, Taming the Monster: A Fast and Simple Algorithm for Contextual Bandits, ICML 2014; arXiv:1402.0555v2. https://arxiv.org/abs/1402.0555
  • P. Auer, N. Cesa-Bianchi, Y. Freund, R. E. Schapire, The nonstochastic multiarmed bandit problem, SIAM J. Comput. 32(1), 2002. https://doi.org/10.1137/S0097539701398375
  • A. Beygelzimer, J. Langford, L. Li, L. Reyzin, R. E. Schapire, Contextual bandit algorithms with supervised learning guarantees, AISTATS 2011. https://arxiv.org/abs/1002.4058
  • M. Dudík, D. Hsu, S. Kale, N. Karampatziakis, J. Langford, L. Reyzin, T. Zhang, Efficient optimal learning for contextual bandits, UAI 2011. https://arxiv.org/abs/1106.2369
  • J. Langford, T. Zhang, The epoch-greedy algorithm for contextual multi-armed bandits, NIPS 2007. https://papers.nips.cc/paper/3178-the-epoch-greedy-algorithm-for-multi-armed-bandits-with-side-information
  • D. A. Freedman, On tail probabilities for martingales, Ann. Probab. 3(1), 1975. https://doi.org/10.1214/aop/1176996452
12 thms2 active usersReviewed
🏆Completed
Machine LearningOperations ResearchProbability·Captain: mikedeng1

Stochastic Linear Optimization under Bandit Feedback 2: A Regret Lower Bound on the CircleResearch Paper

Motivation

In stochastic linear optimization under bandit feedback a learner repeatedly chooses a point xtx_txt​ from a compact decision set D⊂RnD\subset\mathbb R^nD⊂Rn and observes only the random cost ℓt\ell_tℓt​ of that point, whose mean is μ⋅xt\mu\cdot x_tμ⋅xt​ for an unknown vector μ\muμ. The problem models online routing, ad placement and other sequential decisions with linearly structured costs. The quality of a learner is measured by its regret against the best fixed decision.

For the KKK-armed bandit the achievable regret for a fixed instance is logarithmic in the horizon TTT (Lai and Robbins 1985; Auer, Cesa-Bianchi and Fischer 2002). Dani, Hayes and Kakade (COLT 2008) showed that for linear costs the picture depends on the geometry of DDD. Their Theorem 1 gives polylogarithmic regret when the decision set has a positive gap between the best and second-best extreme point (a polytope, for instance), and their Theorem 2 gives O∗(nT)O^*(n\sqrt T)O∗(nT​) regret for every decision set. Their Theorem 3 shows that the second rate cannot be improved in general: on a decision set with zero gap, every algorithm pays Ω(T)\Omega(\sqrt T)Ω(T​) in expectation.

Timeline:

  • 2002: Auer, Using confidence bounds for exploitation–exploration trade-offs (JMLR 3), introduces confidence-bound algorithms for linear bandits on finite decision sets.
  • 2008: Dani, Hayes and Kakade prove the O∗(nT)O^*(n\sqrt T)O∗(nT​) upper bound for ConfidenceBall₂ and the Ω(T)\Omega(\sqrt T)Ω(T​) lower bound on a product of circles, the subject of this mission. A hypercube lower bound for the adversarial setting appears in their NIPS 2007 paper.
  • 2010: Rusmevichientong and Tsitsiklis, Linearly parameterized bandits (Math. OR 35), give Ω(nT)\Omega(n\sqrt T)Ω(nT​) lower bounds on the unit sphere.
  • 2020: Lattimore and Szepesvári, Bandit Algorithms, Theorems 24.1 and 24.2, give minimax lower bounds on the hypercube and the unit ball with Gaussian noise.

Setting

The decision set is the unit circle D2=S1={x∈R2:x12+x22=1}D_2=S^1=\{x\in\mathbb R^2: x_1^2+x_2^2=1\}D2​=S1={x∈R2:x12​+x22​=1}. An unknown mean vector μ∈R2\mu\in\mathbb R^2μ∈R2 is drawn once, uniformly from the circle D2/2D_2/2D2​/2 of radius 1/21/21/2; concretely μ=μ(θ)=12(cos⁡θ,sin⁡θ)\mu=\mu(\theta)=\tfrac12(\cos\theta,\sin\theta)μ=μ(θ)=21​(cosθ,sinθ) with θ\thetaθ uniform on [0,2π)[0,2\pi)[0,2π).

On each round t=1,…,Tt=1,\dots,Tt=1,…,T the algorithm plays xt∈D2x_t\in D_2xt​∈D2​ and observes a cost ℓt∈{−1,+1}\ell_t\in\{-1,+1\}ℓt​∈{−1,+1} with Pr⁡(ℓt=+1)=(1+μ⋅xt)/2\Pr(\ell_t=+1)=(1+\mu\cdot x_t)/2Pr(ℓt​=+1)=(1+μ⋅xt​)/2, so that E[ℓt]=μ⋅xt\mathbb E[\ell_t]=\mu\cdot x_tE[ℓt​]=μ⋅xt​. Given the decision, the cost is independent of the past.

An algorithm may be randomised. It draws a seed sss once from a probability measure ρ\rhoρ on a measurable space SSS, and chooses xtx_txt​ as a function of sss and the costs ℓ1,…,ℓt−1\ell_1,\dots,\ell_{t-1}ℓ1​,…,ℓt−1​ observed so far, measurably in sss.

The regret over TTT rounds is

R=∑t=1T(μ⋅xt−μ⋅x∗),μ⋅x∗=min⁡x∈D2μ⋅x,R=\sum_{t=1}^T(\mu\cdot x_t-\mu\cdot x^*),\qquad \mu\cdot x^*=\min_{x\in D_2}\mu\cdot x,R=t=1∑T​(μ⋅xt​−μ⋅x∗),μ⋅x∗=x∈D2​min​μ⋅x,

so each round costs rt=μ⋅xt+12≥0r_t=\mu\cdot x_t+\tfrac12\ge0rt​=μ⋅xt​+21​≥0 when ∥μ∥=1/2\|\mu\|=1/2∥μ∥=1/2. The expected regret ER=Eμ E(R∣μ)\mathbb E R=\mathbb E_\mu\,\mathbb E(R\mid\mu)ER=Eμ​E(R∣μ) averages over the seed, the prior and the costs.

In the Lean development these objects are unitCircle, meanVec, optCost, RandomizedPolicy and expectedRegret in the namespace StochLinOpt.LowerBound.

Formalization targets

Goal: Theorem 3 for n=2n=2n=2

There is a universal constant c>0c>0c>0 such that for every randomised algorithm and every T≥1T\ge1T≥1,

ER ≥ cT.\mathbb E R\ \ge\ c\sqrt T.ER ≥ cT​.

The constant is left existential, which is the form that survives any later improvement of the constant; it is chosen before the algorithm and before TTT.

Milestones

  1. Section 6.1, Eq. (3). For ∥μ1∥=∥μ2∥=1/2\|\mu_1\|=\|\mu_2\|=1/2∥μ1​∥=∥μ2​∥=1/2, x∈S1x\in S^1x∈S1, a posterior probability p∈[0,1]p\in[0,1]p∈[0,1] of μ=μ1\mu=\mu_1μ=μ1​ and a cost ℓ∈{±1}\ell\in\{\pm1\}ℓ∈{±1}, the Bayes-updated bias bt+1b_{t+1}bt+1​ satisfies ∣bt+1−bt∣≤∣(μ1−μ2)⋅x∣|b_{t+1}-b_t|\le|(\mu_1-\mu_2)\cdot x|∣bt+1​−bt​∣≤∣(μ1​−μ2​)⋅x∣, where bt=2p−1b_t=2p-1bt​=2p−1.
  2. Lemma 15. With ε=∥μ1−μ2∥>0\varepsilon=\|\mu_1-\mu_2\|>0ε=∥μ1​−μ2​∥>0 and the same data,
Eμ(rt∣Ht)≥116(ε2+∣bt+1−bt∣2ε2)1{∣bt∣≤1/2}.\mathbb E_\mu(r_t\mid\mathcal H_t)\ge\frac1{16}\Big(\varepsilon^2+\frac{|b_{t+1}-b_t|^2}{\varepsilon^2}\Big)\mathbf 1\{|b_t|\le1/2\}.Eμ​(rt​∣Ht​)≥161​(ε2+ε2∣bt+1​−bt​∣2​)1{∣bt​∣≤1/2}.
  1. Theorem 4 (Freedman). For a martingale difference sequence X1,…,XTX_1,\dots,X_TX1​,…,XT​ bounded above by bbb, with conditional variance sum VVV, and all a,v>0a,v>0a,v>0,
Pr⁡(∑iXi≥a, V≤v)≤exp⁡(−a22v+2ab/3).\Pr\Big(\sum_i X_i\ge a,\ V\le v\Big)\le\exp\Big(\frac{-a^2}{2v+2ab/3}\Big).Pr(i∑​Xi​≥a, V≤v)≤exp(2v+2ab/3−a2​).

Significance

The lower bound shows that the T\sqrt TT​ dependence of the problem-independent upper bound (Theorem 2 of the same paper) is necessary. It also shows that the gap-dependent polylogarithmic rate of Theorem 1 cannot extend to decision sets without a gap, such as the sphere. Together with the upper bound it characterises the minimax regret of stochastic linear bandits in TTT up to logarithmic factors, and in the paper's general-nnn form it also underlies the claim that the price of bandit information is Θ∗(n)\Theta^*(\sqrt n)Θ∗(n​).

The result is proved in the paper for n=2n=2n=2 and has not been machine-checked. The mission produces a checked Bayesian lower bound over all randomised algorithms, with an explicit probability model for the protocol. Two related platform results are different theorems: BanditAlgorithm.linear_bandit_unit_ball_minimax_lower_bound (Lattimore–Szepesvári Theorem 24.2: unit ball, Gaussian noise, a worst-case μ\muμ) and BanditAlgorithm.linear_bandit_hypercube_minimax_lower_bound (Theorem 24.1: hypercube). The {−1,+1}\{-1,+1\}{−1,+1} costs, the circle and the uniform prior used here are not covered by either.

Difficulty

The obvious attempt is a two-point change-of-measure argument with a fixed pair of means at distance ε\varepsilonε. It fails as stated because the decision set has no gap: an algorithm that plays close to the optimum of both candidates learns slowly but also pays little. The per-round trade-off between regret and information (Lemma 15) is exact only while the posterior is undecided, ∣bt∣≤1/2|b_t|\le1/2∣bt​∣≤1/2. Turning it into a bound on the whole horizon requires controlling how long the posterior stays undecided, which is a statement about a martingale whose step sizes are chosen by the algorithm; a concentration bound that ignores the accumulated conditional variance (Azuma–Hoeffding with worst-case steps) is too weak for this. The averaging step from a two-point prior to the uniform prior on the circle is also part of the formal work.

Formalization scope

Vectors are Fin 2 → ℝ with the dot product ⬝ᵥ; Euclidean norms are written through dot products, never with Lean's sup norm. Rounds are 0-indexed internally: the Lean index ttt is the paper's round t+1t+1t+1. The expected regret is the exact finite expectation

ER=∫S12π∫02π∑ℓ∈{±1}T∏t=1T1+ℓt μ(θ)⋅xt2  R  dθ dρ(s),\mathbb E R=\int_S\frac1{2\pi}\int_0^{2\pi}\sum_{\ell\in\{\pm1\}^T}\prod_{t=1}^T\frac{1+\ell_t\,\mu(\theta)\cdot x_t}{2}\;R\;d\theta\,d\rho(s),ER=∫S​2π1​∫02π​ℓ∈{±1}T∑​t=1∏T​21+ℓt​μ(θ)⋅xt​​Rdθdρ(s),

so no infinite product of measures is needed. A randomised algorithm is a seeded policy, which covers every randomised algorithm. The optimal cost is the infimum of μ⋅x\mu\cdot xμ⋅x over the compact circle and is attained. Every junk value in the model (a non-integrable integrand) could only make the lower bound harder to prove, never easier.

A statement over deterministic algorithms only, over a worst-case μ\muμ instead of the uniform prior, or with the constant allowed to depend on the algorithm or on TTT would be a weaker theorem. The goal quantifies ∃c>0\exists c>0∃c>0 before the algorithm and TTT, and fixes the prior.

Corrections relative to the printed paper:

  • General nnn is not stated. Theorem 3 as printed claims ER≥110nT\mathbb E R\ge\frac1{10}n\sqrt TER≥101​nT​ for every even nnn. It is false for n>10n>10n>10: on DnD_nDn​ with μ∈Dn/n\mu\in D_n/nμ∈Dn​/n each round has regret at most 111, so at T=1T=1T=1 the claim would need ER≥n/10>1\mathbb E R\ge n/10>1ER≥n/10>1. The general case rests on Lemma 16, which has no proof. The goal is the n=2n=2n=2 case, which Section 6.1 proves.
  • The constant. For n=2n=2n=2 the paper prints 15T\frac15\sqrt T51​T​; its proof gives c=116min⁡(12−1e,164)=11024c=\frac1{16}\min(\frac12-\frac1e,\frac1{64})=\frac1{1024}c=161​min(21​−e1​,641​)=10241​. The proof's Freedman step prints 2exp⁡(−1/41/8+ε/3)≤2/e22\exp(-\frac{1/4}{1/8+\varepsilon/3})\le 2/e^22exp(−1/8+ε/31/4​)≤2/e2; with v=1/32v=1/32v=1/32 the denominator is 1/16+ε/31/16+\varepsilon/31/16+ε/3, and the bound 2/e22/e^22/e2 then needs ε=T−1/4≤3/16\varepsilon=T^{-1/4}\le3/16ε=T−1/4≤3/16. Small TTT is covered by the first round, whose expected regret is 1/21/21/2. The goal leaves ccc existential.
  • Theorem 4. The printed variance sum runs to nnn; it runs to TTT. The conditioning is on a general filtration, and square-integrability of the steps is assumed so that the conditional variance is defined.
  • Lemma 15. Its right side depends on the round-ttt cost ℓt\ell_tℓt​, which is not part of Ht\mathcal H_tHt​; the Lean statement holds for either value of ℓt\ell_tℓt​.

Welcome contributions: a Lean proof of Freedman's inequality (reusable across the bandit and concentration missions on the platform); the averaging argument from two-point priors to the uniform prior; and the stopped-martingale bookkeeping for the bias sequence.

Selected references

  • Varsha Dani, Thomas P. Hayes, Sham M. Kakade, Stochastic Linear Optimization under Bandit Feedback, Proceedings of the 21st Annual Conference on Learning Theory (COLT), 2008.
  • David A. Freedman, On tail probabilities for martingales, The Annals of Probability 3(1):100–118, 1975. https://doi.org/10.1214/aop/1176996452
  • Colin McDiarmid, Concentration, in Probabilistic Methods for Algorithmic Discrete Mathematics, Springer, 1998. https://doi.org/10.1007/978-3-662-12788-9_6
  • Peter Auer, Using confidence bounds for exploitation–exploration trade-offs, JMLR 3:397–422, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • Paat Rusmevichientong, John N. Tsitsiklis, Linearly parameterized bandits, Mathematics of Operations Research 35(2):395–411, 2010. https://doi.org/10.1287/moor.1100.0446
  • Tor Lattimore, Csaba Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 24. https://doi.org/10.1017/9781108571401
5 thms2 active usersReviewed
🏆Completed
Machine LearningReinforcement LearningStatistics·Captain: mikedeng1

Foundations of Reinforcement Learning II: Contextual Bandits and Inverse Gap WeightingTextbook

Motivation

Decision-making problems rarely present the same fixed choice twice. A doctor prescribing a treatment sees each patient's medical history and symptoms before deciding; a website choosing which article to show sees the visitor's profile first. The multi-armed bandit model — where the learner repeatedly picks from a fixed set of arms with no side information — cannot express this: it is blind to the covariates that any real decision-maker actually observes. The contextual bandit model closes this gap by letting the learner see a context before acting, and asks for a decision rule that generalizes across contexts rather than memorizing a policy per context. Foster and Rakhlin's Foundations of Reinforcement Learning and Interactive Decision Making (arXiv:2312.16730v1, Section 3, pp. 38–53) develops this model and its algorithms as the bridge between supervised learning and sequential decision making, en route to general reinforcement learning. Contextual bandits with a learned reward-function class underlie production systems for content recommendation, online advertising, and adaptive clinical trial design (Li et al., A Contextual-Bandit Approach to Personalized News Article Recommendation, 2010, https://arxiv.org/abs/1003.0146; Agarwal et al., Making Contextual Decisions with Low Technical Debt, 2016, https://arxiv.org/abs/1606.03966).

The algorithmic history in this chapter runs through two distinct principles. The optimism principle (LinUCB, Section 3.2) generalizes the UCB algorithm to contexts under a linear reward model, but the chapter's own Example 3.1 (Section 3.3) shows optimism fails outside such structured classes, incurring regret linear in the size of the context space or the class. Foster and Rakhlin then present two "black-box" alternatives that use any function class FFF through an abstract regression subroutine: the naive ε\varepsilonε-Greedy method (Section 3.4), and the Inverse Gap Weighting (IGW) strategy underlying the SquareCB algorithm (Bietti, Agarwal & Langford, A Contextual Bandit Bake-off, 2018, https://arxiv.org/abs/1802.04064; Foster & Rakhlin, Beyond UCB: Optimal and Efficient Contextual Bandits with Regression Oracles, 2020, https://arxiv.org/abs/2002.04926). SquareCB attains a regret rate that both generalizes across contexts (no dependence on the size of the context space) and matches the optimal T\sqrt{T}T​ rate — improving on ε\varepsilonε-Greedy's T2/3T^{2/3}T2/3 rate — while remaining agnostic to the internal structure of FFF.

Setting

Over TTT rounds, a decision-maker faces the contextual bandit protocol: at each round ttt, it observes a context xt∈Xx_t \in Xxt​∈X, selects a decision πt\pi_tπt​ from a finite action set Π={1,…,A}\Pi = \{1,\dots,A\}Π={1,…,A}, and observes a reward rt∈Rr_t \in \mathbb{R}rt​∈R. Rewards are generated independently as rt∼M⋆(⋅∣xt,πt)r_t \sim M^\star(\cdot \mid x_t, \pi_t)rt​∼M⋆(⋅∣xt​,πt​) for a fixed, unknown conditional model M⋆M^\starM⋆; write f⋆(x,π):=E[r∣x,π]f^\star(x,\pi) := \mathbb{E}[r \mid x, \pi]f⋆(x,π):=E[r∣x,π] for the mean reward function and π⋆(x):=arg⁡max⁡πf⋆(x,π)\pi^\star(x) := \arg\max_\pi f^\star(x,\pi)π⋆(x):=argmaxπ​f⋆(x,π) for the optimal, context-dependent policy. The context sequence x1,…,xTx_1,\dots,x_Tx1​,…,xT​ is arbitrary — fixed in advance or adversarially chosen — while rewards remain stochastic. Performance is measured by regret against π⋆\pi^\starπ⋆:

Reg:=∑t=1Tf⋆(xt,π⋆(xt))−∑t=1TEπt∼pt[f⋆(xt,πt)],\mathrm{Reg} := \sum_{t=1}^T f^\star(x_t,\pi^\star(x_t)) - \sum_{t=1}^T \mathbb{E}_{\pi_t\sim p_t}[f^\star(x_t,\pi_t)],Reg:=t=1∑T​f⋆(xt​,π⋆(xt​))−t=1∑T​Eπt​∼pt​​[f⋆(xt​,πt​)],

where ptp_tpt​ is the learner's (possibly randomized) action distribution at round ttt.

To generalize across contexts, the learner is given a class F⊆{f:X×Π→R}F \subseteq \{f : X\times\Pi \to \mathbb{R}\}F⊆{f:X×Π→R} with f⋆∈Ff^\star \in Ff⋆∈F, and aims for regret scaling with the statistical complexity log⁡∣F∣\log|F|log∣F∣ rather than with ∣X∣|X|∣X∣. Both algorithms in this mission access FFF only through an online regression oracle (Definition 3, p. 47): given the history (x1,π1,r1),…,(xt−1,πt−1,rt−1)(x_1,\pi_1,r_1),\dots,(x_{t-1},\pi_{t-1},r_{t-1})(x1​,π1​,r1​),…,(xt−1​,πt−1​,rt−1​), it returns an estimate f^t:X×Π→R\hat f_t : X\times\Pi\to\mathbb{R}f^​t​:X×Π→R satisfying, with probability at least 1−δ1-\delta1−δ, ∑t=1TEπt∼pt[(f^t(xt,πt)−f⋆(xt,πt))2]≤EstSq(F,T,δ)\sum_{t=1}^T \mathbb{E}_{\pi_t\sim p_t}[(\hat f_t(x_t,\pi_t)-f^\star(x_t,\pi_t))^2] \le \mathrm{EstSq}(F,T,\delta)∑t=1T​Eπt​∼pt​​[(f^​t​(xt​,πt​)−f⋆(xt​,πt​))2]≤EstSq(F,T,δ) — for instance, exponential weights on a finite class FFF achieves EstSq(F,T,δ)=log⁡(∣F∣/δ)\mathrm{EstSq}(F,T,\delta) = \log(|F|/\delta)EstSq(F,T,δ)=log(∣F∣/δ). SquareCB (p. 50–51) then samples its action from the Inverse Gap Weighting distribution (Definition 4, p. 50): given a vector of estimated values f^∈RA\hat f \in \mathbb{R}^Af^​∈RA with greedy action πˉ=arg⁡max⁡πf^(π)\bar\pi = \arg\max_\pi \hat f(\pi)πˉ=argmaxπ​f^​(π), and an exploration parameter γ≥0\gamma \ge 0γ≥0, p=IGWγ(f^)p = \mathrm{IGW}_\gamma(\hat f)p=IGWγ​(f^​) is p(π)=1/(λ+2γ(f^(πˉ)−f^(π)))p(\pi) = 1/(\lambda + 2\gamma(\hat f(\bar\pi)-\hat f(\pi)))p(π)=1/(λ+2γ(f^​(πˉ)−f^​(π))) for the unique λ∈[1,A]\lambda \in [1,A]λ∈[1,A] making ppp a probability distribution.

Formalization targets

Milestone — Proposition 9 (IGW estimation-to-regret inequality)

Eπ∼p[f⋆(π⋆)−f⋆(π)]≤Aγ+γ⋅Eπ∼p[(f^(π)−f⋆(π))2],p=IGWγ(f^).\mathbb{E}_{\pi\sim p}[f^\star(\pi^\star)-f^\star(\pi)] \le \frac{A}{\gamma} + \gamma\cdot\mathbb{E}_{\pi\sim p}[(\hat f(\pi)-f^\star(\pi))^2], \qquad p = \mathrm{IGW}_\gamma(\hat f).Eπ∼p​[f⋆(π⋆)−f⋆(π)]≤γA​+γ⋅Eπ∼p​[(f^​(π)−f⋆(π))2],p=IGWγ​(f^​).

This holds for any f^,f⋆∈RA\hat f, f^\star \in \mathbb{R}^Af^​,f⋆∈RA and any γ>0\gamma>0γ>0, with no reference to FFF or to how f^\hat ff^​ was produced — it is the purely algebraic core the goal theorem invokes at every round.

Goal — Proposition 10 (SquareCB regret bound)

Reg≤2A T EstSq(F,T,δ)\mathrm{Reg} \le 2\sqrt{A\,T\,\mathrm{EstSq}(F,T,\delta)}Reg≤2ATEstSq(F,T,δ)​

with probability at least 1−δ1-\delta1−δ, for SquareCB run with γ=TA/EstSq(F,T,δ)\gamma = \sqrt{TA/\mathrm{EstSq}(F,T,\delta)}γ=TA/EstSq(F,T,δ)​, for any context sequence x1,…,xTx_1,\dots,x_Tx1​,…,xT​. This is the weakest stable target level in the chapter's oracle-based development: it is stated for an arbitrary class FFF and oracle, so it survives any future improvement to the oracle's own EstSq\mathrm{EstSq}EstSq bound, unlike a version hard-coded to a specific class or oracle.

Significance

Proposition 10 shows that Inverse Gap Weighting converts any estimation-error guarantee into a regret guarantee with the same statistical rate, with no algorithm-side dependence on the structure of FFF or the size of XXX: the same SquareCB template, driven by a plug-in regression oracle, is minimax optimal whenever the oracle itself is. When FFF is finite, this yields Reg≲ATlog⁡(∣F∣/δ)\mathrm{Reg} \lesssim \sqrt{AT\log(|F|/\delta)}Reg≲ATlog(∣F∣/δ)​, matching the optimal rate for stochastic multi-armed bandits (Section 2) while generalizing across contexts — a guarantee that optimism (Proposition 7) provably cannot deliver outside linear classes (Example 3.1), and that the simpler ε\varepsilonε-Greedy baseline (Proposition 8) only delivers at a slower T2/3T^{2/3}T2/3 rate. Foster and Rakhlin describe Proposition 9 itself as being "at the core of the development for the rest of the course": the same IGW mechanism reappears, generalized, in the book's treatment of general decision-making and the Decision-Estimation Coefficient.

Both propositions are proved results, not open questions; this mission's contribution is a machine-checked formalization of their exact statements and hypotheses — the precise OracleGuarantee hypothesis Proposition 10 requires, the exact constant (222, not a bare ≲\lesssim≲) its proof yields at the stated optimal γ\gammaγ, and the universally-quantified form of the IGW inequality (Proposition 9) that makes it reusable independently of any particular oracle or class.

Difficulty

The obvious first idea for exploiting an estimator f^t\hat f_tf^​t​ is a UCB-style optimism approach: build a confidence set around f^t\hat f_tf^​t​ and act greedily on its upper envelope, as in LinUCB (Proposition 7). Example 3.1 shows this fails in general: a class FFF can force the confidence set to remain wide on a fresh action at every new context, driving regret linear in min⁡{∣F∣,∣X∣}\min\{|F|,|X|\}min{∣F∣,∣X∣} — the confidence width in the regret bound does not shrink merely because the oracle's cumulative estimation error is small, since that error is not localized to the specific action the confidence-set approach tries next. Uniform exploration (ε\varepsilonε-Greedy) sidesteps this but wastes exploration budget on actions already known to be far from optimal, which is what caps its rate at T2/3T^{2/3}T2/3 (Proposition 8). Inverse Gap Weighting instead ties the sampling probability itself to the estimated gap from the greedy action, so cheap-to-rule-out actions are down-weighted continuously rather than either fully explored (ε-Greedy) or trusted outright (optimism); the technical content of Proposition 9 is showing this specific reciprocal-gap form gives a bound with no hidden dependence on FFF or XXX, for every pair (f^,f⋆)(\hat f, f^\star)(f^​,f⋆) simultaneously — a guarantee optimism cannot match because its confidence sets are class-dependent by construction.

Formalization scope

Contexts form an arbitrary type X; actions are Fin A for A : ℕ. A finite probability distribution over Fin A is represented directly as p : Fin A → ℝ with ∀ π, 0 ≤ p π and ∑ π, p π = 1, and Eπ∼p[g]\mathbb{E}_{\pi\sim p}[g]Eπ∼p​[g] as the finite sum ∑ π, p π * g π, rather than via Mathlib's PMF (which is ℝ≥0∞-valued) — an equivalent and lighter-weight representation of a distribution on a finite type. The normalizing constant λ\lambdaλ of Definition 4 and the optimal actions π⋆\pi^\starπ⋆, πˉ\bar\piπˉ are each specified by their defining property (existence of λ∈[1,A]\lambda \in [1,A]λ∈[1,A] realizing the IGW formula; ∀π,f(π)≤f(argmax)\forall\pi, f(\pi)\le f(\text{argmax})∀π,f(π)≤f(argmax)) rather than constructed explicitly via an intermediate-value or Finset.argmax argument, avoiding committing to one choice function for a value the book itself leaves implicit. The class FFF enters neither proposition's statement directly: it appears in the source only through the abstract bound EstSq(F,T,δ)\mathrm{EstSq}(F,T,\delta)EstSq(F,T,δ), which is carried as an explicit real-valued parameter and hypothesis (OracleGuarantee) rather than as a literal subset of a function space, since no property of FFF beyond producing this bound is ever used. The probability-(1−δ)(1-\delta)(1−δ) qualifier attached to the online regression oracle's guarantee is likewise the explicit hypothesis OracleGuarantee ... EstSq on a fixed realized run, rather than a statement quantified over an underlying probability space of histories — every subsequent step in both propositions' proofs is deterministic given that this event holds, so this does not weaken either conclusion. A trivializing formalization would fix A=1A=1A=1 (a single ever-optimal action, making both Reg and the IGW inequality vacuous) or take EstSq as an unconstrained free variable with no positivity hypothesis (making γ\gammaγ in Proposition 10 undefined); this mission's statements require 0 < EstSq and leave AAA, TTT, XXX, FFF-via-EstSq fully general.

This mission omits Proposition 7 (LinUCB): its proof rests on an entirely disjoint apparatus (finite linear parameter sets, least-squares confidence sets, the elliptic potential lemma) that neither Proposition 9 nor 10 requires, and Example 3.1 (the failure of optimism) is a worked example rather than a numbered, formalizable claim. It also omits Proposition 8 (ε\varepsilonε-Greedy): the source leaves the optimal ε\varepsilonε unspecified ("choosing ε\varepsilonε appropriately"), and deriving its own optimal value and matching constant independently — rather than reusing the book's own explicit constant, as Rule 7 of this formalization effort requires — was judged too likely to introduce an unfaithful, invented constant within this mission's time budget; both are natural extensions for a follow-up mission or contribution. Reusable infrastructure: the Fin A-indexed finite-distribution convention and the OracleGuarantee/optimal-action-by-property pattern extend directly to any later chapter built on the same online-regression-oracle abstraction.

Selected references

  • Foster, D. J. and Rakhlin, A. Foundations of Reinforcement Learning and Interactive Decision Making. 2023. https://arxiv.org/abs/2312.16730
  • Foster, D. J. and Rakhlin, A. Beyond UCB: Optimal and Efficient Contextual Bandits with Regression Oracles. ICML 2020. https://arxiv.org/abs/2002.04926
  • Bietti, A., Agarwal, A., and Langford, J. A Contextual Bandit Bake-off. JMLR 2021 (arXiv 2018). https://arxiv.org/abs/1802.04064
  • Li, L., Chu, W., Langford, J., and Schapire, R. E. A Contextual-Bandit Approach to Personalized News Article Recommendation. WWW 2010. https://arxiv.org/abs/1003.0146
  • Agarwal, A. et al. Making Contextual Decisions with Low Technical Debt. 2016. https://arxiv.org/abs/1606.03966
5 thms2 active usersReviewed
🏆Completed
Machine LearningReinforcement Learning·Captain: mikedeng1

Foundations of Reinforcement Learning I: Multi-Armed Bandits and the UCB AlgorithmTextbook

Motivation

The multi-armed bandit is the simplest model of sequential decision-making under partial feedback: a learner repeatedly picks one of finitely many options and observes a reward only for the option chosen, never for the alternatives. It formalizes problems ranging from clinical trial design (which treatment to offer a patient) to online advertising (which ad to show) and A/B testing more generally. The framework dates to Robbins' 1952 paper on sequential design, and the algorithm this mission's goal theorem concerns — the Upper Confidence Bound (UCB) algorithm of Lai and Robbins [1985] and Auer, Cesa-Bianchi and Fischer [2002] — is the canonical answer to how to explore efficiently: instead of exploring uniformly at random, act optimistically with respect to the current uncertainty about each option's value. This mission draws its formalization from Chapter 2 of Foster and Rakhlin's 2023 lecture notes, Foundations of Reinforcement Learning and Interactive Decision Making, which develops the bandit problem as the first rung of a ladder of increasingly general interactive decision-making settings (contextual bandits, structured bandits, reinforcement learning) that the book's later chapters build.

Setting

Fix a finite decision (action) space Π={1,…,A}\Pi = \{1,\dots,A\}Π={1,…,A}. In the multi-armed bandit protocol, for each round t=1,…,Tt = 1,\dots,Tt=1,…,T the learner selects a decision πt∈Π\pi_t \in \Piπt​∈Π, possibly at random according to a distribution ptp_tpt​ depending on the history Ht−1=((π1,r1),…,(πt−1,rt−1))H_{t-1} = ((\pi_1,r_1),\dots,(\pi_{t-1},r_{t-1}))Ht−1​=((π1​,r1​),…,(πt−1​,rt−1​)) observed so far, and then observes a reward rt∈Rr_t \in \mathbb{R}rt​∈R drawn independently from a fixed conditional distribution M⋆(⋅∣πt)M^\star(\cdot \mid \pi_t)M⋆(⋅∣πt​) (the stochastic rewards assumption). Writing f⋆(π):=E[r∣π]f^\star(\pi) := \mathbb{E}[r \mid \pi]f⋆(π):=E[r∣π] for the mean reward function and π⋆:=arg⁡max⁡πf⋆(π)\pi^\star := \arg\max_\pi f^\star(\pi)π⋆:=argmaxπ​f⋆(π) for an optimal decision, the learner's performance is measured by the regret

Reg:=∑t=1Tf⋆(π⋆)−∑t=1TEπt∼pt[f⋆(πt)].\mathrm{Reg} := \sum_{t=1}^T f^\star(\pi^\star) - \sum_{t=1}^T \mathbb{E}_{\pi_t \sim p_t}[f^\star(\pi_t)].Reg:=t=1∑T​f⋆(π⋆)−t=1∑T​Eπt​∼pt​​[f⋆(πt​)].

Because the learner observes a reward only for the action played (bandit feedback), a purely greedy strategy that always plays the current empirical maximizer can commit to a suboptimal action forever, incurring linear regret; some form of deliberate exploration is necessary. The chapter's central construction is the confidence interval: a pair of functions f‾t,fˉt:Π→R\underline{f}_t, \bar f_t : \Pi \to \mathbb{R}f​t​,fˉ​t​:Π→R such that, with probability at least 1−δ1-\delta1−δ, f⋆(π)∈[f‾t(π),fˉt(π)]f^\star(\pi) \in [\underline{f}_t(\pi), \bar f_t(\pi)]f⋆(π)∈[f​t​(π),fˉ​t​(π)] for every round ttt and decision π\piπ simultaneously. The UCB algorithm plays the optimistic action πt=arg⁡max⁡πfˉt(π)\pi_t = \arg\max_\pi \bar f_t(\pi)πt​=argmaxπ​fˉ​t​(π) at every round, using the confidence interval built from Hoeffding's inequality around the empirical mean f^t(π)\hat f_t(\pi)f^​t​(π).

Formalization targets

Goal — Proposition 5 (UCB regret)

Reg  ≲  ATlog⁡(AT/δ)\mathrm{Reg} \;\lesssim\; \sqrt{AT\log(AT/\delta)}Reg≲ATlog(AT/δ)​

holding with probability at least 1−δ1-\delta1−δ, for the UCB algorithm using the confidence radius 2log⁡(2T2A/δ)/nt(π)\sqrt{2\log(2T^2A/\delta)/n_t(\pi)}2log(2T2A/δ)/nt​(π)​ of Eq. (2.19). This is the weakest stable statement the chapter proves: it is optimal up to the log factor, and strengthening it (e.g. to the sharper instance-dependent bound of Remark 10) is explicitly left to later work by the book itself.

Milestones

  • Proposition 4 (ε-Greedy regret): Reg≲A1/3T2/3log⁡1/3(AT/δ)\mathrm{Reg} \lesssim A^{1/3}T^{2/3}\log^{1/3}(AT/\delta)Reg≲A1/3T2/3log1/3(AT/δ) — the book's preceding, weaker result, establishing that naive forced exploration already gives sublinear regret, and motivating why an adaptive strategy (UCB) does better.
  • Lemma 7 (Optimism): the per-round regret of the optimistic action is bounded by the confidence width at that action.
  • Lemma 8 (Confidence width potential lemma): ∑t=1T(1/nt(πt)∧1)≲AT\sum_{t=1}^T (1/\sqrt{n_t(\pi_t)} \wedge 1) \lesssim \sqrt{AT}∑t=1T​(1/nt​(πt​)​∧1)≲AT​, a pigeonhole bound on how often any one action's confidence interval can still be wide.

Significance

UCB is the prototype of the "optimism in the face of uncertainty" principle that recurs, in increasingly abstract form, throughout the rest of the book: the same two-step argument (Lemma 7 + Lemma 8) reappears for linear bandits, structured bandits via the Decision-Estimation Coefficient, and UCB-VI for tabular reinforcement learning. Formalizing Chapter 2 in full therefore front-loads the proof pattern every later chapter in this series specializes. The result itself is also of standalone interest: the AT\sqrt{AT}AT​ minimax rate is the benchmark every subsequent bandit algorithm in the literature is compared against, and the A1/3T2/3A^{1/3}T^{2/3}A1/3T2/3-vs-AT\sqrt{AT}AT​ contrast between ε-Greedy and UCB is the standard illustration, in any course on the subject, of why adaptive exploration matters.

No formalization of this exact statement — realizability with respect to a function class f⋆∈F=RΠf^\star \in \mathcal{F} = \mathbb{R}^\Pif⋆∈F=RΠ and a generic confidence interval, rather than a per-arm sub-Gaussian empirical mean — currently exists on the platform (see Formalization scope below); the mission both proves this specific regret bound and seeds the generic optimism/potential lemma pair (Lemma 7, Lemma 8) that the book's later, more structured settings specialize.

Difficulty

The natural first attempt — bound the regret of the empirical-mean-greedy algorithm directly — fails outright: on a two-armed instance where one arm is deterministic and the other only slightly better in expectation, the greedy algorithm can commit to the worse arm forever with constant probability, giving linear, not sublinear, regret (§2.1). The obvious fix, ε-Greedy, forces exploration uniformly across all actions regardless of how much is already known about each, so the exploration cost scales with εT\varepsilon TεT even for actions whose value is already well determined — this is exactly what caps ε-Greedy at the T2/3T^{2/3}T2/3 rate. UCB's optimism principle resolves this by exploring an action only in proportion to how uncertain it still is; the technical core, isolated in Lemma 7 and Lemma 8, is disentangling "the algorithm made a mistake" from "the algorithm is still uncertain," which are conflated in the naive per-round regret decomposition used for ε-Greedy.

Formalization scope

Both the goal and the milestones fix a finite decision space Fin A, a mean reward function fStar : Fin A → ℝ with fStar π ∈ [0,1], and an optimal decision piStar. Regret is defined generically (Eq. (2.3)) via per-round decision weights p : ℕ → Fin A → ℝ, so it applies uniformly to a randomized algorithm (ε-Greedy) and a deterministic one (UCB, via the point mass at the played action). The book's "with probability at least 1−δ1-\delta1−δ" qualifier on both Proposition 4 and Proposition 5 is formalized as the deterministic consequence of the underlying concentration event (Eq. (2.9) and Eq. (2.18) respectively) holding — exactly the move the book's own proofs make ("Let us condition on the event in (2.18) ... "). The concentration events themselves rest on Hoeffding's inequality for adaptive stopping times (Lemma 33) and Bernstein's inequality (Lemma 5), both stated in the book's technical appendix outside this chapter, and are not drafted here; a solver may either take them as a hypothesis (as this mission's statements do) or import/prove them separately. A trivializing formalization is ruled out explicitly: taking δ outside (0,1)(0,1)(0,1), or dropping the fStar π ∈ [0,1] hypothesis, would make the stated constants vacuous or false, so both are retained as explicit hypotheses in every theorem. In every ≲ statement (Prop. 4, Lemma 8, Prop. 5) the witnessed constant C is quantified before the instance parameters (A, T, δ, and the realized sequences): ∃ C, 0 < C ∧ ∀ A T δ ..., Reg ≤ C * (rate), not the other order. This is deliberate, not stylistic: quantifying C after the instance lets it depend on A, T, δ, making the bound satisfiable by an arbitrarily large C chosen per instance and hence content-free, which is not what the book's ≲ means (a single constant working uniformly over all instances). Proposition 5's UCB decision rule is stated in the book's own two clauses, not collapsed into a single "maximize the upper confidence bound" rule: the confidence radius of Eq. (2.19) is +∞+\infty+∞ at nt(π)=0n_t(\pi)=0nt​(π)=0 (an action never yet sampled), so the book's UCB always plays an unsampled action before ever comparing indices, and only compares finite upper confidence bounds once every action has been sampled at least once; the confidence event of Eq. (2.18) is correspondingly assumed only at sampled actions, since the book's own bound is vacuous otherwise. An earlier draft instead capped the radius at 111 when nt(π)=0n_t(\pi)=0nt​(π)=0, which is a true statement about a different algorithm (a sampled action can have index above the capped unsampled index), and was corrected to the book's own rule after moderation. Reuse from the platform's existing bandit library (BanditAlgorithm, Lattimore & Szepesvári) is deliberately avoided: that library's UCB (bandit_ucb_regret_bound, bandit_ucb_minimax_regret_bound) is stated for per-arm 1-sub-Gaussian rewards with δ=1/n2\delta = 1/n^2δ=1/n2 fixed by the horizon, whereas this chapter's UCB is stated for a free failure probability δ\deltaδ and a generic confidence-interval abstraction (the multi-armed case being F=RΠ\mathcal{F} = \mathbb{R}^\PiF=RΠ of the book's general realizability framework) — the two are related but not the same statement. Contributions extending the mission with the generic confidence-interval form of Lemma 7/8 applied to other chapters in this series (contextual and structured bandits) are welcome.

Selected references

  • T. Lai and H. Robbins, Asymptotically Efficient Adaptive Allocation Rules, Advances in Applied Mathematics, 1985.
  • P. Auer, N. Cesa-Bianchi, and P. Fischer, Finite-time Analysis of the Multiarmed Bandit Problem, Machine Learning, 2002.
  • D. Foster and A. Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730, 2023. https://arxiv.org/abs/2312.16730
  • T. Lattimore and C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020.
7 thms2 active usersReviewed
🏆Completed
Machine LearningOperations Research·Captain: Shuze Chen

Bandit Algorithms XII: Follow-the-Regularised-Leader and Mirror DescentTextbook

Beneath Exp3, Exp4 and their relatives lies one algorithm: minimize past losses plus a convex regularizer. Chapters 26–28 of Lattimore–Szepesvári develop this unifying view. For a Legendre potential FFF with Bregman divergence DFD_FDF​, both mirror descent and follow-the-regularised-leader satisfy the master bound Rn(a)≤F(a)−F(a1)η+1η∑tDF(at,a~t+1)R_n(a) \le \frac{F(a) - F(a_1)}{\eta} + \frac{1}{\eta}\sum_t D_F(a_t, \tilde a_{t+1})Rn​(a)≤ηF(a)−F(a1​)​+η1​∑t​DF​(at​,a~t+1​); the negentropy potential on the simplex recovers Exp3 exactly. The goal theorem is the payoff for adversarial linear bandits: FTRL on the unit ball with the self-concordant-flavoured potential F(a)=−log⁡(1−∥a∥)−∥a∥F(a) = -\log(1-\|a\|) - \|a\|F(a)=−log(1−∥a∥)−∥a∥ achieves Rn≤23ndlog⁡nR_n \le 2\sqrt{3nd\log n}Rn​≤23ndlogn​ — improving the d\sqrt{d}d​ factor over the Exp3-style approach of Chapter 27 and matching the Ω(dn)\Omega(d\sqrt{n})Ω(dn​) lower bound of Mission XI up to logarithms.

5 thms2 active users
🏆Completed
Machine LearningOperations Research·Captain: Shuze Chen

Bandit Algorithms VIII: Contextual Bandits and Exp4Textbook

Real decisions come with context: a news site chooses an article for a particular user. Competing with the single best arm is then meaningless; the right benchmark is the best mapping from contexts to arms, or more generally the best of MMM expert policies. Chapter 18 of Lattimore–Szepesvári formalizes this via Exp4 — exponential weighting over experts, fed by the importance-weighted estimator of Mission V. The goal theorem: with learning rate η=2log⁡(M)/(nk)\eta = \sqrt{2\log(M)/(nk)}η=2log(M)/(nk)​, Exp4 satisfies Rn≤2nklog⁡MR_n \le \sqrt{2nk\log M}Rn​≤2nklogM​ against the best of MMM experts. Since MMM enters only logarithmically, the learner can compete with exponentially large policy classes — the conceptual gateway from bandits to reinforcement learning with function approximation.

9 thms2 active usersReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Bayesian Sequential Learning for Clinical Trials of Multiple Correlated Medical Interventions: The cPDE Allocation Policy Is Asymptotically ConsistentResearch Paper

Motivation

A clinical trial that compares several treatments for the same condition must decide, patient by patient, which treatment the next patient receives. When the treatments are related (doses of one drug, drugs of one class), an outcome observed on one arm is informative about the others, and a good allocation rule should exploit that correlation. Chick, Gans and Yapar (SSRN 3184758, version of August 31, 2020; later in Management Science) model this as Bayesian sequential sampling with a correlated Gaussian prior and propose the cPDE allocation policy, which samples the arm with the largest value of an adaptive-lookahead optimal-stopping index. Their one theorem, Theorem 1, says that cPDE is asymptotically consistent: run forever, it learns every arm's mean and identifies the best arm.

Consistency is the minimal guarantee asked of an allocation heuristic: a rule that can stop sampling an arm whose value is still uncertain may settle on the wrong treatment forever. The argument follows the consistency proof of Xie, Frazier and Chick (Operations Research 64(2):542–559, 2016; "XFC") for one-step knowledge-gradient (cKG) policies, extended to an index whose lookahead is itself an optimal stopping time.

Setting

There are M≥2M\ge2M≥2 arms. Arm iii has unknown mean θi\theta_iθi​; an observation of arm iii is Y∣θi∼N(θi,λi)Y\mid\theta_i\sim N(\theta_i,\lambda_i)Y∣θi​∼N(θi​,λi​) with known λi>0\lambda_i>0λi​>0, independent across observations. The prior is θ∼N(μ0,Σ0)\theta\sim N(\mu^0,\Sigma^0)θ∼N(μ0,Σ0) with Σ0\Sigma^0Σ0 positive definite, and sampling arm iii costs ci>0c_i>0ci​>0. After ttt observations the belief is (μt,Σt)(\mu^t,\Sigma^t)(μt,Σt); one observation yyy of arm iii updates it by Bayes' rule (8):

μ′=μ+y−μiλi+Σi,iΣei,Σ′=Σ−Σeiei⊤Σλi+Σi,i.\mu'=\mu+\frac{y-\mu_i}{\lambda_i+\Sigma_{i,i}}\Sigma e_i,\qquad \Sigma'=\Sigma-\frac{\Sigma e_ie_i^\top\Sigma}{\lambda_i+\Sigma_{i,i}}.μ′=μ+λi​+Σi,i​y−μi​​Σei​,Σ′=Σ−λi​+Σi,i​Σei​ei⊤​Σ​.

From a belief (μ,Σ)(\mu,\Sigma)(μ,Σ), imagine sampling arm iii alone. The predictive change Ziτ=μit+τ−μitZ^\tau_i=\mu^{t+\tau}_i-\mu^t_iZiτ​=μit+τ​−μit​ after τ\tauτ samples is a centred Gaussian with variance λiτ/(ni(ni+τ))\lambda_i\tau/(n_i(n_i+\tau))λi​τ/(ni​(ni​+τ)), ni=λi/Σi,in_i=\lambda_i/\Sigma_{i,i}ni​=λi​/Σi,i​ ((9)–(10)). The cPDE allocation index is (EC.8):

νi∗(μ,Σ)=sup⁡Ti≥1E[−Ti+1cimax⁡j{μj+Σi,jΣi,iZiTi}]−1cimax⁡jμj,\nu^*_i(\mu,\Sigma)=\sup_{T_i\ge1}\mathbb E\Big[-T_i+\frac1{c_i}\max_j\Big\{\mu_j+\frac{\Sigma_{i,j}}{\Sigma_{i,i}}Z^{T_i}_i\Big\}\Big]-\frac1{c_i}\max_j\mu_j,νi∗​(μ,Σ)=Ti​≥1sup​E[−Ti​+ci​1​jmax​{μj​+Σi,i​Σi,j​​ZiTi​​}]−ci​1​jmax​μj​,

the supremum over stopping times of the sampling of arm iii. The one-step index νicKG1\nu^{cKG_1}_iνicKG1​​ is the same expression with Ti≡1T_i\equiv1Ti​≡1 ((EC.6)). The cPDE policy allocates observation t+1t+1t+1 to an arm maximizing νi∗(μt,Σt)\nu^*_i(\mu^t,\Sigma^t)νi∗​(μt,Σt); the trial never stops.

Formalization targets

Goal: Theorem 1 (p. 13)

For each arm iii, almost surely,

Σi,iT→0,νi∗(μT,ΣT)→−1,μiT→θi (also in L2),\Sigma^T_{i,i}\to0,\qquad \nu^*_i(\mu^T,\Sigma^T)\to-1,\qquad \mu^T_i\to\theta_i\ \text{(also in }L^2),Σi,iT​→0,νi∗​(μT,ΣT)→−1,μiT​→θi​ (also in L2),

and almost surely θ\thetaθ has a unique maximizer which, for all large TTT, is also the unique maximizer of μT\mu^TμT.

Milestones

  1. Prop. 3 (p. 12): ZiτZ^\tau_iZiτ​ is a uniformly integrable martingale and E[ZiT]=0\mathbb E[Z^{T}_i]=0E[ZiT​]=0 for a.s. finite stopping times.
  2. Lemma EC.1, first inequality (p. ec3): νicKG1≤νi∗\nu^{cKG_1}_i\le\nu^*_iνicKG1​​≤νi∗​.
  3. Lemma EC.3 (p. ec6): if lim inf⁡TνicKG1(μT,ΣT)=−1\liminf_T\nu^{cKG_1}_i(\mu^T,\Sigma^T)=-1liminfT​νicKG1​​(μT,ΣT)=−1 for all iii, then every Σi,iT→0\Sigma^T_{i,i}\to0Σi,iT​→0.
  4. Lemma EC.4 (p. ec7): an arm sampled infinitely often has Σi,iT→0\Sigma^T_{i,i}\to0Σi,iT​→0, and Σi,iT→0\Sigma^T_{i,i}\to0Σi,iT​→0 forces νi∗(μT,ΣT)→−1\nu^*_i(\mu^T,\Sigma^T)\to-1νi∗​(μT,ΣT)→−1.
  5. Lemma EC.5 (p. ec7): if lim inf⁡Tνi∗(μT,ΣT)=−1\liminf_T\nu^*_i(\mu^T,\Sigma^T)=-1liminfT​νi∗​(μT,ΣT)=−1 for all iii, then every Σi,iT→0\Sigma^T_{i,i}\to0Σi,iT​→0.

Significance

Theorem 1 is the only theoretical guarantee the paper gives for cPDE; the rest of the paper is computational (bounds, comparators, experiments). It also covers, through the same sandwich argument, the cheaper variants cPDELower and cPDEUpper (Corollary 1), which are not part of this mission. A consistent policy cannot lock onto a wrong treatment, which is the property a trial designer needs before comparing finite-horizon performance.

The result is proved on paper but has no machine-checked proof. Formalizing it requires a correlated-Gaussian Bayesian learning model, optimal stopping indices defined as suprema over stopping times, and the XFC consistency argument, none of which exist in Lean. The paper's proof also routes Lemma EC.4 through an upper bound that is false as printed (see below), so a checked proof replaces that step with a correct one.

Difficulty

The obvious route bounds νi∗\nu^*_iνi∗​ above by a one-step index with a fixed lookahead τˉ\bar\tauτˉ, as the paper's Lemma EC.1 does. That bound fails: τˉ\bar\tauτˉ of (EC.11) changes under a change of currency while every index is invariant. For M=2M=2M=2, μ=(0,10−3)\mu=(0,10^{-3})μ=(0,10−3), Σ=diag(10−6,10−6)\Sigma=\mathrm{diag}(10^{-6},10^{-6})Σ=diag(10−6,10−6), λ=(10−4,10−4)\lambda=(10^{-4},10^{-4})λ=(10−4,10−4), c=(10−7,10−7)c=(10^{-7},10^{-7})c=(10−7,10−7), the formula gives τˉ=1\bar\tau=1τˉ=1 and ν1cKG1:1≈−1\nu^{cKG_1:1}_1\approx-1ν1cKG1​:1​≈−1, while the lookahead T≡242T\equiv242T≡242 already yields a value above 240240240. Any upper bound on νi∗\nu^*_iνi∗​ must instead be uniform over stopping times of unbounded length, and showing that it tends to −1-1−1 needs (Σi,jT)2/Σi,iT→0(\Sigma^T_{i,j})^2/\Sigma^T_{i,i}\to0(Σi,jT​)2/Σi,iT​→0 along posterior covariances, not only Σi,iT→0\Sigma^T_{i,i}\to0Σi,iT​→0.

The second difficulty is the "finitely sampled arms" half of the argument (Lemmas EC.3, EC.5): an arm whose variance stays positive must keep a one-step value of sampling bounded away from zero, even while correlated arms are learned. This uses almost sure convergence of the posterior means and the structure of the piecewise linear terminal reward.

Formalization scope

Arms are Fin M (0-based) and time ttt counts observations, t=0t=0t=0 being the prior. The trial lives on the canonical space θ∈RM\theta\in\mathbb R^Mθ∈RM times an array of standard normal noises εi,k\varepsilon_{i,k}εi,k​, with law multivariateGaussian µ0 Σ0 times an infinite product of gaussianReal 0 1; the kkk-th sample of arm iii is θi+λi εi,k\theta_i+\sqrt{\lambda_i}\,\varepsilon_{i,k}θi​+λi​​εi,k​. The index νi∗\nu^*_iνi∗​ is built on its own auxiliary space (a prior draw of θi−μi\theta_i-\mu_iθi​−μi​ and i.i.d. noise), not as a conditional expectation on the trial space.

Committed conventions, each a disclosed reading of the page:

  • νi∗\nu^*_iνi∗​ is (EC.8). The printed definition (15) omits −1cimax⁡jμj-\frac1{c_i}\max_j\mu_j−ci​1​maxj​μj​; with (15) Theorem 1 ii) would be false.
  • The supremum in (EC.8) is a real sSup over stopping times of the auxiliary filtration with 1≤Ti≤N1\le T_i\le N1≤Ti​≤N for some NNN; this has the paper's value and keeps every expectation finite.
  • Ties in the cPDE argmax go to the least index (the paper: randomly). Every arm is eligible at every time (Mt=M\mathcal M_t=\mathcal MMt​=M), so Assumption 1 iii) is trivial.
  • Theorem 1 ii) and Lemmas EC.4–EC.5 are read with (μT,ΣT)(\mu^T,\Sigma^T)(μT,ΣT). Theorem 1 iv) is uniqueness of the maximizer of θ\thetaθ plus eventual agreement of the unique maximizer of μT\mu^TμT. The L2L^2L2 claim is MemLp plus eLpNorm → 0.
  • "liminf =−1=-1=−1" in Lemmas EC.3, EC.5 is "for every ε>0\varepsilon>0ε>0, the index is below −1+ε-1+\varepsilon−1+ε infinitely often"; since both indices are ≥−1\ge-1≥−1 this is the printed hypothesis. Lemma EC.4 is stated for every sample path.

Trivializing formalizations are ruled out: νi∗\nu^*_iνi∗​ is defined from (μ,Σ,λi,ci)(\mu,\Sigma,\lambda_i,c_i)(μ,Σ,λi​,ci​), not a parameter, a fixed-lookahead index or a supremum over non-adapted times; the policy is defined, not assumed; μt\mu^tμt and Σt\Sigma^tΣt both come from (8); the L2L^2L2 part does not use an integral that is 000 for non-integrable functions; iv) asserts uniqueness; and the false upper bound of Lemma EC.1 is not posed or used.

A complete development needs Gaussian conditioning for the update (8) (that μt=E[θ∣Ft]\mu^t=\mathbb E[\theta\mid\mathcal F_t]μt=E[θ∣Ft​]), the closed form Σt=(Σ0−1+diag(nkt/λk))−1\Sigma^t=(\Sigma_0^{-1}+\mathrm{diag}(n^t_k/\lambda_k))^{-1}Σt=(Σ0−1​+diag(nkt​/λk​))−1, optional stopping for uniformly integrable martingales, measurability of the index, and the XFC argument. The Gaussian-update and optional-stopping parts are reusable for other Bayesian ranking-and-selection results; contributions of those as separate lemmas are welcome.

Selected references

  • S. E. Chick, N. Gans, Ö. Yapar, Bayesian Sequential Learning for Clinical Trials of Multiple Correlated Medical Interventions, SSRN 3184758 (INSEAD Working Paper 2020/40/TOM/ACGRE), version of August 31, 2020. https://ssrn.com/abstract=3184758
  • J. Xie, P. I. Frazier, S. E. Chick, Bayesian Optimization via Simulation with Pairwise Sampling and Correlated Prior Beliefs, Operations Research 64(2):542–559, 2016.
  • P. I. Frazier, W. B. Powell, S. Dayanik, The Knowledge-Gradient Policy for Correlated Normal Beliefs, INFORMS Journal on Computing 21(4):599–613, 2009.
  • S. E. Chick, P. I. Frazier, Sequential Sampling for Selection with Economics of Selection Procedures, Management Science 58(3):550–569, 2012.
  • D. Williams, Probability with Martingales, Cambridge University Press, 1991.
9 thms1 active userReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Balancing Optimal Large Deviations in Ranking and Selection: The BOLD Allocation Learns the Large Deviations Optimality Conditions With Probability OneResearch Paper

Motivation

Ranking and selection asks which of MMM simulated alternatives has the largest mean, when each simulation run returns one noisy sample and the simulation budget is limited. A large literature allocates the budget using the large-deviations analysis of Glynn and Juneja (2004): for a static allocation in which alternative xxx receives a fixed fraction αx\alpha_xαx​ of the samples, the probability of incorrect selection decays exponentially, and the allocation that maximizes the decay rate is characterized by a system of nonlinear optimality conditions. Those conditions depend on the unknown means, so practical procedures plug in estimates and solve the system repeatedly, which is costly and comes with few guarantees.

Chen and Ryzhov (Proc. 2019 Winter Simulation Conference) propose Balancing Optimal Large Deviations (BOLD), a sequential rule that never solves the optimality conditions: at each step it evaluates the two sides of one condition at plug-in estimates and samples whichever alternative appears to be falling behind. It has no tuning parameters and applies to any sampling distribution whose rate function can be evaluated. The paper states that BOLD learns the optimality conditions with probability 1; the full proofs are in the companion article (Chen and Ryzhov, Management Science, 2023).

Setting

There are M>2M > 2M>2 alternatives with distinct means μ1,…,μM\mu_1,\dots,\mu_Mμ1​,…,μM​; the best is x∗=arg⁡max⁡xμxx^* = \arg\max_x \mu_xx∗=argmaxx​μx​. Alternative xxx produces independent samples from a law FxF_xFx​ with mean μx\mu_xμx​, a member of a distributional family {Fx(θ)}\{F_x(\theta)\}{Fx​(θ)} indexed by its mean θ\thetaθ. The families may differ between alternatives.

The rate function of the member with mean θ\thetaθ is the Fenchel–Legendre transform of its log-moment generating function,

Ix(u;θ)=sup⁡γ(γu−log⁡E eγW),W∼Fx(θ),I_x(u;\theta) = \sup_{\gamma}\big(\gamma u - \log \mathbb E\,e^{\gamma W}\big),\qquad W \sim F_x(\theta),Ix​(u;θ)=γsup​(γu−logEeγW),W∼Fx​(θ),

with values in [0,∞][0,\infty][0,∞], and Dx(u;θ)=∂Ix(u;θ)/∂uD_x(u;\theta) = \partial I_x(u;\theta)/\partial uDx​(u;θ)=∂Ix​(u;θ)/∂u. For a normal law with variance λx2\lambda_x^2λx2​, Ix(u;θ)=(u−θ)2/(2λx2)I_x(u;\theta) = (u-\theta)^2/(2\lambda_x^2)Ix​(u;θ)=(u−θ)2/(2λx2​).

An allocation chooses alternative xnx^nxn at stage n=0,1,…n = 0,1,\dotsn=0,1,…. Write NxnN^n_xNxn​ for the number of samples of xxx among stages 0,…,n−10,\dots,n-10,…,n−1 and θxn\theta^n_xθxn​ for their mean (an arbitrary θx0\theta^0_xθx0​ while Nxn=0N^n_x = 0Nxn​=0). The plug-in rate is Ixn(⋅)=Ix(⋅;θxn)I^n_x(\cdot) = I_x(\cdot;\theta^n_x)Ixn​(⋅)=Ix​(⋅;θxn​), likewise DxnD^n_xDxn​. For x≠yx \ne yx=y, ux,ynu^n_{x,y}ux,yn​ is the solution of

NxnDxn(u)+NynDyn(u)=0(10)N^n_x D^n_x(u) + N^n_y D^n_y(u) = 0 \qquad (10)Nxn​Dxn​(u)+Nyn​Dyn​(u)=0(10)

and Γx,yn=NxnIxn(ux,yn)+NynIyn(ux,yn)\Gamma^n_{x,y} = N^n_x I^n_x(u^n_{x,y}) + N^n_y I^n_y(u^n_{x,y})Γx,yn​=Nxn​Ixn​(ux,yn​)+Nyn​Iyn​(ux,yn​) (11).

BOLD (Figure 1 of the paper): let x∗,nx^{*,n}x∗,n be the leader, an alternative with the largest θxn\theta^n_xθxn​. If the leader is not unique, sample the tied leader with the fewest samples. Otherwise sample the leader if

∑x≠x∗,nIx∗,nn(ux∗,n,xn)Ixn(ux∗,n,xn)>1,(12)\sum_{x\ne x^{*,n}} \frac{I^n_{x^{*,n}}(u^n_{x^{*,n},x})}{I^n_x(u^n_{x^{*,n},x})} > 1, \qquad (12)x=x∗,n∑​Ixn​(ux∗,n,xn​)Ix∗,nn​(ux∗,n,xn​)​>1,(12)

and if not, sample the x≠x∗,nx \ne x^{*,n}x=x∗,n minimizing Γx∗,n,xn\Gamma^n_{x^{*,n},x}Γx∗,n,xn​ (13). Remaining ties are broken arbitrarily.

Formalization targets

Goal: BOLD learns the optimality conditions

Under Assumptions 1–4 of the paper, with probability 1,

lim⁡n→∞∑x≠x∗Ix∗n(ux∗,xn)Ixn(ux∗,xn)=1andlim⁡n→∞Γx∗,ynΓx∗,zn=1  for all y,z≠x∗.\lim_{n\to\infty}\sum_{x\ne x^*}\frac{I^n_{x^*}(u^n_{x^*,x})}{I^n_x(u^n_{x^*,x})} = 1 \quad\text{and}\quad \lim_{n\to\infty}\frac{\Gamma^n_{x^*,y}}{\Gamma^n_{x^*,z}} = 1 \ \text{ for all } y,z\ne x^*.n→∞lim​x=x∗∑​Ixn​(ux∗,xn​)Ix∗n​(ux∗,xn​)​=1andn→∞lim​Γx∗,zn​Γx∗,yn​​=1  for all y,z=x∗.

These are the plug-in forms of the total balance condition (5) and the individual balance conditions (6), which together characterize the optimal static allocation. The paper states them as Theorems 3 and 4; the goal is their conjunction.

Milestones

  1. Theorem 1 (consistency). Under Assumptions 1–3, Nxn→∞N^n_x \to \inftyNxn​→∞ for every xxx, almost surely.
  2. Theorem 2. Under Assumptions 1–3, lim sup⁡nNxn/Nyn<∞\limsup_n N^n_x/N^n_y < \inftylimsupn​Nxn​/Nyn​<∞ for all x,yx, yx,y, almost surely.
  3. Theorem 3. The total balance limit above.
  4. Theorem 4. The individual balance limit above.

Significance

The result. Convergence of BOLD to the optimality conditions shows that the static optimum of Glynn and Juneja can be learned by a cheap sequential rule without knowing the proportion of the budget the best alternative should receive. Top-two methods require that proportion as an input. The paper claims the guarantee for any sampling distributions satisfying four regularity assumptions, not only normal ones. As the paper notes, convergence to the static optimum does not by itself transfer the static exponential rate to the adaptive procedure; the result concerns learning the conditions.

The formalization. The WSC paper gives proof outlines only, and the complete argument lives in a long journal article. No part of it has been machine-checked. A formal proof would check a strong-law argument for an adaptive procedure with two interleaved decision criteria and would yield a reusable formal model of sequential sampling for ranking and selection with general rate functions.

Difficulty

The obvious argument is "sample means converge, hence the plug-in conditions converge". It fails because the sample means converge only if every alternative is sampled infinitely often, and BOLD gives no forced exploration: an alternative is sampled only when (12) or (13) selects it. Consistency must therefore come from the structure of the rule itself. Even with consistency, the limits in Theorems 3–4 are not continuity statements: the plug-in quantities depend on the sample sizes as well as the sample means, and they oscillate around the level 1 as (12) alternately holds and fails, so convergence requires quantitative control of how long the rule can neglect any one alternative. Discrete sampling laws add ties among sample means and a sample mean that can coincide with another alternative's true mean (Assumption 3).

Formalization scope

  • Model. Alternatives are Fin M with 2 < M (indexed from 0). The family is Fam : Fin M → ℝ → Measure ℝ of probability measures, with true law Fam x (μ x). Samples form an observation array W x k (the (k+1)(k+1)(k+1)-th sample of xxx), mutually independent, with W x k ∼ Fam x (μ x); this gives the same law of the sample path as the paper's sequential sampling.
  • Rate function. Ix(u;θ)I_x(u;\theta)Ix​(u;θ) is the extended-real Legendre transform of the extended-real log-MGF, from the published BellWilliams2001.ThresholdPolicy.LargeDeviation, so +∞+\infty+∞ is a genuine value. DxD_xDx​ is the derivative of its real part. Conditions on DxD_xDx​ are imposed on the effective domain Dx\mathcal D_xDx​, where IxI_xIx​ is finite nearby.
  • Parameter space. For each xxx there is an open interval Θx⊇Hx\Theta_x \supseteq H_xΘx​⊇Hx​ that contains the samples almost surely, on which Fx(θ)F_x(\theta)Fx​(θ) has mean θ\thetaθ and Ix(⋅;θ)I_x(\cdot;\theta)Ix​(⋅;θ) is finite between any two parameters. The initial means lie in Θx\Theta_xΘx​. These conditions are not printed, but without them the plug-in rule can starve an alternative forever: a law with Ix(⋅;θ)=+∞I_x(\cdot;\theta) = +\inftyIx​(⋅;θ)=+∞ off one point gives Γ=+∞\Gamma = +\inftyΓ=+∞. Bernoulli laws, whose sample means reach 000 or 111, fall outside this convention, although the paper says they are covered.
  • Assumptions. The interval HHH of Assumptions 1–2 is one fixed interval Hx=[ax,bx]H_x = [a_x,b_x]Hx​=[ax​,bx​] per alternative with μx\mu_xμx​ in its interior. Assumption 3 is written without division. Assumption 4 is joint C1C^1C1 on Dx\mathcal D_xDx​.
  • Algorithm. BOLD is a predicate IsBOLD on allocation sequences, so every tie-breaking rule is covered. The initial means θ0\theta^0θ0 are arbitrary. The solution of (10) is a chosen solution between the two sample means; its uniqueness is the paper's claim, not a hypothesis.
  • Conventions. Ratios and Γ\GammaΓ are in [0,∞][0,\infty][0,∞], with a/0=∞a/0 = \inftya/0=∞ for a>0a > 0a>0, so a never-sampled leader triggers (12) as in the paper. Theorem 2's limsup is taken in [0,∞][0,\infty][0,∞]. Every theorem is an almost-sure statement, with "probability 1" taken from §4.
  • Ruled out. The theorems are not vacuous: a BOLD run exists on every realization (a local check proves this). The rate function is the Legendre transform of the actual family, not an unconstrained function. The family is not fixed to the normal or any single parametric case.

The development needs strong laws of large numbers along adaptively chosen sample counts, properties of Legendre transforms of log-moment generating functions (convexity, a unique zero at the mean), and law-of-the-iterated-logarithm-type rates for sample means. Lemmas on Legendre transforms of log-MGFs and the observation-array model are reusable for other large-deviations allocation rules. Contributions toward any milestone are welcome. Statements specialized to normal families are not substitutes for the general milestones.

Selected references

  • Y. Chen and I. O. Ryzhov, Balancing Optimal Large Deviations in Ranking and Selection, Proc. 2019 Winter Simulation Conference, pp. 3368–3379, IEEE.
  • Y. Chen and I. O. Ryzhov, Balancing Optimal Large Deviations in Sequential Selection, Management Science, 2023. https://doi.org/10.1287/mnsc.2022.4527
  • P. Glynn and S. Juneja, A Large Deviations Perspective on Ordinal Optimization, Proc. 2004 Winter Simulation Conference, pp. 577–585, IEEE.
  • A. Dembo and O. Zeitouni, Large Deviations Techniques and Applications, 2nd ed., Springer, 2009. https://doi.org/10.1007/978-3-642-03311-7
9 thms1 active userReviewed
Algorithmic Game TheoryMachine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 3: Even with Full Information and v_t ≡ 1, Every Bidding Policy Has Worst-Case Expected Regret at Least c√TResearch Paper

Learning to bid in first-price auctions

Most online advertising inventory is sold one impression at a time in automated auctions, and since about 2019 the major ad exchanges have moved from second-price to first-price rules: the highest bidder wins and pays its own bid. A bidder in a first-price auction must trade off winning probability against the price paid, and that trade-off depends on the unknown distribution of competing bids. A bidder who takes part in many such auctions can learn that distribution as it goes. The natural yardstick is regret: the expected shortfall of the bidder's cumulative reward relative to an oracle that knows the distribution of competing bids from the start.

Han, Zhou and Weissman (arXiv:2003.09795, Operations Research, 2025) give bidding policies whose expected regret is O~(T)\widetilde O(\sqrt T)O(T​) over TTT auctions, both for iid and for adversarial private values, under the censored feedback that real exchanges provide (only the winning bid is announced). Their Theorem 9 shows that the T\sqrt TT​ rate cannot be improved, even in a much easier setting. This mission is that lower bound.

Related results put it in context. With binary feedback (only "won" or "lost"), regret of order T2/3T^{2/3}T2/3 is unavoidable (Kleinberg and Leighton, 2003). With a fixed value, repeated first-price bidding is a pricing problem on a one-dimensional action set whose reward (1−b)G(b)(1-b)G(b)(1−b)G(b) need not be continuous in bbb. Theorem 9 shows that the extra information of the full competing bid buys T\sqrt TT​ and nothing better.

Setting

In each round t=1,…,Tt=1,\dots,Tt=1,…,T a bidder has a private value vt∈[0,1]v_t\in[0,1]vt​∈[0,1], submits a bid bt∈[0,1]b_t\in[0,1]bt​∈[0,1], and faces the highest other bid (HOB) mt∈[0,1]m_t\in[0,1]mt​∈[0,1], the largest bid of all competitors. The bidder wins when bt≥mtb_t\ge m_tbt​≥mt​, and its payoff is

r(vt,bt;mt)=(vt−bt) 1(bt≥mt).r(v_t,b_t;m_t)=(v_t-b_t)\,\mathbb 1(b_t\ge m_t).r(vt​,bt​;mt​)=(vt​−bt​)1(bt​≥mt​).

The HOBs m1,…,mTm_1,\dots,m_Tm1​,…,mT​ are iid with an unknown cumulative distribution function G(x)=P(mt≤x)G(x)=\mathbb P(m_t\le x)G(x)=P(mt​≤x) on [0,1][0,1][0,1]. No smoothness is assumed: GGG may have atoms. The expected reward of bid bbb at value vvv is R(v,b)=(v−b)G(b)R(v,b)=(v-b)G(b)R(v,b)=(v−b)G(b), and the regret of the bids b1,…,bTb_1,\dots,b_Tb1​,…,bT​ is

RT(π;v)=∑t=1T(max⁡b∈[0,1]R(vt,b)−R(vt,bt)).R_T(\pi;v)=\sum_{t=1}^T\Bigl(\max_{b\in[0,1]}R(v_t,b)-R(v_t,b_t)\Bigr).RT​(π;v)=t=1∑T​(b∈[0,1]max​R(vt​,b)−R(vt​,bt​)).

A policy π\piπ chooses btb_tbt​ from what it has observed before round ttt, and it may use internal randomness. Theorem 9 makes the problem as easy as possible: the value is vt=1v_t=1vt​=1 in every round, and the HOB mtm_tmt​ is revealed at the end of every round (full information), rather than only when the bidder loses. A policy is then a rule bt=βt(u,m1,…,mt−1)b_t=\beta_t(u,m_1,\dots,m_{t-1})bt​=βt​(u,m1​,…,mt−1​), where uuu is the policy's internal randomness.

The lower bound uses two HOB laws on {1/3,2/3}\{1/3,2/3\}{1/3,2/3}. For Δ∈(0,1/4)\Delta\in(0,1/4)Δ∈(0,1/4), G1G_1G1​ puts mass 12+Δ\tfrac12+\Delta21​+Δ on 1/31/31/3 and 12−Δ\tfrac12-\Delta21​−Δ on 2/32/32/3, and G2G_2G2​ the reverse. Pi⊗TP_i^{\otimes T}Pi⊗T​ is the law of TTT iid HOBs from GiG_iGi​. The total variation distance is ∥P−Q∥TV=12∫∣dP−dQ∣\|P-Q\|_{\mathrm{TV}}=\tfrac12\int|dP-dQ|∥P−Q∥TV​=21​∫∣dP−dQ∣, and DKL(P∥Q)=∫dPlog⁡dPdQD_{\mathrm{KL}}(P\|Q)=\int dP\log\frac{dP}{dQ}DKL​(P∥Q)=∫dPlogdQdP​ is the Kullback–Leibler divergence.

Formalization targets

Goal: Theorem 9 (p. 36)

There is an absolute constant c>0c>0c>0 such that, for every horizon T≥1T\ge1T≥1,

inf⁡πsup⁡G EG[RT(π;v)] ≥ cT,vt≡1,\inf_\pi\sup_G\ \mathbb E_G\bigl[R_T(\pi;v)\bigr]\ \ge\ c\sqrt T,\qquad v_t\equiv 1,πinf​Gsup​ EG​[RT​(π;v)] ≥ cT​,vt​≡1,

where the supremum is over all HOB distributions on [0,1][0,1][0,1] and the infimum is over all full-information policies, randomized ones included. The constant is left unspecified, as in the paper; the paper's proof gives c=1/(24e2)c=1/(24e^2)c=1/(24e2).

Milestones (App. A–B, pp. 36–38)

  1. Oracle rewards (p. 37): with vt=1v_t=1vt​=1, max⁡b(1−b)G1(b)=(1+2Δ)/3\max_b(1-b)G_1(b)=(1+2\Delta)/3maxb​(1−b)G1​(b)=(1+2Δ)/3, max⁡b(1−b)G2(b)=1/3\max_b(1-b)G_2(b)=1/3maxb​(1−b)G2​(b)=1/3 and max⁡b(1−b)(G1+G2)(b)=2/3\max_b(1-b)(G_1+G_2)(b)=2/3maxb​(1−b)(G1​+G2​)(b)=2/3.
  2. Separation (20): for every bid bt∈[0,1]b_t\in[0,1]bt​∈[0,1], the instantaneous regrets under G1G_1G1​ and G2G_2G2​ sum to at least 2Δ/32\Delta/32Δ/3.
  3. Two-point reduction (21): for every policy, 12EG1[RT]+12EG2[RT]≥ΔT3(1−∥P1⊗T−P2⊗T∥TV)\tfrac12\mathbb E_{G_1}[R_T]+\tfrac12\mathbb E_{G_2}[R_T]\ge\frac{\Delta T}{3}\bigl(1-\|P_1^{\otimes T}-P_2^{\otimes T}\|_{\mathrm{TV}}\bigr)21​EG1​​[RT​]+21​EG2​​[RT​]≥3ΔT​(1−∥P1⊗T​−P2⊗T​∥TV​).
  4. Lemma 12: 1−∥P−Q∥TV≥12exp⁡(−(DKL(P∥Q)+DKL(Q∥P))/2)1-\|P-Q\|_{\mathrm{TV}}\ge\tfrac12\exp\bigl(-(D_{\mathrm{KL}}(P\|Q)+D_{\mathrm{KL}}(Q\|P))/2\bigr)1−∥P−Q∥TV​≥21​exp(−(DKL​(P∥Q)+DKL​(Q∥P))/2).
  5. KL computation (p. 37): DKL(P1⊗T∥P2⊗T)=T DKL(G1∥G2)≤32TΔ2D_{\mathrm{KL}}(P_1^{\otimes T}\|P_2^{\otimes T})=T\,D_{\mathrm{KL}}(G_1\|G_2)\le32T\Delta^2DKL​(P1⊗T​∥P2⊗T​)=TDKL​(G1​∥G2​)≤32TΔ2.
  6. (22): 1−∥P1⊗T−P2⊗T∥TV≥12exp⁡(−32TΔ2)1-\|P_1^{\otimes T}-P_2^{\otimes T}\|_{\mathrm{TV}}\ge\tfrac12\exp(-32T\Delta^2)1−∥P1⊗T​−P2⊗T​∥TV​≥21​exp(−32TΔ2).

Significance

The theorem shows that the upper bounds of the paper, CTlog⁡2.5TC\sqrt T\log^{2.5}TCT​log2.5T for iid values and CTlog⁡3TC\sqrt T\log^3TCT​log3T for adversarial values, are optimal up to logarithmic factors. Because the lower bound holds with a constant value and with every HOB revealed, it is not caused by censoring or by the value process. The T\sqrt TT​ comes from the statistical difficulty of locating the maximizer of (1−b)G(b)(1-b)G(b)(1−b)G(b) when GGG is learned from samples. The same lower bound therefore applies to every richer feedback model and every value model that contains the constant sequence.

The milestones are general tools. Lemma 12 (a symmetrised Bretagnolle–Huber inequality), the product rule for KL divergences of iid laws, and the reduction (21) are the standard steps of Le Cam's two-point method. They recur in essentially every minimax lower bound for bandits and online learning.

The theorem has a complete proof in the paper (App. B). As far as is known it has not been machine-checked, and the needed pieces are only partly in Mathlib: there is a Kullback–Leibler divergence with a chain rule, but at the pinned revision there is no total variation distance and no Bretagnolle–Huber or Le Cam inequality. The work is to formalize the known proof.

Difficulty

The arithmetic is elementary, and the difficulty lies in the probabilistic reduction. The first idea, bounding the regret round by round under a single law, fails: for any fixed GGG a policy that happens to bid the right point has zero regret, so the lower bound must come from a policy's inability to know which of two laws it faces. Making that precise requires the law of the observed history (m1,…,mt−1)(m_1,\dots,m_{t-1})(m1​,…,mt−1​) under each hypothesis, the identity ∫min⁡{dP,dQ}=1−∥P−Q∥TV\int\min\{dP,dQ\}=1-\|P-Q\|_{\mathrm{TV}}∫min{dP,dQ}=1−∥P−Q∥TV​, and monotonicity of total variation under marginalization from TTT to t−1t-1t−1 coordinates. A randomized policy adds one more integration, over its internal randomness, before the per-round bound applies. The KL step needs the tensorization of KL over product measures and an elementary but explicit logarithmic inequality.

Formalization scope

All declarations live in the namespace FirstPriceLearning.LowerBound.

  • Time. Rounds are Fin T; Lean round t is paper time t+1t+1t+1.
  • HOB law. A measure μG on ℝ. The goal asks for a probability measure giving no mass outside [0,1][0,1][0,1]. The CDF is (μG (Set.Iic x)).toReal, with atoms allowed.
  • Reward and regret. R(v,b)=(v−b)G(b)R(v,b)=(v-b)G(b)R(v,b)=(v−b)G(b), and the oracle term is the supremum over b∈[0,1]b\in[0,1]b∈[0,1] (a bounded nonempty family, attained). The regret is the pseudo-regret (3), a sum of expected-reward gaps.
  • Policies. A policy carries a probability space (U,μU)(U,\mu_U)(U,μU​), with U : Type, for its internal randomness and bid maps bid t : U → (Fin t → ℝ) → ℝ that are jointly measurable with values in [0,1][0,1][0,1]. The history type Fin t → ℝ makes the policy non-anticipating by construction: it cannot read mtm_tmt​ or later HOBs, and it never sees GGG.
  • Expectation. An integral over u∼μUu\sim\mu_Uu∼μU​ independent of m∼G⊗Tm\sim G^{\otimes T}m∼G⊗T (Measure.prod with Measure.pi).
  • Quantifiers. The goal is stated as ∃c>0 ∀T≥1 ∀π ∃G\exists c>0\ \forall T\ge1\ \forall\pi\ \exists G∃c>0 ∀T≥1 ∀π ∃G, which implies the inf–sup form. The constant precedes TTT and the policy, and the law is chosen after the policy.
  • Divergences. KL is Mathlib's InformationTheory.klDiv, valued in [0,∞][0,\infty][0,∞]. Total variation is defined locally as 12∫∣p−q∣ d(P+Q)\tfrac12\int|p-q|\,d(P+Q)21​∫∣p−q∣d(P+Q) with Radon–Nikodym densities. In Lemma 12 the right-hand side is 000 when a divergence is infinite (exp⁡(−∞)=0\exp(-\infty)=0exp(−∞)=0).
  • Hard laws. G1,G2G_1,G_2G1​,G2​ are explicit two-point measures; the milestones (20)–(22) are stated for Δ∈(0,1/4)\Delta\in(0,1/4)Δ∈(0,1/4) as printed.

Two trivializing formalizations are excluded. A policy that observes mtm_tmt​ (or GGG) before bidding would make the bound false rather than trivial, and the types forbid it. A non-measurable bid map would make the expectation the junk value 000, and measurability is required. Restricting the policy class to deterministic policies, or reading (∞).toReal=0(\infty).\mathrm{toReal}=0(∞).toReal=0 in Lemma 12, would change the theorem and is not done.

Reusable beyond this mission: the total variation distance, Lemma 12, and the tensorization bound for KL. Contributions are welcome at every milestone, especially Lemma 12 and the data-processing step behind (21).

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, Operations Research, 2025; preprint arXiv:2003.09795v7, 2024. https://arxiv.org/abs/2003.09795
  • A. B. Tsybakov, Introduction to Nonparametric Estimation, Springer, 2009 (Lemma 2.6). https://doi.org/10.1007/b13794
  • J. Bretagnolle, C. Huber, Estimation des densités: risque minimax, Z. Wahrscheinlichkeitstheorie verw. Gebiete 47, 1979. https://doi.org/10.1007/BF00535278
  • R. Kleinberg, T. Leighton, The Value of Knowing a Demand Curve: Bounds on Regret for Online Posted-Price Auctions, FOCS, 2003. https://doi.org/10.1109/SFCS.2003.1238232
12 thms1 active userReviewed
Algorithmic Game TheoryMachine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 2: The ML-IS-UCB Bidding Policy Achieves Expected Regret at Most C√T log³ T for Every Oblivious Private-Value SequenceResearch Paper

Learning to bid in first-price auctions

Display advertising has been moving from second-price to first-price auctions: several exchanges began rolling them out in 2017, and Google Ad Manager completed its move at the end of 2019 (Davies 2019). In a second-price auction bidding one's value is a dominant strategy; in a first-price auction the optimal bid depends on the distribution of the competing bids, which a bidder does not know and must learn from repeated play. Most of the learning literature on auctions takes the seller's side of the second-price auction (reserve prices, e.g. Cesa-Bianchi, Gentile, Mansour 2015); on the bidder's side of the first-price auction, the main prior approach is the cross-learning framework of Balseiro et al. 2019.

Han, Zhou and Weissman (arXiv:2003.09795) study the bidder's problem with the feedback that ad exchanges actually provide, where only the winning price is announced, and with no assumption on the distribution of the competing bids. Their two upper bounds are O~(T)\widetilde O(\sqrt T)O(T​) regret: Theorem 1 for iid private values and Theorem 2, the subject of this mission, for values chosen by an oblivious adversary. A matching Ω(T)\Omega(\sqrt T)Ω(T​) lower bound holds even under full information (Theorem 9).

Setting

A single bidder plays TTT rounds. In round ttt she observes a private value vt∈[0,1]v_t\in[0,1]vt​∈[0,1], bids bt∈[0,1]b_t\in[0,1]bt​∈[0,1], and wins if bt≥mtb_t\ge m_tbt​≥mt​, where mt∈[0,1]m_t\in[0,1]mt​∈[0,1] is the highest other bid (HOB). Her payoff is (1)

r(vt,bt;mt)=(vt−bt) 1(bt≥mt).r(v_t,b_t;m_t)=(v_t-b_t)\,\mathbb 1(b_t\ge m_t).r(vt​,bt​;mt​)=(vt​−bt​)1(bt​≥mt​).

The HOBs are iid with an unknown cumulative distribution function G(x)=P(mt≤x)G(x)=\mathbb P(m_t\le x)G(x)=P(mt​≤x) on [0,1][0,1][0,1]; GGG may be discrete, continuous or mixed. Feedback is censored: after round ttt only max⁡{bt,mt}\max\{b_t,m_t\}max{bt​,mt​} is revealed, so mtm_tmt​ is observed only when the bidder loses. The expected reward is R(v,b)=(v−b)G(b)R(v,b)=(v-b)G(b)R(v,b)=(v−b)G(b), and the regret of a policy π\piπ against the value sequence v=(v1,…,vT)v=(v_1,\dots,v_T)v=(v1​,…,vT​) is (3)

RT(π;v)=∑t=1T(max⁡b∈[0,1]R(vt,b)−R(vt,bt)),R_T(\pi;v)=\sum_{t=1}^T\Big(\max_{b\in[0,1]}R(v_t,b)-R(v_t,b_t)\Big),RT​(π;v)=t=1∑T​(b∈[0,1]max​R(vt​,b)−R(vt​,bt​)),

the shortfall against an oracle that knows GGG. A policy bids in round ttt as a (possibly randomized) function of v1,…,vtv_1,\dots,v_tv1​,…,vt​ and of the feedback of rounds 1,…,t−11,\dots,t-11,…,t−1. An oblivious adversary fixes the whole value sequence in advance, independently of the bids and the HOBs.

The policy analysed is ML-IS-UCB (Algorithm 4). It restricts bids to the grid bi=(i−1)/Kb^i=(i-1)/Kbi=(i−1)/K, i∈[K]i\in[K]i∈[K], with K=⌈T⌉K=\lceil\sqrt T\rceilK=⌈T​⌉; it splits time into L=⌈log⁡2T⌉L=\lceil\log_2T\rceilL=⌈log2​T⌉ levels after an initialization phase of T0=(L+1)⌈T⌉T_0=(L+1)\lceil\sqrt T\rceilT0​=(L+1)⌈T​⌉ zero bids; and at each level it computes a width wi,tℓw^\ell_{i,t}wi,tℓ​, an interval-splitting reward estimate r^i,tℓ\hat r^\ell_{i,t}r^i,tℓ​ and a candidate set Btℓ\mathcal B^\ell_tBtℓ​ by the displays (12)–(16).

Formalization targets

Goal: Theorem 2

There is an absolute constant C>0C>0C>0 such that for every T≥2T\ge2T≥2 some policy π\piπ satisfies, for every value sequence v∈[0,1]Tv\in[0,1]^Tv∈[0,1]T and every GGG on [0,1][0,1][0,1],

E[RT(π;v)]≤CTlog⁡3T.\mathbb E\big[R_T(\pi;v)\big]\le C\sqrt T\log^3T .E[RT​(π;v)]≤CT​log3T.

The constant is unspecified, so the goal survives any improvement of the constants below.

The explicit bound: Theorem 7

For every γ≥3\gamma\ge3γ≥3, the ML-IS-UCB policy satisfies

E[RT(πML-IS-UCB;v)]≤4+(L+4)⌈T⌉+80γ3/2log⁡(LKT)(1+log⁡T) LT.\mathbb E\big[R_T(\pi^{\mathrm{ML\text{-}IS\text{-}UCB}};v)\big]\le4+(L+4)\lceil\sqrt T\rceil+80\gamma^{3/2}\log(LKT)(1+\log T)\,L\sqrt T .E[RT​(πML-IS-UCB;v)]≤4+(L+4)⌈T​⌉+80γ3/2log(LKT)(1+logT)LT​.

Milestones

In the order of the proof (Section 4.3 and Appendix C):

  1. Lemma 7: with probability at least 1−4T−31-4T^{-3}1−4T−3, ∣r^i,tℓ−ri,t∣≤wi,tℓ|\hat r^\ell_{i,t}-r_{i,t}|\le w^\ell_{i,t}∣r^i,tℓ​−ri,t​∣≤wi,tℓ​ for all i,ℓi,\elli,ℓ and T0<t≤TT_0<t\le TT0​<t≤T, and wi,tℓw^\ell_{i,t}wi,tℓ​ is bounded by (18) in terms of the true interval probabilities pj=G(bj+1)−G(bj)p_j=G(b^{j+1})-G(b^j)pj​=G(bj+1)−G(bj).
  2. Lemma 8: on that event the best grid bid is never eliminated, and a round assigned to level ℓ\ellℓ has regret at most 8⋅2−ℓ8\cdot2^{-\ell}8⋅2−ℓ against the grid.
  3. Display (19): the grid regret is at most T0+8∑ℓ2−ℓ∣Φℓ(T)∩(T0,T]∣T_0+8\sum_\ell2^{-\ell}|\Phi^\ell(T)\cap(T_0,T]|T0​+8∑ℓ​2−ℓ∣Φℓ(T)∩(T0​,T]∣.
  4. Lemma 16: a deterministic counting bound for the sums ∑t∑j≥i(t)vj/nj,tℓ\sum_t\sum_{j\ge i(t)}v_j/n^\ell_{j,t}∑t​∑j≥i(t)​vj​/nj,tℓ​.
  5. Lemma 9: 2−ℓ∣Φℓ(T)∩(T0,T]∣≤10γ3/2log⁡(LKT)(1+log⁡T)T2^{-\ell}|\Phi^\ell(T)\cap(T_0,T]|\le10\gamma^{3/2}\log(LKT)(1+\log T)\sqrt T2−ℓ∣Φℓ(T)∩(T0​,T]∣≤10γ3/2log(LKT)(1+logT)T​.
  6. Theorem 7.

A supporting item, not a milestone, states the quantization step max⁡b∈[0,1]R(v,b)≤max⁡iR(v,bi)+1/K\max_{b\in[0,1]}R(v,b)\le\max_iR(v,b^i)+1/Kmaxb∈[0,1]​R(v,b)≤maxi​R(v,bi)+1/K for the grid of Algorithm 4.

Significance

The result shows that adversarial values cost at most a logarithmic factor relative to iid values in repeated first-price auctions with censored feedback, and that no regularity of GGG is needed. ML-IS-UCB is also an algorithmic template: its widths are computed before the data of the current level is used, which makes the estimates at each level independent of the bids that select them, and its interval-splitting estimator uses the variance of each interval rather than a uniform bound. Remark 3 notes that replacing the interval probabilities by 111 gives only O~(KT)\widetilde O(\sqrt{KT})O(KT​).

All results of the paper are proved in the preprint; none of them is machine-checked. A complete development formalizes a multi-level elimination algorithm with data-dependent level assignment, a Bernstein-type concentration argument for estimates indexed by random sets, and the counting lemma behind the logarithmic factors. Each of these is reusable for other elimination-based bandit algorithms.

Difficulty

The obvious route is a single UCB index per grid bid, (11) on p. 27, built from all past observations through the estimates p^jt=∑s≤t1(bs≤bj)1(ms∈(bj,bj+1])/∑s≤t1(bs≤bj)\hat p^t_j=\sum_{s\le t}\mathbb 1(b_s\le b^j)\mathbb 1(m_s\in(b^j,b^{j+1}])/\sum_{s\le t}\mathbb 1(b_s\le b^j)p^​jt​=∑s≤t​1(bs​≤bj)1(ms​∈(bj,bj+1])/∑s≤t​1(bs​≤bj). It fails because p^jt\hat p^t_jp^​jt​ is not a normalized binomial variable: each bid depends on the earlier HOBs, so conditioned on the bids the HOBs are no longer independent and p^jt\hat p^t_jp^​jt​ is not even unbiased. Self-normalized martingale bounds control each p^jt\hat p^t_jp^​jt​ separately but not the sum ∑j≥ip^jt\sum_{j\ge i}\hat p^t_j∑j≥i​p^​jt​ that the reward estimate needs. Algorithm 4 restores conditional independence through its level structure, and Lemma 7 has to make that precise: the sets Φℓ(t)\Phi^\ell(t)Φℓ(t) are random, and the bound must hold uniformly over all (i,ℓ,t)(i,\ell,t)(i,ℓ,t) with a variance term estimated from a held-out sample. Lemma 9 then needs the variance-sensitive width (18); a crude width loses a factor K\sqrt KK​ (Remark 3).

Formalization scope

  • Model. Rounds are Fin T; Lean round ttt is paper time t+1t+1t+1. The HOB law is a probability measure μG on ℝ with μG [0,1]ᶜ = 0, and G(x)G(x)G(x) is (μG (Set.Iic x)).toReal; atoms are allowed. The maximum in (3) is a supremum over [0,1][0,1][0,1].
  • Policies. A policy has internal randomness u∼μUu\sim\mu_Uu∼μU​ and, for each uuu, a bidding rule whose round-ttt bid receives only the values of rounds ≤t\le t≤t and the feedback max⁡{bs,ms}\max\{b_s,m_s\}max{bs​,ms​} of rounds <t<t<t, enforced by the argument types; bids lie in [0,1][0,1][0,1] and are jointly measurable. The expectation is a Bochner integral over uuu and m∼G⊗Tm\sim G^{\otimes T}m∼G⊗T, and Theorems 2 and 7 also assert integrability, so the integral cannot be a junk value.
  • Algorithm 4. Grid indices are 0-based (bi+1=i/Kb^{i+1}=i/Kbi+1=i/K, bK+1=1b^{K+1}=1bK+1=1); inside the algorithm times are the paper's 1,…,T1,\dots,T1,…,T. Every quantity n,w,p^,r^,Bn,w,\hat p,\hat r,\mathcal Bn,w,p^​,r^,B is defined by its formula for every (i,ℓ,t)(i,\ell,t)(i,ℓ,t). The estimators (14) and p^0\hat p^0p^​0 are computed from the feedback, not from mmm, and the algorithm recomputes its own past decisions, so it is a censored-feedback rule. "An arbitrary iii" is a selection rule depending on the time and the level only. If no level breaks (impossible for γ≥3\gamma\ge3γ≥3, T≥2T\ge2T≥2) the round goes to level LLL with bid 000.
  • Hypotheses added to the printed statements, each disclosed in its item: T≥2T\ge2T≥2 in Theorem 2 (the printed bound is 000 at T=1T=1T=1); Lemmas 8, 9 and (19) are stated pathwise under the inequalities of Lemma 7 that their proofs use; Lemma 16 assumes that the set contains ⌈T⌉\lceil\sqrt T\rceil⌈T​⌉ initialization rounds with bid 000, which its proof uses; the quantization display is adapted from the grid of Lemma 4 to that of Algorithm 4.
  • Ruled out. A policy that reads mtm_tmt​, GGG or future values, a constant CCC chosen after TTT, vvv or GGG, a policy chosen after vvv or GGG, and an expectation of a non-integrable function would each make the goal trivial; the statements exclude all four.
  • Needed and welcome. Bernstein and multiplicative Chernoff bounds for binomial variables (Lemmas 14, 15 of the paper are cited from the literature), measurability of the run of the algorithm, and the harmonic-sum bound ∑k=aT1/k≤1+log⁡T\sum_{k=a}^T1/k\le1+\log T∑k=aT​1/k≤1+logT. Contributions toward any milestone, or alternative proofs of the goal, are welcome.

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, Operations Research, 2025; preprint arXiv:2003.09795v7, 2024. https://arxiv.org/abs/2003.09795
  • N. Cesa-Bianchi, C. Gentile, Y. Mansour, Regret Minimization for Reserve Prices in Second-Price Auctions, IEEE Transactions on Information Theory 61(1), 2015. https://doi.org/10.1109/TIT.2014.2365772
  • P. Auer, Using Confidence Bounds for Exploitation-Exploration Trade-offs, Journal of Machine Learning Research 3, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • S. Balseiro, N. Golrezaei, M. Mahdian, V. Mirrokni, J. Schneider, Contextual Bandits with Cross-Learning, NeurIPS 2019. https://arxiv.org/abs/1809.09582
  • J. Davies, What to know about Google's implementation of first-price ad auctions, Digiday, 2019. https://digiday.com/media/buyers-welcome-auction-standardization-as-google-finally-goes-all-in-on-first-price/
10 thms1 active userReviewed
Machine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 5: With Adversarial Contexts and K = (α+1)M ≤ T^(1/3), Every Policy for Partially Ordered Contextual Bandits Has Regret ≥ √(KT)/(32e³)Research Paper

Motivation

A bidder in repeated first-price auctions faces a learning problem with two kinds of side information. Their private value is a context that changes every round, and the outcome of one bid reveals something about other bids (graph feedback across actions) and about other values (cross learning across contexts). Han, Zhou and Weissman (arXiv:2003.09795v7) abstract this structure into partially ordered contextual bandits and show that, when contexts are iid, an arm-elimination policy has regret O~(αβT)\widetilde O(\sqrt{\alpha\beta T})O(αβT​) (Theorem 5), with no polynomial dependence on the number of contexts or actions.

Theorem 6 of the same paper asks whether this survives when contexts are chosen by an adversary. It does not: with adversarial contexts every policy suffers regret polynomial in min⁡{αM,K}\min\{\alpha M, K\}min{αM,K}. This separation is what forces the paper to look beyond the partially ordered structure for its O~(T)\widetilde O(\sqrt T)O(T​) adversarial-value result (Theorem 2). The lower bound is also of independent interest for contextual bandits with cross learning (Balseiro et al., NeurIPS 2019) and with feedback graphs (Alon et al., COLT 2015).

Setting

A stochastic contextual bandit with graph feedback and cross learning (Definition 2, p. 14) has a horizon TTT, MMM contexts C\mathcal CC, KKK actions A\mathcal AA, a joint reward law PPP on [0,1]C×A[0,1]^{\mathcal C\times\mathcal A}[0,1]C×A with means Rc,aR_{c,a}Rc,a​, and a directed graph G=(A,E)G=(\mathcal A,E)G=(A,E) without self-loops. In round ttt the learner sees a context ctc_tct​, picks ata_tat​, nature draws a fresh reward vector rt∼Pr_t\sim Prt​∼P, and the learner observes rt,c,ar_{t,c,a}rt,c,a​ for every context ccc and every a∈It={at}∪{a:(at,a)∈E}a\in I_t=\{a_t\}\cup\{a:(a_t,a)\in E\}a∈It​={at​}∪{a:(at​,a)∈E}. The regret (5) is

RT(π)=∑t=1T(max⁡a∈ARct,a−Rct,at).R_T(\pi)=\sum_{t=1}^T\Big(\max_{a\in\mathcal A}R_{c_t,a}-R_{c_t,a_t}\Big).RT​(π)=t=1∑T​(a∈Amax​Rct​,a​−Rct​,at​​).

The independence number α\alphaα of GGG is the size of a largest set of actions with no edge between any two of them; for a partial order, β\betaβ is the size of a largest set of pairwise incomparable elements.

The instance is a partially ordered contextual bandit (Definition 3, pp. 16–17) if GGG is a DAG equal to its own transitive closure, so that a1⪯Ga2a_1\preceq_G a_2a1​⪯G​a2​ iff a1=a2a_1=a_2a1​=a2​ or (a1,a2)∈E(a_1,a_2)\in E(a1​,a2​)∈E is a partial order, and there is a partial order ⪯C\preceq_{\mathcal C}⪯C​ on contexts with c1⪯Cc2⇒a⋆(c1)⪯Ga⋆(c2)c_1\preceq_{\mathcal C}c_2\Rightarrow a^\star(c_1)\preceq_G a^\star(c_2)c1​⪯C​c2​⇒a⋆(c1​)⪯G​a⋆(c2​) for optimal actions a⋆(c)∈arg⁡max⁡aRc,aa^\star(c)\in\arg\max_a R_{c,a}a⋆(c)∈argmaxa​Rc,a​.

A policy π\piπ chooses ata_tat​ from its internal randomness, the contexts c1,…,ctc_1,\dots,c_tc1​,…,ct​ and the earlier observations. The context sequence is oblivious: fixed in advance, possibly depending on π\piπ but not on its random draws.

Formalization targets

Goal: Theorem 6 in the regime of its proof

For integers α≥1\alpha\ge1α≥1, M≥1M\ge1M≥1, with K=(α+1)MK=(\alpha+1)MK=(α+1)M, K3≤TK^3\le TK3≤T and M∣TM\mid TM∣T: there is a feedback graph GGG on KKK actions with independence number α\alphaα such that for every policy π\piπ there are a reward law PPP (making (G,P)(G,P)(G,P) partially ordered with the total order on contexts, β=1\beta=1β=1) and contexts (ct)(c_t)(ct​) with

E[RT(π)] ≥ KT32e3.\mathbb E[R_T(\pi)]\ \ge\ \frac{\sqrt{KT}}{32e^3}.E[RT​(π)] ≥ 32e3KT​​.

Because αM≤K\alpha M\le KαM≤K, this is at least 132e3min⁡{αMT,KT,T2/3}\frac1{32e^3}\min\{\sqrt{\alpha MT},\sqrt{KT},T^{2/3}\}32e31​min{αMT​,KT​,T2/3}, the printed form of Theorem 6, in this regime.

Milestones

Along the proof (pp. 22–24): the construction is a partially ordered contextual bandit with β=1\beta=1β=1 and independence number α\alphaα; properties 1–4 of the mean rewards; property 5, the KL divergence of the observed rewards; the regret decomposition (7); the testing lemma (Lemma 13, p. 36)

1n∑i=1nQi(Ψ≠i) ≥ 12n∑i=2ne−DKL(Q1∥Qi);\frac1n\sum_{i=1}^nQ_i(\Psi\ne i)\ \ge\ \frac1{2n}\sum_{i=2}^n e^{-D_{\mathrm{KL}}(Q_1\|Q_i)};n1​i=1∑n​Qi​(Ψ=i) ≥ 2n1​i=2∑n​e−DKL​(Q1​∥Qi​);

the self-referential inequality (8)

RT ≥ KT16e3exp⁡(−16KRT3T),RT=max⁡uEu[RT(π)];R_T\ \ge\ \frac{\sqrt{KT}}{16e^3}\exp\Big(-\frac{16KR_T}{3T}\Big),\qquad R_T=\max_u\mathbb E_u[R_T(\pi)];RT​ ≥ 16e3KT​​exp(−3T16KRT​​),RT​=umax​Eu​[RT​(π)];

and the final step RT≥KT/(32e3)R_T\ge\sqrt{KT}/(32e^3)RT​≥KT​/(32e3).

Significance

The theorem separates stochastic from adversarial contexts. Under iid contexts, Theorem 5 gives O~(αβT)\widetilde O(\sqrt{\alpha\beta T})O(αβT​); with adversarial contexts, even when β=1\beta=1β=1, regret must grow like αMT\sqrt{\alpha MT}αMT​, matching the upper bound of Theorem 4 up to logarithms. For first-price auctions with adversarial values (Remark 2), the bound shows that the partially ordered structure alone cannot give O~(T)\widetilde O(\sqrt T)O(T​); the paper's O~(T)\widetilde O(\sqrt T)O(T​) algorithm must use the extra correlation of auction rewards.

The paper proves the theorem in full. As far as we know, none of it has been formalized; in particular, no machine-checked version of a Bayesian multi-hypothesis lower bound for bandits with graph feedback and cross learning exists. A formal proof will produce reusable pieces: Lemma 13 is a general testing inequality; the KL chain rule for adaptively collected bandit observations, with feedback revealed on a graph, is needed for any information-theoretic bandit lower bound; and the interaction model is shared with the paper's upper bounds.

Difficulty

The standard minimax argument for KKK-armed bandits compares two instances that differ in one arm, and the regret follows directly from a testing error. Here that argument fails: feedback graphs and cross learning mean that pulling one arm can reveal everything, and a policy may pay to explore. The proof instead plays a uniform prior over (α+1)M(\alpha+1)^M(α+1)M instances and obtains an inequality in which the maximal regret RTR_TRT​ appears on both sides, (8). If the regret is small, the policy has not explored enough to tell the instances apart, which in turn forces large regret. Making this rigorous requires the chain rule of KL divergence over the adaptively chosen observations, the specific ordering of contexts (decreasing over blocks, so early observations say nothing about late optimal actions), and the regime K3≤TK^3\le TK3≤T to close the self-referential bound.

Formalization scope

  • Contexts are Fin M, rounds Fin T (paper index = Lean index + 1). The goal uses actions Fin K; the construction uses Fin M × Fin (α + 1), with j=0j=0j=0 the action (i,0)(i,0)(i,0).
  • A reward law is a measure on Fin M → A → ℝ. Definition 2 requires a probability measure carried by [0,1]M×K[0,1]^{M\times K}[0,1]M×K and a graph without self-loops. Means are integrals, and max⁡a\max_amaxa​ is a supremum over the finite action set.
  • Definition 3's "DAG equal to its transitive closure" is encoded as "no self-loops and transitive". The printed arg⁡max⁡\arg\maxargmax is read as a selection of maximisers.
  • Independence numbers are exact: a set of the given size exists, and none is larger.
  • Policies are randomized and non-anticipating. The action is a measurable function of the internal randomness (an arbitrary probability space), the contexts so far and the past observations, and the argument types enforce non-anticipation. An observation is the reward vector with unrevealed coordinates set to 000; the learner knows its own action, so this carries exactly the revealed rewards. Deterministic-only policies would give a weaker theorem, and they are not the class used.
  • Expected regret integrates over the internal randomness and iid reward vectors, with the context sequence fixed.
  • KL divergence is Mathlib's [0,∞][0,\infty][0,∞]-valued klDiv. In Lemma 13, e−∞e^{-\infty}e−∞ is read as 000, so an infinite divergence cannot be truncated to 000 and inflate the right side.
  • The reduction from general (M,K,T)(M,K,T)(M,K,T) by "dummy contexts and actions" (p. 21) is not formalized. It needs min⁡{K,(α+1)M,T1/3}≥α+1\min\{K,(\alpha+1)M,T^{1/3}\}\ge\alpha+1min{K,(α+1)M,T1/3}≥α+1, and the printed theorem is false at K=1K=1K=1. The hypotheses M∣TM\mid TM∣T and α≥1\alpha\ge1α≥1 replace the paper's "without loss of generality".
  • Property 5 assumes uc≠0u_c\neq0uc​=0, because for uc=0u_c=0uc​=0 the two laws coincide. (7) is stated for each uuu, which implies the printed form for the maximum.

Needed infrastructure: Bernoulli product measures and their KL divergence, the KL chain rule for the law of an adaptive interaction, and a Bretagnolle–Huber-type inequality. Contributions of these general lemmas, and of the measurability facts for the interaction, are welcome.

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, Operations Research, 2025; preprint arXiv:2003.09795v7. https://arxiv.org/abs/2003.09795
  • Z. Gao, Y. Han, Z. Ren, Z. Zhou, Batched Multi-armed Bandits Problem, NeurIPS 2019 (source of Lemma 13). https://arxiv.org/abs/1904.01763
  • S. Balseiro, N. Golrezaei, M. Mahdian, V. Mirrokni, J. Schneider, Contextual Bandits with Cross-learning, NeurIPS 2019. https://arxiv.org/abs/1809.09582
  • N. Alon, N. Cesa-Bianchi, O. Dekel, T. Koren, Online Learning with Feedback Graphs: Beyond Bandits, COLT 2015. https://arxiv.org/abs/1502.07617
  • A. B. Tsybakov, Introduction to Nonparametric Estimation, Springer, 2009. https://doi.org/10.1007/b13794
11 thms1 active userReviewed
Algorithmic Game TheoryMachine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 6: If the HOB Law Switches at an Unknown Value Threshold, Every Bidding Policy Has Regret Ω(T)Research Paper

Motivation

In a first-price auction the highest bidder wins and pays her own bid. Display advertising moved to first-price auctions around 2019, and a bidder who participates in millions of them faces a learning problem: at each round ttt she sees a private value vt∈[0,1]v_t\in[0,1]vt​∈[0,1] for the item, bids bt∈[0,1]b_t\in[0,1]bt​∈[0,1], and wins when btb_tbt​ is at least the highest other bid (HOB) mtm_tmt​, earning (vt−bt)1(bt≥mt)(v_t-b_t)\mathbb 1(b_t\ge m_t)(vt​−bt​)1(bt​≥mt​). Since the HOB is unknown, she must learn how much to shade her bid.

Han, Zhou and Weissman (arXiv:2003.09795v7, Operations Research, 2025) show that when the HOBs are iid draws from an unknown distribution, a bidder can achieve regret O~(T)\widetilde O(\sqrt T)O(T​) against the oracle that knows the distribution, whether the values are iid or chosen by an oblivious adversary, and with only censored feedback. Their §2.2 justifies the iid assumption by the size of the bidder population, and notes that learning "could become impossible even when the iid assumption is only slightly violated". Section 5.2 makes this precise. This mission formalizes that impossibility result, Theorem 8.

Setting

Fix a horizon TTT. Values v=(v1,…,vT)∈[0,1]Tv=(v_1,\dots,v_T)\in[0,1]^Tv=(v1​,…,vT​)∈[0,1]T form an oblivious sequence, fixed in advance. Fix two probability laws P,QP,QP,Q on [0,1][0,1][0,1] and a threshold v⋆v^\starv⋆. The HOBs are independent across rounds with

mt∼P  if vt<v⋆,mt∼Q  if vt≥v⋆.m_t\sim P\ \text{ if } v_t<v^\star,\qquad m_t\sim Q\ \text{ if } v_t\ge v^\star .mt​∼P  if vt​<v⋆,mt​∼Q  if vt​≥v⋆.

Feedback is full information: mtm_tmt​ is revealed at the end of round ttt. The laws P,QP,QP,Q are known to the bidder; only v⋆v^\starv⋆ is not.

The payoff of bid bbb against HOB mmm at value vvv is r(v,b;m)=(v−b)1(b≥m)r(v,b;m)=(v-b)\mathbb 1(b\ge m)r(v,b;m)=(v−b)1(b≥m) (ties are won). For a law μ\muμ of the HOB with CDF GGG, the expected reward is R(v,b)=(v−b)G(b)R(v,b)=(v-b)G(b)R(v,b)=(v−b)G(b), and the oracle reward is max⁡b∈[0,1]R(v,b)\max_{b\in[0,1]}R(v,b)maxb∈[0,1]​R(v,b).

A policy π\piπ draws internal randomness uuu once and bids bt=πt(u;v1,…,vt;m1,…,mt−1)∈[0,1]b_t=\pi_t(u;v_1,\dots,v_t;m_1,\dots,m_{t-1})\in[0,1]bt​=πt​(u;v1​,…,vt​;m1​,…,mt−1​)∈[0,1]. Its expected regret is

E[RT(π;v⋆,v)]=∑t=1T(max⁡b∈[0,1]Em∼Lt[(vt−b)1(b≥m)]−E[(vt−bt)1(bt≥mt)]),\mathbb E[R_T(\pi;v^\star,v)]=\sum_{t=1}^T\Big(\max_{b\in[0,1]}\mathbb E_{m\sim L_t}\big[(v_t-b)\mathbb 1(b\ge m)\big]-\mathbb E\big[(v_t-b_t)\mathbb 1(b_t\ge m_t)\big]\Big),E[RT​(π;v⋆,v)]=t=1∑T​(b∈[0,1]max​Em∼Lt​​[(vt​−b)1(b≥m)]−E[(vt​−bt​)1(bt​≥mt​)]),

with Lt=PL_t=PLt​=P if vt<v⋆v_t<v^\starvt​<v⋆ and Lt=QL_t=QLt​=Q otherwise: the oracle knows v⋆v^\starv⋆ and bids optimally at every round.

Formalization targets

Goal: Theorem 8 (p. 34)

There are an absolute constant c>0c>0c>0 and laws P,QP,QP,Q on [0,1][0,1][0,1] such that for every TTT and every policy π\piπ there are a threshold v⋆∈[0,1]v^\star\in[0,1]v⋆∈[0,1] and values v∈[0,1]Tv\in[0,1]^Tv∈[0,1]T with

E[RT(π;v⋆,v)] ≥ c T.\mathbb E[R_T(\pi;v^\star,v)]\ \ge\ c\,T .E[RT​(π;v⋆,v)] ≥ cT.

The constant is existential, which is the paper's Ω(T)\Omega(T)Ω(T); the value 1/161/161/16 obtained in the paper's argument is not hard-coded.

Milestones (p. 34)

The paper's argument consists of a hard family indexed by signs u∈{±1}Tu\in\{\pm1\}^Tu∈{±1}T, with thresholds f(u)=12+14∑tut/2tf(u)=\frac12+\frac14\sum_t u_t/2^tf(u)=21​+41​∑t​ut​/2t and values v1=12v_1=\frac12v1​=21​, vt+1=vt+ut/2t+2v_{t+1}=v_t+u_t/2^{t+2}vt+1​=vt​+ut​/2t+2, and four displayed claims:

  1. the lexicographic order f(…,ut−1,1,… )>f(…,ut−1,−1,… )f(\dots,u_{t-1},1,\dots)>f(\dots,u_{t-1},-1,\dots)f(…,ut−1​,1,…)>f(…,ut−1​,−1,…);
  2. the sign identity sign⁡(vt−v⋆)=−sign⁡(ut)\operatorname{sign}(v_t-v^\star)=-\operatorname{sign}(u_t)sign(vt​−v⋆)=−sign(ut​) for v⋆=f(u)v^\star=f(u)v⋆=f(u);
  3. the oracle reward vt−mtv_t-m_tvt​−mt​ with mt=181(vt≥v⋆)m_t=\frac18\mathbb 1(v_t\ge v^\star)mt​=81​1(vt​≥v⋆) under P=δ0P=\delta_0P=δ0​, Q=δ1/8Q=\delta_{1/8}Q=δ1/8​, and vt∈[14,34]v_t\in[\frac14,\frac34]vt​∈[41​,43​];
  4. the posterior-reward bound Em∼Unif{0,1/8}[(v−b)1(b≥m)]≤v−18\mathbb E_{m\sim\mathrm{Unif}\{0,1/8\}}[(v-b)\mathbb 1(b\ge m)]\le v-\frac18Em∼Unif{0,1/8}​[(v−b)1(b≥m)]≤v−81​ for v≥14v\ge\frac14v≥41​;

and the Bayesian bound: averaged over uniform uuu, every policy has expected regret at least T/16T/16T/16.

Significance

The result. The upper bounds of the paper rely on the HOBs being iid and independent of the bidder's value. Theorem 8 shows that this cannot be relaxed to a mild form of dependence: one threshold, two known laws and full-information feedback already force linear regret against the per-round oracle. The paper concludes that a weaker benchmark is needed once HOBs may depend on values, and leaves that benchmark open.

Formalizing it. The theorem is proved in the paper, on one page; it is not known to be machine-checked. A formal proof pins down the quantifier order (the constant and the laws chosen before the policy, the threshold and values after it), the policy class (randomized, full information) and the treatment of ties, and it provides a reusable model of non-anticipating randomized bidding policies with full-information feedback.

Difficulty

The obvious attempt is to fix a threshold and values and argue that the bidder cannot know on which side of v⋆v^\starv⋆ each vtv_tvt​ falls. For any fixed instance this fails: a policy can be tuned to that instance and bid optimally, with zero regret. The lower bound must therefore pass through an average over a family of instances. The family has to make the side of the threshold at round ttt independent of everything the bidder has seen up to round ttt, including the past HOBs, which in full information reveal the past sides exactly. The dyadic construction does this. The formal difficulty is the bookkeeping: expressing the expected regret of an arbitrary randomized policy as an integral over its internal randomness and the HOBs, and exchanging the average over uuu with that integral so that the conditional uniformity of mtm_tmt​ can be used.

Formalization scope

  • Time. Rounds are Fin T; Lean round ttt is the paper's round t+1t+1t+1.
  • Laws and CDF. HOB laws are Measure ℝ, with probability and support in [0,1][0,1][0,1] required of the existential witnesses P,QP,QP,Q. The CDF is G(x)=μ((−∞,x])G(x)=\mu((-\infty,x])G(x)=μ((−∞,x]). Atoms are allowed, as in the paper; the construction uses point masses.
  • Oracle. max⁡b∈[0,1]R(v,b)\max_{b\in[0,1]}R(v,b)maxb∈[0,1]​R(v,b) is the supremum over the subtype [0,1][0,1][0,1]; no arg max bP⋆(v)b^\star_P(v)bP⋆​(v) is chosen. The paper's two-term regret 1(vt<v⋆)EP[⋅]+1(vt≥v⋆)EQ[⋅]\mathbb 1(v_t<v^\star)\mathbb E_P[\cdot]+\mathbb 1(v_t\ge v^\star)\mathbb E_Q[\cdot]1(vt​<v⋆)EP​[⋅]+1(vt​≥v⋆)EQ​[⋅] is written with the law LtL_tLt​.
  • Policies. A structure with a probability space of internal randomness and, for each round, a jointly measurable bid map of the randomness, v1,…,vtv_1,\dots,v_tv1​,…,vt​ and m1,…,mt−1m_1,\dots,m_{t-1}m1​,…,mt−1​, with values in [0,1][0,1][0,1]. The types prevent reading mtm_tmt​ or v⋆v^\starv⋆. Deterministic policies are the case of a one-point randomness space.
  • Expectation. The bidder's expected payoff at round ttt is a Bochner integral over the product of the policy's randomness law and the product law of (m1,…,mT)(m_1,\dots,m_T)(m1​,…,mT​). A local check confirms that this integrand is measurable and bounded, so the integral is never Lean's junk value 000, which would trivialize the lower bound.
  • Knowledge of (P,Q)(P,Q)(P,Q). The laws are fixed before TTT and π\piπ; a policy chosen afterwards may depend on them. This encodes "revealed to the bidder" and is stronger than choosing (P,Q)(P,Q)(P,Q) after π\piπ.
  • Ties. 1(b≥m)\mathbb 1(b\ge m)1(b≥m) throughout; the oracle bids b=mt=1/8b=m_t=1/8b=mt​=1/8 and wins.

A formalization in which the threshold or the values are chosen before the policy, the bid reads mtm_tmt​, the expected payoff is not integrable, or the oracle bids a fixed price, is a different and easier statement; all four are excluded by the definitions above.

Contributions welcome: proofs of the four displayed claims (elementary real analysis on dyadic sums and on point masses), the Bayesian bound (the measure-theoretic core), and the step from the Bayesian bound to the goal. The policy and regret definitions are reusable for other full-information lower bounds in this series.

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, Operations Research, 2025; read as arXiv:2003.09795v7, §5.2, pp. 33–34. https://arxiv.org/abs/2003.09795
9 thms1 active userReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection 3: The Explore-First Greedy Procedure Is Consistent with a Budget Linear in kResearch Paper

Motivation

Ranking and selection (R&S) asks which of kkk simulated systems has the largest mean performance when every observation is costly. It is a basic tool of simulation optimization: choosing a staffing level, an inventory policy or a network design from a large catalogue of candidates that can only be evaluated by noisy simulation. In the fixed-budget formulation a total of BBB observations is spent sequentially and one alternative is selected at the end; procedures are compared by their probability of correct selection (PCS).

Cloud and parallel computing have made problems with thousands to millions of alternatives routine, and the relevant question is how the budget must grow with kkk. A procedure is sample optimal if a budget B=ckB = ckB=ck, linear in kkk, keeps its PCS bounded away from zero as k→∞k \to \inftyk→∞; a total budget of order kkk is clearly necessary. Li, Fan and Hong (arXiv:2303.02951) show that the simplest procedure of all, the greedy procedure, which always samples the alternative with the largest current sample mean, is sample optimal. They also show that its PCS limit is strictly below one under the slippage configuration, however large ccc is: the greedy procedure is not consistent. This mission formalizes the remedy: an exploration phase of n0n_0n0​ observations per alternative before the greedy phase makes the procedure consistent.

Setting

There are kkk alternatives. Alternative iii produces independent observations Xi1,Xi2,⋯∼N(μi,σi2)X_{i1}, X_{i2}, \dots \sim N(\mu_i, \sigma_i^2)Xi1​,Xi2​,⋯∼N(μi​,σi2​), independent across alternatives, and alternative 1 is the unique best. The running average after nnn observations is Xˉi(n)=1n∑j=1nXij\bar X_i(n) = \frac1n\sum_{j=1}^n X_{ij}Xˉi​(n)=n1​∑j=1n​Xij​.

Assumption 1 (p. 12). There are constants γ>0\gamma > 0γ>0 and σˉ2>0\bar\sigma^2 > 0σˉ2>0 such that μ1−max⁡i≥2μi≥γ\mu_1 - \max_{i \ge 2}\mu_i \ge \gammaμ1​−maxi≥2​μi​≥γ and max⁡iσi2≤σˉ2\max_i \sigma_i^2 \le \bar\sigma^2maxi​σi2​≤σˉ2, regardless of how large kkk is.

The explore-first greedy (EFG) procedure (Procedure 2, p. 21) with exploration size n0n_0n0​ and budget BBB:

  1. take n0n_0n0​ observations from every alternative, and set ni=n0n_i = n_0ni​=n0​;
  2. while ∑ini<B\sum_i n_i < B∑i​ni​<B, take one more observation from arg⁡max⁡iXˉi(ni)\arg\max_i \bar X_i(n_i)argmaxi​Xˉi​(ni​);
  3. select arg⁡max⁡iXˉi(ni)\arg\max_i \bar X_i(n_i)argmaxi​Xˉi​(ni​).

With B=ckB = ckB=ck the exploration phase uses n0kn_0 kn0​k observations and the greedy phase ngkn_g kng​k, where ng=c−n0n_g = c - n_0ng​=c−n0​. The greedy procedure is the case n0=1n_0 = 1n0​=1.

Crossing times. Let Z1,Z2,…Z_1, Z_2, \dotsZ1​,Z2​,… be iid standard normal, Zˉ(n)=1n∑j=1nZj\bar Z(n) = \frac1n\sum_{j=1}^n Z_jZˉ(n)=n1​∑j=1n​Zj​, and

N~(x;n0)=inf⁡{n≥n0:Zˉ(n)<x},C(x;n0)=E[N~(x;n0)]∈[0,∞],\tilde N(x; n_0) = \inf\{n \ge n_0 : \bar Z(n) < x\}, \qquad C(x; n_0) = \mathrm E\big[\tilde N(x; n_0)\big] \in [0, \infty],N~(x;n0​)=inf{n≥n0​:Zˉ(n)<x},C(x;n0​)=E[N~(x;n0​)]∈[0,∞],

with inf⁡∅=∞\inf \emptyset = \inftyinf∅=∞. C(⋅ ;n0)C(\cdot\,; n_0)C(⋅;n0​) is finite exactly on (0,∞)(0, \infty)(0,∞), where it is strictly decreasing and continuous.

Consistency (Definition 2, p. 21): A sample-optimal fixed-budget R&S procedure is consistent if the PCS of the procedure satisfies that, for any α∈(0,1)\alpha \in (0,1)α∈(0,1), there exists a constant c>0c>0c>0 such that lim inf⁡k→∞PCS≥α\liminf_{k\to\infty} \mathrm{PCS} \ge \alphaliminfk→∞​PCS≥α, for B=ckB = ckB=ck.

Formalization targets

Goal: Theorem 4 (p. 24)

Suppose Assumption 1 holds. Let α∈(0,1)\alpha \in (0,1)α∈(0,1) and γ0∈(0,γ)\gamma_0 \in (0, \gamma)γ0​∈(0,γ). Let n0≥1n_0 \ge 1n0​≥1 satisfy

Pr⁡{min⁡n≥n0Xˉ1(n)>μ1−γ0}≥α(5.3)\Pr\Big\{\min_{n \ge n_0} \bar X_1(n) > \mu_1 - \gamma_0\Big\} \ge \alpha \tag{5.3}Pr{n≥n0​min​Xˉ1​(n)>μ1​−γ0​}≥α(5.3)

and let ng≥C(γ−γ0σˉ;n0)−n0n_g \ge C\big(\tfrac{\gamma - \gamma_0}{\bar\sigma}; n_0\big) - n_0ng​≥C(σˉγ−γ0​​;n0​)−n0​. If B=(n0+ng)kB = (n_0 + n_g)kB=(n0​+ng​)k, then the PCS of the EFG procedure satisfies

lim inf⁡k→∞PCS ≥ α.\liminf_{k \to \infty} \mathrm{PCS} \ \ge\ \alpha .k→∞liminf​PCS ≥ α.

Milestones

  1. Lemma 3 (p. 22): Zˉ(n)\bar Z(n)Zˉ(n), n≥n0n \ge n_0n≥n0​, attains its minimum at a finite time almost surely.
  2. (5.1) (p. 22): N~(x)≤N~(x;n0)≤n0inf⁡{m≥1:Zˉ(mn0)<x}\tilde N(x) \le \tilde N(x; n_0) \le n_0 \inf\{m \ge 1 : \bar Z(mn_0) < x\}N~(x)≤N~(x;n0​)≤n0​inf{m≥1:Zˉ(mn0​)<x}, and the last crossing time is distributed as N~(n0 x)\tilde N(\sqrt{n_0}\,x)N~(n0​​x) (scaling corrected, see below).
  3. Lemma 4 (p. 22): N~(x;n0)\tilde N(x;n_0)N~(x;n0​) is a.s. finite with finite mean for x>0x > 0x>0; finite with probability strictly between 0 and 1, with infinite mean, for x<0x < 0x<0; a.s. finite with infinite mean for x=0x = 0x=0.
  4. Lemma 7 (p. ec6): C(x;n0)C(x; n_0)C(x;n0​) is strictly decreasing and continuous on (0,∞)(0, \infty)(0,∞).
  5. (5.2) (p. 23): PCS≥Pr⁡{∑i=2kNi(Xˉ1∗(n0);n0)+N1∗(n0)≤B}\mathrm{PCS} \ge \Pr\big\{\sum_{i=2}^k N_i(\bar X_1^*(n_0); n_0) + N_1^*(n_0) \le B\big\}PCS≥Pr{∑i=2k​Ni​(Xˉ1∗​(n0​);n0​)+N1∗​(n0​)≤B}, where Xˉ1∗(n0)\bar X_1^*(n_0)Xˉ1∗​(n0​) and N1∗(n0)N_1^*(n_0)N1∗​(n0​) are the minimum and argmin of Xˉ1(n)\bar X_1(n)Xˉ1​(n) over n≥n0n \ge n_0n≥n0​, and Ni(b;n0)N_i(b; n_0)Ni​(b;n0​) is the first n≥n0n \ge n_0n≥n0​ with Xˉi(n)<b\bar X_i(n) < bXˉi​(n)<b.
  6. Theorem 3 (p. 23, first sentence): if B/k=n0+ngB/k = n_0 + n_gB/k=n0​+ng​ and ng>C(γ/σˉ;n0)−n0n_g > C(\gamma/\bar\sigma; n_0) - n_0ng​>C(γ/σˉ;n0​)−n0​, then lim inf⁡kPCS≥Pr⁡{min⁡n≥n0Xˉ1(n)>μ1−γ0}\liminf_k \mathrm{PCS} \ge \Pr\{\min_{n\ge n_0}\bar X_1(n) > \mu_1 - \gamma_0\}liminfk​PCS≥Pr{minn≥n0​​Xˉ1​(n)>μ1​−γ0​}, where γ0∈(0,γ)\gamma_0 \in (0, \gamma)γ0​∈(0,γ) solves C(γ−γ0σˉ;n0)=ng+n0C\big(\tfrac{\gamma-\gamma_0}{\bar\sigma}; n_0\big) = n_g + n_0C(σˉγ−γ0​​;n0​)=ng​+n0​.
  7. Lemma 5 (p. 24): for every γ0>0\gamma_0 > 0γ0​>0 and α∈(0,1)\alpha \in (0,1)α∈(0,1) some finite n0≥1n_0 \ge 1n0​≥1 satisfies (5.3).

Significance

The result. Theorem 4 shows that a one-line change to the greedy procedure, a fixed number of initial observations per alternative, turns a sample-optimal but inconsistent procedure into one that is both sample optimal and consistent. Any PCS target is reached with a budget that grows only linearly in the number of alternatives, without variance estimates, elimination rules or pairwise comparisons. Together with (5.4) (p. 24) it also gives a recipe for choosing n0n_0n0​ and ngn_gng​ when γ\gammaγ and σˉ2\bar\sigma^2σˉ2 are known, which converts the fixed-budget procedure into a fixed-precision one.

Formalizing it. The results are proved in the paper, but Lemma 4 and Theorem 4 have their proofs omitted ("straightforward"), and Theorem 3's proof refers to "almost the same analysis" as Theorem 1. A machine-checked development makes these steps explicit. It also corrects the scaling in (5.1), which is misprinted in the source. No part of it is formalized on the platform. The boundary-crossing inequality (5.2) and the crossing-time lemmas for the Gaussian running average are reusable in the companion missions of this series and for other greedy procedures.

Difficulty

The obvious approach is to bound each inferior alternative's sample size by the number of observations it needs to fall below alternative 1, and to sum. It fails because alternative 1's running average is itself random, may drop below its mean, and can lose the lead at any time before it reaches its minimum. The boundary must be the random minimum Xˉ1∗(n0)\bar X_1^*(n_0)Xˉ1∗​(n0​), and the crossing times of the other alternatives are then dependent through it. The step from (5.2) to Theorem 3 needs crossing times dominated by iid copies of N~(⋅ ;n0)\tilde N(\cdot\,; n_0)N~(⋅;n0​) on the event that the minimum is high, a strong law over the growing array, and the continuity of C(⋅ ;n0)C(\cdot\,; n_0)C(⋅;n0​) (Lemma 7) to pass to the limit in the level. Lemma 4 needs fluctuation facts for the Gaussian random walk (finite expected crossing time for x>0x>0x>0, infinite mean at x=0x=0x=0) that are not in Mathlib.

Formalization scope

  • Model. Observations form an array XijX_{ij}Xij​ indexed by N×N\mathbb N \times \mathbb NN×N on a probability space, mutually independent, with Xij∼N(μi,σi2)X_{ij} \sim N(\mu_i, \sigma_i^2)Xij​∼N(μi​,σi2​) and σi2>0\sigma_i^2 > 0σi2​>0. Problem kkk uses alternatives 0,…,k−10, \dots, k-10,…,k−1; Lean's alternative 000 is the paper's alternative 1. One array serves every kkk, which does not change any PCS.

  • Procedure. The EFG procedure is a deterministic map from the observation array to the selected index. Ties in every arg max go to the smallest index, which is a null event under the model. The greedy loop runs B−n0kB - n_0kB−n0​k times (none if B≤n0kB \le n_0kB≤n0​k).

  • Budget. B=(n0+ng)kB = (n_0 + n_g)kB=(n0​+ng​)k is read as ⌊(n0+ng)k⌋\lfloor (n_0+n_g)k \rfloor⌊(n0​+ng​)k⌋. Conditions involving C(⋅ ;n0)−n0C(\cdot\,; n_0) - n_0C(⋅;n0​)−n0​ are written additively in [0,∞][0, \infty][0,∞].

  • Crossing times, argmins and CCC. These take values in N∪{∞}\mathbb N \cup \{\infty\}N∪{∞} and [0,∞][0, \infty][0,∞]. A path that never crosses has crossing time ∞\infty∞, and C(0;n0)=∞C(0; n_0) = \inftyC(0;n0​)=∞ is literal. "min⁡n≥n0Xˉ1(n)>a\min_{n \ge n_0} \bar X_1(n) > aminn≥n0​​Xˉ1​(n)>a" means that the path is bounded below from n0n_0n0​ on and its infimum exceeds aaa. The minimum is attained a.s. (Lemma 3).

  • Probabilities and limits. These are extended nonnegative reals. The liminf is taken in [0,∞][0, \infty][0,∞].

  • (5.1) correction. The paper derives N~(x;n0)≤n0N~(x/n0)\tilde N(x;n_0) \le n_0\tilde N(x/\sqrt{n_0})N~(x;n0​)≤n0​N~(x/n0​​) from "Zˉ(mn0)=n0 Zˉ(m)\bar Z(mn_0) = \sqrt{n_0}\,\bar Z(m)Zˉ(mn0​)=n0​​Zˉ(m) statistically". In fact Zˉ(mn0)=dZˉ(m)/n0\bar Z(mn_0) \overset{d}{=} \bar Z(m)/\sqrt{n_0}Zˉ(mn0​)=dZˉ(m)/n0​​, so the milestone states the bound with N~(n0 x)\tilde N(\sqrt{n_0}\,x)N~(n0​​x). The printed form is false for x<0x < 0x<0 and n0≥2n_0 \ge 2n0​≥2.

  • Theorem 3. The existence of γ0\gamma_0γ0​, implicit in the paper, is a conclusion of the statement, so the lower bound cannot hold vacuously. The slippage-configuration limit in its second sentence is not stated.

  • Ruled out. None of the following can make the statements trivial, because the encodings above exclude them:

    • an N\mathbb NN-valued crossing time with inf⁡∅=0\inf\emptyset = 0inf∅=0;
    • a real infimum of an unbounded path read as 000;
    • an unsolvable equation for γ0\gamma_0γ0​.
  • Infrastructure needed. A complete development needs the following, all reusable beyond this mission:

    • laws of crossing times of the Gaussian random walk;
    • the strong law for iid N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}-valued variables;
    • a coupling of the crossing times with iid copies;
    • a pathwise induction over the run of the procedure for (5.2).

    Contributions to any milestone are welcome.

  • Source. The source is the authors' arXiv preprint, version 3 (11 Dec 2023), and all numbering follows it.

Selected references

  • Z. Li, W. Fan, L. J. Hong, The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection, arXiv:2303.02951v3, 2023; Management Science, 2025. https://arxiv.org/abs/2303.02951
  • R. E. Bechhofer, A single-sample multiple decision procedure for ranking means of normal populations with known variances, Annals of Mathematical Statistics 25(1):16–39, 1954. https://doi.org/10.1214/aoms/1177728845
  • S.-H. Kim, B. L. Nelson, A fully sequential procedure for indifference-zone selection in simulation, ACM Transactions on Modeling and Computer Simulation 11(3):251–273, 2001. https://doi.org/10.1145/502109.502111
10 thms1 active userReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection 2: Under the Slippage Configuration with a Common Variance the Greedy PCS Lower Bound Is TightResearch Paper

Motivation

Ranking and selection (R&S) asks how to spend a fixed budget of simulation runs on kkk competing system designs so that the design with the largest mean performance is identified with high probability. When kkk runs into the thousands or millions, the relevant question is how the total budget must grow with kkk. Li, Fan and Hong (arXiv:2303.02951v3, published in Management Science, 2025) showed that the simplest adaptive rule, the greedy procedure, is sample optimal: a budget linear in kkk keeps the probability of correct selection (PCS) bounded away from zero (their Theorem 1, p. 15). This mission formalizes their second main result: under the least favorable configuration of means and variances, the PCS lower bound of Theorem 1 is exactly the limit, so it cannot be improved for the greedy procedure.

The result also explains the paper's later design choices. Corollary 1 (p. 18) deduces from it that the greedy procedure is not consistent: however large the constant ccc in B=ckB = ckB=ck, its worst-case PCS stays below a constant less than one. This is why §5 of the paper introduces an explore-first variant.

Setting

There are kkk alternatives. Alternative iii produces independent observations Xi1,Xi2,⋯∼N(μi,σi2)X_{i1}, X_{i2}, \dots \sim N(\mu_i, \sigma_i^2)Xi1​,Xi2​,⋯∼N(μi​,σi2​), independent across alternatives, and alternative 111 is the unique best. The running average of alternative iii after nnn observations is Xˉi(n)=1n∑j=1nXij\bar X_i(n) = \frac1n \sum_{j=1}^n X_{ij}Xˉi​(n)=n1​∑j=1n​Xij​.

The greedy procedure (Procedure 1, p. 10) takes one observation from each alternative, then repeatedly takes one more observation from the alternative with the largest current running average, until BBB observations have been taken in total; it selects the alternative with the largest final running average. PCS is the probability that it selects alternative 111, and PICS =1−= 1 - =1− PCS.

The slippage configuration with a common variance (SC-CV, §4.3, p. 16) is

μ1−μi=γ>0(i=2,…,k),σi2=σ2>0(i=1,…,k):\mu_1 - \mu_i = \gamma > 0 \quad (i = 2, \dots, k), \qquad \sigma_i^2 = \sigma^2 > 0 \quad (i = 1, \dots, k):μ1​−μi​=γ>0(i=2,…,k),σi2​=σ2>0(i=1,…,k):

the non-best alternatives share one mean and all alternatives share one variance.

The constant governing the analysis is

C(x)=exp⁡(∑n=1∞1nΦ(−n x)),x>0,C(x) = \exp\Big( \sum_{n=1}^\infty \frac1n \Phi(-\sqrt n\, x) \Big), \qquad x > 0,C(x)=exp(n=1∑∞​n1​Φ(−n​x)),x>0,

where Φ\PhiΦ is the standard normal distribution function. By Lemma 2 of the paper, C(x)C(x)C(x) is the expected first time nnn at which the running average of iid N(0,1)N(0,1)N(0,1) variables drops below xxx; it is continuous and strictly decreasing on (0,∞)(0, \infty)(0,∞) and tends to ∞\infty∞ as x→0+x \to 0^+x→0+.

Formalization targets

Goal: Theorem 2 (p. 16)

If B=ckB = ckB=ck and c>C(γ/σ)c > C(\gamma/\sigma)c>C(γ/σ), let γ0∈(0,γ)\gamma_0 \in (0, \gamma)γ0​∈(0,γ) solve C((γ−γ0)/σ)=cC((\gamma - \gamma_0)/\sigma) = cC((γ−γ0​)/σ)=c. Under the SC-CV,

lim⁡k→∞PCS=Pr⁡{min⁡n≥1Xˉ1(n)>μ1−γ0}=[C(γ0σ)]−1.\lim_{k\to\infty} \mathrm{PCS} = \Pr\Big\{ \min_{n\ge1} \bar X_1(n) > \mu_1 - \gamma_0 \Big\} = \Big[C\Big(\frac{\gamma_0}{\sigma}\Big)\Big]^{-1}.k→∞lim​PCS=Pr{n≥1min​Xˉ1​(n)>μ1​−γ0​}=[C(σγ0​​)]−1.

The goal asserts both that some such γ0\gamma_0γ0​ exists and that the limit holds for every solution.

Milestones, in the order of the proof (EC.1.4, pp. ec3–ec5)

  1. (EC.1.8), p. ec4: with mϵm_\epsilonmϵ​ the first time Xˉ1\bar X_1Xˉ1​ drops below a level μ1−γϵ+\mu_1 - \gamma_\epsilon^+μ1​−γϵ+​, PICS is at least the probability that the budget suffices to reach mϵm_\epsilonmϵ​ but not to push every other alternative below the new minimum of Xˉ1\bar X_1Xˉ1​.
  2. (EC.1.11), p. ec5, with γϵ±\gamma_\epsilon^\pmγϵ±​ from (EC.1.7): lim inf⁡kPICS≥Pr⁡{mϵ<∞,min⁡1≤n≤mϵ−1Xˉ1(n)≥μ1−γϵ−}\liminf_k \mathrm{PICS} \ge \Pr\{ m_\epsilon < \infty, \min_{1\le n\le m_\epsilon-1} \bar X_1(n) \ge \mu_1 - \gamma_\epsilon^- \}liminfk​PICS≥Pr{mϵ​<∞,min1≤n≤mϵ​−1​Xˉ1​(n)≥μ1​−γϵ−​}.
  3. (EC.1.6), p. ec3: lim inf⁡kPICS≥Pr⁡{∃n≥1 s.t. Xˉ1(n)<μ1−γ0}\liminf_k \mathrm{PICS} \ge \Pr\{\exists n \ge 1 \text{ s.t. } \bar X_1(n) < \mu_1 - \gamma_0\}liminfk​PICS≥Pr{∃n≥1 s.t. Xˉ1​(n)<μ1​−γ0​}.
  4. Theorem 1 under the SC-CV, p. 15: lim inf⁡kPCS≥Pr⁡{min⁡n≥1Xˉ1(n)>μ1−γ0}=[C(γ0/σ)]−1>0\liminf_k \mathrm{PCS} \ge \Pr\{\min_{n\ge1} \bar X_1(n) > \mu_1 - \gamma_0\} = [C(\gamma_0/\sigma)]^{-1} > 0liminfk​PCS≥Pr{minn≥1​Xˉ1​(n)>μ1​−γ0​}=[C(γ0​/σ)]−1>0.

Milestones 3 and 4 bound the PCS from above and below by the same quantity, up to the null event {min⁡nXˉ1(n)=μ1−γ0}\{\min_n \bar X_1(n) = \mu_1 - \gamma_0\}{minn​Xˉ1​(n)=μ1​−γ0​}. Corollary 1 (p. 18, lim⁡PCS≤[C(γ/σ)]−1<1\lim \mathrm{PCS} \le [C(\gamma/\sigma)]^{-1} < 1limPCS≤[C(γ/σ)]−1<1) is included as a separate theorem after the goal; it is not a milestone.

Significance

The result. Theorem 1 gives a lower bound on the asymptotic PCS that holds for every configuration satisfying a gap and a variance bound. Theorem 2 shows the bound is attained under the SC-CV, so it is the exact worst-case asymptotic PCS of the greedy procedure on a linear budget. It also identifies the slippage configuration as least favorable for this procedure. Corollary 1, which follows from it, shows that the greedy procedure is sample optimal without being consistent. The paper uses this to motivate the explore-first greedy procedure of §5, which is consistent.

Formalizing it. The theorem is proved in the paper; none of it is formalized. A formal proof requires a precise, total definition of the greedy procedure as a map from an observation array to a selected alternative, a pathwise analysis of that map (milestone 1), the strong law of large numbers for iid crossing times with values in N∪{∞}\mathbb N \cup \{\infty\}N∪{∞}, and a limiting argument in ϵ\epsilonϵ that uses the continuity and strict monotonicity of CCC. The identity Pr⁡{min⁡nXˉ1(n)>μ1−γ0}=[C(γ0/σ)]−1\Pr\{\min_n \bar X_1(n) > \mu_1 - \gamma_0\} = [C(\gamma_0/\sigma)]^{-1}Pr{minn​Xˉ1​(n)>μ1​−γ0​}=[C(γ0​/σ)]−1 is the Gaussian case of Spitzer's identity, which Mathlib does not have.

Difficulty

The lower half is Theorem 1. The upper half needs a different pathwise argument. Showing that the greedy procedure can succeed only requires bounding the budget the inferior alternatives consume. Showing that it must fail requires an event on which alternative 1 has fallen below a level and the remaining budget cannot lift it back. The paper conditions on such an event, BϵB_\epsilonBϵ​. On BϵB_\epsilonBϵ​, two families of crossing times, measured against two different random levels (the running minimum of Xˉ1\bar X_1Xˉ1​ before and at mϵm_\epsilonmϵ​), are compared with deterministic multiples of kkk. Both comparisons need the strong law, and the event BϵB_\epsilonBϵ​ must survive the limit ϵ→0\epsilon \to 0ϵ→0. The obvious first idea is to copy the proof of Theorem 1 with the inequalities reversed. It fails because the inclusion (3.2) behind Theorem 1 is one-sided: a large budget forces a correct selection, but a small budget alone does not force an incorrect one.

Formalization scope

  • Model. Alternatives are indexed from 000 in Lean: Lean's alternative 000 is the paper's alternative 111. Observations form one infinite array XijX_{ij}Xij​ on a probability space, mutually independent over all pairs (i,j)(i, j)(i,j), with Xij∼N(μi,vi)X_{ij} \sim N(\mu_i, v_i)Xij​∼N(μi​,vi​). The problem with kkk alternatives reads rows 0,…,k−10, \dots, k-10,…,k−1. PCS for kkk alternatives depends only on the law of those rows, so this coupling changes no PCS.
  • Procedure. The procedure is a deterministic function of the array. Ties in every arg max go to the smallest index; ties have probability zero under normality. With fewer than kkk observations of budget, no greedy step is taken.
  • Budget. "B=ckB = ckB=ck" is read as B=⌊ck⌋B = \lfloor ck \rfloorB=⌊ck⌋.
  • Values. Probabilities, limits and liminfs are taken in [0,∞][0, \infty][0,∞]. Crossing times take values in N∪{∞}\mathbb N \cup \{\infty\}N∪{∞}, with ∞\infty∞ when no crossing occurs. "min⁡n≥1Xˉ1(n)>a\min_{n\ge1} \bar X_1(n) > aminn≥1​Xˉ1​(n)>a" means the running average is bounded below and its infimum exceeds aaa; the minimum is attained almost surely.
  • The constant CCC. It is defined by the series above. Every statement evaluates it only at positive arguments (γ/σ\gamma/\sigmaγ/σ, (γ−γ0)/σ(\gamma - \gamma_0)/\sigma(γ−γ0​)/σ, γ0/σ\gamma_0/\sigmaγ0​/σ), where the series converges.
  • Disclosed generalization. Milestone 1 is stated for an arbitrary level and for arbitrary means with positive variances, since the inclusion uses neither the SC-CV nor the event BϵB_\epsilonBϵ​.

Three trivializations are ruled out. Crossing times typed in N\mathbb NN would be 000 when no crossing occurs. Junk values of tsum or of the infimum on unbounded sets would make the statements meaningless. A γ0\gamma_0γ0​ that no value can satisfy would make the goal vacuous, which is why the goal also asserts that γ0\gamma_0γ0​ exists.

Infrastructure needed: the strong law for iid N∪{∞}\mathbb N \cup \{\infty\}N∪{∞}-valued variables with finite mean, Spitzer's identity for Gaussian random walks, and continuity of CCC. These would be reusable in any boundary-crossing analysis of sequential procedures. Contributions toward any milestone, or toward these general lemmas, are welcome. The source PDF is the arXiv v3 preprint (11 Dec 2023), and all page and equation numbers refer to it.

Selected references

  • Z. Li, W. Fan, L. J. Hong, The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection, arXiv:2303.02951v3, 2023; Management Science, 2025. https://arxiv.org/abs/2303.02951
  • F. Spitzer, A combinatorial lemma and its application to probability theory, Trans. Amer. Math. Soc. 82 (1956), 323–339. https://doi.org/10.1090/S0002-9947-1956-0079851-X
  • R. E. Bechhofer, A single-sample multiple decision procedure for ranking means of normal populations with known variances, Ann. Math. Statist. 25 (1954), 16–39. https://doi.org/10.1214/aoms/1177728845
7 thms1 active userReviewed
Algorithmic Game TheoryMachine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 1: With IID Private Values a Bidding Policy Achieves Expected Regret at Most C√T log^2.5 TResearch Paper

Motivation

Most display advertising is sold in first-price auctions: the highest bidder wins and pays its own bid. Since the industry's move away from second-price formats around 2019, a bidder can no longer bid its value and must instead learn how much to shade its bid, from data about how the other bidders behave. A demand-side platform faces this problem millions of times a day with very little information. When it wins it pays its bid and learns nothing about the competition beyond the fact that it won; when it loses it sees only the winning price.

Han, Zhou and Weissman (arXiv:2003.09795v7, Operations Research 2025) cast this as an online learning problem and gave the first bidding policies with O~(T)\tilde O(\sqrt T)O~(T​) regret against an arbitrary unknown distribution of competing bids. This mission is the first of a series of six on that paper. It covers the case of stochastic private values, and the route to it through a general class of contextual bandits.

Setting

A single bidder takes part in TTT rounds. In round ttt she observes a private value vt∈[0,1]v_t\in[0,1]vt​∈[0,1], bids bt∈[0,1]b_t\in[0,1]bt​∈[0,1], and the highest other bid (HOB) is mt∈[0,1]m_t\in[0,1]mt​∈[0,1]. She wins iff bt≥mtb_t\ge m_tbt​≥mt​, so her payoff is r(vt,bt;mt)=(vt−bt)1(bt≥mt)r(v_t,b_t;m_t)=(v_t-b_t)\mathbb 1(b_t\ge m_t)r(vt​,bt​;mt​)=(vt​−bt​)1(bt​≥mt​). The HOBs are iid with an unknown CDF GGG on [0,1][0,1][0,1]; no continuity or shape assumption is made, and atoms are allowed. The values v1,…,vTv_1,\dots,v_Tv1​,…,vT​ are iid with an unknown distribution FFF on [0,1][0,1][0,1], independent of the HOBs.

Feedback is censored: at the end of round ttt only the winning bid yt=max⁡{bt,mt}y_t=\max\{b_t,m_t\}yt​=max{bt​,mt​} is revealed. A policy π\piπ chooses btb_tbt​ from its own internal randomness, v1,…,vtv_1,\dots,v_tv1​,…,vt​ and y1,…,yt−1y_1,\dots,y_{t-1}y1​,…,yt−1​. With the expected reward R(v,b)=(v−b)G(b)R(v,b)=(v-b)G(b)R(v,b)=(v−b)G(b), the regret is

RT(π;v)=∑t=1T(max⁡b∈[0,1]R(vt,b)−R(vt,bt)),R_T(\pi;v)=\sum_{t=1}^T\Big(\max_{b\in[0,1]}R(v_t,b)-R(v_t,b_t)\Big),RT​(π;v)=t=1∑T​(b∈[0,1]max​R(vt​,b)−R(vt​,bt​)),

the gap to an oracle that knows GGG.

The paper reaches its bound through partially ordered contextual bandits. These are contextual bandits with MMM contexts and KKK actions, rewards in [0,1][0,1][0,1], and a feedback graph GGG on the actions. Playing aaa reveals the rewards of aaa and its out-neighbours under every context (cross learning). The graph is a transitively closed DAG, so it induces a partial order ⪯G\preceq_G⪯G​ on actions. There is also a partial order ⪯C\preceq_{\mathcal C}⪯C​ on contexts along which some choice of optimal action is monotone (Definitions 2 and 3). Algorithm 3 is an arm-elimination algorithm for this class. The auction becomes such a bandit when values are clipped to the grid C={1/M,…,1}\mathcal C=\{1/M,\dots,1\}C={1/M,…,1} and bids are restricted to A={1/K,…,1}\mathcal A=\{1/K,\dots,1\}A={1/K,…,1}: a bid bbb reveals 1(mt≤b′)\mathbb 1(m_t\le b')1(mt​≤b′) for every b′≥bb'\ge bb′≥b.

Formalization targets

Goal: Theorem 1

∃ C>0  ∀ T≥2  ∃ π  ∀ F,G:E[RT(π;v)]≤CT log⁡2.5T.\exists\,C>0\ \ \forall\,T\ge2\ \ \exists\,\pi\ \ \forall\,F,G:\qquad \mathbb E\big[R_T(\pi;v)\big]\le C\sqrt T\,\log^{2.5}T .∃C>0  ∀T≥2  ∃π  ∀F,G:E[RT​(π;v)]≤CT​log2.5T.

The policy may depend on TTT but not on FFF or GGG, and CCC is absolute. The goal leaves the policy unspecified. That makes it the weakest stable form of the paper's result: any later policy with a better logarithmic factor still proves it.

Milestones, in attack order

  1. Lemma 5 (p. 20): the largest maximiser b⋆(v)b^\star(v)b⋆(v) of R(v,⋅)R(v,\cdot)R(v,⋅) over the grid A\mathcal AA is non-decreasing in vvv.
  2. Lemma 4 (p. 20): pathwise, quantization costs at most (2/M+1/K)T(2/M+1/K)T(2/M+1/K)T regret.
  3. Lemma 3.1 (p. 19): for iid X1,…,XTX_1,\dots,X_TX1​,…,XT​ in a finite poset of width β\betaβ, E∑t(1+∑s<t1(Xs⪯Xt))−1≤β(1+log⁡T)2\mathbb E\sum_t(1+\sum_{s<t}\mathbb 1(X_s\preceq X_t))^{-1}\le\beta(1+\log T)^2E∑t​(1+∑s<t​1(Xs​⪯Xt​))−1≤β(1+logT)2.
  4. Lemma 2 (p. 18): with probability 1−δ1-\delta1−δ, Algorithm 3's minimum counts satisfy Nctt−1≥∑s<t1(cs⪯Cct)/(αlog⁡(MKT2/δ))−1N^{t-1}_{c_t}\ge\sum_{s<t}\mathbb 1(c_s\preceq_{\mathcal C}c_t)/(\alpha\log(MKT^2/\delta))-1Nct​t−1​≥∑s<t​1(cs​⪯C​ct​)/(αlog(MKT2/δ))−1.
  5. Theorem 5, iid contexts (p. 18): E[RT]≤1+24αβTlog⁡(2T)log⁡(2MKT2)log⁡(2MKT3)(1+log⁡T)\mathbb E[R_T]\le1+24\sqrt{\alpha\beta T\log(2T)\log(2MKT^2)\log(2MKT^3)}(1+\log T)E[RT​]≤1+24αβTlog(2T)log(2MKT2)log(2MKT3)​(1+logT).
  6. Corollary 1, iid values (p. 20): Algorithm 3 on the quantized auction with M=K=⌈T⌉M=K=\lceil\sqrt T\rceilM=K=⌈T​⌉, δ=1/(2T)\delta=1/(2T)δ=1/(2T) has expected regret O(Tlog⁡2.5T)O(\sqrt T\log^{2.5}T)O(T​log2.5T). This is the explicit policy behind the goal.

Significance

The result. Theorem 1 shows that a bidder facing an arbitrary unknown competition distribution can learn to bid as well as the oracle up to O~(T)\tilde O(\sqrt T)O~(T​). That rate is optimal up to logarithms: mission 3 of the series formalizes the Ω(T)\Omega(\sqrt T)Ω(T​) lower bound. Theorem 5 is of independent interest. For partially ordered contextual bandits with iid contexts, the regret depends on the widths α,β\alpha,\betaα,β of the two orders and not on the numbers M,KM,KM,K of contexts and actions. Mission 5 of the series shows that this fails for adversarial contexts.

Formalizing it. The results are proved in the paper, with full proofs in its Appendix C; none of them has a machine-checked proof. Beyond the theorems, the mission produces a reusable model of repeated auctions with censored feedback, with policies that are non-anticipating by construction. It also produces a definition of contextual bandits with graph feedback and cross learning, and an executable definition of an elimination algorithm with randomized exploration. Lemmas 3, 4 and 5 are self-contained and need no bandit machinery.

Difficulty

The obvious approach discretizes and runs one bandit algorithm per context. That gives regret O~(MT)\tilde O(\sqrt{MT})O~(MT​) and, after balancing against the quantization error of Lemma 4, only O~(T2/3)\tilde O(T^{2/3})O~(T2/3). Reaching T\sqrt TT​ requires information to flow across contexts. Lemma 2 says that a round with a small context feeds the minimum counts of every larger context. Lemma 3 turns this into a bound on the sum of confidence widths that depends on the width β\betaβ of the context order and not on MMM. Lemma 2 is a statement about a randomized algorithm whose active sets depend on the whole past, and its proof uses the uniform choice among the sources of the active set together with the extra elimination rule (⋆⋆\star\star⋆⋆). The step from a high-probability bound to an expectation over iid contexts must keep the contexts independent of the rewards and of the algorithm's randomness.

Formalization scope

  • Time and grids. Rounds are Fin T: paper round ttt is index t−1t-1t−1. The grids (6) are finite sets of reals. Context iii and action jjj of Fin M, Fin K stand for (i+1)/M(i+1)/M(i+1)/M and (j+1)/K(j+1)/K(j+1)/K. The paper's M=K=T1/2M=K=T^{1/2}M=K=T1/2 are ⌈T⌉\lceil\sqrt T\rceil⌈T​⌉.
  • HOB law. GGG is a probability measure on R\mathbb RR carried by [0,1][0,1][0,1], with G(x)=μG((−∞,x])G(x)=\mu_G((-\infty,x])G(x)=μG​((−∞,x]). Atoms are allowed.
  • Policies. A policy has an internal probability space. Its round-ttt bid takes the values as Fin (t+1) → ℝ and the feedback max⁡{bs,ms}\max\{b_s,m_s\}max{bs​,ms​} as Fin t → ℝ. It never sees mmm, GGG or FFF. The expectation is an integral against μU⊗F⊗T⊗G⊗T\mu_U\otimes F^{\otimes T}\otimes G^{\otimes T}μU​⊗F⊗T⊗G⊗T.
  • Integrability. Every expected-regret bound also asserts that the regret is integrable. This rules out the trivializing reading in which a non-measurable policy has expected regret 000 (Lean's value of a non-integrable integral).
  • Horizon. Theorem 1 and Corollary 1 start at T≥2T\ge2T≥2: at T=1T=1T=1 the printed bound is 000, but an uninformed first bid has positive regret.
  • Algorithm 3. The algorithm is a deterministic function of the contexts, the reward vectors and one uniform ut∈[0,1]u_t\in[0,1]ut​∈[0,1] per round. The uniform choice in (⋆\star⋆) is the ⌊utn⌋\lfloor u_tn\rfloor⌊ut​n⌋-th of the nnn candidates. The topological ordering of the contexts is an argument, and every theorem quantifies over all such orderings. An active set emptied off the good event has minimum count +∞+\infty+∞, and the algorithm then plays action 000.
  • Definition 3. "a⋆(c)=arg⁡max⁡aRc,aa^\star(c)=\arg\max_aR_{c,a}a⋆(c)=argmaxa​Rc,a​" is read as some selection of maximisers that is monotone. The independence numbers enter as upper bounds.
  • Probabilities. "With probability at least 1−δ1-\delta1−δ" means the failure set has measure at most δ\deltaδ. Lemma 2 is stated for every fixed context sequence.
  • Rewards in Corollary 1. The quantized auction rewards lie in [−1,1][-1,1][−1,1], and Algorithm 3 runs on them as printed. The formalization does not claim that they are a Definition 2 instance.

Not stated here: the adversarial parts of Theorem 5 and Corollary 1, Lemma 3.2, and the contextual form of Lemma 1. Proof contributions are welcome at every level. Useful infrastructure includes an anytime concentration bound for running means under adaptive sampling (the contextual Lemma 1) and Dilworth's theorem for finite posets (the step from β=1\beta=1β=1 to general β\betaβ in Lemma 3). Lemmas 3, 4 and 5 can be attacked first and independently.

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, Operations Research, 2025; preprint arXiv:2003.09795v7, 2024. https://arxiv.org/abs/2003.09795
  • N. Alon, N. Cesa-Bianchi, O. Dekel, T. Koren, Online Learning with Feedback Graphs: Beyond Bandits, COLT 2015. https://arxiv.org/abs/1502.07617
  • S. Balseiro, N. Golrezaei, M. Mahdian, V. Mirrokni, J. Schneider, Contextual Bandits with Cross-Learning, NeurIPS 2019. https://arxiv.org/abs/1809.09582
  • R. P. Dilworth, A Decomposition Theorem for Partially Ordered Sets, Annals of Mathematics 51(1), 1950. https://doi.org/10.2307/1969503
12 thms1 active userReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection 4: The Greedy-Phase Budget of the Explore-First Greedy Procedure Decays Exponentially in n0Research Paper

Motivation

Ranking and selection (R&S) asks which of kkk simulated alternatives has the largest mean when each observation is noisy and the simulation budget is fixed. Large-scale problems, with thousands or millions of alternatives, arise in simulation optimization run on parallel computers, and for them the relevant question is how the total budget BBB must grow with kkk. A procedure is sample optimal when a budget linear in kkk keeps its probability of correct selection (PCS) bounded away from zero as k→∞k \to \inftyk→∞.

Li, Fan and Hong (arXiv:2303.02951, Management Science 2025) show that the simplest adaptive procedure, the greedy procedure, which always samples the alternative with the largest current sample mean, is sample optimal, and that an explore-first greedy (EFG) procedure, which first takes n0n_0n0​ observations from every alternative and then runs the greedy procedure, is in addition consistent: its asymptotic PCS can be pushed to any level α<1\alpha < 1α<1 with a budget linear in kkk.

The EFG procedure splits the budget per alternative, B/k=n0+ngB/k = n_0 + n_gB/k=n0​+ng​, into an exploration part n0n_0n0​ and a greedy part ngn_gng​. A natural guess is that most of the budget should go to the greedy phase, since the exploration phase alone is equal allocation, which is not sample optimal. Lemma 6 of the paper (§5.5, p. 25) shows the opposite: the greedy-phase budget needed for the paper's guarantee decays exponentially in n0n_0n0​. This mission formalizes Lemma 6.

Setting

Let Z1,Z2,…Z_1, Z_2, \dotsZ1​,Z2​,… be independent standard normal random variables and

Zˉ(n)=1n∑j=1nZj\bar Z(n) = \frac1n \sum_{j=1}^n Z_jZˉ(n)=n1​j=1∑n​Zj​

their running average. For a level x∈Rx \in \mathbb Rx∈R and a positive integer n0n_0n0​, the boundary-crossing time is

N~(x;n0)=inf⁡{n≥n0:Zˉ(n)<x},\tilde N(x; n_0) = \inf\{ n \ge n_0 : \bar Z(n) < x \},N~(x;n0​)=inf{n≥n0​:Zˉ(n)<x},

with inf⁡∅=∞\inf \emptyset = \inftyinf∅=∞, and its expectation is

C(x;n0)=E[N~(x;n0)]∈[0,∞].C(x; n_0) = \mathrm E\big[\tilde N(x; n_0)\big] \in [0, \infty].C(x;n0​)=E[N~(x;n0​)]∈[0,∞].

For x>0x > 0x>0 the running average eventually drops below xxx and C(x;n0)C(x; n_0)C(x;n0​) is finite; for x≤0x \le 0x≤0 it is infinite. Write Φ\PhiΦ for the standard normal cdf and Φˉ=1−Φ\bar\Phi = 1 - \PhiΦˉ=1−Φ.

In the R&S model, alternative iii has normal observations with mean μi\mu_iμi​ and variance σi2\sigma_i^2σi2​. Assumption 1 (p. 12) gives constants γ>0\gamma > 0γ>0 and σˉ>0\bar\sigma > 0σˉ>0 such that the best mean exceeds every other by at least γ\gammaγ and every variance is at most σˉ2\bar\sigma^2σˉ2. The paper's Theorem 3 (p. 23) shows that EFG with exploration budget n0n_0n0​ keeps the PCS above a positive bound when the greedy phase receives at least

ng=C ⁣(γ−γ0σˉ;n0)−n0n_g = C\!\left(\frac{\gamma - \gamma_0}{\bar\sigma}; n_0\right) - n_0ng​=C(σˉγ−γ0​​;n0​)−n0​

observations per alternative, for a fixed γ0∈(0,γ)\gamma_0 \in (0, \gamma)γ0​∈(0,γ). In Lean the objects are GreedyRS.Budget.zbar, crossTime, Cn0 and Phi.

Formalization targets

Goal: Lemma 6 (p. 25)

For γ0∈(0,γ)\gamma_0 \in (0, \gamma)γ0​∈(0,γ), σˉ>0\bar\sigma > 0σˉ>0 and n0≥1n_0 \ge 1n0​≥1, set

κ=(γ−γ0)22σˉ2,β=(1−e−κ)−1.\kappa = \frac{(\gamma - \gamma_0)^2}{2\bar\sigma^2}, \qquad \beta = \big(1 - e^{-\kappa}\big)^{-1}.κ=2σˉ2(γ−γ0​)2​,β=(1−e−κ)−1.

Then β>0\beta > 0β>0, κ>0\kappa > 0κ>0, and

ng=C ⁣(γ−γ0σˉ;n0)−n0≤β e−κn0.n_g = C\!\left(\frac{\gamma - \gamma_0}{\bar\sigma}; n_0\right) - n_0 \le \beta\, e^{-\kappa n_0}.ng​=C(σˉγ−γ0​​;n0​)−n0​≤βe−κn0​.

Milestones (the steps of the proof printed in EC.2.4, p. ec9)

  1. For x>0x > 0x>0: C(x;n0)−n0≤∑n≥n0Φˉ(n x)\displaystyle C(x; n_0) - n_0 \le \sum_{n \ge n_0} \bar\Phi(\sqrt n\, x)C(x;n0​)−n0​≤n≥n0​∑​Φˉ(n​x).
  2. For t>0t > 0t>0: Φˉ(t)≤e−t2/2\bar\Phi(t) \le e^{-t^2/2}Φˉ(t)≤e−t2/2.
  3. For x≠0x \ne 0x=0: ∑n≥n0e−nx2/2=e−n0x2/21−e−x2/2\displaystyle \sum_{n \ge n_0} e^{-n x^2/2} = \frac{e^{-n_0 x^2/2}}{1 - e^{-x^2/2}}n≥n0​∑​e−nx2/2=1−e−x2/2e−n0​x2/2​.

Significance

The result. Lemma 6 explains the budget-allocation behaviour of EFG: as the budget per alternative grows, almost all of it can go to exploration, and an exponentially small greedy phase still turns equal allocation into a sample-optimal and consistent procedure. The paper uses it to justify a simple proportional rule (a fixed fraction ppp of the budget to exploration) when γ\gammaγ and σˉ\bar\sigmaσˉ are unknown, and it suggests that a short greedy phase may repair other non-sample-optimal procedures. The bound also gives an explicit, computable upper estimate of C(x;n0)C(x; n_0)C(x;n0​), for which no closed form is known when n0≥2n_0 \ge 2n0​≥2 (p. 22).

Formalizing it. The result is proved in the paper; no machine-checked proof exists. The mission produces a formal model of the expected boundary-crossing time of a Gaussian running average, with values in [0,∞][0, \infty][0,∞], a tail-sum bound for it, and the standard Gaussian tail bound in the form 1−Φ(t)≤e−t2/21 - \Phi(t) \le e^{-t^2/2}1−Φ(t)≤e−t2/2. The companion missions of this series (Theorems 1, 2 and 4 of the same paper) use the same crossing-time objects.

Difficulty

The closing algebra is elementary; the difficulty is measure-theoretic. The crossing time is an extended-natural-valued random variable defined through the whole infinite path, and before its finiteness is known it may be infinite with positive probability, so its expectation must be handled in [0,∞][0, \infty][0,∞] rather than as a real number. Relating it to normal tail probabilities requires the exact law of the running average Zˉ(n)\bar Z(n)Zˉ(n) under the infinite product measure, that is, the distribution of a sum of independent Gaussian coordinates, which is not a one-line consequence of the available library.

Formalization scope

  • The i.i.d. sequence is the law Measure.infinitePi (fun _ => gaussianReal 0 1) on RN\mathbb R^{\mathbb N}RN; entry jjj of a path is Zj+1Z_{j+1}Zj+1​.
  • The crossing time is typed in N∪{∞}\mathbb N \cup \{\infty\}N∪{∞} (ℕ∞), and C(x;n0)C(x; n_0)C(x;n0​) is a lower Lebesgue integral with values in [0,∞][0, \infty][0,∞]. A crossing time typed in N\mathbb NN, where the infimum of the empty set is 000, would make C(x;n0)C(x; n_0)C(x;n0​) finite for every xxx and the goal easier than the paper's; this encoding is excluded.
  • Every statement takes n0≥1n_0 \ge 1n0​≥1 (the paper's "positive integer n0n_0n0​"); in Lean Zˉ(0)=0\bar Z(0) = 0Zˉ(0)=0, so n0=0n_0 = 0n0​=0 would change the meaning.
  • The bound on ngn_gng​ is stated additively, C(⋅;n0)≤n0+βe−κn0C(\cdot; n_0) \le n_0 + \beta e^{-\kappa n_0}C(⋅;n0​)≤n0​+βe−κn0​, which is equivalent because N~(x;n0)≥n0\tilde N(x; n_0) \ge n_0N~(x;n0​)≥n0​, and which asserts that C(⋅;n0)C(\cdot; n_0)C(⋅;n0​) is finite there. The constants κ\kappaκ and β\betaβ are the named values of the page, not bare existentials, and their positivity is part of the conclusion. κ\kappaκ uses the variance bound σˉ\bar\sigmaσˉ of Assumption 1.
  • Only the numbers γ,γ0,σˉ\gamma, \gamma_0, \bar\sigmaγ,γ0​,σˉ enter the goal; the R&S procedure and the observation array are not part of this mission.
  • Φˉ(t)\bar\Phi(t)Φˉ(t) is written 1 - Phi t with Phi the cdf of gaussianReal 0 1.
  • Sums over n≥n0n \ge n_0n≥n0​ are reindexed from 000.
  • The source is the arXiv v3 preprint (arXiv:2303.02951v3); page numbers and labels are the preprint's, with e-companion page ecNNN = PDF page 39+N39 + N39+N.

Contributions welcome: the tail-sum formula for ℕ∞-valued expectations, the law of Zˉ(n)\bar Z(n)Zˉ(n) under the product measure, and the three milestones.

Selected references

  • Z. Li, W. Fan, L. J. Hong, The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection, arXiv:2303.02951v3, 2023; Management Science, 2025. https://arxiv.org/abs/2303.02951
  • L. J. Hong, W. Fan, J. Luo, Review on ranking and selection: A new perspective, Frontiers of Engineering Management 8(3), 321–343, 2021. https://doi.org/10.1007/s42524-021-0152-6
5 thms1 active userReviewed
Machine LearningOperations Research·Captain: mikedeng1

Optimal No-regret Learning in Repeated First-price Auctions 4: Arm Elimination with Graph Feedback and Cross Learning Has Regret Õ(T ∧ √(αMT) ∧ √(KT)) with High ProbabilityResearch Paper

Motivation

In many sequential decision problems, playing one action reveals the outcome of other actions too. A bidder in a first-price auction who bids bbb and sees the winning price learns whether every bid at or above that price would have won. A recommender that shows one item learns something about related items. Two kinds of side information recur. Graph feedback across actions: playing action aaa also reveals the rewards of the out-neighbours of aaa in a directed graph GGG (Mannor and Shamir 2011; Alon, Cesa-Bianchi, Dekel and Koren 2015). Cross learning across contexts: the reward of the chosen action is revealed under every context, not only the current one (Balseiro, Golrezaei, Mahdian, Mirrokni and Schneider 2019).

Han, Zhou and Weissman (arXiv:2003.09795v7) reduce learning to bid in repeated first-price auctions to a contextual bandit with both structures. Their §3 starts from a simple arm-elimination algorithm that exploits graph feedback (Algorithm 1) and extends it to contexts with cross learning (Algorithm 2). This mission formalizes that layer: the algorithms, their concentration lemma, and their high-probability regret bounds (Theorems 3 and 4).

Timeline:

  • 2011: Mannor and Shamir introduce bandits with side observations given by a graph.
  • 2015: Alon, Cesa-Bianchi, Dekel and Koren show that for adversarial bandits with a directed feedback graph the minimax regret is Θ~(αT)\tilde\Theta(\sqrt{\alpha T})Θ~(αT​), with α\alphaα the independence number; their Lemma 8 bounds the weak domination number by 50αlog⁡n50\alpha\log n50αlogn.
  • 2016–2020: Cohen, Hazan and Koren, and Lykouris, Tardos and Wali, give elimination-type algorithms for stochastic bandits with graph feedback.
  • 2019: Balseiro et al. introduce cross learning and obtain O~(KT)\tilde O(\sqrt{KT})O~(KT​) regret.
  • 2020–2024: Han, Zhou and Weissman obtain O~(min⁡{αM,K}T)\tilde O(\sqrt{\min\{\alpha M, K\}T})O~(min{αM,K}T​) for both structures together (this mission) and use it for first-price auctions.

Setting

A stochastic contextual bandit with graph feedback and cross learning (Definition 2) has a horizon TTT, contexts C=[M]\mathcal C = [M]C=[M], actions A=[K]\mathcal A = [K]A=[K], a joint reward law PPP supported on [0,1]M×K[0,1]^{M\times K}[0,1]M×K with mean rewards Rc,aR_{c,a}Rc,a​, and a directed graph G=(A,E)G = (\mathcal A, E)G=(A,E) without self-loops. In round ttt a context ctc_tct​ is revealed, the learner picks ata_tat​, nature draws rt=(rt,c,a)c,ar_t = (r_{t,c,a})_{c,a}rt​=(rt,c,a​)c,a​ iid from PPP, and the learner observes rt,c,ar_{t,c,a}rt,c,a​ for every c∈Cc \in \mathcal Cc∈C and every a∈It={at}∪{a:(at,a)∈E}a \in I_t = \{a_t\}\cup\{a : (a_t,a)\in E\}a∈It​={at​}∪{a:(at​,a)∈E}. The regret (5) is

RT(π)=∑t=1T(max⁡a∈ARct,a−Rct,at).R_T(\pi) = \sum_{t=1}^T\Big(\max_{a\in\mathcal A}R_{c_t,a} - R_{c_t,a_t}\Big).RT​(π)=t=1∑T​(a∈Amax​Rct​,a​−Rct​,at​​).

Definition 1 is the case M=1M = 1M=1, with regret (4). The independence number α\alphaα of GGG is the largest size of a set of actions with no edge between any two of them.

Algorithm 2 keeps for each context ccc an active set Aact,c\mathcal A_{\mathrm{act},c}Aact,c​ and a minimum count NcN_cNc​, and for each action aaa a count nan_ana​ shared by all contexts. In each round it plays an action of A0,ct={a∈Aact,ct:na=Nct}\mathcal A_{0,c_t} = \{a\in\mathcal A_{\mathrm{act},c_t} : n_a = N_{c_t}\}A0,ct​​={a∈Aact,ct​​:na​=Nct​​}, either of largest out-degree in the graph restricted to A0,ct\mathcal A_{0,c_t}A0,ct​​ (Option I) or of in-degree zero there (Option II, for DAGs). When every active action of context ccc has been observed more than NcN_cNc​ times, the active set drops the actions whose empirical reward falls below the best by more than 6log⁡(2T)log⁡(MKT/δ)/Nc6\sqrt{\log(2T)\log(MKT/\delta)/N_c}6log(2T)log(MKT/δ)/Nc​​. Algorithm 1 is the case M=1M = 1M=1.

Formalization targets

Goal: Theorem 4

With probability at least 1−δ1-\delta1−δ, writing L=log⁡(2T)log⁡(MKT/δ)L = \log(2T)\log(MKT/\delta)L=log(2T)log(MKT/δ),

RT(π)≤T∧(K+24KTL)∧{50αM(log⁡K)2+24log⁡K50αMTLOption I,αM+24αMTLOption II, G a DAG,R_T(\pi)\le T\wedge\big(K+24\sqrt{KTL}\big)\wedge\begin{cases}50\alpha M(\log K)^2+24\log K\sqrt{50\alpha MTL} & \text{Option I},\\ \alpha M+24\sqrt{\alpha MTL} & \text{Option II, }G\text{ a DAG,}\end{cases}RT​(π)≤T∧(K+24KTL​)∧{50αM(logK)2+24logK50αMTL​αM+24αMTL​​Option I,Option II, G a DAG,​

for every context sequence and every tie-breaking rule.

Milestones

  • Lemma 1 (p. 13): with probability 1−δ1-\delta1−δ, ∣rˉat−Ra∣≤3log⁡(2T)log⁡(KT/δ)/nat|\bar r^t_a - R_a|\le 3\sqrt{\log(2T)\log(KT/\delta)/n^t_a}∣rˉat​−Ra​∣≤3log(2T)log(KT/δ)/nat​​ for all rounds and all observed actions of Algorithm 1.
  • Lemma 10 (p. 35): a directed graph on n≥2n\ge2n≥2 vertices with independence number α\alphaα has a weakly dominating set of size at most 50αlog⁡n50\alpha\log n50αlogn.
  • Theorem 3 (p. 13): the one-context bound T∧(50α(log⁡K)2+24log⁡K50αTlog⁡(2T)log⁡(KT/δ))T\wedge(50\alpha(\log K)^2+24\log K\sqrt{50\alpha T\log(2T)\log(KT/\delta)})T∧(50α(logK)2+24logK50αTlog(2T)log(KT/δ)​) (Option I), resp. T∧(α+24αTlog⁡(2T)log⁡(KT/δ))T\wedge(\alpha+24\sqrt{\alpha T\log(2T)\log(KT/\delta)})T∧(α+24αTlog(2T)log(KT/δ)​) (Option II).
  • Lemma 1, contextual form (p. 16): the same concentration for Algorithm 2, uniformly over contexts, with log⁡(MKT/δ)\log(MKT/\delta)log(MKT/δ).

Significance

Theorem 4 shows that one algorithm attains, up to logarithmic factors, the better of two regret rates: KT\sqrt{KT}KT​, available from cross learning alone, and αMT\sqrt{\alpha MT}αMT​, available from graph feedback alone. The paper then shows (Theorem 6) that with adversarial contexts nothing better than min⁡{αMT,KT,T2/3}\min\{\sqrt{\alpha MT},\sqrt{KT},T^{2/3}\}min{αMT​,KT​,T2/3} is possible, while with stochastic contexts and a partial order a variant reaches O~(T)\tilde O(\sqrt T)O~(T​) for first-price auctions. Algorithm 2 is the building block of that variant.

The results are proved in the paper; none is formalized. A formal development produces machine-checked versions of a concentration inequality with a random number of observations, of a domination bound for directed graphs, and of an elimination analysis with shared counts across contexts. Four printed statements need correction, and the formal statements record the corrected forms: the constant 333 in Theorem 4's second bound (the printed proof gives 242424); Lemma 10, which is false for n=1n = 1n=1 and for edgeless graphs as worded; Lemma 1, which fails for K=T=1K = T = 1K=T=1 and δ\deltaδ close to 111 (excluded by KT≥2KT \ge 2KT≥2); and the pseudocode of Algorithms 1–2, whose update Nc←Nc+1N_c \leftarrow N_c + 1Nc​←Nc​+1 can leave A0,c\mathcal A_{0,c}A0,c​ empty after an elimination (the formalization keeps the text's invariant Nc=min⁡a∈Aact,cnaN_c = \min_{a \in \mathcal A_{\mathrm{act},c}} n_aNc​=mina∈Aact,c​​na​, and coincides with the printed algorithm wherever the latter is defined).

Difficulty

The observations of an action are not a fixed sample: how often and when action aaa is revealed depends on earlier rewards through the algorithm's choices. A union bound with Hoeffding's inequality at a fixed sample size does not apply directly, and Lemma 1 needs a self-normalized martingale inequality.

For Option I, the obvious bound on how long it takes to observe every least-pulled action once more is ∣A0∣|\mathcal A_0|∣A0​∣ rounds, which gives only KT\sqrt{KT}KT​. Getting α\alphaα instead of KKK requires that a vertex of largest out-degree covers a 1/(50αlog⁡K)1/(50\alpha\log K)1/(50αlogK) fraction of the remaining vertices; this is the content of Lemma 10, a probabilistic-method bound that is not in Mathlib. For contexts, the per-context analyses must be combined while counts are shared, and the bound in KKK needs a per-action rather than a per-context accounting.

Formalization scope

  • Actions Fin K, contexts Fin M, rounds Fin T; paper round ttt is Lean index t−1t-1t−1. The feedback graph is a relation E with no self-loops; "independence number α\alphaα" is the hypothesis that every independent set has at most α\alphaα elements (all bounds increase in α\alphaα).
  • The reward law is a probability measure on Fin M → Fin K → ℝ carried by [0,1]M×K[0,1]^{M\times K}[0,1]M×K; rewards are iid across rounds (Measure.pi). The regret is the pseudo-regret with means Rc,a=∫rc,a dPR_{c,a}=\int r_{c,a}\,dPRc,a​=∫rc,a​dP.
  • "With probability at least 1−δ1-\delta1−δ" is: the outer measure of the bad event under P⊗TP^{\otimes T}P⊗T is at most δ\deltaδ. The context sequence is fixed in advance (oblivious adversary); stochastic contexts independent of the rewards follow by conditioning.
  • "Break ties arbitrarily" is a tie-breaking rule that sees the round, the algorithm's state (including the learner's whole observation history) and the context; the theorems hold for every rule that picks a member of every nonempty set.
  • The minimum count NcN_cNc​ follows the text's definition Nc=min⁡a∈Aact,cnaN_c = \min_{a\in\mathcal A_{\mathrm{act},c}}n_aNc​=mina∈Aact,c​​na​. The printed update Nc←Nc+1N_c\leftarrow N_c+1Nc​←Nc​+1 can leave A0,c\mathcal A_{0,c}A0,c​ empty after an elimination (for example with edges a→ba\to ba→b and c→bc\to bc→b, when aaa and ccc are eliminated), where the printed algorithm is undefined. The formal algorithm agrees with the printed one wherever the latter is defined.
  • Lemma 1 quantifies over nat≥1n^t_a\ge1nat​≥1 and excludes K=T=1K = T = 1K=T=1, where it is false for δ\deltaδ close to 111.
  • Ruled out: replacing the three-way minimum by a single bound, restricting to a fixed tie-breaking rule, or to stochastic contexts.

Welcome contributions: the self-normalized inequality of de la Peña, Klass and Lai (Lemma 11), Lemma 10, invariants of Algorithm 2 (the active sets stay nonempty and contain an optimal action on the good event), and the deterministic regret accounting given the concentration event.

Selected references

  • Y. Han, Z. Zhou, T. Weissman, Optimal No-regret Learning in Repeated First-price Auctions, arXiv:2003.09795v7, 2024; Operations Research, 2025. https://arxiv.org/abs/2003.09795
  • N. Alon, N. Cesa-Bianchi, O. Dekel, T. Koren, Online Learning with Feedback Graphs: Beyond Bandits, COLT 2015. https://arxiv.org/abs/1502.07617
  • S. Mannor, O. Shamir, From Bandits to Experts: On the Value of Side-Observations, NeurIPS 2011. https://arxiv.org/abs/1106.2436
  • S. Balseiro, N. Golrezaei, M. Mahdian, V. Mirrokni, J. Schneider, Contextual Bandits with Cross-Learning, NeurIPS 2019. https://arxiv.org/abs/1809.09582
  • V. H. de la Peña, M. J. Klass, T. L. Lai, Self-normalized processes: exponential inequalities, moment bounds and iterated logarithm laws, Annals of Probability 32(3A), 2004. https://doi.org/10.1214/009117904000000397
8 thms1 active userReviewed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection 1: On a Budget Linear in k the Greedy Procedure Keeps the PCS Bounded Away from ZeroResearch Paper

Motivation

Ranking and selection (R&S) is the problem of identifying, by simulation, the alternative with the largest mean performance among kkk candidates, when each alternative can only be observed with noise. It is a basic tool of simulation optimization, with roots in Bechhofer's indifference-zone formulation (Bechhofer 1954). Cloud and parallel computing have made problems with thousands to millions of alternatives routine, and for such large-scale problems the relevant question is how the total sampling budget must grow with kkk to keep the probability of correct selection (PCS) from collapsing.

Li, Fan and Hong (arXiv:2303.02951, Management Science 2025) call a procedure sample optimal if a budget linear in kkk, B=ckB=ckB=ck, keeps lim inf⁡k→∞PCS>0\liminf_{k\to\infty}\mathrm{PCS}>0liminfk→∞​PCS>0. Order kkk is the least any procedure can use, since every alternative needs at least one observation. As the paper recalls, Zhong & Hong (2022) and Hong et al. (2022) show that well-known procedures such as KN (Kim & Nelson 2001) and OCBA (Chen et al. 2000) need a budget of order klog⁡kk\log kklogk; the procedures previously proved sample optimal, median elimination (Even-Dar et al. 2006) and the knockout-tournament procedures, rely on a rigid halving structure with carefully planned allocations in each round. The paper's surprising observation is that the simplest procedure of all, the greedy procedure, which always samples the alternative that currently looks best, is already sample optimal.

Setting

There are kkk alternatives. Alternative iii yields independent observations Xi1,Xi2,⋯∼N(μi,σi2)X_{i1},X_{i2},\dots\sim N(\mu_i,\sigma_i^2)Xi1​,Xi2​,⋯∼N(μi​,σi2​), independent across alternatives, and alternative 111 is the unique best: μ1>μi\mu_1>\mu_iμ1​>μi​ for i≥2i\ge2i≥2. Write Xˉi(n)=1n∑j=1nXij\bar X_i(n)=\frac1n\sum_{j=1}^nX_{ij}Xˉi​(n)=n1​∑j=1n​Xij​ for the running average of alternative iii.

The greedy procedure (Procedure 1) with total budget BBB:

  1. takes one observation from each alternative;
  2. while the total number of observations is below BBB, takes one more observation from the alternative with the largest current running average Xˉi(ni)\bar X_i(n_i)Xˉi​(ni​);
  3. selects the alternative with the largest final running average.

The PCS is the probability that alternative 111 is selected. The asymptotic regime is fixed by Assumption 1: there are constants γ>0\gamma>0γ>0 and σˉ2>0\bar\sigma^2>0σˉ2>0 with μ1−max⁡i≥2μi≥γ\mu_1-\max_{i\ge2}\mu_i\ge\gammaμ1​−maxi≥2​μi​≥γ and max⁡iσi2≤σˉ2\max_i\sigma_i^2\le\bar\sigma^2maxi​σi2​≤σˉ2, however large kkk is.

For an i.i.d. N(0,1)N(0,1)N(0,1) sequence with running average Zˉ(n)\bar Z(n)Zˉ(n), the crossing time of a level xxx is N~(x)=inf⁡{n≥1:Zˉ(n)<x}\tilde N(x)=\inf\{n\ge1:\bar Z(n)<x\}N~(x)=inf{n≥1:Zˉ(n)<x}. With Φ\PhiΦ the standard normal distribution function, the paper's key function is

C(x)=exp⁡(∑n=1∞1n Φ(−n x)),x>0,C(x)=\exp\Bigl(\sum_{n=1}^\infty\frac1n\,\Phi(-\sqrt n\,x)\Bigr),\qquad x>0,C(x)=exp(n=1∑∞​n1​Φ(−n​x)),x>0,

which equals E[N~(x)]\mathrm E[\tilde N(x)]E[N~(x)] (Lemma 2). Finally, Xˉ1∗=min⁡n≥1Xˉ1(n)\bar X_1^*=\min_{n\ge1}\bar X_1(n)Xˉ1∗​=minn≥1​Xˉ1​(n) is the boundary, N1∗N_1^*N1∗​ the first time it is attained, and Ni(b)=inf⁡{n≥1:Xˉi(n)<b}N_i(b)=\inf\{n\ge1:\bar X_i(n)<b\}Ni​(b)=inf{n≥1:Xˉi​(n)<b} the boundary-crossing time of alternative iii.

Formalization targets

Goal: Theorem 1 (p. 15)

Under Assumption 1, if B=ckB=ckB=ck with c>C(γ/σˉ)c>C(\gamma/\bar\sigma)c>C(γ/σˉ), then there is γ0∈(0,γ)\gamma_0\in(0,\gamma)γ0​∈(0,γ) with C((γ−γ0)/σˉ)=cC\bigl((\gamma-\gamma_0)/\bar\sigma\bigr)=cC((γ−γ0​)/σˉ)=c, and

lim inf⁡k→∞PCS ≥ Pr⁡{min⁡n≥1Xˉ1(n)>μ1−γ0}=[C(γ0σ1)]−1>0.\liminf_{k\to\infty}\mathrm{PCS}\ \ge\ \Pr\Bigl\{\min_{n\ge1}\bar X_1(n)>\mu_1-\gamma_0\Bigr\}=\Bigl[C\Bigl(\frac{\gamma_0}{\sigma_1}\Bigr)\Bigr]^{-1}>0.k→∞liminf​PCS ≥ Pr{n≥1min​Xˉ1​(n)>μ1​−γ0​}=[C(σ1​γ0​​)]−1>0.

The constant ccc and the gap γ\gammaγ are free; the bound depends only on the shape of CCC.

Milestones

  1. Lemma 1 (p. 13): Pr⁡{arg⁡min⁡n≥1Zˉ(n)<∞}=1\Pr\{\arg\min_{n\ge1}\bar Z(n)<\infty\}=1Pr{argminn≥1​Zˉ(n)<∞}=1.
  2. Lemma 2 (pp. 13–14): for x>0x>0x>0, Pr⁡{N~(x)<∞}=1\Pr\{\tilde N(x)<\infty\}=1Pr{N~(x)<∞}=1 and E[N~(x)]=C(x)\mathrm E[\tilde N(x)]=C(x)E[N~(x)]=C(x), continuous and strictly decreasing; for x<0x<0x<0, E[N~(x)]=∞\mathrm E[\tilde N(x)]=\inftyE[N~(x)]=∞ and Pr⁡{N~(x)<∞}=1−exp⁡(−∑n1nΦ(n x))\Pr\{\tilde N(x)<\infty\}=1-\exp(-\sum_n\frac1n\Phi(\sqrt n\,x))Pr{N~(x)<∞}=1−exp(−∑n​n1​Φ(n​x)); for x=0x=0x=0, probability 111 and infinite mean.
  3. (4.3) (p. 14): for x<0x<0x<0, Pr⁡{min⁡n≥1Zˉ(n)>x}=[C(−x)]−1\Pr\{\min_{n\ge1}\bar Z(n)>x\}=[C(-x)]^{-1}Pr{minn≥1​Zˉ(n)>x}=[C(−x)]−1.
  4. (3.2) (p. 12): PCS≥Pr⁡{∑i=2kNi(Xˉ1∗)+N1∗≤B}\mathrm{PCS}\ge\Pr\{\sum_{i=2}^kN_i(\bar X_1^*)+N_1^*\le B\}PCS≥Pr{∑i=2k​Ni​(Xˉ1∗​)+N1∗​≤B}.
  5. (4.4) (p. 15): on {Xˉ1∗>μ1−γ0}\{\bar X_1^*>\mu_1-\gamma_0\}{Xˉ1∗​>μ1​−γ0​}, Ni(Xˉ1∗)≤N~i((γ−γ0)/σˉ)N_i(\bar X_1^*)\le\tilde N_i((\gamma-\gamma_0)/\bar\sigma)Ni​(Xˉ1∗​)≤N~i​((γ−γ0​)/σˉ), pathwise.
  6. (EC.1.5) (p. ec3): lim inf⁡kPCS≥Pr⁡{min⁡nXˉ1(n)>μ1−γϵ−}−Pr⁡{arg⁡min⁡nXˉ1(n)=∞}\liminf_k\mathrm{PCS}\ge\Pr\{\min_n\bar X_1(n)>\mu_1-\gamma_\epsilon^-\}-\Pr\{\arg\min_n\bar X_1(n)=\infty\}liminfk​PCS≥Pr{minn​Xˉ1​(n)>μ1​−γϵ−​}−Pr{argminn​Xˉ1​(n)=∞}, where C((γ−γϵ−)/σˉ)=c−2ϵC((\gamma-\gamma_\epsilon^-)/\bar\sigma)=c-2\epsilonC((γ−γϵ−​)/σˉ)=c−2ϵ.

Significance

The result. Theorem 1 shows that a procedure with no tuning parameters, no elimination and no knowledge of γ\gammaγ or σˉ\bar\sigmaσˉ achieves the optimal order of budget growth for large-scale R&S. It gives an explicit, computable lower bound on the limiting PCS. The companion Theorem 2 of the paper shows that this bound is the exact limit under the slippage configuration with a common variance, so the constant cannot be improved in general. The same boundary-crossing analysis underlies the paper's explore-first variant, which turns the positive limit into an arbitrarily high one.

Formalizing it. The result is proved in the paper; nothing here is claimed open. As far as is known, no part of it has a machine-checked proof. A formalization adds:

  • a precise, total specification of the greedy procedure as a function of an observation array, including tie-breaking and budget rounding;
  • the pathwise inclusion behind (3.2), which the paper argues in prose, and whose naive reading is false before N1∗N_1^*N1∗​;
  • Spitzer-type identities for the Gaussian random walk (Lemma 2), which Mathlib does not have and which are reusable well beyond this paper.

Difficulty

The obvious argument fails at its first step. The greedy procedure's sample sizes depend on all past observations of all alternatives, so the PCS has no tractable expression, and the classical route through pairwise comparisons at fixed sample sizes does not apply. The boundary-crossing perspective sidesteps this, at three costs. First, (3.2) requires a careful pathwise argument: before the best alternative's running average reaches its minimum, it can lead, be sampled, and lose the lead, so "once best, always best" is false until N1∗N_1^*N1∗​. Second, Lemma 2 is a fluctuation-theory identity (Spitzer's formula for the mean ladder epoch of a Gaussian walk), not an elementary computation. Third, the limit k→∞k\to\inftyk→∞ combines a strong law over i.i.d. crossing times with a continuity argument in γ0\gamma_0γ0​, which needs the continuity and strict monotonicity of CCC.

Formalization scope

  • Model. One observation array XijX_{ij}Xij​ indexed by i,j∈Ni,j\in\mathbb Ni,j∈N, measurable, with Xij∼N(μi,vi)X_{ij}\sim N(\mu_i,v_i)Xij​∼N(μi​,vi​), and mutually independent as a whole family. Problem kkk uses alternatives 0,…,k−10,\dots,k-10,…,k−1; Lean's alternative 000 is the paper's alternative 111. One sequence (μi,vi)(\mu_i,v_i)(μi​,vi​) serves every kkk, not a triangular array. Variances are positive (vi>0v_i>0vi​>0), as the paper's normalizations by σi\sigma_iσi​ require.
  • Procedure. A deterministic map from the array to the selected index. Ties in every arg max go to the smallest index (a null event under normality). The budget B=ckB=ckB=ck is ⌊ck⌋\lfloor ck\rfloor⌊ck⌋; the number of greedy steps uses truncated subtraction, so the procedure is total.
  • Quantities. Crossing times and argmins take values in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}; E[N~(x)]\mathrm E[\tilde N(x)]E[N~(x)] is a lower Lebesgue integral in [0,∞][0,\infty][0,∞]; probabilities and the liminf are in [0,∞][0,\infty][0,∞]. "min⁡ny(n)>a\min_n y(n)>aminn​y(n)>a" means bounded below with infimum >a>a>a. CCC is applied only at positive arguments.
  • Ruled out. Crossing times typed in N\mathbb NN (where an empty infimum is 000), the junk value of a divergent tsum (C(x)=1C(x)=1C(x)=1 for x≤0x\le0x≤0), an unbounded infimum read as 000, and a "for every γ0\gamma_0γ0​ with C(⋅)=cC(\cdot)=cC(⋅)=c" statement that holds vacuously: the goal asserts the existence of γ0\gamma_0γ0​.
  • Infrastructure. Running averages and crossing times of random walks, the Gaussian Spitzer identity, the strong law for i.i.d. N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}-valued variables, and a pathwise analysis of the greedy procedure. The random-walk results are reusable for any boundary-crossing or sequential-testing development. Contributions on any milestone are welcome, and proofs of Lemma 2 by a route other than Siegmund's are equally useful.
  • Source. The PDF is the arXiv v3 preprint (11 Dec 2023); every page and equation number refers to it.

Selected references

  • Z. Li, W. Fan, L. J. Hong, The (Surprising) Sample Optimality of Greedy Procedures for Large-Scale Ranking and Selection, arXiv:2303.02951v3, 2023; Management Science, 2025. https://arxiv.org/abs/2303.02951
  • R. E. Bechhofer, A Single-Sample Multiple Decision Procedure for Ranking Means of Normal Populations with known Variances, Annals of Mathematical Statistics 25(1), 1954. https://doi.org/10.1214/aoms/1177728845
  • D. Siegmund, Sequential Analysis: Tests and Confidence Intervals, Springer, 1985. https://doi.org/10.1007/978-1-4757-1862-1
  • Y. Zhong, L. J. Hong, Knockout-Tournament Procedures for Large-Scale Ranking and Selection in Parallel Computing Environments, Operations Research 70(1), 2022. https://doi.org/10.1287/opre.2020.2065
8 thms1 active userReviewed
Machine LearningOperations ResearchProbability·Captain: mikedeng1

Thompson Sampling with Information Relaxation Penalties III: As T → ∞ the Action Laws of IRS.FH and IRS.V-Zero Converge to That of Thompson SamplingResearch Paper

Motivation

Thompson sampling (TS) is the standard randomized heuristic for the Bayesian multi-armed bandit: at each decision it samples a parameter vector from the current posterior and pulls the arm that would be best if the sample were true. It ignores the remaining horizon. Min, Maglaras and Moallemi (arXiv:1902.04251, Management Science, 2025) obtain horizon-aware generalizations of TS from the information relaxation duality of Brown, Smith and Sun (Oper. Res. 2010). Each penalty function yields an upper bound on the Bayes-optimal value and an IRS policy. Such a policy samples a whole future outcome and plays the first action of the penalized clairvoyant optimum. With the zero-information penalty it is exactly TS.

Two of these policies, IRS.FH and IRS.V-Zero, are designed to interpolate between TS and the myopic rule. When one period remains they pull the arm with the highest predictive mean (Remark 5 of the paper). This mission formalizes the other end, Proposition 1: when many periods remain, they randomize exactly as Thompson sampling does. The paper presents this as the sense in which IRS policies "behave like TS during the initial decision epochs" and shift smoothly from exploration to exploitation without a tuning parameter.

Setting

There are K≥1K \ge 1K≥1 arms A={1,…,K}\mathcal A = \{1,\dots,K\}A={1,…,K}. Arm aaa has an unknown parameter θa\theta_aθa​. Given θa\theta_aθa​, its rewards Ra,1,Ra,2,…R_{a,1}, R_{a,2}, \dotsRa,1​,Ra,2​,… are i.i.d. with law Ra(θa)\mathcal R_a(\theta_a)Ra​(θa​). The prior of θa\theta_aθa​ is Pa(ya)\mathcal P_a(y_a)Pa​(ya​), a member of a conjugate family indexed by a belief yay_aya​. A Bayesian update Ua\mathcal U_aUa​ maps (ya,r)(y_a, r)(ya​,r) to the posterior belief after a reward rrr. The arms are independent. Throughout, rewards are integrable: Eya∣Ra,1∣<∞\mathbb E_{y_a}|R_{a,1}| < \inftyEya​​∣Ra,1​∣<∞ for every belief (display (3)).

  • The conditional mean reward is μa(θa)=E[Ra,n∣θa]\mu_a(\theta_a) = \mathbb E[R_{a,n} \mid \theta_a]μa​(θa​)=E[Ra,n​∣θa​], and the predictive mean is μˉa(ya)=Eya[μa(θa)]\bar\mu_a(y_a) = \mathbb E_{y_a}[\mu_a(\theta_a)]μˉ​a​(ya​)=Eya​​[μa​(θa​)].
  • The outcome ω=(θ,(Ra,n)a,n)\omega = (\theta, (R_{a,n})_{a,n})ω=(θ,(Ra,n​)a,n​) has law I(y)\mathcal I(y)I(y).
  • The posterior predictive mean after the first nnn rewards of arm aaa is μ^a,n(ω;ya)=Eya[μa(θa)∣Ra,1,…,Ra,n]\hat\mu_{a,n}(\omega; y_a) = \mathbb E_{y_a}[\mu_a(\theta_a) \mid R_{a,1},\dots,R_{a,n}]μ^​a,n​(ω;ya​)=Eya​​[μa​(θa​)∣Ra,1​,…,Ra,n​].

At remaining horizon TTT and belief yyy, the three policies act as follows:

  1. TS samples θ~∼P(y)\tilde\theta \sim \mathcal P(y)θ~∼P(y) and plays ATS(y)=argmax⁡aμa(θ~a)A^{TS}(y) = \operatorname{argmax}_a \mu_a(\tilde\theta_a)ATS(y)=argmaxa​μa​(θ~a​).
  2. IRS.FH samples ω~∼I(y)\tilde\omega \sim \mathcal I(y)ω~∼I(y) and plays AIRS.FH(T,y)=argmax⁡aμ^a,T−1(ω~)A^{IRS.FH}(T,y) = \operatorname{argmax}_a \hat\mu_{a,T-1}(\tilde\omega)AIRS.FH(T,y)=argmaxa​μ^​a,T−1​(ω~), the arm with the best posterior mean after T−1T-1T−1 sampled rewards of every arm.
  3. IRS.V-Zero samples ω~∼I(y)\tilde\omega \sim \mathcal I(y)ω~∼I(y) and solves the allocation problem
max⁡n∈NT∑a=1K∑i=1naμ^a,i−1(ω~),NT={n∈N0K:∑ana=T}.\max_{n \in \mathcal N_T} \sum_{a=1}^K \sum_{i=1}^{n_a} \hat\mu_{a,i-1}(\tilde\omega), \qquad \mathcal N_T = \Big\{n \in \mathbb N_0^K : \sum_a n_a = T\Big\}.n∈NT​max​a=1∑K​i=1∑na​​μ^​a,i−1​(ω~),NT​={n∈N0K​:a∑​na​=T}.

It then plays the arm AIRS.V-Zero(T,y)=argmax⁡an~a∗A^{IRS.V\text{-}Zero}(T,y) = \operatorname{argmax}_a \tilde n^*_aAIRS.V-Zero(T,y)=argmaxa​n~a∗​ to which the optimal allocation n~∗\tilde n^*n~∗ assigns the most pulls.

Each action is a random variable driven by the policy's own sample.

Formalization targets

Goal: Proposition 1 (p. 25)

Assume μi(θi)≠μj(θj)\mu_i(\theta_i) \ne \mu_j(\theta_j)μi​(θi​)=μj​(θj​) almost surely under P(y)\mathcal P(y)P(y), for all i≠ji \ne ji=j. Then for every arm aaa,

lim⁡T→∞P[AIRS.FH(T,y)=a]=P[ATS(y)=a],lim⁡T→∞P[AIRS.V-Zero(T,y)=a]=P[ATS(y)=a].\lim_{T\to\infty} \mathbb P[A^{IRS.FH}(T,y) = a] = \mathbb P[A^{TS}(y) = a], \qquad \lim_{T\to\infty} \mathbb P[A^{IRS.V\text{-}Zero}(T,y) = a] = \mathbb P[A^{TS}(y) = a].T→∞lim​P[AIRS.FH(T,y)=a]=P[ATS(y)=a],T→∞lim​P[AIRS.V-Zero(T,y)=a]=P[ATS(y)=a].

This holds for every choice of the tie-breaking rules in the argmaxes and in the allocation problem.

Milestones

  1. Proposition 4 (p. 53): μa(θa)\mu_a(\theta_a)μa​(θa​) and max⁡aμa(θa)\max_a \mu_a(\theta_a)maxa​μa​(θa​) are integrable under the prior.
  2. Proposition 5 (p. 54): μ^a,n\hat\mu_{a,n}μ^​a,n​ and the sample mean 1n∑i≤nRa,i\frac1n\sum_{i\le n} R_{a,i}n1​∑i≤n​Ra,i​ converge almost surely to μa(θa)\mu_a(\theta_a)μa​(θa​).
  3. Display (109) (p. 54): if a sequence of vectors converges to a vector with distinct entries, every argmax rule eventually selects the argmax of the limit.
  4. The allocation argument (113)–(123) (pp. 54–56): if the payoff rows converge to distinct limits, then for large TTT every optimal allocation gives its largest share only to the arm with the largest limit.
  5. Display (55) alone: the IRS.FH half of the goal.

Significance

Proposition 1 identifies the long-horizon behaviour of the two IRS policies with that of Thompson sampling. Together with Remark 5 it pins down both ends of the horizon. It explains why their simulated regret curves track TS early and the myopic policy late (§5 of the paper). It also shows that the design choice "play the arm with the largest allocation" in IRS.V-Zero is the one that recovers TS. Other selection rules, such as any arm with a positive allocation, need not.

The paper gives a complete proof in Appendix D.1–D.2. A machine-checked version adds three things. It fixes the probabilistic model of a conjugate Bayesian bandit with infinite reward sequences in Lean, which the companion missions on the same paper also need. It makes the role of tie-breaking explicit. And it repairs a step of the printed proof: the bound n∘(AT∘)≥⌊T/2⌋n^\circ(A^\circ_T) \ge \lfloor T/2 \rfloorn∘(AT∘​)≥⌊T/2⌋ in §D.2 holds only for two arms, and the general case needs ⌈T/K⌉\lceil T/K \rceil⌈T/K⌉ and a threshold growing with KKK. No formalization of this result is known on Prove2Me or in Mathlib.

Difficulty

The IRS.FH half reduces to almost-sure convergence of posterior means, which is a martingale argument (Lévy's upward theorem). That argument needs μa(θa)\mu_a(\theta_a)μa​(θa​) to be measurable with respect to the limit σ\sigmaσ-algebra of the reward sequence, a fact supplied by the strong law of large numbers. Building the outcome law, a mixture over θ\thetaθ of infinite product measures, and identifying the conjugate update with conditional expectation are where the measure theory lies.

The IRS.V-Zero half does not follow from convergence of the posterior means alone. The selected arm is a function of an optimal allocation of a combinatorial problem whose size grows with TTT. The naive expectation that the arm with the best limit receives "most" pulls has to be proved by an exchange argument that handles the finitely many early terms, where the posterior means can still be badly ordered. The printed version of this argument is correct only for K=2K = 2K=2.

Formalization scope

  • Arms are Fin K with NeZero K; the reward sequence of an arm is ℕ → ℝ, 0-based.
  • One parameter type and one belief type serve all arms; reward laws and priors are Markov kernels.
  • Conjugacy is stated as Bayes' rule on rectangles for every belief. The update is assumed jointly measurable, and the standing integrability (3) is assumed for every belief.
  • The outcome law I(y)\mathcal I(y)I(y) is a product over arms of mixtures ∫δθ⊗Ra(θ)⊗N Pa(ya)(dθ)\int \delta_\theta \otimes \mathcal R_a(\theta)^{\otimes \mathbb N}\, \mathcal P_a(y_a)(d\theta)∫δθ​⊗Ra​(θ)⊗NPa​(ya​)(dθ).
  • μ^a,n\hat\mu_{a,n}μ^​a,n​ is the pathwise conjugate version μˉa(ya,n)\bar\mu_a(y_{a,n})μˉ​a​(ya,n​) of the conditional expectation (10), defined at every outcome so that it can sit inside an argmax.
  • P[A=a]\mathbb P[A = a]P[A=a] is the mass of {a}\{a\}{a} under the pushforward of the policy's sampling law. All tie-breaking rules are required to be measurable; otherwise the pushforward would be the zero measure.
  • The assumption of the proposition is required almost surely under the prior, not as injectivity of μ\muμ.
  • A formalization in which the selectors were non-measurable, the outcome law degenerate, or the distinctness hypothesis unsatisfiable would make the goal vacuous. The definitions rule out the first two, and a deterministic two-arm instance shows the hypotheses are satisfiable.

The development needs Lévy's upward theorem (MeasureTheory.tendsto_ae_condExp in Mathlib) and the strong law of large numbers (ProbabilityTheory.strong_law_ae). It also needs a lemma identifying iterated conjugate updates with the posterior given finitely many rewards, and the measurability of θ↦Ra(θ)⊗N\theta \mapsto \mathcal R_a(\theta)^{\otimes\mathbb N}θ↦Ra​(θ)⊗N. These last two are reusable for any Bayesian bandit or sequential-estimation development. Contributions of the two deterministic milestones are self-contained and welcome first.

Selected references

  • S. Min, C. Maglaras, C. C. Moallemi, Thompson Sampling with Information Relaxation Penalties, Management Science, 2025; preprint arXiv:1902.04251v2, 2021. https://arxiv.org/abs/1902.04251
  • D. B. Brown, J. E. Smith, P. Sun, Information Relaxations and Duality in Stochastic Dynamic Programs, Operations Research 58(4), 2010. https://doi.org/10.1287/opre.1090.0796
  • W. R. Thompson, On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples, Biometrika 25(3/4), 1933. https://doi.org/10.2307/2332286
  • D. Russo, B. Van Roy, Learning to Optimize via Posterior Sampling, Mathematics of Operations Research 39(4), 2014. https://doi.org/10.1287/moor.2014.0650
9 thms1 active userReviewed
PreviousPage 4 of 6Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me