Efficient Algorithms for Online Decision Problems 2: For Nonnegative Decisions and States, FPL*(ε/2A) Has Expected Cost at Most (1 + ε)·min-cost_T + 4AD(1 + ln n)/εResearch Paper
Motivation
Many sequential decision problems have a combinatorial decision set and a linear cost: choosing a path in a graph whose edge delays change every day, choosing a binary search tree for a stream of requests, or choosing one of experts whose losses are revealed after each round. Classical weighted-majority algorithms keep one weight per decision, which is exponential in the size of a path or tree. Kalai and Vempala (J. Comput. System Sci. 71 (2005)) showed that one call per round to an offline optimiser, applied to the cumulative costs plus a random perturbation, already gives online guarantees comparable to those of the exponential-weights algorithms. The idea goes back to Hannan's perturbed algorithm (1957); the paper's contribution is a short, general analysis in the linear setting.
The paper proves two guarantees for Follow the Perturbed Leader. The additive one (Theorem 1.1(a), a sister mission) bounds the regret by a term growing like . This mission formalizes the multiplicative one, Theorem 1.1(b): for nonnegative costs, a variant with exponentially distributed perturbations pays at most a factor more than the best fixed decision in hindsight, plus a term independent of the horizon. Such "small-loss" bounds matter when the best decision has small total cost, since the regret then scales with that cost rather than with .
Setting
Fix a dimension . A decision set and a state set are given; choosing in state costs . In this mission both sets are nonnegative: .
The decision set is accessed only through an argmin oracle with
i.e. with arbitrary tie-breaking. For a state sequence write ; the benchmark is
Two parameters measure the instance: the -diameter for , and the state size for , where .
The algorithm FPL*() acts as follows on each period : draw from the probability law with density
so each coordinate is with standard exponential, and play . Its expected cost against a fixed state sequence is
In Lean these are IsArgminOracle Dset M, laplaceLaw n ε and fplStarExpectedCost M s ε T; is the published OracleRO.ApproxFPL.prefixSum s t.
Formalization targets
Goal: Theorem 1.1(b)
For nonnegative , and ,
Intermediate statements (milestones, in attack order)
- For any fixed : (p. 303, by Lemma 3.1).
- The expected maximum of independent standard exponentials is at most (end of §2, p. 299).
- (pp. 299, 303).
- Equation (7): .
- Equation (6): .
- For : .
- For : .
Statement 7 is the bound for an arbitrary parameter; the goal is its evaluation at .
Significance
The result is the first multiplicative guarantee for a perturbation algorithm that needs only an offline linear optimiser. With tuned to it gives (p. 294). The paper applies it to online shortest paths, to the tree-update problem (giving the first efficient -competitive algorithm there), and to adaptive Huffman coding. The lazy variant FLL* of the same paper, whose per-period behaviour coincides with FPL*, inherits the bound; that is the third mission of this series.
The theorem is proved in the paper; to our knowledge no machine-checked proof exists. This mission produces a formal proof of Theorem 1.1(b) as printed, together with the reusable ingredients: the multivariate Laplace law with its normalisation, its translation identity (7), and the expected maximum of i.i.d. exponentials. The paper's argument has small gaps that a formalization must close, notably the condition , which (b) omits but its proof uses.
Difficulty
The deterministic part is the be-the-leader argument with a shared perturbation; it is a finite-sum induction. The probabilistic part is where the work is. The obvious approach, bounding the difference between following and being the perturbed leader by the measure of a symmetric difference of translated sets as in the additive case, gives an additive term proportional to and cannot give a multiplicative factor. Instead (6) needs the density ratio of under translation by , which requires a change of variables against a density on , together with the nonnegativity of the integrand; without nonnegativity the inequality fails. The bound on requires the expected maximum of exponentials, which is not in Mathlib, and the identification of the coordinates of as independent scaled Laplace variables, which requires factoring a product density.
Formalization scope
Vectors are Fin n → ℝ; is ⬝ᵥ; is written ; is the Lean norm ‖x‖, which on Fin n → ℝ is the sup norm. The decision set is Dset, the diameter Ddiam. States are indexed from ; s 0 is unused. The oracle is a hypothesis IsArgminOracle Dset M on an arbitrary function, so the theorems hold for every tie-breaking rule. The paper's parameters are hypotheses ∀ d d' ∈ Dset, ∑ i, |d i - d' i| ≤ Ddiam and ∀ x ∈ S, ∑ i, |x i| ≤ A. The bound of the paper is not used by part (b) and is omitted.
Hypotheses added to the page, each necessary: measurability of (the expectations presuppose it); ; (the parameter presupposes it); in the goal (used by the proof, p. 303); and only in the statement about a maximum over variables. Two printed slips are corrected, not copied: "exponential distributions with mean " (rate is meant) and "" (an expectation is meant).
Trivializing formalizations are ruled out as follows. The law carries its normalising constant and is shown to be a probability measure in a sorry-free sanity file; it is not the uniform law of FPL. The cost uses , not the be-the-leader . The oracle is not built with Classical.epsilon. All integrands are measurable and bounded (because has finite diameter), so no integral vanishes for lack of integrability; the sanity file checks this on a two-expert instance that satisfies every hypothesis.
A complete development needs Lebesgue change of variables under translation for densities on Fin n → ℝ, Fubini for product densities, the tail-integral formula for expectations, and a union bound. The Laplace law, its translation identity, and the expected maximum of exponentials are reusable beyond this mission; contributions of those as standalone lemmas are welcome.
Selected references
- A. Kalai and S. Vempala, Efficient algorithms for online decision problems, J. Comput. System Sci. 71(3):291–307, 2005. https://doi.org/10.1016/j.jcss.2004.10.016
- J. Hannan, Approximation to Bayes risk in repeated plays, in Contributions to the Theory of Games III, Ann. of Math. Studies 39, Princeton University Press, 1957, pp. 97–139 (reference [14] of Kalai and Vempala).