Manuscript Offprint
arXiv:2610.41136The Competitive Ratio of Online Budgeted Allocation is Strictly Smaller than
Abstract
A well-known conjecture in online algorithms is that the (randomized) competitive ratio of online budgeted allocation is . We refute this conjecture and show that every randomized online algorithm has competitive ratio at most for a (small) absolute constant .
1 Introduction
We study the online budgeted allocation problem. In this problem, a set of items arrive online and have to be assigned to a set of advertisers, where each advertiser has a non-negative budget given offline. When item arrives online, each advertiser places a non-negative bid on the item. The online algorithm can assign item to any advertiser and earn a payment of , where is the remaining budget of advertiser . Correspondingly, the remaining budget of advertiser is reduced by this payment. The goal of the online algorithm is to maximize the total revenue, which is the sum of payments for all items.
When all budgets are 1 and all bids are either 0 or 1, online budgeted allocation is the same as online bipartite matching. For the latter problem, the tight (randomized) competitive ratio is , achieved by the RANKING algorithm of Karp, Vazirani, and Vazirani [KVV90] (see also [GM08, BM08, DJK13]). The maximum bid-to-budget ratio (call it ) is 1 for online bipartite matching. Motivated by applications in online advertising, Mehta, Saberi, Vazirani, and Vazirani [MSVV07] considered the contrasting situation where , and called this the AdWords problem. Generalizing a previous algorithm of Kalyanasundaram and Pruhs [KP00] for b-matching, they obtained a deterministic algorithm for AdWords whose competitive ratio tends to as [MSVV07] (see also [BJN07]). This latter result also shows that for online budgeted allocation (with arbitrary ), there is a fractional algorithm with a competitive ratio of .
But, what about general bids and budgets? Motivated by the above results, a well-known conjecture in online algorithms says that the randomized competitive ratio of online budgeted allocation is (for any bids and budgets). However, progress toward this conjecture has been slow. The greedy algorithm that assigns every item to the advertiser that would maximize its payment for the item has a competitive ratio of . Obtaining a better competitive ratio (using a randomized algorithm, since there is a simple upper bound of for deterministic algorithms) for the online budgeted allocation problem was a major open problem for more than a decade. In a recent breakthrough result, Huang,
*Department of Computer Science, Duke University. Email: debmalya@cs.duke.edu. Supported in part by NSF grant CCF-2329230.
†Duke University. Email: ian.zhang@duke.edu.
Zhang, and Zhang [HZZ24] obtained a competitive ratio of 0.5016, thereby slightly improving on the bound given by the greedy algorithm, but providing further evidence that the eventual competitive ratio might turn out to be . Thereafter, this bound was improved by Chen, Huang, and Sun to 0.504 [CHS24], and this is the best bound currently known for the problem.
In this paper, we show that the competitive ratio of any (randomized) algorithm for online budgeted allocation is at most , for some absolute constant (of the order of ). This refutes the conjectured randomized competitive ratio of . Furthermore, in conjunction with the algorithmic results of [HZZ24, CHS24], it shows that the competitive ratio lies strictly in the interval .
Our construction is quite simple: it uses a budget of 1 for every advertiser, and only four different bid values: 0, 1/2, 3/4, and 1. We hope this simplicity will help in future research that tries to narrow the gap between the upper and lower bounds for this problem.
We state our main result below.
Theorem 1. There are constants and such that, for every integer and every randomized online algorithm , some fixed input on unit-budget advertisers with bids in satisfies
Let us start by recalling the standard upper bound of . All advertisers have a budget of 1. The construction has rounds, where in each round, an item is presented that has a bid value of 1 from each remaining advertiser. Once the algorithm assigns this item, one advertiser chosen uniformly at random is removed from the remaining set, before continuing on to the next round. When an advertiser is removed, all its bids on subsequent items are of value 0.
Our new construction is similar in that there are multiple rounds, where advertisers are removed after rounds. These rounds are organized into three phases: we call these the first, middle, and final phases. The first and final phase are very similar to the standard construction, but the middle phase is different.
First phase. The first phase comprises rounds. (Assume w.l.o.g. that is a multiple of 3.) Each round has a single item with a bid of from each remaining advertiser. After the algorithm assigns the item, an advertiser chosen uniformly at random is removed from the remaining set, before continuing on to the next round. In essence, this is identical to the classical construction, except that the bid values on the items are instead of 1. Note that the number of remaining advertisers at the end of this phase is .
Middle phase. Fix an even number , to be chosen at the end of the proof. Arbitrarily partition the remaining advertisers into groups of size each, and further split each group into two halves of size each. Order the groups arbitrarily and denote the subgroups for the th group. (Assume w.l.o.g. that is a multiple of . Note that is chosen to be even; hence, is an integer.)
There are rounds in the middle phase. The th round comprises three consecutive items with the following bids (all other advertisers bid 0):
-
Item 1: All advertisers in the th group bid 1 for the item.
-
Item 2: All advertisers in the th group bid 1/2 for the item.
-
Item 3: Choose one of the two subgroups , with probability 1/2 each. All advertisers in the chosen subgroup bid 1/2 for the item.
After all items have been assigned, choose an advertiser uniformly at random from each subgroup and remove them from the remaining set. (For notational convenience, we perform this removal of advertisers only after all the rounds have been completed, i.e., all items have been assigned.)
Note that this removes a total of advertisers in the middle phase. We denote the number of remaining advertisers .
Final phase. The final phase comprises rounds. This phase is identical to the classical construction. Each round has a single item with a bid of 1 from each remaining advertiser. After the algorithm assigns the item, an advertiser chosen uniformly at random is removed from the remaining set, before continuing on to the next round.
We denote the overall input distribution constructed across the three phases .
3 Proof of Theorem 1
3.1 Optimal Revenue
We start by establishing the revenue OPT of an optimal solution.
Lemma 2. Every input in the support of has OPT = 11N/12.
Proof. In the first phase, assign each item to the advertiser removed immediately afterward. This collects 3/4 per item and leaves every surviving advertiser's budget full at the beginning of the middle phase. During the middle phase, for a group where advertisers in (resp., ) bid for item 3, give item 1 to the advertiser to be removed from (resp., ), and both items 2 and 3 to the advertiser to be removed from (resp., ). This collects 2 and leaves all advertisers surviving into the final phase with full budgets. In the final phase, again assign each item to the advertiser removed immediately afterward, collecting 1. The total is . Note that this allocation collects the maximum bid on every item, which is also an upper bound on any allocation.
3.2 A Potential Function to Bound the Algorithm's Revenue
We are now left to upper bound the expected revenue of any deterministic online algorithm on an input drawn from .
Fix an arbitrary deterministic online algorithm and let ALG denote the algorithm's revenue. We will analyze the algorithm using a potential function that changes through the course of the algorithm. Let the initial and final values of be and respectively. During the course of the algorithm, the value of changes due to two types of events: (a) when the algorithm assigns an item to an advertiser, and (b) when one or more advertisers is removed from the set of remaining advertisers. It will turn out that the expected value of the potential function does not change for events of type (b). We denote the change in due to the algorithm's assignment of item to be .
Our potential will satisfy . Since (recall that does not change in expectation due to removal of an advertiser), this allows us to bound by the sum of and the expected values of the local changes . Throughout the proof, unless conditioned otherwise, expectations are over the input distribution .
Now, we are ready to define the potential function . First, define the capped remaining budget of an advertiser whose remaining budget is to be
Let be the total revenue collected by the algorithm after assigning items , and let be the average value of over the remaining advertisers at this stage. (By convention, when there is no remaining advertiser at the end, then .) Set to be a fixed scaling factor. Define the potential
(As an aside, we show in Appendix A that the same potential with replaced by recovers the upper bound for the standard upper-triangular instance.)
We now bound the expected revenue of the algorithm using the changes in potential .
Lemma 3. The expected revenue of the algorithm satisfies
Proof. Let us first note the initial and final values of the potential function . Initially, for each advertiser. Therefore, the initial value is . At the end of the algorithm, the set of remaining advertisers is empty and we define to be 0. Therefore, the final value is .
In order to claim that , we now show that each removal of advertiser(s) does not change in expectation. The removal of an advertiser can only affect in (1), so we show that is preserved. In the first and final phases, the next advertiser removed is uniform among the advertisers still present, and removing a uniformly chosen advertiser preserves the average capped budget in expectation. For removals in the middle phase, each removed advertiser is uniformly chosen from their respective halves and . Therefore, all advertisers have the same probability of being removed, and hence, the expectation of is again unchanged.
We now write the changes in terms of the change to the revenue collected by ALG for item , and the change in . For the first part, let be the revenue collected by ALG for item . To define the change in precisely, let denote the number of remaining advertisers just before assigning item . Suppose is the remaining budget of the advertiser that item is assigned to. Define to be the decrease in the advertiser's capped budget caused by this assignment. We have
3.3 Change in Potential for the Three Phases
It now suffices to bound the local changes to the potential in each of the three phases. We begin by bounding in the first phase.
Lemma 4. For every item t arriving in the first phase, we have
Proof. Since the only positive bids in the first phase have value 3/4, the remaining budgets of the advertisers must belong to . If the algorithm assigns item to an advertiser with budget 1, we have which gives the desired bound on .
Now recall that is the number of advertisers remaining after the first phase. Assigning to an advertiser with budget gives and . Its change is smaller because
since and . Finally, assigning to an advertiser with budget 0 or to a removed advertiser gives a change of 0, whereas the stated bound on is positive because .
We now consider the middle phase.
Lemma 5. Let items be the items corresponding to a group in the middle phase. Then,
The expectation is over the random choice of which subgroup bids for item 3.
Proof. Throughout the assignment of these items, there are advertisers present, and hence, a payment of consuming capped budget changes the potential by .
Now, consider only the group corresponding to these items. All remaining advertiser budgets in this group are in . The first item has a bid of 1. We do a case analysis for assigning this item to advertisers with the three possible remaining budgets. Assigning it to an advertiser with budget 1 gives a change . Assigning it to an advertiser with budget gives , which is smaller than by . Finally, a 0 payment changes the potential by 0, which is also less than . Thus, in all three cases, we have .
Now, we consider the second and third items. First, note that after assigning the first item, the remaining advertiser budgets still belong to . We again do a case analysis for the second item. Assigning the item to an advertiser with remaining budget 1 changes the potential by . Assigning the item to an advertiser with remaining budget changes the potential by , which is smaller than the previous case since
Finally, a 0 payment is also smaller than . Thus .
The second item creates at most one advertiser with remaining budget 1/2. All other advertisers still have remaining budgets in . Recall that the third item is bid for by either or , chosen uniformly. Thus, if there exists an advertiser with remaining budget 1/2, it lies on the side that bids for the third item with probability 1/2. By the calculation for , assigning the third item to an advertiser with budget 1 or 1/4 still produces a change of at most . Assigning it to an advertiser with budget 1/2 instead produces a change of
The extra is available only if the unique advertiser with remaining budget 1/2 lies on the side that bids for the third item, which occurs with probability at most 1/2. Consequently, . Adding the three bounds gives
Finally, we consider the final phase.
Lemma 6. For every item t arriving in the final phase, we have
Proof. Let be any item arriving in the final phase. Since all bids are 1 or 0, a positive payment empties its recipient's budget . Write , where and . Note that and . Since all remaining advertiser budgets are in , we have . This implies
A payment of 0 does not change the potential, and satisfies the bound above, which is non-negative. □
3.4 Adding the Changes
It remains to bound the sum of changes across the three phases. Recall that in the first and final phases, successive items arrive with advertisers and advertisers remaining, respectively. Therefore, using Lemmas 4 to 6 in (2), we get
where denotes the total expected sum of for the entire middle phase, and
Replacing the two sums in (5) with integrals, we have
since and and are non-decreasing in x.
For the remainder of the proof, we will bound solely using (7). We first show that if the middle phase were to be omitted, i.e., if the final phase started with advertisers instead of , then we would get exactly the original bound of OPT. We will then show in the subsequent lemma that adding the middle phase decreases our bound on by a constant fraction of OPT.
Lemma 7. We have
Proof. We first evaluate using the definition of in (6). The factor is zero for and equals for . Similarly, is zero for and equals for . Since , integrating these two terms gives
The integral over on the right has the same integrand and coefficient as the integral over in (8). Adding them gives a single integral over with coefficient 3/4. We also write so that we can group the terms with coefficients 3/4 and 1/4. These rewritings give
For the second equality, the first bracket evaluates to , since . The second bracket similarly evaluates to , since . Substituting and gives the common factor . The last equality uses and .
Applying Lemma 7 to (7), we get
It remains to show that the middle contribution is smaller than the integral it replaces.
First, we calculate . The middle phase has groups, with advertisers present throughout the phase. Summing the bound in Lemma 5 over these groups and substituting gives the following upper bound on the total expected change in the middle phase:
Lemma 8. For every sufficiently large even constant , there is a constant , independent of , such that
Proof. Since , we have . Using , we can write Equation (10) as
Since is non-decreasing, we have throughout , so
By (6), the values and depend only on and , and not on . As grows, tends to 1, so continuity gives . In contrast, is a fixed positive constant. Fixing a sufficiently large even therefore makes the expression in parentheses a negative constant independent of . Since , the claim follows. (We note that choosing , one can show the lemma statement for ).
Theorem 1 now follows from Lemmas 7 and 8.
AI Usage
We used the publicly available GPT-6 Astra model to obtain the first construction that gave an upper bound below . However, this construction and its analysis were extremely complicated. Over a period of time, we progressively changed the construction to simplify it to its current form.
A The Upper-Triangular Bound
In this section, we present a proof of the classical upper bound using the upper-triangular construction of Karp, Vazirani, and Vazirani [KVV90]. This proof uses a potential that has the same form as in Section 3.2.
We briefly restate the standard upper bound construction. Start with advertisers, each with budget 1. The construction has rounds, where in each round, an item is presented that has a bid value of 1 from each remaining advertiser. Once the algorithm assigns this item, one advertiser chosen uniformly at random is removed from the remaining set, before continuing on to the next round. When an advertiser is removed, all its bids on subsequent items are of value 0. An offline algorithm can assign each item to the advertiser removed immediately afterward and collect a revenue of 1 in every round, so every input in this distribution (which we call ) has .
Lemma 9. On the input distribution , every deterministic online algorithm satisfies
Proof. Fix a deterministic online algorithm. Let be the revenue collected from the first items. Let . We use the potential function
where denotes the average value of the remaining budget over the remaining advertisers, immediately after assigning item . Initially, and , so . At the end, and , so . We therefore bound by the expected sum of changes to the potential.
For item , let be the number of advertisers present before its assignment and let be the payment collected. Every remaining budget is either 0 or 1, so . The assignment increases revenue by and decreases the average remaining budget by . The change in at round , before the removal of an advertiser, is therefore
(11) where . Since each advertiser removed is uniform among the remaining advertisers, this does not change , and therefore . Summing (11), once for each , gives
References
[BJN07] Niv Buchbinder, Kamal Jain, and Joseph Naor. Online primal-dual algorithms for maximizing ad-auctions revenue. In Lars Arge, Michael Hoffmann, and Emo Welzl, editors, Algorithms - ESA 2007, 15th Annual European Symposium, Eilat, Israel, October 8-10, 2007, Proceedings, volume 4698 of Lecture Notes in Computer Science, pages 253–264. Springer, October 2007. doi:10.1007/978-3-540-75520-3_24.
[BM08] Benjamin E. Birnbaum and Claire Mathieu. On-line bipartite matching made simple. SIGACT News, 39(1):80–87, March 2008. doi:10.1145/1360443.1360462.
[CHS24] Ziyun Chen, Zhiyi Huang, and Enze Sun. Stochastic online correlated selection. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, Chicago, IL, USA, October 27-30, 2024, pages 2275–2294. IEEE, October 2024. doi:10.1109/FOCS61266.2024.00133.
[DJK13] Nikhil R. Devanur, Kamal Jain, and Robert D. Kleinberg. Randomized primal-dual analysis of RANKING for online bipartite matching. In Sanjeev Khanna, editor, Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2013, New Orleans, Louisiana, USA, January 6-8, 2013, pages 101–107. SIAM, January 2013. doi:10.1137/1.9781611973105.7.
[GM08] Gagan Goel and Aranyak Mehta. Online budgeted matching in random input models with applications to Adwords. In Shang-Hua Teng, editor, Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2008, San Francisco, California, USA, January 20-22, 2008, pages 982–991. SIAM, January 2008. URL: http://dl.acm.org/citation.cfm?id=1347082.1347189.
[HZZ24] Zhiyi Huang, Qiankun Zhang, and Yuhao Zhang. AdWords in a panorama. SIAM J. Comput., 53(3):701–763, June 2024. URL: https://doi.org/10.1137/22m1478896, doi:10.1137/22M1478896.
[KP00] Bala Kalyanasundaram and Kirk Pruhs. An optimal deterministic algorithm for online b-matching. Theor. Comput. Sci., 233(1-2):319–325, 2000. doi:10.1016/S0304-3975(99)00140-1.
[KVV90] Richard M. Karp, Umesh V. Vazirani, and Vijay V. Vazirani. An optimal algorithm for on-line bipartite matching. In Harriet Ortiz, editor, Proceedings of the 22nd Annual ACM Symposium on Theory of Computing, May 13-17, 1990, Baltimore, Maryland, USA, pages 352–358. ACM, May 1990. doi:10.1145/100216.100262.
[MSVV07] Aranyak Mehta, Amin Saberi, Umesh V. Vazirani, and Vijay V. Vazirani. Adwords and generalized online matching. J. ACM, 54(5):22, October 2007. doi:10.1145/1284320.1284321.
[Yao77] Andrew Chi-Chih Yao. Probabilistic computations: Toward a unified measure of complexity (extended abstract). In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977, pages 222–227. IEEE Computer Society, October 1977. doi:10.1109/SFCS.1977.24.