Theorem 30.2: if A(S) = B(z_{i₁},…,z_{i_k}) and m ≥ 2k, then w.p. ≥ 1−δ, L_D(A(S)) ≤ L_V(A(S)) + √(L_V(A(S)) 4k log(m/δ)/m) + 8k log(m/δ)/m
ProvedUnderstandingML.compression_boundcompression-schemesgeneralization-boundsample-compressionunion-bound
Theorem 30.2. Let be an integer and let be a mapping from sequences of examples to the hypothesis class. Let be a training set size and let be a learning rule that receives a training sequence of size and returns a hypothesis such that for some . Let be the set of examples which were not selected for defining . Then, with probability of at least over the choice of we have
Formally: the loss takes values in , , , the selection rule is arbitrary, and is measurable.
Preamble
import Definitions.Def_UnderstandingML_Compression open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Theorem 30.2** (p. 411). Let `k` be an integer and let `B : Z^k → H` be a mapping from
sequences of `k` examples to the hypothesis class. Let `m ≥ 2k` be a training set size and let
`A : Z^m → H` be a learning rule with `A(S) = B(z_{i₁}, …, z_{i_k})` for some `(i₁, …, i_k) ∈ [m]^k`.
Let `V` be the set of examples not selected for defining `A(S)`. Then, with probability of at
least `1 − δ` over the choice of `S`,
`L_D(A(S)) ≤ L_V(A(S)) + √(L_V(A(S)) · 4k log(m/δ)/m) + 8k log(m/δ)/m`.
The loss takes values in `[0, 1]`, `k ≥ 1`, `m ≥ 1`, `(T, z) ↦ ℓ(B(T), z)` is measurable; the
selection rule is arbitrary. -/
theorem compression_bound {Z Hyp : Type*} [MeasurableSpace Z] (loss : Hyp → Z → ℝ)
(hloss : ∀ h z, loss h z ∈ Set.Icc (0 : ℝ) 1) (D : Measure Z) [IsProbabilityMeasure D]
(k m : ℕ) (hk : 1 ≤ k) (hm : 2 * k ≤ m) (hm0 : 0 < m) (B : (Fin k → Z) → Hyp)
(hB : Measurable (fun p : (Fin k → Z) × Z ↦ loss (B p.1) p.2))
(sel : (Fin m → Z) → Fin k → Fin m) (δ : ℝ) (hδ : 0 < δ) (hδ1 : δ < 1) :
iidLaw D m {S | heldOutRisk loss sel S (compressedHyp B sel S) +
Real.sqrt (heldOutRisk loss sel S (compressedHyp B sel S) * 4 * k * Real.log (m / δ) / m) +
8 * k * Real.log (m / δ) / m < risk loss D (compressedHyp B sel S)} ≤
ENNReal.ofReal δ := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §30.1 p. 411, Theorem 30.2 with its proof
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.