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

Ad serving using a compact allocation plan

Peiji Chen, Wenjing Ma, Srinath Mandalapu, Chandrashekhar Nagarajan, Jayavel Shanmugasundaram, Sergei Vassilvitskii, Erik Vee, Manfai Yu, Jason Y. Zien · DOI

TL;DR

This paper tackles the challenge of efficiently serving ads for guaranteed delivery contracts, where advertisers pay for a fixed number of user visits. They introduce a novel, lightweight algorithm called High Water Mark (HWM) that generates compact allocation plans, enabling ad servers to make rapid, stateless decisions. This approach significantly improves delivery rates while maintaining comparable smoothness to existing methods, even in the face of imperfect supply forecasts.

What Problem Does This Paper Address?

Online advertising, particularly display advertising sold through guaranteed contracts, faces a complex ad serving problem. Advertisers commit to paying for a specific number of user visits that meet certain targeting criteria (e.g., "100 million male users in California visiting sports websites") within a defined timeframe. The publisher's ad server must then, in real-time, decide which ad to show for each incoming user visit to ensure all contracts meet their guaranteed delivery targets by their expiration dates.

The core challenges are:

  • Scale: The sheer volume of user visits (billions daily) and contracts (tens of thousands) makes traditional optimization methods computationally prohibitive.
  • Unpredictability: User behavior and traffic patterns are not perfectly known in advance, making accurate forecasting difficult.
  • Real-time Constraints: Ad servers must respond within milliseconds, leaving no room for complex calculations per ad request.
  • Distributed Systems: Ad serving often happens across thousands of distributed machines that cannot easily coordinate for every decision.
  • Smoothness: Advertisers expect delivery to be spread relatively evenly over the contract's duration, not front-loaded or back-loaded.

Existing solutions often struggle with one or more of these issues, either being too slow, too memory-intensive, or not robust to forecast inaccuracies.

Methods

The paper proposes a two-part solution:

  1. High Water Mark (HWM) Algorithm:
    • Offline Phase: This algorithm generates a "compact allocation plan." Instead of storing complex allocation decisions for every possible user visit, HWM assigns a serving rate ($\alpha_j$) and an allocation order to each contract. This plan is small and stateless, making it efficient to distribute and use. The allocation order prioritizes contracts with less eligible supply, ensuring they get served before their opportunity diminishes.
  2. Online Phase: When a user visit arrives, the ad server uses the pre-computed allocation plan to select a contract. It assigns a fraction of the impression to eligible contracts based on their $\alpha_j$ rates and allocation order. This process is very fast and requires no online state tracking for individual contracts.
  3. Feedback Loop: To address supply forecast errors, a feedback mechanism is introduced. Delivery statistics are periodically sent back to an "Allocation Plan Generator." This allows the system to re-optimize the allocation plan with updated demand information, correcting for inaccuracies in the initial supply forecast. The paper also explores a specific feedback-based correction mechanism to further improve smoothness and handle front-loading.

The paper also implements and compares against a variant of a dual-based method from prior work, referred to as DUAL, which aims for provably optimal allocation under perfect forecasts.

Datasets

The paper uses "a large snapshot of real guaranteed delivery contracts and a log of two weeks of user visits" for evaluation. They also mention using "actual ad serving logs to produce a set of real impressions." No new benchmarks are introduced; instead, they evaluate against a "production-quality baseline" system.

Key Insights and Ideas

  • Compact Allocation Plans are Key: The core innovation is the "compact allocation plan" generated by HWM. By representing allocation decisions as simple rates and an order, the system achieves scalability and statelessness, crucial for distributed ad servers.
  • Statelessness is a Major Win: The HWM approach allows ad servers to operate without needing to track individual contract delivery status in real-time. This drastically simplifies the ad server's job and improves its ability to handle high throughput and distributed environments.
  • Forecast Errors are Inevitable, but Manageable: The paper acknowledges that supply forecasts are imperfect. While HWM is sensitive to these errors, the combination of periodic re-optimization and a feedback loop significantly mitigates their impact, leading to much better delivery than a purely reactive system.
  • Smoothness vs. Delivery Trade-off: While HWM can improve delivery rates, it might initially lead to less smooth delivery compared to systems specifically designed for smoothness. However, the feedback mechanism helps to bring smoothness back in line.
  • HWM's Practicality: Despite DUAL having stronger theoretical guarantees under perfect forecasts, HWM's lightweight implementation, speed, and robustness to real-world forecast errors make it a more practical choice for production systems.

Key Results

  • Delivery Improvement: The HWM approach reduced the underdelivery rate by 53% compared to the baseline system.
  • Smoothness: While HWM initially showed worse smoothness (e.g., 25% of contracts frontloaded by almost 3 times the baseline rate), the HWM+ (with feedback) achieved comparable smoothness to the baseline while still drastically improving overall delivery.
  • Robustness to Forecast Errors: Even with a simulated 2x supply forecast error, the HWM++ algorithm (with feedback) performed better than the baseline system.
  • Speed: HWM's offline optimization takes only a few minutes, even for large problem instances, making it significantly faster than DUAL.

Limitations and Future Work

  • Sensitivity to Forecasts: The paper acknowledges that the HWM algorithm's performance is sensitive to the accuracy of supply forecasts. While re-optimization and feedback help, perfect forecasts would still yield better results.
  • Smoothness Trade-off: The initial HWM algorithm might sacrifice some smoothness for delivery improvement. The feedback mechanism helps, but achieving perfect smoothness while maximizing delivery remains a challenge.
  • Future Work: The authors suggest exploring more sophisticated feedback controllers and further investigating the trade-offs between delivery, smoothness, and computational cost. They also mention the need for better supply forecasting systems.

Summary updated

BibTeX
@inproceedings{chen2012ad,
  author = {Peiji Chen and Wenjing Ma and Srinath Mandalapu and Chandrashekhar Nagarajan and Jayavel Shanmugasundaram and Sergei Vassilvitskii and Erik Vee and Manfai Yu and Jason Y. Zien},
  title = {{Ad serving using a compact allocation plan}},
  booktitle = {EC},
  year = {2012},
  doi = {10.1145/2229012.2229038},
}
Figure