Modification rules, internal/swap regret separations, and dominated-action weight decay #
This module formalizes the memoryless modification-rule framework R_F of
[BlumMansour2007AGT, §4.2, pp. 81–82], specializing to external regret
(Set.range (Function.const ι)), pairwise internal regret (internalRules ι), and swap regret
(Set.univ), together with Exercises 4.1, 4.2, and 4.8 ([BlumMansour2007AGT, §4.4.4, pp. 91–92,
and p. 101]):
- Modification-rule regret and bridges (
modRegret,internalRules,modRegret_le_iff,modRegret_univ_le_iff,modRegret_univ_eq_sum_sup,modRegret_range_const,modRegret_internalRules_le_iff— [BlumMansour2007AGT, §4.2, pp. 81–82]): For a familyF : Set (ι → ι)of memoryless modification rules,modRegret F p ℓ Tissup_{f ∈ F} (L_H^T - L_{H, f}^T). SpecializingFtoSet.univbridges directly viamodRegret_univ_le_iff(@[simp]) to the universal swap-regret inequality ofSwapRegret.leanand decomposes coordinatewise as∑ i, max_j ∑ t < T, p t i * (ℓ t i - ℓ t j)(modRegret_univ_eq_sum_sup). SpecializingFtoSet.range (Function.const ι)recovers(∑ t < T, ⟨p t, ℓ t⟩) - minCumLoss ℓ T(modRegret_range_const), whileinternalRules ιconsists of the single-action switchesFunction.update id a b(includinga = b, matching the displayed formulamax_{i, j ∈ X} ∑_t p_i^t (ℓ_i^t - ℓ_j^t)on p. 82 so that internal regret is nonnegative). - Exercise 4.1 and tightness (
modRegret_univ_le_card_mul_internalRules,exists_modRegret_univ_eq_sub_one— [BlumMansour2007AGT, Exercise 4.1, p. 101]): Swap regret is at mostNtimes internal regret, and an original tightness construction onFin N(N ≥ 2) with uniform play and{0, 1}losses achieves internal regret1and swap regretN - 1. - Exercise 4.2 (
exists_modRegret_const_zero_and_univ_eq,exists_unbounded_modRegret_univ_div_const— [BlumMansour2007AGT, Exercise 4.2, p. 101]): OnFin 3(N = 3) with deterministic{0, 1}play and{0, 1}losses, external regret can vanish while swap regret equals3 mfor arbitrarym : ℕ, and appending one round makes external regret equal to1 > 0while the ratio of swap regret to external regret exceeds any prescribed real boundM. - Exercise 4.8 (
sum_prob_hedgeFactor_le_of_dominated,sum_prob_mwFactor_le_of_dominated,exists_nonpos_external_regret_dominated_weight— [BlumMansour2007AGT, §4.4.4, pp. 91–92, and Exercise 4.8, p. 101]): UnderhedgeFactor η(which also covers[0, 1]Randomized Weighted Majority(1 - η') ^ ℓviaη = -log (1 - η')), the total probability assigned over any horizonTto an actionε-dominated by a mixed strategy is at most1 / (1 - exp (-(η * ε))). Under Polynomial Weights (mwFactor η, coinciding with RWM on{0, 1}losses), the total probability assigned to an action pure-ε-dominated bykis at most1 / (η * ε). By contrast, low external regret alone does not suppress dominated actions: onFin 3, deterministic play can achieve nonpositive external regret while placing time-average weight1 / 2on anε-dominated action.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.modRegret: cumulative regretR_Fagainst a familyF : Set (ι → ι)of memoryless modification rules.Cslib.MachineLearning.OnlineLearning.Experts.internalRules: the familyF^inof single-action switch rulesFunction.update id a b.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.modRegret_le_iff,Cslib.MachineLearning.OnlineLearning.Experts.modRegret_mono: characterization and monotonicity ofmodRegret.Cslib.MachineLearning.OnlineLearning.Experts.modRegret_univ_le_iff,Cslib.MachineLearning.OnlineLearning.Experts.modRegret_univ_eq_sum_sup,Cslib.MachineLearning.OnlineLearning.Experts.modRegret_range_const,Cslib.MachineLearning.OnlineLearning.Experts.modRegret_range_const_le_iff,Cslib.MachineLearning.OnlineLearning.Experts.modRegret_internalRules_le_iff: bridges fromR_Fto swap regret,minCumLossexternal regret, and pairwise internal regret ([BlumMansour2007AGT, §4.2]).Cslib.MachineLearning.OnlineLearning.Experts.modRegret_univ_le_card_mul_internalRules: [BlumMansour2007AGT, Exercise 4.1].Cslib.MachineLearning.OnlineLearning.Experts.exists_modRegret_univ_eq_sub_one: originalN - 1tightness witness for Exercise 4.1.Cslib.MachineLearning.OnlineLearning.Experts.exists_modRegret_const_zero_and_univ_eq,Cslib.MachineLearning.OnlineLearning.Experts.exists_unbounded_modRegret_univ_div_const: [BlumMansour2007AGT, Exercise 4.2].Cslib.MachineLearning.OnlineLearning.Experts.sum_prob_hedgeFactor_le_of_dominated,Cslib.MachineLearning.OnlineLearning.Experts.sum_prob_mwFactor_le_of_dominated,Cslib.MachineLearning.OnlineLearning.Experts.exists_nonpos_external_regret_dominated_weight: [BlumMansour2007AGT, Exercise 4.8].
References #
Memoryless modification rules and F-regret #
Cumulative regret R_F = sup_{f ∈ F} (L_H^T - L_{H, f}^T) of round weights p against a
family F : Set (ι → ι) of memoryless modification rules over T rounds
[BlumMansour2007AGT, §4.2, p. 82].
Regret against any single rule f ∈ F is bounded by modRegret F p ℓ T.
For nonempty F, modRegret F p ℓ T ≤ R iff shifting actions by any f ∈ F reduces total
expected loss by at most R.
Bridges to swap regret, external regret, and internal regret #
Bridge from modRegret Set.univ (R_{F^sw}) to the universal swap-regret inequality of
SwapRegret.lean [BlumMansour2007AGT, §4.2, p. 82].
Coordinatewise closed form of swap regret modRegret Set.univ:
∑ i, max_j ∑ t < T, p t i * (ℓ t i - ℓ t j) [BlumMansour2007AGT, §4.2, p. 82].
When p t sums to 1 in every round t < T, modRegret over the constant modification rules
Set.range (Function.const ι) (F^ex) equals (∑ t < T, ⟨p t, ℓ t⟩) - minCumLoss ℓ T
[BlumMansour2007AGT, §4.2, pp. 81–82].
Characterization of bounded external regret via modRegret (Set.range (Function.const ι)) when
p t sums to 1 in every round t < T.
The family F^in of pairwise single-action switch modification rules Function.update id a b,
replacing action a by b and leaving all other actions fixed [BlumMansour2007AGT, §4.2, p. 82,
and §4.4.3, p. 90]. Includes a = b (id), matching the displayed formula
max_{i, j ∈ X} ∑_t p_i^t (ℓ_i^t - ℓ_j^t) on p. 82 so that internal regret is always
nonnegative.
Pairwise characterization of internal regret modRegret (internalRules ι)
[BlumMansour2007AGT, §4.2, p. 82].
Exercise 4.1: Swap regret vs. internal regret #
Swap regret is at most N times internal regret
[BlumMansour2007AGT, Exercise 4.1, p. 101].
Original Ω(N) tightness witness complementing [BlumMansour2007AGT, Exercise 4.1, p. 101]:
for every N ≥ 2, uniform play over T = N rounds on Fin N against the constant {0, 1} loss
vector (0, 1, …, 1) achieves internal regret 1 and swap regret N - 1.
Exercise 4.2: Unbounded swap-to-external regret ratio for N = 3 #
Zero external regret with arbitrarily large swap regret for N = 3
[BlumMansour2007AGT, Exercise 4.2, p. 101]: for every m : ℕ, over T = 6 * m rounds on Fin 3
there exist deterministic {0, 1} plays p and {0, 1} losses ℓ with
modRegret (Set.range (Function.const (Fin 3))) p ℓ (6 * m) = 0 and
modRegret Set.univ p ℓ (6 * m) = 3 * m.
Unbounded ratio between swap regret and positive external regret for N = 3
[BlumMansour2007AGT, Exercise 4.2, p. 101]: for every real M, there exist a horizon T,
deterministic {0, 1} plays p, and {0, 1} losses ℓ on Fin 3 such that external regret is
strictly positive and the ratio of swap regret to external regret strictly exceeds M.
Exercise 4.8: Multiplicative weight decay on ε-dominated actions vs. external regret #
Cumulative Hedge weight on an action ε-dominated by a mixed strategy
[BlumMansour2007AGT, §4.4.4 and Exercise 4.8, pp. 91–92, 101]: if 0 < η, 0 < ε, and in every
round s < T action j incurs loss at least ε above a fixed mixed strategy y
(∑ i, y i * ℓ s i + ε ≤ ℓ s j), then the total probability mass assigned to j by
prob (hedgeFactor η) over all T rounds is at most 1 / (1 - exp (-(η * ε))).
Since (1 - η') ^ x = hedgeFactor (-log (1 - η')) x for 0 < η' < 1, this also covers the
[0, 1] Randomized Weighted Majority update w_i ← w_i (1 - η') ^ ℓ_i.
Cumulative Polynomial Weights (mwFactor) weight on a pure-ε-dominated action
[BlumMansour2007AGT, §4.4.4 and Exercise 4.8, pp. 91–92, 101]: if 0 < η, 0 < ε, all
mwFactor η factors before T are positive, and in every round s < T action k has
nonnegative loss with ℓ s k + ε ≤ ℓ s j, then the total probability mass assigned to j by
prob (mwFactor η) over all T rounds is at most 1 / (η * ε). On {0, 1} losses mwFactor
coincides with Randomized Weighted Majority, so this covers both PW and {0, 1}-RWM.
Low external regret does not prevent high weight on an ε-dominated action
[BlumMansour2007AGT, §4.4.4 and Exercise 4.8, pp. 92, 101]: for every ε ∈ [0, 1 / 2] and
m : ℕ, over T = 2 * m rounds on Fin 3 there exist deterministic {0, 1} plays p and
[0, 1] losses ℓ in which action 2 is ε-dominated by action 0 in every round
(ℓ t 0 + ε ≤ ℓ t 2), external regret is nonpositive
(modRegret (Set.range (Function.const (Fin 3))) p ℓ (2 * m) ≤ 0), and cumulative weight on
action 2 equals m (time-average weight 1 / 2).