Motivation
Online bipartite matching asks an algorithm to assign arriving requests to resources it cannot reassign later. In display advertising, the requests are page views (impressions) and the resources are advertisers who have bought a fixed number of impressions in advance; each impression must be served immediately or lost. In the adversarial model, Karp, Vazirani and Vazirani (STOC 1990) showed that the RANKING algorithm achieves a 1−1/e fraction of the optimum in expectation, and that no online algorithm does better. Advertising systems, however, have historical traffic data, which motivates the i.i.d. model: the impression types are drawn independently from a distribution that is known in advance.
Feldman, Mehta, Mirrokni and Muthukrishnan (arXiv:0905.4100, FOCS 2009) were the first to beat 1−1/e in this model, with an algorithm that achieves ≈0.67 with high probability. Their Section 3 asks the complementary question: how close to 1 can any online algorithm get when the distribution is known? Their Theorem 3 answers that the expected approximation factor of every online algorithm is bounded strictly away from 1, already on a graph with six vertices. Later work in the same model (Manshadi, Oveis Gharan and Saberi, SODA 2011, arXiv:1007.1673) sharpened both the algorithmic and the hardness side.
Setting
An instance consists of a bipartite graph G=(A,I,E) between a finite set A of advertisers and a finite set I of impression types, a distribution D on I, and a number n of arrivals. In this mission D is the uniform distribution on I. Online, n impressions arrive one at a time; their types ω(0),…,ω(n−1) are independent draws from D. When impression t arrives, the algorithm must immediately either assign it to an advertiser a with (a,ω(t))∈E that has not yet been used, or leave it unassigned. Each advertiser can be used at most once, and decisions are final.
A deterministic online algorithm decides what to do with arrival t from the types ω(0),…,ω(t) seen so far; it knows G, D and n, but not the future. A randomized online algorithm is a probability distribution over deterministic ones. ALG(ω) is the number of impressions the algorithm assigns on the arrival sequence ω. OPT(ω) is the size of a maximum matching of the realization graph, which has one node per arrival t, joined to every advertiser adjacent to ω(t): the most impressions that could have been assigned with hindsight. The expected approximation factor of an algorithm is
E[OPT(ω)ALG(ω)],
the expectation taken over the algorithm's randomness and the arrivals.
The 6-cycle instance has A={a,b,c}, I={x,y,z} and E={(x,a),(y,a),(y,b),(z,b),(z,c),(x,c)}, with the uniform distribution and n=3. The family Γk consists of k disjoint copies of the 6-cycle, with the uniform distribution on its 3k impression types and n=3k arrivals.
Formalization targets
Goal: Theorem 3
On the 6-cycle, every randomized online algorithm satisfies
E[OPTALG]≤2726,
and there are a constant c<1 and a threshold K0 such that for every k≥K0 and every randomized online algorithm on Γk,
E[OPTALG]≤c.
The second part is the paper's "there exists a family of instances with n→∞ for which no algorithm can achieve an expected approximation of 1−o(1)", stated on the paper's own family. It leaves c unspecified: Appendix B estimates c≈0.9898 through approximate counts, and a sharper constant would not invalidate the goal.
Milestones
- The (x,y,y) scenario (§3, p. 4). For every deterministic online algorithm on the 6-cycle and every type u of the first arrival there is a type v with ALG(u,v,v)≤2 and OPT(u,v,v)=3.
- Theorem 3, first sentence (p. 4). The bound 26/27 on the 6-cycle, for every randomized online algorithm.
Significance
Theorem 3 sets the ceiling against which algorithms in the i.i.d. model are measured. It rules out an online algorithm with expected factor arbitrarily close to 1, even though the distribution is known and the instance is tiny, so a constant-factor gap between online and offline matching is intrinsic to the model and not an artefact of adversarial arrivals. The paper's positive results (1−1/e for the Suggested Matching algorithm, ≈0.67 for Two Suggested Matchings) sit between 1−1/e and this ceiling.
The single-instance bound has a short counting proof. The family statement is argued in the paper only in outline: Appendix B approximates the fractions of copies receiving 1, 2, 3 or more impressions, assumes the most favourable outcome on each, and reports the resulting ratio as approximately 0.9898. A machine-checked proof of the family statement would turn that sketch into a theorem with an explicit constant. To our knowledge neither part has been formalized before.
Difficulty
The single-cycle bound reduces to a finite check, but the paper's "without loss of generality (from the symmetry of the 6-cycle)" hides the cases the algorithm can choose: assigning the first impression to either neighbour, or not assigning it at all. Each case needs its own bad continuation. The passage from deterministic to randomized algorithms is an averaging step.
The family bound is harder. On Γk the algorithm sees all arrivals in all copies and may coordinate its decisions across copies, so the per-copy loss of the single cycle does not transfer by independence. Moreover the target is the expectation of a ratio, E[ALG/OPT], not a ratio of expectations: a bound on the expected loss must be combined with concentration of the number of copies that receive exactly three impressions, and with a lower bound on OPT that holds with high probability. The approximations "≃3/e3, 9/(2e3), 27/(6e3)" of Appendix B have unquantified errors and cannot be used as they stand.
Formalization scope
The model is formalized for general finite A and I with uniform arrivals. Arrival sequences are functions Fin n → I. A deterministic online algorithm is a function that receives the time t, the prefix of the first t types (Fin t → I) and the current type, and returns an advertiser or none; it cannot read later arrivals. A proposal of a non-adjacent or already used advertiser leaves the impression unassigned, so the encoding covers all online algorithms, including ones that skip an impression while a neighbour is free. A randomized online algorithm is a probability distribution (PMF) on the finite type of deterministic algorithms; by Kuhn's theorem this is equivalent to fresh random choices at each step. OPT is the maximum size of an injective, edge-respecting partial assignment of arrivals to advertisers. The expected approximation factor is a finite average over all ∣I∣n arrival sequences, weighted by the algorithm distribution.
The explicit instantiations of the paper's asymptotic wording are as follows:
- "no algorithm can achieve an expected approximation of 1−o(1)" becomes ∃c<1, ∃K0, ∀k≥K0, ∀P: E[ALG/OPT]≤c on Γk, with n=3k tied to k, and with c and K0 chosen before k and before the algorithm.
- The paper's constant 0.9898 is not part of the statement.
Lean's division sets x/0=0. A formalization of the form "there is an instance on which every algorithm has expected factor at most 26/27" would be satisfied trivially by a graph without edges, where OPT=0; the statements here are on the paper's explicit instances, where every impression type has an adjacent advertiser and OPT≥1 on every arrival sequence.
A complete development needs finite case analysis on runs of online algorithms, averaging over mixed strategies, and, for the family, concentration inequalities for occupancy counts (Azuma or McDiarmid, both available on the platform) together with bounds on maximum matchings of disjoint unions. The online-algorithm model and the averaging lemmas are reusable for other lower bounds in the i.i.d. model. Proofs of either milestone, and independent proofs of the family statement with any explicit c<1, are welcome.
Selected references
- J. Feldman, A. Mehta, V. Mirrokni, S. Muthukrishnan, Online Stochastic Matching: Beating 1-1/e, FOCS 2009; arXiv:0905.4100v1. https://arxiv.org/abs/0905.4100
- R. M. Karp, U. V. Vazirani, V. V. Vazirani, An optimal algorithm for on-line bipartite matching, STOC 1990. https://doi.org/10.1145/100216.100262
- V. H. Manshadi, S. Oveis Gharan, A. Saberi, Online Stochastic Matching: Online Actions Based on Offline Statistics, SODA 2011; arXiv:1007.1673. https://arxiv.org/abs/1007.1673