NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Perturbation Function of Ranking and Balance for Weighted Online Bipartite Matching

Jingxun Liang, Zhihao Gavin Tang, Yixuan Even Xu, Yuhao Zhang, Renfei Zhou

Abstract

Ranking and Balance are arguably the two most important algorithms in the online matching literature. They achieve the same optimal competitive ratio of $1-1/e$ for the integral version and fractional version of online bipartite matching by Karp, Vazirani, and Vazirani (STOC 1990) respectively. The two algorithms have been generalized to weighted online bipartite matching problems, including vertex-weighted online bipartite matching and AdWords, by utilizing a perturbation function. The canonical choice of the perturbation function is $f(x) = 1-e^{x-1}$ as it leads to the optimal competitive ratio of $1-1/e$ in both settings. We advance the understanding of the weighted generalizations of Ranking and Balance in this paper, with a focus on studying the effect of different perturbation functions. First, we prove that the canonical perturbation function is the unique optimal perturbation function for vertex-weighted online bipartite matching. In stark contrast, all perturbation functions achieve the optimal competitive ratio of $1-1/e$ in the unweighted setting. Second, we prove that the generalization of Ranking to AdWords with unknown budgets using the canonical perturbation function is at most 0.624 competitive, refuting a conjecture of Vazirani (2021). More generally, as an application of the first result, we prove that no perturbation function leads to the prominent competitive ratio of $1-1/e$ by establishing an upper bound of $1-1/e-0.0003$. Finally, we propose the online budget-additive welfare maximization problem that is intermediate between AdWords and AdWords with unknown budgets, and we design an optimal $1-1/e$ competitive algorithm by generalizing Balance.

Introduction

In the realm of online bipartite matching, two algorithms stand as pillars of the field: Ranking (for randomized integral matching) and Balance (for deterministic fractional matching). Both algorithms are celebrated for achieving the optimal competitive ratio of $1 - 1/e \approx 0.632$. This means that even without knowing the future, these algorithms are guaranteed to capture at least 63.2% of the value that an omniscient offline algorithm could achieve.

To extend these algorithms to weighted scenarios—such as the AdWords problem, where advertisers have specific budgets and different bids—researchers employ a perturbation function $f(x)$. For decades, the function $f(x) = 1 - e^{x-1}$ has been the standard "secret sauce" used to achieve the $1 - 1/e$ ratio. This research investigates whether this function is merely a convenient choice or a mathematical necessity, while also testing its limits in more complex environments.

The Uniqueness of the Canonical Function

One of the paper's primary contributions is the discovery that the canonical perturbation function is far more special than previously realized. In unweighted matching, almost any decreasing function can be used to reach the optimal ratio. However, the authors prove that for vertex-weighted online bipartite matching, the search space for an optimal function collapses.

Using a primal-dual framework, they demonstrate that $f(x) = 1 - e^{x-1}$ is the unique optimal perturbation function (up to scaling). Any deviation from this specific mathematical form results in a sub-optimal competitive ratio. This establishes the function as a fundamental requirement for achieving optimality in weighted settings.

Refuting the Vazirani Conjecture

A significant portion of the work focuses on the "AdWords with unknown budgets" problem, where an algorithm must make matching decisions without knowing an advertiser's total budget until it is exhausted. In 2021, Vijay Vazirani conjectured that the Perturbed-Ranking algorithm using the canonical function could still achieve the $1 - 1/e$ ratio in this budget-oblivious setting.

Figure 1: A complex hard instance construction used to prove upper bounds for the AdWords problem with unknown budgets.

By constructing a sophisticated "hard instance" graph (illustrated in Figure 1), the authors refute this conjecture. They prove that the competitive ratio for the canonical function is at most 0.624. More broadly, they establish that no perturbation function can reach the $1 - 1/e$ threshold for this problem, setting a general upper bound of $1 - 1/e - 0.0003$. This suggests a fundamental "price of budget-obliviousness" that limits algorithmic performance.

A New Frontier: Budget-Additive Welfare

Between the standard AdWords problem (where budgets are known) and the unknown budget version, the authors identify a new problem class: Online Budget-Additive Welfare Maximization. This problem serves as a middle ground where budgets are initially hidden but the structure allows for more strategic allocation.

For this new class, the authors design a fractional algorithm that successfully hits the $1 - 1/e$ mark. This is achieved by introducing a vertex decomposition technique that allows the algorithm to simulate the "Balance" approach even when full budget information is not immediately available.

Conclusion and Future Work

This research clarifies the mathematical landscape of online matching by proving the uniqueness of the canonical perturbation function and setting definitive bounds on what is possible when budgets are unknown. While the authors have narrowed the gap between the general upper bound and the performance of the canonical function, a small margin remains. Future work may focus on closing this gap or exploring the authors' conjectures regarding the inherent impossibility of reaching $1 - 1/e$ for any algorithm in the budget-oblivious AdWords setting.

Summary updated

BibTeX
@inproceedings{liang2023perturbation,
  author = {Jingxun Liang and Zhihao Gavin Tang and Yixuan Even Xu and Yuhao Zhang and Renfei Zhou},
  title = {{On the Perturbation Function of Ranking and Balance for Weighted Online Bipartite Matching}},
  booktitle = {ESA},
  year = {2023},
  url = {https://openreview.net/forum?id=jelnjH368P},
}
Figure