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

Fast algorithms for finding matchings in lopsided bipartite graphs with applications to display ads

Denis Xavier Charles, Max Chickering, Nikhil R. Devanur, Kamal Jain, Manan SanghiEC 2010

TL;DR

This paper tackles the challenge of efficiently finding matchings in extremely large, "lopsided" bipartite graphs, common in online advertising. They introduce novel algorithms for both determining if a valid matching exists and for compactly representing such a matching, crucial for real-time ad delivery.

What Problem Does This Paper Address?

Online advertising platforms often deal with a massive number of potential ad impressions (users viewing web pages) and a smaller set of advertisers. This creates a "lopsided" bipartite graph where one side (impressions) is vastly larger than the other (advertisers). Standard graph algorithms struggle with such scale due to memory and computational constraints. Specifically, publishers need to:

  1. Detect if a complete matching exists: Can they guarantee a certain number of impressions (Ba) for each advertiser, given the available ad slots? This is critical for accepting new ad campaigns.
  2. Represent a matching: If a matching exists, how can it be efficiently represented to enable real-time assignment of ads to impressions?

The sheer scale of impressions (billions) makes it impossible to store the entire graph or identify matchings using traditional methods.

Methods

The authors propose two main algorithmic approaches:

  • Gap-Existence Problem (for detection): Since an exact solution is infeasible, they introduce an approximate version. The "Gap-Existence" problem asks if a complete matching exists or if the available impressions are significantly less than required (by a factor of 1-ε). They develop a streaming algorithm that processes impressions one by one, making assignment decisions on the fly. This algorithm uses a "WATER-LEVEL-STEP" strategy, where each impression is assigned to an advertiser that minimizes a potential function, aiming to keep the system balanced. The analysis relies on a clever "Hybrid Argument" to bridge the gap between a hypothetical perfect algorithm (PURE-RANDOM) and their WATER-LEVEL algorithm, using Chernoff bounds to bound failure probabilities.
  • Representation Problem: For representing a matching, they leverage Linear Programming (LP). They formulate an LP to minimize a submodular function and then analyze its dual. By choosing a specific submodular function related to advertiser targets and impression availability, the solution to the dual LP provides a compact representation of a maximum profit matching. This representation can be a convex combination of "integral matchings" (where each impression is assigned to exactly one advertiser). They show that this representation can be achieved using at most n+1 such integral matchings, where n is the number of advertisers.

Datasets

The paper mentions using a "real set of advertisers booked against a set of Microsoft properties for a particular one-month period" to create synthetic datasets for evaluating their Gap-Existence algorithm. They generated both "known NO" and "known YES" matching instances by manipulating impression goals based on a traffic model. No specific public benchmark datasets are mentioned.

Key Insights and Ideas

  • Approximation is Necessary for Scale: For extremely large graphs, exact matching algorithms are impractical. The "Gap-Existence" problem provides a workable approximation that still offers practical guarantees.
  • Streaming for Efficiency: A streaming approach is essential for handling the massive number of impressions, allowing decisions to be made without storing the entire graph.
  • Potential Functions for Balancing: The WATER-LEVEL algorithm's use of a potential function to guide impression assignment is a key heuristic for balancing targets across advertisers in a streaming setting.
  • LP Duality for Compact Representation: Leveraging the dual of an LP for minimizing submodular functions offers a theoretically grounded way to find and represent optimal matchings, even when exact combinatorial methods are too slow.
  • Limited Basis for Representation: The finding that a maximum fractional matching can be represented by a convex combination of at most n+1 integral matchings is a significant result for compact representation.

Key Results

  • Gap-Existence Algorithm: The proposed streaming algorithm solves the Gap-Existence problem with a gap ε in time O(n log n min Ba) and space O(n). Experimental results showed high accuracy with a reasonable number of samples (around 275,000-300,000 for their test cases).
  • Representation Algorithm: They provide a method to represent a complete (possibly fractional) matching using an LP formulation. This representation can be found in polynomial time (using the ellipsoid algorithm) and allows for fast computation of individual impression assignments.

Limitations and Future Work

  • LP Complexity: The representation algorithm relies on the ellipsoid algorithm, which, while polynomial, might not be practically fast enough for all scenarios. The authors suggest that a faster, combinatorial algorithm for computing the representation would be desirable.
  • Alternative Existence Algorithms: They propose an alternative, simpler WATER-LEVEL algorithm (assigning impressions to the advertiser maximizing ka/Ba) but note that its proof of correctness is not straightforward and existing proofs do not generalize. Investigating this simpler algorithm further is suggested.
  • Practicality of Representation: While theoretically sound, the practical implementation and performance of the LP-based representation for extremely large n might require further study.

Summary updated

BibTeX
@inproceedings{charles2010fast,
  author = {Denis Xavier Charles and Max Chickering and Nikhil R. Devanur and Kamal Jain and Manan Sanghi},
  title = {{Fast algorithms for finding matchings in lopsided bipartite graphs with applications to display ads}},
  booktitle = {EC},
  year = {2010},
  doi = {10.1145/1807342.1807362},
}
Figure