Entropic follow the regularized leader and Hedge #
Over the finite probability simplex simplex ι = {p : ι → ℝ | (∀ i, 0 ≤ p i) ∧ ∑ i, p i = 1},
negative Shannon entropy in nats negEntropy p = ∑ i, p i * Real.log (p i) (with 0 * log 0 = 0)
is 1-strongly convex with respect to the ℓ¹ norm v ↦ ∑ i, |v i|
(strongConvexOnWrt_negEntropy), proved directly from Pinsker's inequality
Cslib.Probability.PMF.two_mul_dist_sq_le_sum_mul_log_div applied to (p, m) and (q, m) at
the convex combination m = a • p + b • q, requiring no strict-positivity boundary assumption.
With linear losses p ↦ ∑ i, p i * loss t i and entropic regularizers p ↦ negEntropy p / η t
(η t > 0), the unique FTRL minimizer over simplex ι is explicitly the exponential-weights
distribution entropicFTRLProb η loss t i = exp (-η t ∑ s < t, loss s i) / Z t
(isTimeVaryingFTRL_entropic_iff), proved directly from Gibbs' inequality
Cslib.Probability.PMF.sum_mul_log_div_nonneg and its equality case
Cslib.Probability.PMF.sum_mul_log_div_eq_zero_iff. For a constant learning rate η > 0, this
recovers Experts.prob (Experts.hedgeFactor η) loss (entropicFTRLProb_const_eq_hedge,
isFTRL_hedge_iff).
Applying the FTRL regret bounds with ℓ¹-norm strong convexity (σ = 1) and ℓ∞-bounded losses
|loss t i| ≤ L yields:
hedge_regret_le_of_ftrl: for anyη > 0, regret against everyu ∈ simplex ιis at mostlog n / η + η * T * L ^ 2 / 2(with noη ≤ 1cap).hedge_regret_le_sqrt_two/hedge_regret_le_sqrt_two_expert: forn ≥ 2,T ≥ 1, and|loss t i| ≤ 1, tuningη = √(2 * log n / T)recovers the exact√(2 * T * log n)Hedge regret bound without requiringT ≥ log n.entropicFTRL_regret_le_anytime: forn ≥ 2and|loss t i| ≤ 1, the horizon-independent scheduleη t = √(log n / (t + 1))guarantees anytime regret at most2 * √(T * log n)for everyT : ℕ.
Main definitions #
Cslib.MachineLearning.OnlineLearning.OCO.simplex: the finite probability simplex{p : ι → ℝ | (∀ i, 0 ≤ p i) ∧ ∑ i, p i = 1}.Cslib.MachineLearning.OnlineLearning.OCO.negEntropy: negative Shannon entropy in nats.Cslib.MachineLearning.OnlineLearning.OCO.entropicFTRLProb: exponential-weights distribution for entropic FTRL with learning-rate scheduleη.
Main results #
Cslib.MachineLearning.OnlineLearning.OCO.negEntropy_sub_le_log_card:negEntropyoscillates by at mostlog (card ι)onsimplex ι.Cslib.MachineLearning.OnlineLearning.OCO.strongConvexOnWrt_negEntropy:negEntropyis1-strongly convex onsimplex ιwith respect to theℓ¹norm.Cslib.MachineLearning.OnlineLearning.OCO.isTimeVaryingFTRL_entropic_iff,Cslib.MachineLearning.OnlineLearning.OCO.isFTRL_hedge_iff: entropic FTRL uniquely produces the exponential-weights / Hedge distribution.Cslib.MachineLearning.OnlineLearning.OCO.hedge_regret_le_of_ftrl,Cslib.MachineLearning.OnlineLearning.OCO.hedge_regret_le_sqrt_two,Cslib.MachineLearning.OnlineLearning.OCO.hedge_regret_le_sqrt_two_expert: Hedge regret bounds via FTRL, including the exact√(2 * T * log n)bound.Cslib.MachineLearning.OnlineLearning.OCO.entropicFTRL_regret_le_anytime: anytime2 * √(T * log n)regret bound for time-varying entropic FTRL.
References #
Exact section and corollary numbers below beyond those verified in FTRL.lean are unverified
against primary PDFs.
- F. Orabona, A Modern Introduction to Online Learning, §7 (locators for entropic FTRL / Hedge unverified against primary PDF)
- E. Hazan, Introduction to Online Convex Optimization, 2nd ed. (locator unverified)
Negative entropy is nonpositive on the probability simplex.
Strong convexity of negative entropy on the simplex (via Pinsker's inequality): negEntropy
is 1-strongly convex on simplex ι with respect to the ℓ¹ norm v ↦ ∑ i, |v i|.
Exponential-weights distribution played by entropic FTRL at round t with learning rate η t
on cumulative losses ∑ s < t, loss s:
p_t(i) = exp (-η t * ∑ s < t, loss s i) / ∑ j, exp (-η t * ∑ s < t, loss s j).
With a constant learning rate η, entropicFTRLProb coincides pointwise with Hedge
Experts.prob (Experts.hedgeFactor η) loss.
Entropic FTRL uniquely produces the exponential-weights distribution (via Gibbs'
inequality): for [Nonempty ι] and positive learning rates η, a sequence x is a time-varying
FTRL run for ψ t p = negEntropy p / η t and linear losses p ↦ ∑ i, p i * loss t i on
simplex ι iff x = entropicFTRLProb η loss.
Hedge is entropic FTRL: for [Nonempty ι] and constant η > 0, a sequence x is an FTRL
run for p ↦ negEntropy p / η and linear losses p ↦ ∑ i, p i * loss t i on simplex ι iff
x = Experts.prob (Experts.hedgeFactor η) loss.
Hedge regret via entropic FTRL: for [Nonempty ι], any η > 0, losses with
|loss t i| ≤ L for t < T, and any comparator distribution u ∈ simplex ι,
∑ t < T, (⟨p t, loss t⟩ - ⟨u, loss t⟩) ≤ log n / η + η * T * L ^ 2 / 2.
Unlike Experts.hedge_regret_le, this holds for every η > 0 without assuming η ≤ 1.
Hedge √(2 T ln n) regret bound via entropic FTRL: for n ≥ 2 experts, T ≥ 1 rounds,
and losses in [-1, 1], Hedge with η = √(2 * log n / T) achieves regret at most
√(2 * T * log n) against every comparator distribution u ∈ simplex ι.
Hedge √(2 T ln n) regret against every pure expert j : ι.
Anytime 2 √(T ln n) regret for time-varying entropic FTRL: for n ≥ 2 experts and losses
in [-1, 1], the horizon-independent schedule η t = √(log n / (t + 1)) guarantees regret at most
2 * √(T * log n) for every T : ℕ against every u ∈ simplex ι.