Theorem 29.3(3), lower bound: realizable multiclass learning needs examples
ProvedUnderstandingML.multiclass_realizable_lower_boundmachine-learningmulticlass
This is the lower half of item 3 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 PAC learns under the realizability assumption with sample-complexity function , then
Formalization Note The realizable multiclass PAC property is the mission's IsMulticlassPACWith (Definition 3.1 with error for a measurable target that agrees -almost surely with some ); the algorithm may be improper.
Preamble
import Definitions.Def_UnderstandingML_MulticlassLearnability open MeasureTheory open scoped InnerProductSpace
Formal statement
universe u v
namespace UnderstandingML
/-- **Theorem 29.3, part 3 (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` PAC learns `H` in the realizable case satisfy
`C₁ (d + log(1/δ))/ε ≤ m_H(ε, δ)` whenever `0 < ε < ε₀` and `0 < δ < δ₀`. -/
theorem multiclass_realizable_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 : ℝ → ℝ → ℕ), IsMulticlassPACWith H A mH →
∀ ε δ : ℝ, 0 < ε → ε < ε₀ → 0 < δ → δ < δ₀ →
C₁ * (d + Real.log (1 / δ)) / ε ≤ mH ε δ := by sorry
end UnderstandingML
Source
S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, Chapter 29, Theorem 29.3 (The Multiclass Fundamental Theorem), p. 403, item 3 (lower bound on the realizable sample complexity)