Online Newton Step for exp-concave losses #
An α-exp-concave function f on a convex set K (IsExpConcaveOn K α f, α > 0) satisfies
ConcaveOn ℝ K (fun x => Real.exp (-α * f x)) [Hazan2022, HazanAgarwalKale2007]. Exp-concave
functions are convex (IsExpConcaveOn.convexOn), monotone in α (IsExpConcaveOn.mono), and
admit a directional quadratic lower bound (IsExpConcaveOn.quadratic_lower_bound,
IsExpConcaveOn.quadratic_lower_bound_of_bounds): for 0 < β ≤ (1 / 2) * min (1 / (4 * G * D)) α,
diameter D, and gradients of norm at most G,
f x + ⟪g, y - x⟫ + (β / 2) * ⟪g, y - x⟫ ^ 2 ≤ f y.
Online Newton Step (ons) [HazanAgarwalKale2007, Hazan2022] on a nonempty closed convex set
K ⊆ EuclideanSpace ℝ (Fin d) maintains the regularized gradient outer-product matrix
A 0 = ε • 1, A (t + 1) = A t + vecMulVec g_t g_t (with g_t = grad t (x t)), takes the
preconditioned Newton step x t - (1 / β) • A (t + 1)⁻¹ g_t, and projects back onto K under the
Mahalanobis norm induced by A (t + 1) (mahalanobisProj). Because A (t + 1) is positive
definite (onsGram_posDef), conjugating Cslib.metricProjection by the symmetric square root
CFC.sqrt A constructs mahalanobisProj directly with existence, uniqueness
(mahalanobisProj_eq_iff_isMinOn), the generalized Pythagorean inequality
(mahalanobisProj_pythagorean), and the adaptive OMD optimality condition
(isAdaptiveOMDStep_mahalanobisProj).
Applying the master adaptive local-norm OMD inequality with directional curvature
(omd_adaptive_regret_le) to ψ t z = (β / 2) * mahalanobisSq (A (t + 1)) z and
μ t u x = (β / 2) * ⟪g t, u - x⟫ ^ 2 cancels the inter-round potential drift identically against
the exp-concavity curvature term. Combining the resulting dual-norm sum with the elliptical
potential / log-determinant lemma
(elliptical_potential_le: ∑ t < T, g_tᵀ A_{t+1}⁻¹ g_t ≤ d * log (1 + T * G ^ 2 / (d * ε)),
proved via the matrix determinant lemma det_sub_vecMulVec_self and the eigenvalue AM–GM bound
log_det_le_card_mul_log_trace_div) yields:
ons_regret_le: exact closed-form regret bound(β * ε / 2) * D ^ 2 + (d / (2 * β)) * log (1 + T * G ^ 2 / (d * ε))for alld, T : ℕ.ons_regret_le_log: forβ = (1 / 2) * min (1 / (4 * G * D)) αandε = 1 / (β ^ 2 * D ^ 2), regret at most5 * (1 / α + G * D) * d * log (T + 1)for alld, T : ℕ.
Main definitions #
Cslib.MachineLearning.OnlineLearning.OCO.IsExpConcaveOn:α-exp-concavity onK.Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisSq,Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisProj: Mahalanobis squared norm and generalized projection ontoK.Cslib.MachineLearning.OnlineLearning.OCO.ONSState,Cslib.MachineLearning.OnlineLearning.OCO.onsState,Cslib.MachineLearning.OnlineLearning.OCO.ons,Cslib.MachineLearning.OnlineLearning.OCO.onsGram: Online Newton Step algorithm.
Main results #
Cslib.MachineLearning.OnlineLearning.OCO.IsExpConcaveOn.convexOn,.mono,.quadratic_lower_bound,.quadratic_lower_bound_of_bounds,Cslib.MachineLearning.OnlineLearning.OCO.isExpConcaveOn_sq_norm_sub: properties and quadratic lower bound for exp-concave functions.Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisProj_mem,Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisProj_isMinOn,Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisProj_eq_iff_isMinOn,Cslib.MachineLearning.OnlineLearning.OCO.mahalanobisProj_pythagorean,Cslib.MachineLearning.OnlineLearning.OCO.isAdaptiveOMDStep_mahalanobisProj: existence, uniqueness, Pythagorean inequality, and adaptive OMD optimality for Mahalanobis projections.Cslib.MachineLearning.OnlineLearning.OCO.elliptical_potential_le: elliptical potential / log-determinant bound.Cslib.MachineLearning.OnlineLearning.OCO.ons_regret_le,Cslib.MachineLearning.OnlineLearning.OCO.ons_regret_le_log: logarithmicO((d / α) log T)regret bounds for Online Newton Step.
References #
Exact section, lemma, and theorem numbers in the sources below are unverified against primary PDFs.
- E. Hazan, Introduction to Online Convex Optimization, 2nd ed. (locators unverified)
- E. Hazan, A. Agarwal, S. Kale, Logarithmic Regret Algorithms for Online Convex Optimization (locators unverified)
Exp-concave functions and quadratic lower bound #
A function f : E → ℝ is α-exp-concave on K if α > 0 and x ↦ exp (-α * f x) is concave
on K [Hazan2022, HazanAgarwalKale2007].
Every α-exp-concave function is convex on K.
Monotonicity of exp-concavity in α: if f is α-exp-concave and 0 < α' ≤ α, then f is
α'-exp-concave.
Quadratic lower bound for exp-concave functions (compare [Haz22],
[HAK07]): if f is α-exp-concave on K, f has gradient g at x ∈ K within
K, 0 < β, 2 * β ≤ α, and -(3 / 4) ≤ 2 * β * ⟪g, y - x⟫, then
f x + ⟪g, y - x⟫ + β / 2 * ⟪g, y - x⟫ ^ 2 ≤ f y.
Quadratic lower bound under diameter and gradient bounds [Hazan2022, HazanAgarwalKale2007]:
for 0 < β with 2 * β ≤ α and β * G * D ≤ 3 / 8 (covering the standard choice
β ≤ (1 / 2) * min (1 / (4 * G * D)) α), ‖g‖ ≤ G, and ‖y - x‖ ≤ D,
f x + ⟪g, y - x⟫ + β / 2 * ⟪g, y - x⟫ ^ 2 ≤ f y.
Squared Euclidean distance x ↦ ‖x - c‖ ^ 2 is 1 / (2 * B ^ 2)-exp-concave on any convex
set K contained in the closed ball of radius B > 0 around c.
Mahalanobis quadratic form and generalized projection #
The Mahalanobis squared norm vᵀ A v on EuclideanSpace ℝ (Fin d) induced by a matrix
A : Matrix (Fin d) (Fin d) ℝ.
Mahalanobis projection onto K ⊆ EuclideanSpace ℝ (Fin d) with respect to a matrix A:
when A is positive definite and K is nonempty, closed, and convex, this is the unique minimizer
of z ↦ (z - y)ᵀ A (z - y) over K, obtained by conjugating Cslib.metricProjection by
CFC.sqrt A.
Existence and uniqueness of the Mahalanobis projection: for positive definite A and
nonempty closed convex K, a point x ∈ K equals mahalanobisProj K A y iff it minimizes
z ↦ mahalanobisSq A (z - y) over K.
mahalanobisProj K A y minimizes z ↦ (z - y)ᵀ A (z - y) over K.
Generalized Pythagorean inequality for Mahalanobis projection: for positive definite A
and u ∈ K, (mahalanobisProj K A y - u)ᵀ A (mahalanobisProj K A y - u) ≤ (y - u)ᵀ A (y - u).
Adaptive OMD optimality for Mahalanobis projection: for positive definite A, β > 0,
and nonempty closed convex K, the Mahalanobis-projected Newton step satisfies
IsAdaptiveOMDStep for the mirror gradient z ↦ β • A z.
Elliptical potential / log-determinant lemma #
Rank-one downdate determinant identity (matrix determinant lemma): for positive definite M
and any v : Fin d → ℝ, (M - vecMulVec v v).det = (1 - v ⬝ᵥ (M⁻¹ *ᵥ v)) * M.det.
Elliptical potential / log-determinant lemma [Hazan2022, HazanAgarwalKale2007]: for
A t = ε • 1 + ∑ s < t, vecMulVec (g s) (g s) with ε > 0, 0 < d, and ‖g t‖ ≤ G for t < T,
∑ t < T, g tᵀ A (t + 1)⁻¹ g t ≤ d * log (1 + T * G ^ 2 / (d * ε)).
Online Newton Step algorithm and logarithmic regret bounds #
State of Online Newton Step: current iterate point and accumulated regularized outer-product
matrix gram = ε • 1 + ∑ s < t, g_s g_sᵀ.
Current decision point in
EuclideanSpace ℝ (Fin d).Regularized gradient outer-product matrix
A t.
Causal state sequence of Online Newton Step (ONS) [HazanAgarwalKale2007, Hazan2022] on
K ⊆ EuclideanSpace ℝ (Fin d) with subgradient oracle grad, curvature parameter β,
regularization ε, and starting point x₀.
Iterate sequence of Online Newton Step.
Accumulated matrix A t = ε • 1 + ∑ s < t, g_s g_sᵀ of Online Newton Step.
Closed-form regret bound for Online Newton Step [Hazan2022, HazanAgarwalKale2007]: for
α-exp-concave differentiable losses on a nonempty closed convex set K ⊆ EuclideanSpace ℝ (Fin d)
of diameter at most D, gradients of norm at most G, and parameters β, ε > 0 satisfying
2 * β ≤ α and β * G * D ≤ 3 / 8, the regret after T rounds against every u ∈ K is at most
(β * ε / 2) * D ^ 2 + (d / (2 * β)) * Real.log (1 + T * G ^ 2 / (d * ε)).
Logarithmic regret of Online Newton Step [HazanAgarwalKale2007, Hazan2022]: for
α-exp-concave differentiable losses on a nonempty closed convex set K ⊆ EuclideanSpace ℝ (Fin d)
of diameter at most D > 0 and gradients of norm at most G > 0, tuning
β = (1 / 2) * min (1 / (4 * G * D)) α and ε = 1 / (β ^ 2 * D ^ 2) guarantees regret at most
5 * (1 / α + G * D) * d * Real.log (T + 1) against every u ∈ K and for every d, T : ℕ.