Theorem 29.3(2), lower bound: agnostic multiclass learning needs examples
ProvedUnderstandingML.multiclass_agnostic_lower_boundThis is the lower half of item 2 of the Multiclass Fundamental Theorem.
Let be a domain with a -algebra containing all singletons, let be a finite label set with (also with measurable singletons), and let be a class of measurable hypotheses with Natarajan dimension (Definition 29.2). The loss is the multiclass – loss . Assume .
There are absolute constants (independent of , , and ) such that the following holds. If a learning algorithm (returning hypotheses in ) agnostically PAC learns (Definition 3.4) with sample-complexity function , then
The corresponding lower bound on in item 1 follows, since uniform convergence with makes any ERM learner an agnostic PAC learner with examples.
Formalization Note Agnostic PAC learnability is the generic Definition 3.4 of Mission I, instantiated with the multiclass – loss; it requires the algorithm's outputs to lie in .
import Definitions.Def_UnderstandingML_MulticlassLearnability open MeasureTheory open scoped InnerProductSpace
universe u v
namespace UnderstandingML
/-- **Theorem 29.3, part 2 (lower bound)** (p. 403). There are absolute constants
`C₁, ε₀, δ₀ > 0` such that for every measurable class `H` of functions from `X` to a finite label
set `Y` with Natarajan dimension `d ≥ 2`, every learner `A` and every sample-complexity function
`m_H` with which `A` agnostically PAC learns `H` (multiclass 0–1 loss) satisfy
`C₁ (d + log(1/δ))/ε² ≤ m_H(ε, δ)` whenever `0 < ε < ε₀` and `0 < δ < δ₀`. -/
theorem multiclass_agnostic_lower_bound :
∃ C₁ ε₀ δ₀ : ℝ, 0 < C₁ ∧ 0 < ε₀ ∧ 0 < δ₀ ∧
∀ {X : Type u} {Y : Type v} [MeasurableSpace X] [MeasurableSingletonClass X]
[MeasurableSpace Y] [MeasurableSingletonClass Y] [Fintype Y]
(H : Set (X → Y)) (d : ℕ), (∀ h ∈ H, Measurable h) → ndim H = d → 2 ≤ d →
∀ (A : Learner (X × Y) (X → Y)) (mH : ℝ → ℝ → ℕ), IsAgnosticPACWith lossMulti H A mH →
∀ ε δ : ℝ, 0 < ε → ε < ε₀ → 0 < δ → δ < δ₀ →
C₁ * (d + Real.log (1 / δ)) / ε ^ 2 ≤ mH ε δ := by sorry
end UnderstandingML