Greedy and randomized greedy algorithms for learning with experts #
This module formalizes the warmup external-regret algorithms of [BlumMansour2007AGT, §4.3.1,
pp. 83–84] in the experts setting (Cslib.MachineLearning.OnlineLearning.Experts):
- Best cumulative loss and leaders (
minCumLoss,leaders):minCumLoss ℓ tis the minimum cumulative loss⨅ i, ∑ s ∈ range t, ℓ s ibefore roundt(L_min^t), andleaders ℓ tis the set of actions attainingminCumLoss ℓ t(S^{t-1}). - Deterministic Greedy / Follow-the-Leader (
greedyPlay,greedy_loss_le,greedyPlay_loss_le— [BlumMansour2007AGT, Theorem 4.2, p. 83]): any sequence choosingx t ∈ leaders ℓ t(in particulargreedyPlay, which breaks ties by a linear order onι) satisfies∑ t ∈ range T, ℓ t (x t) ≤ N * minCumLoss ℓ T + (N - 1)for every[0, 1]-valued loss sequence (in particular for{0, 1}losses). The proof uses the bounded window potential∑ i, max 0 (1 + minCumLoss ℓ t - ∑ s ∈ range t, ℓ s i)instead of the discrete leader-count invariant so that it covers real[0, 1]losses directly. Note that choosing a leader in every round is follow-the-leader (OCO.IsFTRL Set.univ 0 ℓ x); the finite-action counting bound here applies with zero regularizer, where the strongly convexFTRLbounds do not. - Randomized Greedy (
randGreedyProb,randGreedy_loss_le_harmonic,randGreedy_loss_le_log— [BlumMansour2007AGT, Theorem 4.4, p. 84]):randGreedyProb ℓ tplays the uniform distribution onleaders ℓ t. On{0, 1}loss sequences, the harmonic invariantL_RG^T ≤ (H_N - H_{|S^T|}) + H_N * L_min^T(randGreedy_loss_le_harmonic) yieldsL_RG^T ≤ ln N + (1 + ln N) * L_min^T(randGreedy_loss_le_log). Unlike Theorem 4.2, exact-tierandGreedyProbrequires{0, 1}losses: arbitrarily small[0, 1]perturbations can keep|leaders ℓ t| = 1in every round and force deterministic-greedy lossN * L_min.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.minCumLoss: minimum cumulative lossL_min^t.Cslib.MachineLearning.OnlineLearning.Experts.leaders: set of current minimum-loss leaders.Cslib.MachineLearning.OnlineLearning.Experts.greedyPlay: deterministic Greedy (FTL) action selection breaking ties by a linear order.Cslib.MachineLearning.OnlineLearning.Experts.randGreedyProb: Randomized Greedy uniform distribution onleaders ℓ t.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.greedy_loss_le,Cslib.MachineLearning.OnlineLearning.Experts.greedyPlay_loss_le: [BlumMansour2007AGT, Theorem 4.2].Cslib.MachineLearning.OnlineLearning.Experts.randGreedy_loss_le_harmonic,Cslib.MachineLearning.OnlineLearning.Experts.randGreedy_loss_le_log: [BlumMansour2007AGT, Theorem 4.4].
References #
Minimum cumulative loss and leaders #
Deterministic Greedy (Follow-the-Leader) and Theorem 4.2 #
Deterministic Greedy (Follow-the-Leader) [BlumMansour2007AGT, §4.3.1, p. 83]: in round t,
select the minimum-index action among leaders ℓ t.
Greedy external-regret bound [BlumMansour2007AGT, Theorem 4.2, p. 83]: for any tie-breaking
sequence x selecting x t ∈ leaders ℓ t and any [0, 1]-valued loss sequence ℓ (in particular
any {0, 1} loss sequence), the Greedy learner's total loss satisfies
∑ t ∈ range T, ℓ t (x t) ≤ N * minCumLoss ℓ T + (N - 1).
Greedy external-regret bound for greedyPlay [BlumMansour2007AGT, Theorem 4.2, p. 83].
Randomized Greedy and Theorem 4.4 #
Harmonic invariant for Randomized Greedy [BlumMansour2007AGT, proof of Theorem 4.4, p. 84]:
on {0, 1} loss sequences,
L_RG^T ≤ (H_N - H_{|S^T|}) + H_N * L_min^T.
Logarithmic bound for Randomized Greedy [BlumMansour2007AGT, Theorem 4.4, p. 84]: on
{0, 1} loss sequences, L_RG^T ≤ ln N + (1 + ln N) * L_min^T.