Logarithmic Regret Algorithms for Online Convex Optimization 3: Logarithmic Regret of Follow the Approximate LeaderResearch Paper
Motivation
Online convex optimization models repeated decision making against an adversary: in each round a player chooses a point of a convex set, and only then learns the convex cost of that round. It covers online portfolio selection, online regression and routing, and it is the standard lens for analysing learning algorithms that must commit before seeing data. The figure of merit is regret, the player's total cost minus the cost of the best fixed decision in hindsight. For general convex costs regret over rounds is optimal; for costs with curvature it can be logarithmic.
Hazan, Agarwal and Kale (Mach Learn 69 (2007) 169–192) gave several algorithms with regret for -exp-concave costs, the class that contains the log-loss of portfolio selection. This mission formalizes one of them, Follow the Approximate Leader (FTAL). It connects to the oldest online algorithm, Follow the Leader (FTL), which plays the minimiser of all past costs: FTAL is FTL run on quadratic lower models of the costs, and the paper's analysis shows that FTL itself has logarithmic regret on a class of curved costs.
Timeline. Zinkevich (2003) proved regret for online gradient descent on convex costs. Cover (1991) gave a universal portfolio with logarithmic regret for the log-loss, at a running time exponential in the dimension. Kalai and Vempala (2005) analysed perturbed Follow the Leader through the "be the leader" argument. Hazan, Agarwal and Kale (2007) gave efficient algorithms (Online Newton Step, FTAL, EWOO) with regret for exp-concave costs.
Setting
The decision set is nonempty, convex, closed and bounded, and bounds its diameter: for . In rounds the player picks and then pays , where is a cost function differentiable at the points of with gradient norm on . The cost is -exp-concave () if is concave on . The regret over rounds against a comparator is .
Follow the Leader plays (any point of in round 1). Follow the Approximate Leader (version 1 of the paper's Fig. 3) with parameter plays FTL on the approximate costs
In the Lean development these are IsFTLRun P f x and IsFTALRun P β f x, predicates on a whole trajectory .
Formalization targets
Goal: Theorem 6
With , every FTAL run on -exp-concave costs satisfies, for every and ,
This is the paper's statement with its constant, stated for the algorithm as defined, and for every adversarial sequence of costs.
Milestones
- Lemma 3: an -exp-concave cost with gradients bounded by lies above the paraboloid on .
- Lemma 9: regret on lower surrogates that touch the costs at the played points dominates the true regret.
- Lemma 10: for an FTL run ("be the leader").
- Lemma 12: for .
- Lemma 11: with .
- Theorem 5 (corrected constant): FTL on costs with , , has regret at most .
Significance
Theorem 6 shows that a simple rule, re-solving a convex quadratic program over all past linearized costs, achieves regret on exp-concave costs, matching the Online Newton Step up to constants. Theorem 5 is of independent interest: it shows that unmodified Follow the Leader, which has linear regret on linear costs, has logarithmic regret whenever each cost is a strongly curved function of one linear form. Portfolio selection is such a case. The appendix lemmas (log-determinant potential, elliptical potential) are standard tools reused throughout the bandit and online-learning literature.
On formalization: the results are proved on paper; none is formalized. The Lean development provides a reusable encoding of Follow the Leader as a trajectory predicate, the "be the leader" reduction, the surrogate reduction for regret, and the matrix potential inequalities, which the Online Newton Step analysis also needs. The paper's printed statements of Theorem 5 and Lemma 10 contain errors (see below); this mission states corrected versions that suffice for the goal.
Difficulty
The obvious attempt, bounding each term by how far the leader moves, requires knowing how far the minimiser of a constrained problem moves when one cost is added. For unconstrained strongly convex quadratics this is an explicit Newton step, but here the minimiser lies in a general convex set and each cost contributes curvature in only one direction, so the accumulated curvature can be singular for many rounds and no per-round strong convexity is available. Turning the per-round movement into a sum that grows only like , with the paper's explicit constant, is the core of the work; the printed Theorem 5 bound is negative for small , so the constants must be tracked exactly rather than asymptotically.
Formalization scope
Points are in EuclideanSpace ℝ (Fin n) so that is the Euclidean norm; cost functions are functions on all of , differentiable at the points of , with Mathlib's gradient. Rounds are -based; and are unused. is any upper bound on pairwise distances in . Exp-concavity is ConcaveOn ℝ P (fun x => Real.exp (-α * f t x)). Algorithms are predicates on the trajectory, required at every round, so every tie-breaking rule is covered and adaptive adversaries are included.
Regret is always stated against every comparator . A formalization with a real-valued ⨅/sInf over , or one that bounds the regret of an arbitrary sequence of points rather than of an FTAL run with the paper's , would be trivial or false, and is excluded: the goal carries IsFTALRun with .
Corrections and conventions relative to the printed paper:
- Theorem 5: the printed bound is false when . The milestone states the bound the paper's proof gives, , which implies the printed one when . Derivatives are
derivwith explicit differentiability at the points , . - Lemma 10: printed with , under which it is false at ; the proof and its use require the FTL index , which is stated.
- Lemma 11: the typo is read as , and is stated.
- Lemma 3: is added (the proof divides by ), and so that is meaningful.
- Theorem 6: "" is read as -valued; only first-order differentiability is assumed; . The theorem is true as printed, although the paper's route through the printed Theorem 5 is invalid for .
- Only version 1 of FTAL is formalized; Lemma 4 (equivalence with the pseudoinverse form) is out of scope.
Needed infrastructure: first-order optimality for convex minimisation over a convex set, a mean-value theorem along segments, determinants and eigenvalues of symmetric positive definite matrices (Mathlib has most of this), and the matrix inequality . Contributions welcome: proofs of any milestone, and a proof of the goal from the milestones.
Selected references
- E. Hazan, A. Agarwal, S. Kale, Logarithmic regret algorithms for online convex optimization, Machine Learning 69 (2007), 169–192. https://doi.org/10.1007/s10994-007-5016-8
- M. Zinkevich, Online convex programming and generalized infinitesimal gradient ascent, ICML 2003. https://dl.acm.org/doi/10.5555/3041838.3041955
- T. M. Cover, Universal portfolios, Mathematical Finance 1 (1991), 1–29. https://doi.org/10.1111/j.1467-9965.1991.tb00002.x
- A. Kalai, S. Vempala, Efficient algorithms for online decision problems, J. Comput. System Sci. 71 (2005), 291–307. https://doi.org/10.1016/j.jcss.2004.10.016
- E. Hazan, Introduction to Online Convex Optimization, Foundations and Trends in Optimization 2 (2016). https://arxiv.org/abs/1909.05207