Waterfall Bandits: Learning to Sell Ads Online

Branislav Kveton, Saied Mahdian, S. Muthukrishnan, Zheng Wen, Yikun XianarXiv 2019

Introduction

In the ecosystem of online advertising, publishers must decide how to allocate their ad inventory to maximize revenue. A common industry mechanism for this is the "waterfall." In a waterfall, a publisher sequentially offers an ad slot to a series of ad networks at specific reserve prices. If the first network in the sequence accepts the price, the slot is sold; if not, the publisher moves to the second network, and so on.

While conceptually simple, optimizing a waterfall is a complex challenge. To maximize revenue, a publisher must determine both the optimal ordering of networks and the optimal reserve price for each. This task is complicated by the fact that publishers rarely know the true valuation distributions of ad networks. Furthermore, the process provides only partial feedback: if an early network in the sequence accepts an offer, the publisher never learns whether subsequent networks would have accepted their respective prices. This paper frames the waterfall optimization problem as a multi-armed bandit problem and introduces WaterfallUCB1, an algorithm designed to learn optimal strategies in these high-stakes, information-constrained environments.

The Waterfall Pricing Problem

The search space for an optimal waterfall is exponentially large, involving all possible permutations of ad networks and a range of potential price points. Traditional exploration methods fail because testing every combination is statistically and computationally prohibitive.

Beyond the combinatorial explosion, the primary hurdle is the "cascading" nature of the feedback. In a standard multi-armed bandit problem, the agent observes the reward for the chosen action. In a waterfall bandit, the agent observes a sequence of binary outcomes (accept/reject) until a network accepts or the list is exhausted. This partial feedback means that data for networks lower in the waterfall is gathered much more slowly than for those at the top.

The WaterfallUCB1 Algorithm

To address these challenges, the authors propose WaterfallUCB1. This algorithm extends the concept of "cascading bandits" by incorporating a pricing dimension. The algorithm operates through a three-step cycle at each time step:

  1. Maintain Optimistic Estimates: The algorithm calculates an Upper Confidence Bound (UCB) for the acceptance probability of every (ad network, price) pair. These bounds are based on historical success rates and a confidence interval that shrinks as more data is gathered.
  2. Leverage an Approximation Oracle: Since finding the absolute optimal waterfall configuration is NP-hard, WaterfallUCB1 utilizes an offline approximation oracle. The authors evaluated two versions: a simple Greedy heuristic and a Linear Programming (LP) based $(1-1/e)$-approximation. The oracle takes the optimistic estimates and returns a recommended sequence and price set.
  3. Update Statistics: After the waterfall outcome is observed, the algorithm updates the empirical success rates. Crucially, it only updates the statistics for the networks that were actually reached in that round, maintaining the integrity of the partial feedback model.

Experimental Results

The authors validated WaterfallUCB1 using both synthetic simulations and real-world data.

Synthetic Environments

Using simulated environments where ad network valuations followed Beta distributions, WaterfallUCB1 demonstrated significant advantages over standard baselines. For instance, when compared to an "explore-then-exploit" strategy (Exp2), WaterfallUCB1 with a Greedy oracle achieved an expected reward of $0.507 compared to $0.440 over 100,000 steps.

Real-World Data (iPinYou)

The algorithm was also tested on the iPinYou Real-Time Bidding (RTB) dataset. By extracting winning prices from various advertisers, the authors simulated a realistic demand environment. In these tests, WaterfallUCB1 converged rapidly toward the performance of an offline algorithm with perfect hindsight. Over 100,000 steps, the algorithm generated $47.8k in hypothetical revenue, trailing the theoretical maximum by only $200.

Key Insights and Strategic Trade-offs

The research yielded several surprising insights into the behavior of sequential learning in advertising:

  • Heuristics vs. Complexity: Interestingly, the simple Greedy oracle often outperformed the more mathematically rigorous LP oracle during the early stages of learning. The LP oracle proved less sensitive to small changes in estimates, leading it to exhaustively explore high price points before adjusting, whereas the Greedy approach adapted more fluidly.
  • The Power of Joint Learning: Publishers often manage hundreds of ad slots. The authors introduced Joint-UCB, which treats multiple slots as a single joint learning problem. This approach trades a small amount of approximation bias for a massive increase in statistical efficiency, drastically speeding up convergence.
  • Aggregation Trade-offs: Grouping ad networks into larger buckets (via aggregators) simplifies the learning problem by reducing the number of parameters to estimate. However, this comes at the cost of "granularity loss," as the publisher can no longer tailor prices to individual network behaviors.

Conclusion and Future Work

WaterfallUCB1 provides a theoretically grounded and practically effective framework for ad waterfall optimization. The authors proved that the algorithm achieves a gap-free scaled $n$-step regret bound of $O(MK\sqrt{n \log n})$, where $K$ is the number of networks and $M$ is the number of price levels. This confirms that the algorithm is statistically efficient and learns at a sublinear rate.

Future improvements could focus on exploiting the monotonicity of demand. Currently, the algorithm treats each price point independently. In reality, if a network accepts a price $p$, it is guaranteed to accept any price $p' < p$. Incorporating this prior knowledge would likely lead to even faster convergence and lower regret, though it presents additional mathematical challenges for proving regret bounds.

Summary updated

BibTeX
@misc{kveton2019waterfall,
  author = {Branislav Kveton and Saied Mahdian and S. Muthukrishnan and Zheng Wen and Yikun Xian},
  title = {{Waterfall Bandits: Learning to Sell Ads Online}},
  year = {2019},
  eprint = {1904.09404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.09404},
}
Figure