The standard optimal algorithm #
The standard optimal algorithm (SOA) [Littlestone1988, §3, Algorithm 2] keeps the version
space V of the history. On instance x, it compares the Littlestone dimensions of the two
restrictions V₀ = {c ∈ V | c x = false} and V₁ = {c ∈ V | c x = true} and predicts true iff
K(V₁) > K(V₀), with Littlestone's convention K(∅) = -1. Here littlestoneDim ∅ = 0, so the
convention appears as the explicit emptiness checks in soa: it predicts true iff V₁ is
nonempty and either V₀ is empty or littlestoneDim V₀ < littlestoneDim V₁.
After a mistake on a realizable sequence, the version space is the restriction with the larger
dimension. Both restrictions are nonempty, and a complete tree for each would combine into a
deeper tree for V, so the dimension drops by at least one (littlestoneDim_add_one_le_of_soa_ne).
Hence SOA makes at most littlestoneDim C mistakes [Littlestone1988, §3, Lemma 2]. With the lower
bound of CslibFrontier.MachineLearning.OnlineLearning.MistakeBound.Littlestone, this gives
Littlestone's theorem: optimalMistakeBound C = littlestoneDim C, and SOA attains it
[Littlestone1988, §3, Theorem 3]. Littlestone states the theorem for finite classes. The proof
here works for every class, with both sides possibly ⊤, as in
[ShalevShwartzBenDavid2014, §21.1].
soa is a noncomputable specification: it decides emptiness and compares Littlestone dimensions
of arbitrary classes classically. The running time of the algorithm is not modelled.
Main definitions #
Cslib.MachineLearning.OnlineLearning.MistakeBound.soa: the standard optimal algorithm.
Main results #
Cslib.MachineLearning.OnlineLearning.MistakeBound.mistakeBound_soa: SOA makes exactlylittlestoneDim Cmistakes in the worst case.Cslib.MachineLearning.OnlineLearning.MistakeBound.optimalMistakeBound_eq_littlestoneDim: [Littlestone1988, §3, Theorem 3], the optimal mistake bound is the Littlestone dimension.
References #
- [N. Littlestone, Learning quickly when irrelevant attributes abound: a new linear-threshold algorithm][Littlestone1988]
- [S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms][ShalevShwartzBenDavid2014]
The standard optimal algorithm [Littlestone1988, §3, Algorithm 2]. After the history h,
predict true on x iff the concepts consistent with h ++ [(x, true)] exist and, when the
concepts consistent with h ++ [(x, false)] exist too, have the larger Littlestone dimension.
Equations
- One or more equations did not get rendered due to their size.
Instances For
After a mistake of SOA on an example (x, y) consistent with some concept of the version
space, the Littlestone dimension of the version space drops by at least one.
After the history h, SOA makes at most littlestoneDim (versionSpace C h) mistakes on
rounds S such that h ++ S is realizable [Littlestone1988, §3, Lemma 2].
SOA makes exactly littlestoneDim C mistakes in the worst case.
Littlestone's theorem [Littlestone1988, §3, Theorem 3]: the optimal mistake bound of a
concept class is its Littlestone dimension. Littlestone states it for finite classes; this version
holds for every class, both sides being ⊤ when there are complete mistake trees of every
height.
SOA is an optimal learner.