(1.28) — log-loss increment:
ProvedFoundationsRL.OnlineLearning.eq_1_28exponential-weightsonline-learningp2o-gran-per-chapterp2o-plan-bookp2o-strengthenedp2o-v1regret
Let be a finite class of conditional densities. With , the averaged variant of Exponential Weights predicts the mixture , and at each round for which is defined,
The loss on each round is exactly the change in potential, which is what makes the log-loss regret telescope.
Formalization Note Values lie in EReal. is defined when the likelihoods of the past do not all vanish. The new potential may still be , and then so is the loss.
Differences from the source:
- generalization: f(·|x) a density on Y → f : X → Y → ℝ any nonnegative function; reason: the argument uses only nonnegativity, and densities are nonnegative functions
- encoding: ℓ_log = −log f(y|x), exp{−∑ℓ_log} → values in EReal with −log 0 = +∞, and weights written as the likelihood product; reason: a zero density has infinite loss, and exp(−∞) = 0 makes the two weight formulas agree
- encoding: (1.28) stated without condition → 0 < ∑ f ∈ F, likelihood f x y t; reason: this only says q^t is defined; otherwise (1.27) is 0/0 and the right side is ⊤ − ⊤
- encoding: rounds t = 1, …, T → 0-based rounds in Finset.range T; reason: Lean convention; same instances
Preamble
import Mathlib import Definitions.Def_FoundationsRL_OnlineLearning_Losses import Definitions.Def_FoundationsRL_OnlineLearning_ExponentialWeights import Definitions.Def_FoundationsRL_OnlineLearning_LogLossWeights
Formal statement
namespace FoundationsRL.OnlineLearning
/-- **(1.28) (the log-loss potential telescopes).** Foster & Rakhlin, Foundations of Reinforcement
Learning and Interactive Decision Making, arXiv:2312.16730v1, (1.28), p. 16.
With `η = 1`, the averaged prediction satisfies `ℓ_log(f̂^t(x^t), y^t) = Φ^t_1 - Φ^{t-1}_1`.
**Formalization Note.** Rounds are 0-based, so the notes' `t` is `t + 1` here. Values are in `EReal`.
The hypothesis `ht` says that `q^t` is defined, that is, its denominator in (1.27) is positive. Without
it the right side would be `⊤ - ⊤`. The new potential may still be `+∞`, in which case so is the loss. -/
theorem eq_1_28 {X Y : Type*} (F : Finset (X → Y → ℝ)) (hF : ∀ f ∈ F, ∀ x y, 0 ≤ f x y)
(x : ℕ → X) (y : ℕ → Y) (t : ℕ) (ht : 0 < ∑ f ∈ F, likelihood f x y t) :
logLoss (ewAveraged F (logDist F x y t) (x t)) (y t) =
logPotential F x y (t + 1) - logPotential F x y t := by sorry
end FoundationsRL.OnlineLearning
Source
Foster & Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, (1.27)–(1.28), p. 16
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.