Introduction
In display advertising, "guaranteed" contracts represent a publisher's commitment to deliver a specific number of impressions to a target audience over a set period. Managing these contracts involves solving a massive constrained optimization problem with two primary objectives: feasibility (meeting demand across overlapping contracts) and representativeness (ensuring ads are distributed evenly across eligible inventory).
Traditional approaches often rely on commercial solvers like XPRESS. While effective, these "black box" solutions are frequently slow, memory-intensive, and struggle to scale to the billions of edges found in real-world ad delivery graphs. Moreover, they do not always prioritize the representativeness that advertisers value.
The SHALE Algorithm
To address these challenges, we present SHALE (an efficient algorithm for allocation), a lightweight, "stop-anytime" optimization framework. SHALE bridges the gap between simple greedy heuristics and complex non-linear programming through a two-stage process:
- Dual Optimization: SHALE employs coordinate descent to solve for the "dual variables" of the optimization problem. These variables act as "shadow prices," reflecting the scarcity of specific inventory types. The iterative nature of this stage provides a "stop-anytime" property, allowing for a trade-off between computation time and solution optimality.
- Primal Construction: The algorithm then uses these dual variables to inform a "dual-aware" version of the High Water Mark (HWM) greedy heuristic. This step generates a compact serving plan requiring only $O(1)$ information per contract, enabling real-time, near-optimal decision-making by ad servers.
Experimental Evaluation
SHALE was evaluated using real-world data from Yahoo!, including six sets of guaranteed display contracts and bipartite graphs generated from inventory samples. The performance was compared against both the standard HWM heuristic and a tuned commercial solver (XPRESS).
Performance and Convergence
A key strength of SHALE is its rapid convergence. As shown in the figure below, the algorithm significantly reduces penalty costs and improves representativeness (measured by $L_2$ distance) within just a few iterations.
After 10 iterations, SHALE's performance was within 2% of the commercial solver regarding penalty costs and under-delivery rates, while being more than five times faster. Notably, SHALE achieved an $L_2$ distance less than half that of the commercial solver, indicating superior allocation quality.
Robustness to Supply Contention
The algorithm's effectiveness was further tested under varying levels of supply contention. In simulations using actual ad server logs, SHALE consistently outperformed the HWM heuristic.
As illustrated above, SHALE maintains a significant advantage over HWM even as inventory becomes scarcer. This robustness is critical for maintaining delivery guarantees in volatile market conditions.
Key Insights and Conclusion
SHALE demonstrates that representativeness can be treated as a first-class citizen in ad allocation by incorporating an $L_2$ distance metric directly into the objective function. Its multi-pass streaming architecture ensures scalability, with a memory footprint independent of the number of edges in the delivery graph.
While SHALE's performance is dependent on the accuracy of inventory forecasts, it provides a powerful tool for publishers to manage large-scale guaranteed contracts efficiently. Future work may involve refining pacing heuristics to ensure smoother delivery over time and adapting the coordinate descent technique for non-guaranteed markets or click-through rate optimization.
Summary updated