Partial-information (multi-armed bandit) block-exploration reduction #
This module formalizes the generic block-exploration reduction from the adversarial partial-information (multi-armed bandit, MAB) model to the full-information (experts) model of [BlumMansour2007AGT, §4.6, Theorem 4.17, pp. 94–96].
Given N = Fintype.card ι actions, a horizon T, K blocks of length m (K * m ≤ T, N ≤ m),
and a causal full-information algorithm H (IsOnlineAlgorithm H) with external regret bound
R over K rounds on [0, 1] loss vectors, the bandit reduction partitions [0, K * m) into K
blocks B_τ = {τ * m, …, τ * m + m - 1}. In each block τ:
- Every action
i : ιis assigned a collision-free exploration offsettime (ω τ) i : Fin mwhose marginal distribution under the uniform average overω τ : Ωis uniform onFin m(ExplorationSchedule, canonically witnessed byuniformInjExplorationScheduleover all injectionsι ↪ Fin m). - At exploration step
t = τ * m + time (ω τ) i,mabPlayplays actionideterministically (mabPlay_apply_explore), observes only the lossℓ t iof the played arm, and recordsĉ_i^τ := ℓ t i(exploredLoss). - At the remaining
m - Nexploitation steps of blockτ,mabPlayplays the distributionH (exploredLoss sched ω ℓ) τ(mabPlay_apply_exploit), which depends only on the single-arm losses observed during the earlier blocks' exploration rounds (mabPlay_bandit_congr). - On any leftover tail rounds
t ∈ [K * m, T)(T - K * m < Kwhenm = T / K),mabPlayplays the uniform distribution onι, avoiding any divisibility assumptionK ∣ T.
Consistent with the rest of CslibFrontier/MachineLearning/OnlineLearning/, all bounds state
mathematical expected regret over oblivious [0, 1] loss sequences under the uniform average 𝔼 ω
over exploration schedules (Fin K → Ω), with partial-information feedback causality proved
explicitly in mabPlay_bandit_congr, without claiming machine running time.
Overview and source mapping #
- Full-information block learner (
blockAvgLoss,blockFullInfo,blockFullInfo_loss_le— [BlumMansour2007AGT, §4.6, p. 94]): overKblocks of lengthm, playingp^τ = H (blockAvgLoss m ℓ) τthroughout blockτincurs cumulative loss at mostminCumLoss ℓ (K * m) + m * R. - Collision-free exploration and causal decoupling (
ExplorationSchedule,uniformInjExplorationSchedule,exploredLoss,expect_exploredLoss_eq,expect_online_mul_exploredLoss_eq,expect_minCumLoss_exploredLoss_le— [BlumMansour2007AGT, §4.6, eq. (4.2), p. 95]): becauseHis causal,p^τis independent of the round-τrandomnessω τ, so𝔼_ω[⟨p^τ, ĉ^τ⟩] = 𝔼_ω[⟨p^τ, c^τ⟩], and concavity ofmingives𝔼_ω[min_i Ĉ_i^K] ≤ min_i C_i^K. - Generic
(K, m)block reduction (mabPlay,mabPlay_bandit_congr,mabPlay_expected_loss_le— [BlumMansour2007AGT, §4.6, p. 95]): for any0 < mandK * m ≤ T,𝔼_ω[L_MAB^T] ≤ minCumLoss ℓ T + N * K + (T - K * m) + m * R. (Callers choosing custom block counts, such as balancingN * Kagainst(T / K) * √(K * ln N)atK ≈ (T / N)^{2/3} * (ln N)^{1/3}, applymabPlay_expected_loss_ledirectly.) - Theorem 4.17 and Polynomial Weights instantiation (
mabBlockCount,mabBlockLen,mabPlay_expected_loss_le_two_thirds,mabMW_expected_loss_le— [BlumMansour2007AGT, §4.6, Theorem 4.17, p. 96]): settingK = ⌊(T / N)^{2/3}⌋andm = ⌊T / K⌋forT ≥ Nconverts anyC * √(K * ln N)full-information learner into a bandit learner with expected regret at most(3 + 2 * C) * T^{2/3} * N^{1/3} * ln N, and instantiating with capped Polynomial Weights (prob (mwFactor (min √(ln N / K) (1 / 2))),C = 2viamw_regret_le_sqrt_of_mem_Icc) yields7 * T^{2/3} * N^{1/3} * ln N.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.blockAvgLoss: block-average loss vectorc^τ.Cslib.MachineLearning.OnlineLearning.Experts.blockFullInfo: full-information learner playing constant distributions across blocks (FIB).Cslib.MachineLearning.OnlineLearning.Experts.ExplorationSchedule: collision-free block exploration schedule with uniform marginal exploration times.Cslib.MachineLearning.OnlineLearning.Experts.uniformInjExplorationSchedule: canonical uniform schedule over all injectionsι ↪ Fin m.Cslib.MachineLearning.OnlineLearning.Experts.exploredLoss: single-arm bandit estimateĉ^τ.Cslib.MachineLearning.OnlineLearning.Experts.mabPlay: partial-information block-exploration learner (MAB).Cslib.MachineLearning.OnlineLearning.Experts.mabBlockCount,Cslib.MachineLearning.OnlineLearning.Experts.mabBlockLen: block count⌊(T / N)^{2/3}⌋and block length⌊T / K⌋of [BlumMansour2007AGT, p. 96].
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.blockFullInfo_loss_le: full-information block regret boundL_FIB^{K m} ≤ minCumLoss ℓ (K * m) + m * R([BlumMansour2007AGT, §4.6, p. 94]).Cslib.MachineLearning.OnlineLearning.Experts.expect_exploredLoss_eq,Cslib.MachineLearning.OnlineLearning.Experts.expect_online_mul_exploredLoss_eq,Cslib.MachineLearning.OnlineLearning.Experts.expect_minCumLoss_exploredLoss_le: unbiasedness, causal decoupling ([BlumMansour2007AGT, eq. (4.2), p. 95]), and expected-minimum inequality.Cslib.MachineLearning.OnlineLearning.Experts.mabPlay_bandit_congr: bandit-feedback causality ofmabPlay(round-tplay depends solely on the single-arm losses observed at earlier exploration rounds).Cslib.MachineLearning.OnlineLearning.Experts.mabPlay_expected_loss_le: generic(K, m)block-reduction expected-loss bound ([BlumMansour2007AGT, §4.6, p. 95]).Cslib.MachineLearning.OnlineLearning.Experts.mabPlay_expected_loss_le_two_thirds: black-boxO(T^{2/3} N^{1/3} log N)bandit reduction ([BlumMansour2007AGT, Theorem 4.17, pp. 94–96]).Cslib.MachineLearning.OnlineLearning.Experts.mabMW_expected_loss_le: explicit Polynomial Weights (mwFactor) instantiation achieving7 * T^{2/3} * N^{1/3} * ln Nexpected regret forT ≥ N([BlumMansour2007AGT, Theorem 4.17, pp. 94–96]).
References #
Block averages and the full-information block learner (FIB) #
The full-information block learner FIB [BlumMansour2007AGT, §4.6, p. 94]: throughout block
τ = t / m, it plays the constant distribution H (blockAvgLoss m ℓ) τ.
If H is an online algorithm then blockFullInfo H m is an online algorithm.
Exact total loss of blockFullInfo H m over K blocks of length m
[BlumMansour2007AGT, §4.6, p. 94]: L_FIB^{K m} = m * ∑ τ < K, ⟨p^τ, c^τ⟩.
Full-information block regret bound [BlumMansour2007AGT, §4.6, p. 94]:
if H achieves external regret at most R on blockAvgLoss m ℓ over K blocks, then
L_FIB^{K m} ≤ minCumLoss ℓ (K * m) + m * R.
Collision-free exploration schedules #
A collision-free exploration schedule for a finite action space ι inside a block of length
m [BlumMansour2007AGT, §4.6, p. 95]. Each outcome ω : Ω maps the actions injectively to
distinct offsets time ω : ι ↪ Fin m, and the marginal distribution of time ω i under a uniform
draw ω : Ω is uniform on Fin m.
Canonical uniform exploration schedule over all collision-free injections ι ↪ Fin m
(|ι| ≤ m, 0 < m), matching [BlumMansour2007AGT, §4.6, p. 95].
Unbiased exploration feedback ĉ and causal decoupling #
The single-arm exploration loss estimate ĉ^τ fed to the full-information base algorithm
[BlumMansour2007AGT, §4.6, p. 95]: for each block τ < K and action i,
exploredLoss sched ω ℓ τ i = ℓ (τ * m + time (ω τ) i) i, reading only the loss of action i at
the single round where action i is deterministically played.
Unbiasedness of exploredLoss [BlumMansour2007AGT, §4.6, p. 95]:
for every block τ < K and action i, 𝔼_ω[ĉ^τ_i] = c^τ_i.
Causal decoupling identity [BlumMansour2007AGT, §4.6, eq. (4.2), p. 95]: because H is
causal on [0, 1] histories, its round-τ distribution depends only on blocks < τ and is
independent of ω τ, so 𝔼_ω[⟨p^τ(ω), ĉ^τ(ω)⟩] = 𝔼_ω[⟨p^τ(ω), c^τ⟩].
Expected minimum of cumulative explored losses is at most the minimum cumulative true block
average (𝔼[min_i Ĉ_i^K] ≤ min_i C_i^K) [BlumMansour2007AGT, §4.6, p. 95].
The partial-information (multi-armed bandit) block-exploration algorithm of [BlumMansour2007AGT, §4.6, pp. 94–96].
Inside each full block τ = t / m < K of length m > 0:
- if the in-block offset
r = t % mequalssched.time (ω τ) ifor some (unique) actioni : ι,mabPlayexplores by placing probability1oni; - otherwise (
ris not an exploration time in blockτ),mabPlayexploits by playingH (exploredLoss sched ω ℓ) τ.
On any leftover tail round t ≥ K * m, mabPlay plays the uniform distribution on ι.
Partial-information (bandit) feedback causality: in round t, mabPlay depends only on
the single-arm losses observed during the earlier blocks' exploration rounds
(σ * m + time (ω σ) i, i) for σ < min (t / m) K (at each of which mabPlay deterministically
played action i, by mabPlay_apply_explore). Changing losses of any unplayed action, any
exploitation round, or any current/future round leaves mabPlay's output unchanged.
For every fixed exploration seed sequence ω : Fin K → Ω, mabPlay is a causal online
algorithm (IsOnlineAlgorithm).
At the unique exploration offset assigned to action i in block τ, mabPlay puts mass 1
on i and 0 on every other action.
On any non-exploration offset r in block τ, mabPlay plays the base algorithm's
distribution H (exploredLoss sched ω ℓ) τ.
Generic block-reduction regret bound [BlumMansour2007AGT, §4.6, p. 95]:
for any block length m > 0, block count K with K * m ≤ T, collision-free schedule
sched : ExplorationSchedule ι m Ω, and causal full-information algorithm H achieving external
regret at most R over K rounds on [0, 1] losses, mabPlay has expected total loss at most
minCumLoss ℓ T + N * K + (T - K * m) + m * R (removing the divisibility hypothesis K ∣ T).
Block-count choice and Theorem 4.17 #
Block count K = ⌊(T / N)^{2/3}⌋ of [BlumMansour2007AGT, §4.6, p. 96].
Block length m = T / mabBlockCount N T paired with mabBlockCount N T.
Partial-information block-exploration reduction [BlumMansour2007AGT, Theorem 4.17,
pp. 94–96]: for N = Fintype.card ι ≥ 1 actions, any horizon T ≥ N, and any family H K of
causal full-information algorithms achieving external regret at most C * √(K * ln N) over K
rounds on [0, 1] losses (C ≥ 0), running mabPlay over K = mabBlockCount N T = ⌊(T / N)^{2/3}⌋ blocks of length m = mabBlockLen N T = ⌊T / K⌋ under the uniform collision-free
schedule uniformInjExplorationSchedule achieves expected cumulative loss at most
minCumLoss ℓ T + (3 + 2 * C) * T^{2/3} * N^{1/3} * ln N on every [0, 1]-valued loss sequence.
For N ≥ 2 the proof first establishes the sharper (3 / 2 + C * √2 * √(ln N)) * T^{2/3} * N^{1/3}
bound and uses ln N ≥ ln 2 > 1 / 2 to absorb the constant into ln N; for N = 1 both sides
equal minCumLoss ℓ T since a single-action distribution incurs zero regret.
Explicit Polynomial Weights instantiation of Theorem 4.17 [BlumMansour2007AGT, Theorem 4.17,
pp. 94–96]: instantiating mabPlay_expected_loss_le_two_thirds with capped Polynomial Weights
prob (mwFactor (min √(ln N / K) (1 / 2))) (C = 2 via mw_regret_le_sqrt_of_mem_Icc and
isOnlineAlgorithm_prob) achieves expected cumulative loss at most
minCumLoss ℓ T + 7 * T^{2/3} * N^{1/3} * ln N for every T ≥ N and every [0, 1] loss
sequence.