Dynamic regret of online gradient descent #
Extends CslibFrontier.MachineLearning.OnlineLearning.OnlineGradientDescent from a fixed
comparator u ∈ K to an arbitrary sequence of comparators u : ℕ → E lying in a bounded convex
set K of a real inner product space [Zinkevich2003, Hazan2022]. The path length of u over
T rounds (indexed from 0) is
pathLength u T = ∑ t ∈ Finset.range (T - 1), ‖u (t + 1) - u t‖.
The dynamic regret over T rounds is ∑ t < T, (f t (x t) - f t (u t)), generalizing static
regret (pathLength (fun _ => u₀) T = 0). Because ogd runs unchanged, the per-round triangle
estimate ‖x - u'‖ ^ 2 - ‖x - u‖ ^ 2 ≤ 2 * D * ‖u' - u‖ combines directly with the dynamic
Bregman telescoping theorems of OnlineMirrorDescent (bregman_scaled_dynamic_sum_inner_le and
bregman_dynamic_regret_le) to separate the comparator drift pathLength u T from the static
diameter term D.
Main definitions #
Cslib.MachineLearning.OnlineLearning.OCO.pathLength: comparator path lengthP_T.
Main results #
Cslib.MachineLearning.OnlineLearning.OCO.norm_sub_sq_sub_le: squared-distance shift estimate‖x - w‖ ^ 2 - ‖x - v‖ ^ 2 ≤ 2 * D * ‖w - v‖(shared withAdaGrad).Cslib.MachineLearning.OnlineLearning.OCO.sum_sub_le_sum_inner_dynamic: subgradient linearization against a sequence of comparatorsu : ℕ → E.Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_sum_inner_le: nonincreasing positive step sizes give the drift-weighted dynamic bound against any sequenceuinK.Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_sum_inner_le_of_const: constant step sizec > 0, tracking‖x₀ - u 0‖ ^ 2 / (2 * c) + D / c * pathLength u T.Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_regret_le_fixed: constant step sizeD / (G * √T)yields dynamic regret at mostG * (D + pathLength u T) * √T.Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_regret_le_tuned: path-length-tuned constant step size√(D ^ 2 + 2 * D * P_T) / (G * √T)yields dynamic regret at mostG * √(T * (D ^ 2 + 2 * D * pathLength u T)).Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_regret_le_three_halves: horizon-independent step sizesD / (G * √(t + 1))yield(3 / 2 * D + pathLength u T) * G * √T.Cslib.MachineLearning.OnlineLearning.OCO.ogd_dynamic_regret_le_zinkevich: Zinkevich's1 / √(t + 1)schedule yields(D ^ 2 / 2 + D * pathLength u T) * √T + (√T - 1 / 2) * G ^ 2(dynamic extension of [Zin03]).
References #
Exact section, theorem, and page locators below are unverified against primary PDFs (pending an outside-fleet source check).
- M. Zinkevich, Online Convex Programming and Generalized Infinitesimal Gradient Ascent (locator unverified)
- E. Hazan, Introduction to Online Convex Optimization, 2nd ed. (locator unverified)
Path length P_T = ∑_{t < T - 1} ‖u (t + 1) - u t‖ of a comparator sequence u : ℕ → E over
T rounds indexed from 0. When T ≤ 1 or u is constant, pathLength u T = 0.
Difference of squared distances between a point x and two comparators v, w in a set of
diameter at most D: ‖x - w‖ ^ 2 - ‖x - v‖ ^ 2 ≤ 2 * D * ‖w - v‖.
Subgradient linearization for dynamic regret against any comparator sequence u : ℕ → E in
K: ∑ t < T, (f t (x t) - f t (u t)) ≤ ∑ t < T, ⟪grad t (x t), x t - u t⟫.
Generic dynamic linearized-regret bound for ogd with positive nonincreasing step sizes on a
set of diameter at most D, keeping the per-step drift weight 1 / η t.
Bounding the weighted drift in ogd_dynamic_sum_inner_le by the terminal step size η T
exposes the comparator path length pathLength u (T + 1).
Dynamic linearized regret for ogd with a constant step size c > 0, keeping the exact
initial distance ‖x₀ - u 0‖ ^ 2 / (2 * c) plus the comparator drift term
D / c * pathLength u T.
Dynamic regret of OGD with standard fixed step size η = D / (G * √T):
for a diameter-D set and G-bounded subgradients, dynamic regret over T ≥ 1 rounds against
any comparator sequence u in K is at most G * (D + pathLength u T) * √T. When u is
constant (pathLength u T = 0), this matches ogd_regret_le_fixed.
Optimal path-length-tuned dynamic regret of OGD [Zin03] (locator unverified): when
an upper bound P ≥ pathLength u T is used to tune the constant step size
η = √(D ^ 2 + 2 * D * P) / (G * √T), the dynamic regret over T ≥ 1 rounds is at most
G * √(T * (D ^ 2 + 2 * D * P)).
Linearized dynamic regret with step sizes c / √(t + 1) over T + 1 rounds.
Horizon-independent dynamic regret of OGD: with step sizes D / (G * √(t + 1)), the
dynamic regret after T rounds is at most (3 / 2 * D + pathLength u T) * G * √T, extending
ogd_regret_le_three_halves to any moving comparator sequence u in K.
Dynamic regret under Zinkevich's 1 / √(t + 1) schedule [Zin03] (locator
unverified): for T ≥ 1, dynamic regret after T rounds is at most
(D ^ 2 / 2 + D * pathLength u T) * √T + (√T - 1 / 2) * G ^ 2.