(4.7) — regret is bounded by the upper confidence width
ProvedFoundationsRL.EluderUCB.regret_le_upper_confidence_widthbandit-algorithmseluder-dimensionp2o-gran-per-chapterp2o-plan-bookp2o-strengthenedp2o-v1reinforcement-learning
Let be a finite class and consider a run of generalized UCB with parameter over rounds. If for all , then
This is the optimism step: it holds on a fixed sample path and needs no structure on or . The remaining task of the analysis is to show that the confidence widths shrink.
Formalization Note The platform's optimism lemma FoundationsRL.Bandits.optimism_lemma is stated for finitely many decisions, so this statement carries the step for an arbitrary .
Differences from the source:
- encoding: arbitrary and the maxima presupposed → finite; reason: finiteness is what makes the maxima exist, and it is the setting of §4.1.1, where presupposes a finite class
- generalization: , (standing assumptions of §4.1.1) → real-valued and any real ; reason: the optimism step uses only and the maximality of , so the source's case is a special case
Preamble
import Mathlib import Definitions.Def_FoundationsRL_EluderUCB_regret import Definitions.Def_FoundationsRL_EluderUCB_IsGeneralizedUCBRun
Formal statement
namespace FoundationsRL.EluderUCB
/-- **(4.7): regret is bounded by the upper confidence width.** Foster & Rakhlin,
arXiv:2312.16730v1, (4.7), p. 58. Whenever `f⋆ ∈ Fᵗ` for all `t`, the generalized UCB algorithm has
`Reg ≤ ∑_{t=1}^T (f̄ᵗ(πᵗ) - f⋆(πᵗ))`. The bound holds on a fixed sample path, with no assumption on
the structure of `Π` and `F` beyond the finiteness of `F`, which makes the maxima `f̄ᵗ` exist.
**Formalization Note.** The source's optimism Lemma 7 (`FoundationsRL.Bandits.optimism_lemma`) is
stated on `Fin A`, so it does not apply to an arbitrary `Π`; this statement carries the same step. -/
theorem regret_le_upper_confidence_width {Act : Type*} (F : Set (Act → ℝ)) (hfin : F.Finite)
(β : ℝ) (fstar : Act → ℝ) (T : ℕ) (π : ℕ → Act) (r : ℕ → ℝ) (fhat : ℕ → Act → ℝ)
(hrun : IsGeneralizedUCBRun F β T π r fhat)
(hmem : ∀ t ∈ Finset.Icc 1 T, fstar ∈ confidenceSet F β π r t (fhat t)) :
regret fstar T π ≤
∑ t ∈ Finset.Icc 1 T, (ucbIndex F β π r t (fhat t) (π t) - fstar (π t)) := by sorry
end FoundationsRL.EluderUCB
Source
Foster & Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, (4.7), p. 58
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.