Theorem 1: a -robust algorithm has w.p.
ProvedXuMannorRobust.Standard.theorem1_robust_generalization_boundLet be a probability measure on a measurable space , a set of hypotheses and a loss with for all and measurable for every . Let and let be a learning algorithm that is -robust (Definition 2). Let the training set consist of i.i.d. draws from . Then for every , with probability at least ,
where is the expected error and the training error.
This is the main generalization bound of Xu and Mannor's robustness framework: an algorithm whose loss varies by at most within each cell of a fixed partition of the sample space into cells generalizes, with a complexity term depending only on and not on the hypothesis class.
Formalization Note "With probability at least " is stated as: the outer measure under (on Fin n → Z) of the set of training sets violating the inequality is at most ; this requires no measurability of . Measurability of and of the partition cells is added to the paper's model, which ignores measurability. is assumed (the paper's "n IID draws"); at Lean's would make the claim false. For the radicand is negative and the square root is ; the statement stays true there.
import Mathlib import Definitions.Def_XuMannorRobust_Standard_Losses import Definitions.Def_XuMannorRobust_Standard_IsRobust open MeasureTheory
namespace XuMannorRobust.Standard
/-- **Theorem 1** (Xu & Mannor 2012, p. 396). If the learning algorithm `A` is
`(K, ε(·))`-robust, the loss takes values in `[0, M]` (and each `l h` is measurable), and the
training set `s` consists of `n ≥ 1` i.i.d. draws from the probability measure `μ`, then for every
`δ > 0`, with probability at least `1 − δ`,
`|𝓛(A_s) − l_emp(A_s)| ≤ ε(s) + M √((2K ln 2 + 2 ln(1/δ))/n)`: the outer measure under `μⁿ` of
the set of training sets where this fails is at most `δ`. -/
theorem theorem1_robust_generalization_bound {Z H : Type*} [MeasurableSpace Z] (μ : Measure Z)
[IsProbabilityMeasure μ] (l : H → Z → ℝ) (M : ℝ) (hl_bound : ∀ h z, 0 ≤ l h z ∧ l h z ≤ M)
(hl_meas : ∀ h, Measurable (l h)) {n : ℕ} (hn : 0 < n) (A : (Fin n → Z) → H) (K : ℕ)
(ε : (Fin n → Z) → ℝ) (hA : IsRobust l A K ε) (δ : ℝ) (hδ : 0 < δ) :
(Measure.pi fun _ : Fin n => μ)
{s | ¬ (|expectedLoss μ l (A s) - empiricalLoss l (A s) s|
≤ ε s + M * Real.sqrt ((2 * (K : ℝ) * Real.log 2 + 2 * Real.log (1 / δ)) / (n : ℝ)))}
≤ ENNReal.ofReal δ := by sorry
end XuMannorRobust.Standard
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.