Documentation

CslibFrontier.MachineLearning.OnlineLearning.OCOLowerBound

Online convex optimization regret lower bound #

Proves the minimax Ω(D * G * √T) regret lower bound for online convex optimization (OCO) against linear (hence convex) G-Lipschitz losses over any convex set K in a real inner product space containing two points at distance D [Haz22] (locator unverified).

The proof runs an oblivious Rademacher adversary f_t(x) = signVal (σ t) * G * ⟪e, x⟫ (signVal : Bool → ℝ from Cslib.BitString, unit vector e parallel to a diameter segment x₀ ± (D / 2) • e ∈ K):

  1. By causality (round t sees only σ 0, …, σ (t - 1)), resampling σ t via Fintype.expect_expect_update pairs opposite signs with the same learner point L.eval σ t, so 𝔼 σ, f_t(x_t) = 0.
  2. Against the hindsight optimum u_σ = x₀ - (sign (∑ t, signVal (σ t)) * D / 2) • e, the cumulative comparator term equals -(D * G / 2) * |∑ t, signVal (σ t)| up to a zero-mean x₀ shift.
  3. The second and fourth moments of S(σ) = ∑ t : Fin T, signVal (σ t) are supplied directly by Cslib.BitString.expect_sq_sum_mul_signVal (𝔼 S² = T) and Cslib.BitString.expect_sum_mul_signVal_pow_four_le (𝔼 S⁴ ≤ 3 T²).
  4. Applying Cauchy–Schwarz twice yields the elementary Khintchine lower bound (∑ S²)³ ≤ (∑ |S|)² * (∑ S⁴), hence √(T / 3) ≤ 𝔼 σ, |S(σ)|.
  5. Averaging over σ : Fin T → Bool produces a realization σ and a point u ∈ K with D * G * √T / (2 * √3) ≤ ∑ t, (f_{σ t} (x_t) - f_{σ t} u).

(This elementary fourth-moment proof gives the constant 1 / (2 √3) ≈ 0.289 in place of the asymptotic 1 / √(2 π) ≈ 0.399 or Littlewood/Szarek 1 / √2 constant, matching the exact D * G * √T scaling of ogd_regret_le_fixed.)

Main definitions #

Main results #

References #

Exact section, theorem, and page locators below are unverified against primary PDFs (pending an outside-fleet source check).

Elementary Khintchine L¹/L² inequality for unweighted Rademacher sums via Cauchy–Schwarz and the exact second/fourth moments in CslibFrontier.Probability.BitString.Rademacher: 2 ^ T * √(T / 3) ≤ ∑ σ : Fin T → Bool, |∑ t : Fin T, signVal (σ t)|.

Hard linear Rademacher loss f_b(x) = signVal b * G * ⟪e, x⟫.

Gradient of rademacherLinear e G b, equal to (signVal b * G) • e.

Exact affine identity for rademacherLinear (subgradient inequality with equality).

rademacherLinear e G b is convex on every convex set K (it is linear).

Gradient norm bound ‖rademacherGrad e G b‖ ≤ G when ‖e‖ ≤ 1 and 0 ≤ G.

A deterministic causal online learner for horizon T against Bool-valued Rademacher signs on a feasible set K ⊆ E: at round t : Fin T, its played point depends strictly on the past signs (i : Fin T) → i < t → Bool.

  • play (t : Fin T) : ((i : Fin T) → i < t → Bool) → E

    Round-t prediction as a function of the strict prefix of past signs.

  • mem (t : Fin T) (h : (i : Fin T) → i < t → Bool) : self.play t h ∈ K

    Every played point belongs to the feasible domain K.

def Cslib.MachineLearning.OnlineLearning.OCO.CausalLearner.eval {E : Type u_1} {K : Set E} {T : ℕ} (L : CausalLearner K T) (σ : Fin T → Bool) (t : Fin T) :
E

The point played by a CausalLearner at round t under sign sequence σ : Fin T → Bool.

theorem Cslib.MachineLearning.OnlineLearning.OCO.sum_rademacherLinear_eval_eq_zero {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {T : ℕ} (L : CausalLearner K T) (e : E) (G : ℝ) :
∑ σ : Fin T → Bool, ∑ t : Fin T, rademacherLinear e G (σ t) (L.eval σ t) = 0

Total loss of any causal learner averaged over all 2 ^ T Rademacher sequences vanishes.

theorem Cslib.MachineLearning.OnlineLearning.OCO.exists_oco_regret_ge {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {x₀ e : E} {D G : ℝ} (hD : 0 ≤ D) (hG : 0 ≤ G) (he : ‖e‖ = 1) (hplus : x₀ + (D / 2) • e ∈ K) (hminus : x₀ - (D / 2) • e ∈ K) (T : ℕ) (L : CausalLearner K T) :
∃ (σ : Fin T → Bool), ∃ u ∈ K, D * G * √↑T / (2 * √3) ≤ ∑ t : Fin T, (rademacherLinear e G (σ t) (L.eval σ t) - rademacherLinear e G (σ t) u)

Minimax Ω(D * G * √T) regret lower bound for online convex optimization [Haz22] (locator unverified): if K contains x₀ ± (D / 2) • e for a unit vector e (‖e‖ = 1), then for every causal learner L and horizon T : ℕ, there exist a Rademacher sign sequence σ : Fin T → Bool and a comparator u ∈ K whose linear G-Lipschitz losses f_t = rademacherLinear e G (σ t) incur regret at least D * G * √T / (2 * √3).