External and dynamic regret lower bounds #
This module formalizes the four regret lower-bound theorems and Exercise 4.5 of
[BlumMansour2007AGT, §4.3, §4.3.1, §4.3.4, and Exercise 4.5, pp. 82–88, 101] in the experts
setting (Cslib.MachineLearning.OnlineLearning.Experts):
- Causal online algorithms (
IsOnlineAlgorithm): in each roundt, after any[0, 1]-valued loss historyℓ 0, …, ℓ (t - 1),H ℓ tis a probability distribution onιdepending only on earlier rounds. Guarding the predicate by[0, 1]histories matches [BlumMansour2007AGT, §4.2, p. 81] and admits every positive multiplicative update (isOnlineAlgorithm_prob, including both Hedge and Polynomial Weights forη < 1) as well as Randomized Greedy (isOnlineAlgorithm_randGreedyProb). - Theorem 4.1 — Dynamic regret against
G_all(exists_dynamic_regret_ge— [BlumMansour2007AGT, §4.3, Theorem 4.1, pp. 82–83]): for every causal online algorithmHonN ≥ 1experts and horizonT, there exist a{0, 1}loss sequenceℓand an action sequenceg : ℕ → ιwith zero cumulative loss such thatHincurs expected loss at leastT * (1 - 1 / N). - Theorem 4.3 — Deterministic lower bound (
exists_deterministic_loss_eq_and_minCumLoss_eq— [BlumMansour2007AGT, §4.3.1, Theorem 4.3, pp. 83–84]): for every causal deterministic algorithmDonN ≥ 1experts and horizonT, there exists a{0, 1}loss sequenceℓon whichDincurs lossTwhileminCumLoss ℓ T = ⌊T / N⌋holds with exact equality. - Theorem 4.7 — Short-horizon stochastic lower bound (
2 ^ T ≤ N) (exists_stochastic_loss_eq_half_minCumLoss_zero— [BlumMansour2007AGT, §4.3.4, Theorem 4.7, pp. 87–88]): whenever2 ^ T ≤ N(coveringT < log₂ Nand the boundaryN = 2 ^ T), there is a uniform distribution overFin T → Boolof{0, 1}loss sequences such that every realization hasminCumLoss (ℓ w) T = 0while every causal online algorithmHhas expected lossT / 2. - Theorem 4.8 — Two-expert
Ω(√T)stochastic lower bound (exists_two_experts_stochastic_regret_ge— [BlumMansour2007AGT, §4.3.4, Theorem 4.8, p. 88]): forN ≥ 2(in particularN = 2) and everyT, under uniformFin T → Bool{0, 1}losses, every causal online algorithm incurs expected lossT / 2and expected external regret at least(1 / (2 e)) * √T, proved via Khintchine'sL¹lower bound (Cslib.BitString.sqrt_sum_sq_le_exp_mul_lpNorm). - Exercise 4.5 — General
Ω(√(T log N))stochastic lower bound (exists_stochastic_regret_ge_sqrt_mul_log— [BlumMansour2007AGT, Exercise 4.5, p. 101]): forN ≥ 2and⌊log₂ N⌋ ≤ T(in particular for allT ≥ N, since⌊log₂ N⌋ ≤ N), partitioning theTrounds modulok = ⌊log₂ N⌋intokblocks embedded via2 ^ k ≤ Nexperts gives expected external regret at least(1 / (4 e)) * √(T * ln N)for every causal online algorithm.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.IsOnlineAlgorithm: causal online experts algorithm on[0, 1]loss sequences.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.isOnlineAlgorithm_prob,Cslib.MachineLearning.OnlineLearning.Experts.isOnlineAlgorithm_randGreedyProb: multiplicative updates (positive on[0, 1]) and Randomized Greedy are online algorithms.Cslib.MachineLearning.OnlineLearning.Experts.exists_dynamic_regret_ge: [BlumMansour2007AGT, Theorem 4.1].Cslib.MachineLearning.OnlineLearning.Experts.exists_deterministic_loss_eq_and_minCumLoss_eq: [BlumMansour2007AGT, Theorem 4.3].Cslib.MachineLearning.OnlineLearning.Experts.exists_stochastic_loss_eq_half_minCumLoss_zero: [BlumMansour2007AGT, Theorem 4.7].Cslib.MachineLearning.OnlineLearning.Experts.exists_two_experts_stochastic_regret_ge: [BlumMansour2007AGT, Theorem 4.8].Cslib.MachineLearning.OnlineLearning.Experts.exists_stochastic_regret_ge_sqrt_mul_log: [BlumMansour2007AGT, Exercise 4.5].
References #
Causal online algorithms #
A causal online experts algorithm on [0, 1]-valued losses [BlumMansour2007AGT, §4.2, p. 81]:
after any [0, 1]-valued history ℓ 0, …, ℓ (t - 1), H ℓ t is a probability distribution on ι
determined solely by those earlier rounds.
Probabilities are nonnegative after any
[0, 1]-valued history.- sum_eq_one {ℓ : ℕ → ι → ℝ} {t : ℕ} : (∀ s < t, ∀ (i : ι), ℓ s i ∈ Set.Icc 0 1) → ∑ i : ι, H ℓ t i = 1
Probabilities sum to
1after any[0, 1]-valued history. - congr {ℓ ℓ' : ℕ → ι → ℝ} {t : ℕ} : (∀ s < t, ∀ (i : ι), ℓ s i ∈ Set.Icc 0 1) → (∀ s < t, ℓ s = ℓ' s) → H ℓ t = H ℓ' t
Round-
tdistribution depends only on rounds< tfor[0, 1]-valued histories.
Every multiplicative update whose factor is positive on [0, 1] (in particular Hedge for every
η and Polynomial Weights for η < 1) is an online algorithm.
Randomized Greedy is an online algorithm.
Theorem 4.1: Dynamic regret against G_all #
Dynamic regret lower bound against G_all [BlumMansour2007AGT, Theorem 4.1, pp. 82–83]:
for every causal online algorithm H on N ≥ 1 experts and horizon T, there exist a {0, 1}
loss sequence ℓ and an action sequence g : ℕ → ι such that g incurs total loss 0 while H
incurs expected loss at least T * (1 - 1 / N).
Theorem 4.3: Deterministic lower bound (L_D^T = T and L_min^T = ⌊T / N⌋) #
Deterministic regret lower bound [BlumMansour2007AGT, Theorem 4.3, pp. 83–84]: for every
causal deterministic algorithm D on N ≥ 1 experts and horizon T, there exists a {0, 1} loss
sequence ℓ on which D incurs loss T while minCumLoss ℓ T = ⌊T / N⌋ holds with exact
equality.
Unified block-map stochastic adversary (Theorems 4.7, 4.8, and Exercise 4.5) #
Theorems 4.7, 4.8, and Exercise 4.5 #
Short-horizon stochastic lower bound (2 ^ T ≤ N) [BlumMansour2007AGT, Theorem 4.7,
pp. 87–88]: whenever 2 ^ T ≤ Fintype.card ι (in particular for all T < log₂ N), there is a
uniform {0, 1} loss family over Fin T → Bool such that every realization satisfies
minCumLoss (ℓ w) T = 0 while every causal online algorithm H incurs expected loss T / 2.
Two-expert Ω(√T) stochastic external-regret lower bound
[BlumMansour2007AGT, Theorem 4.8, p. 88]: for N ≥ 2 experts (in particular N = 2) and any
horizon T, under uniform fair-coin {0, 1} losses w : Fin T → Bool, every causal online
algorithm H incurs expected loss T / 2 and expected external regret at least
(1 / (2 e)) * √T.
General Ω(√(T log N)) stochastic external-regret lower bound
[BlumMansour2007AGT, Exercise 4.5, p. 101]: for N ≥ 2 experts and ⌊log₂ N⌋ ≤ T (in particular
for all T ≥ N, since ⌊log₂ N⌋ ≤ N), there exists a uniform {0, 1} loss family over
Fin T → Bool under which every causal online algorithm incurs expected external regret at least
(1 / (4 e)) * √(T * ln N).