A Dynamic Near-Optimal Algorithm for Online Linear Programming I: The Competitive Ratio of the Dynamic Learning AlgorithmResearch Paper
Why online linear programming under random order
Many resource-allocation problems are decided one request at a time: a seller of airline seats or hotel nights, an ad platform allocating advertiser budgets, a network operator admitting bandwidth requests. Each request asks for a bundle of resources and offers a price. It must be accepted or rejected on arrival, before the later requests are seen. The online linear program is the common model. If the order of arrivals is adversarial, no online algorithm can guarantee more than an fraction of the offline optimum (Babaioff et al. 2008). Under the weaker random permutation model the adversary picks the requests but not their order, and near-optimal guarantees are possible.
Timeline, as surveyed in §1.3 of the paper. Kleinberg (2005) gave a competitive algorithm for the one-dimensional multiple-choice secretary problem and showed that this ratio is best possible, so is necessary for a ratio. Devanur and Hayes (2009) solved a linear program once and used its dual solution as a threshold price for the AdWords problem, with ratio . Feldman et al. (2010) extended one-time learning to general online packing, with a ratio depending on both and and of order in . Agrawal, Wang and Ye (Oper. Res. 2014) re-learn the dual price every time the history doubles and obtain , a guarantee that depends on alone and matches Kleinberg's dependence on up to the factor .
Setting
An instance has columns and constraints. Column carries an objective coefficient and a constraint column , and is the right-hand side. The offline program is
In the random permutation model the columns arrive in the order of a uniformly random permutation of , and is known in advance. At time the algorithm sees and must fix so that for every . An algorithm is -competitive if . Inputs are assumed in general position: for any price vector at most columns satisfy .
For a price vector the threshold rule sets if and otherwise. Fix with an integer, and let and . For , is an optimal dual price of the partial program
The dynamic learning algorithm (DLA) accepts nothing up to time . At a time it proposes and executes the proposal unless a constraint would be violated, in which case . is the optimal value of the program on the first arrivals with right-hand side .
Formalization targets
Goal: Theorem 1
There are absolute constants such that, whenever ,
The constants are left unfixed, so the target states only the shape of the result, under , and survives any improvement of the constants.
Milestones
- Lemma 1 (p. 881). For an optimal primal and an optimal dual price , for every , and under general position the two differ in at most places.
- Lemma 10 (p. 887). The Hoeffding–Bernstein inequality for sampling without replacement: .
- Lemma 5 (p. 884). With probability , for all and all .
- Lemma 6 (p. 884). With probability , for all .
- Lemma 7 (p. 884). .
- Final display of the proof of Theorem 1 (p. 885). and .
Lemmas 5 and 6 carry the paper's condition with the replaced by an absolute constant; their probabilities and bounds are exact.
Significance
Theorem 1 gives a guarantee for general online packing linear programs under a requirement on alone that grows as , the order Kleinberg showed necessary. Together with the paper's Theorem 2, which shows that of order is necessary, it fixes the dependence on and shows that a dependence on cannot be avoided. The paper notes (§5.2) that the guarantee transfers to online integer programs, because the threshold rule outputs integral decisions.
The result is proved on paper but has no machine-checked proof. A formalization adds three things. It gives a verified statement of the exact model: random order as an average over permutations, the online feasibility rule, and the selection among non-unique dual optima. It settles the constants: the paper's proof aims at , , but its union-bound step does not close with , and a formal proof will record constants that do. Finally, it produces reusable infrastructure: complementary slackness for box-constrained packing programs and a Bernstein inequality for sampling without replacement.
Difficulty
The algorithm is simple. The analysis is not. The learned price depends on the same random sample whose later behaviour must be controlled, so no fixed-price concentration bound applies directly. A statement uniform over all prices is needed, and prices must be grouped by the decision patterns they induce, which calls for a combinatorial count of those patterns. The concentration tool itself is not in Mathlib: Mathlib's Hoeffding inequality is for independent summands, and samples drawn without replacement are dependent. On top of these, the per-period bounds have to be combined with the algorithm's executed decisions. Those decisions differ from the threshold decisions whenever a constraint would be violated, and the loss has to be charged to an event of probability at most .
Formalization scope
Columns are Fin n, constraints are Fin m, and all data are real. Time is 0-based in Lean: Lean time is the paper's time . The arrival order is a permutation of Fin n, with column arriving at time . Every expectation and probability over the order is a finite average over all permutations. No measure theory is involved. and are real suprema over feasible sets that are nonempty and bounded whenever , and every statement uses them only at such . The standing assumptions with , with , and general position (for any price vector, as in the paper) are hypotheses. is the natural logarithm.
Optimal dual prices are not unique. The DLA is therefore parametrized by a dual-selection rule, and the theorems hold for every valid rule: one that returns an optimal dual price of the partial program and whose output depends only on the first arrivals. A rule that may return an arbitrary price, or that looks at future arrivals, is excluded. The conclusion of the goal is a lower bound with absolute constants quantified before every instance parameter. It is not satisfied by the algorithm that accepts nothing, and no hypothesis restricts from above.
A complete development needs LP duality and complementary slackness for finite linear programs, a Bernstein-type inequality for sampling without replacement (reusable well beyond this mission), a bound on the number of threshold patterns induced by price vectors, and the combinatorics of uniformly random prefixes of a permutation. Contributions of any of these as standalone results are welcome.
Selected references
- S. Agrawal, Z. Wang, Y. Ye, A Dynamic Near-Optimal Algorithm for Online Linear Programming, Operations Research 62(4):876–890, 2014. https://doi.org/10.1287/opre.2014.1289
- R. Kleinberg, A multiple-choice secretary algorithm with applications to online auctions, SODA 2005. https://dl.acm.org/doi/10.5555/1070432.1070519
- N. Devanur, T. Hayes, The AdWords problem: online keyword matching with budgeted bidders under random permutations, ACM EC 2009. https://doi.org/10.1145/1566374.1566384
- J. Feldman, M. Henzinger, N. Korula, V. Mirrokni, C. Stein, Online stochastic packing applied to display ad allocation, ESA 2010. https://doi.org/10.1007/978-3-642-15775-2_16
- M. Babaioff, N. Immorlica, D. Kempe, R. Kleinberg, Online auctions and generalized secretary problems, SIGecom Exchanges 7(2), 2008. https://doi.org/10.1145/1399589.1399596
- A. W. van der Vaart, J. A. Wellner, Weak Convergence and Empirical Processes, Springer, 1996. https://doi.org/10.1007/978-1-4757-2545-2