Variance-sensitive Bernstein online-to-batch conversion #
Refines the Azuma–Hoeffding high-probability online-to-batch conversion in
CslibFrontier.MachineLearning.OnlineLearning.HighProbabilityOnlineToBatch by replacing worst-case
sub-Gaussian step widths with the product-filtration Bernstein bound
(ProbabilityTheory.measure_sum_gt_sqrt_add_le_pi):
Run an online learner on an i.i.d. sample S = (z₀, …, z_{T-1}) from D. In round t the learner
commits to a function f t S : Z → ℝ depending only on z₀, …, z_{t-1} with values in [a, b]
and conditional variance ∫ z, (f t S z - ∫ z', f t S z' ∂D)² ∂D ≤ s2 t. With probability at least
1 - δ,
(1 / T) ∑ t, ∫ f t S dD ≤ (1 / T) ∑ t, f t S (S t) + (1 / T) √(2 (∑ t, s2 t) ln (1 / δ)) + 2 (b - a) ln (1 / δ) / (3 T)
(measureReal_average_integral_gt_le_bernstein). Under uniform variance bound s2 across rounds,
the leading deviation term scales with √(2 s2 ln (1 / δ) / T) instead of (b - a) √(ln (1 / δ) / (2 T)), and vanishes completely (2 (b - a) ln (1 / δ) / (3 T)) in the zero-variance regime
s2 = 0 ([CesaBianchiConconiGentile2004, Section III]).
Main results #
Cslib.MachineLearning.OnlineLearning.measureReal_sum_integral_gt_le_bernstein,Cslib.MachineLearning.OnlineLearning.measureReal_average_integral_gt_le_bernstein: Bernstein online-to-batch conversion in sum and average form with per-round variance boundss2 t.Cslib.MachineLearning.OnlineLearning.measureReal_average_trueRisk_gt_le_bernstein: specialization to the true risks of an online learner's iterates under uniform conditional variances2.Cslib.MachineLearning.OnlineLearning.measureReal_trueRisk_average_gt_le_bernstein: excess true risk boundL_D u + R / T + √(2 s2 ln (1 / δ) / T) + 4 c ln (1 / δ) / (3 T)for the average iterate on convex losses.
References #
Bernstein online-to-batch conversion, sum form: if f t S depends only on examples before
round t, takes values in [a, b] (a ≤ b), and has conditional variance at most s2 t ≥ 0
under D, then with probability at least 1 - δ (δ ∈ (0, 1]),
∑ t, ∫ f t S dD ≤ ∑ t, f t S (S t) + √(2 (∑ t, s2 t) ln (1 / δ)) + 2 (b - a) ln (1 / δ) / 3.
Bernstein online-to-batch conversion, average form: if f t S depends only on examples
before round t, takes values in [a, b], and has conditional variance at most s2 t ≥ 0, then
with probability at least 1 - δ (δ ∈ (0, 1]),
(1 / T) ∑ t, ∫ f t S dD ≤ (1 / T) ∑ t, f t S (S t) + (1 / T) √(2 (∑ t, s2 t) ln (1 / δ)) + 2 (b - a) ln (1 / δ) / (3 T).
Bernstein online-to-batch conversion for the iterates of an online learner: if w t S
depends only on examples before round t, ℓ (w t S) z ∈ [a, b], and the conditional variance of
ℓ (w t S) under D is at most s2 ≥ 0, then with probability at least 1 - δ (δ ∈ (0, 1]),
(1 / T) ∑ t, L_D (w t S) ≤ (1 / T) ∑ t, ℓ (w t S) (S t) + √(2 s2 ln (1 / δ) / T) + 2 (b - a) ln (1 / δ) / (3 T).
Bernstein online-to-batch conversion for convex losses: let ℓ · z be convex on a convex
set K, u ∈ K with ℓ u integrable, |ℓ w z - ℓ u z| ≤ c on K, and let the excess loss
z ↦ ℓ (w t S) z - ℓ u z have conditional variance at most s2 ≥ 0. If w t S ∈ K depends only on
examples before round t and has cumulative online regret at most R, then for T > 0 and
δ ∈ (0, 1], with probability at least 1 - δ, the average iterate has true risk at most
L_D u + R / T + √(2 s2 ln (1 / δ) / T) + 4 c ln (1 / δ) / (3 T).