Bregman divergences and adaptive online mirror descent #
Defines the Bregman divergence bregmanDiv ψ gradψ x y = ψ x - ψ y - ⟪gradψ y, x - y⟫ in a real
inner product space E, proves the three-point identity and the generalized Pythagorean
inequality, and derives static and dynamic regret bounds for Online Mirror Descent (OMD)
with time-varying mirror maps, time-varying local seminorms, and optional directional curvature
[Hazan2022, Orabona2019].
An adaptive OMD step (IsAdaptiveOMDStep) at round t with mirror map (ψ t, gradψ t) and
subgradient g t is characterized by the first-order optimality condition for
x (t + 1) ∈ argmin_{y ∈ K} { ⟪g t, y⟫ + bregmanDiv (ψ t) (gradψ t) y (x t) }:
0 ≤ ⟪g t + (gradψ t (x (t + 1)) - gradψ t (x t)), u - x (t + 1)⟫ for all u ∈ K.
Fixed mirror maps with step size η t > 0 (IsOMDStep) embed via (1 / η t) • ψ
(IsOMDStep.toAdaptive), and conjugated metric projections L⁻¹ (Π_{L K} (L y)) (covering
Euclidean OGD, diagonal AdaGrad, and Mahalanobis ONS) satisfy IsAdaptiveOMDStep directly
(isAdaptiveOMDStep_conjMetricProjection).
To support Euclidean (ℓ₂/ℓ₂), non-Euclidean (ℓ₁/ℓ∞), diagonal AdaGrad, and Mahalanobis
ONS geometries—including zero-gradient skip rounds (g t = 0, x (t + 1) = x t)—the master
inequality (omd_adaptive_regret_le) is parameterized by roundwise local seminorms
(primal t, dual t), dynamic comparators u : ℕ → E, and optional directional curvature
μ : ℕ → E → E → ℝ.
Main definitions #
Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv: Bregman divergence generated by(ψ, gradψ).Cslib.MachineLearning.OnlineLearning.OCO.IsAdaptiveOMDStep: first-order optimality condition for one adaptive online mirror descent step onK(absorbing step sizes/preconditioners intogradψ).Cslib.MachineLearning.OnlineLearning.OCO.IsOMDStep: first-order optimality condition for one online mirror descent step onKwith explicit step sizeη.
Main results #
Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_self,Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_three_point,Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_smul,Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_sq_norm_comp_half,Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_sq_norm_half: reflexivity, three-point identity, scaling, quadratic-form and Euclidean specializations.Cslib.MachineLearning.OnlineLearning.OCO.bregman_pythagorean: generalized Pythagorean inequality for Bregman projections.Cslib.MachineLearning.OnlineLearning.OCO.isAdaptiveOMDStep_conjMetricProjection,Cslib.MachineLearning.OnlineLearning.OCO.isOMDStep_metricProjection_euclidean: conjugated and Euclidean metric projections satisfy the OMD optimality conditions.Cslib.MachineLearning.OnlineLearning.OCO.omd_adaptive_step_le,Cslib.MachineLearning.OnlineLearning.OCO.omd_step_le: fundamental single-step inequalities.Cslib.MachineLearning.OnlineLearning.OCO.bregman_dynamic_regret_le,Cslib.MachineLearning.OnlineLearning.OCO.bregman_scaled_dynamic_sum_inner_le,Cslib.MachineLearning.OnlineLearning.OCO.omd_adaptive_regret_le: master telescoping and adaptive local-norm dynamic-comparator regret bounds with directional curvature.Cslib.MachineLearning.OnlineLearning.OCO.omd_sum_inner_le_of_const,Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_const,Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_tuned,Cslib.MachineLearning.OnlineLearning.OCO.omd_sum_inner_le,Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_sqrt: constant, optimally tuned, nonincreasing, and1 / √(t + 1)regret bounds for online mirror descent.
References #
Exact section, theorem, and page locators below are unverified against primary PDFs (pending an outside-fleet source check).
- E. Hazan, Introduction to Online Convex Optimization, 2nd ed. (locator unverified)
- F. Orabona, A Modern Introduction to Online Learning (locator unverified)
Bregman divergence generated by a distance-generating function ψ : E → ℝ with gradient
map gradψ : E → E: B_ψ(x, y) = ψ x - ψ y - ⟪gradψ y, x - y⟫.
Scaling the generator and its gradient by c : ℝ scales the Bregman divergence by c.
Bregman three-point identity: for all x, y, z ∈ E,
B_ψ(x, y) + B_ψ(y, z) - B_ψ(x, z) = ⟪gradψ z - gradψ y, x - y⟫.
Generalized Pythagorean inequality for Bregman projections: if y' satisfies the
first-order optimality condition 0 ≤ ⟪gradψ y' - gradψ y, u - y'⟫ against u, then
B_ψ(u, y') + B_ψ(y', y) ≤ B_ψ(u, y).
For any quadratic generator ψ z = ‖L z‖ ^ 2 / 2 induced by a linear map L : E →ₗ[ℝ] E with
gradient H satisfying ⟪H a, b⟫ = ⟪L a, L b⟫, the Bregman divergence is ‖L (x - y)‖ ^ 2 / 2.
Subsumes Euclidean (L = id), diagonal AdaGrad, and Mahalanobis ONS potentials.
For the Euclidean generator ψ x = ‖x‖ ^ 2 / 2 with gradient gradψ x = x, the Bregman
divergence is half the squared Euclidean distance ‖x - y‖ ^ 2 / 2.
Scaled Euclidean Bregman divergence: for ψ z = c * (‖z‖ ^ 2 / 2) with gradient
gradψ z = c • z, B_ψ(x, y) = c * (‖x - y‖ ^ 2 / 2).
First-order optimality condition for one adaptive online mirror descent step on K with
mirror gradient gradψ (absorbing any step size or preconditioner into gradψ):
x' ∈ argmin_{z ∈ K} { ⟪g, z⟫ + B_ψ(z, x) }.
First-order optimality condition for one online mirror descent step on K:
x' ∈ argmin_{z ∈ K} { η * ⟪g, z⟫ + B_ψ(z, x) }.
A fixed-mirror OMD step with positive step size η > 0 is an adaptive OMD step for the
rescaled mirror gradient (1 / η) • gradψ.
Conjugating metricProjection by a continuous linear equivalence L : E ≃L[ℝ] E with
associated metric operator H (⟪H a, b⟫ = ⟪L a, L b⟫) produces an adaptive OMD step
whenever H y = H x - g.
The metric projection of x - η • g onto a nonempty complete convex set K satisfies
IsOMDStep for the Euclidean mirror map gradψ = id.
Fundamental single-step inequality for adaptive local-norm OMD: under local strong
convexity (1 / 2) * (primal (x - x')) ^ 2 ≤ B_ψ(x', x) and local dual pairing
⟪g, x - x'⟫ ≤ dual g * primal (x - x'), an adaptive mirror step IsAdaptiveOMDStep K gradψ g x x'
satisfies ⟪g, x - u⟫ ≤ B_ψ(u, x) - B_ψ(u, x') + (dual g) ^ 2 / 2.
Zero-gradient skip rounds (g = 0, x' = x, primal = 0, dual = 0, even with ψ = 0) are
handled directly with no positivity side conditions.
Fundamental single-step inequality for online mirror descent: under strong convexity
μ / 2 * (primal (b - a)) ^ 2 ≤ B_ψ(a, b) and dual pairing ⟪a, b⟫ ≤ dual a * primal b,
a mirror step IsOMDStep K gradψ η g x x' with 0 ≤ η satisfies
η * ⟪g, x - u⟫ ≤ B_ψ(u, x) - B_ψ(u, x') + η ^ 2 * dual g ^ 2 / (2 * μ).
Master telescoping inequality for time-varying Bregman descent with dynamic comparators
u : ℕ → E, optional directional curvature μ : ℕ → E → E → ℝ, and per-round stability terms
stab : ℕ → ℝ. Handles T = 0 cleanly via h0_nonneg.
Time-varying scaled Bregman telescoping bound over T + 1 rounds: when the round mirror
map is w t • ψ₀ with nondecreasing nonnegative weights w, bounded Bregman divergence
B_{ψ₀}(u t, x t) ≤ D, and per-step comparator drift bounded by drift t, the linearized
dynamic regret is at most w T * D + ∑ t < T, drift t + ∑ t ≤ T, stab t.
Master dynamic regret bound for adaptive local-norm Online Mirror Descent with
time-varying mirror maps (ψ t, gradψ t), time-varying local seminorms (primal t, dual t),
dynamic comparators u : ℕ → E, and optional directional curvature μ : ℕ → E → E → ℝ
[Orabona2019, Hazan2022] (locators unverified).
Subsumes fixed-mirror OMD (ψ t = ψ / η t), strongly convex OGD (ψ t = (α(t+1)/2) ‖·‖²,
μ t = (α/2) ‖u - x‖²), diagonal AdaGrad (including ε = 0 skip rounds), and Online Newton Step
(ψ t(z) = (β/2) zᵀ A_{t+1} z, μ t(u, x) = (β/2) ⟪g t, u - x⟫²).
Telescoping inner-product bound for online mirror descent with a constant step size
η > 0.
Static regret of online mirror descent with a constant step size η > 0:
∑ t < T, (f t (x t) - f t u) ≤ B / η + T * η * G ^ 2 / (2 * μ).
Static regret of online mirror descent with horizon-tuned constant step size
η = √(2 * μ * B) / (G * √T): ∑ t < T, (f t (x t) - f t u) ≤ G * √(2 * B * T / μ)
[Hazan2022, Orabona2019]. In the Euclidean case μ = 1, B = D ^ 2 / 2, this
recovers G * D * √T.
Telescoping inner-product bound for online mirror descent with arbitrary nonincreasing
positive step sizes η : ℕ → ℝ on a domain whose Bregman divergence to u is bounded by D.
Horizon-independent static regret of online mirror descent with step sizes
η t = √(μ * D) / (G * √(t + 1)):
∑ t < T, (f t (x t) - f t u) ≤ 2 * G * √(D * T / μ) for all T : ℕ.
In the Euclidean case μ = 1, D = diam ^ 2 / 2, this gives √2 * G * diam * √T.