Abstract
In online display advertising, publishers face the challenge of balancing guaranteed contracts (GC) with real-time bidding (RTB) to maximize total yield. This paper presents MAPOLO (Multi-Agent Policy Optimization with Local Observations), a multi-agent reinforcement learning (MARL) framework that treats guaranteed contracts as cooperative bidding agents. By utilizing a novel "shaped" reward function based on historical maximal returns and restricting agents to local observations, MAPOLO achieves superior revenue and contract fulfillment. Empirical evaluations on real-world datasets from Alibaba demonstrate that MAPOLO outperforms industry baselines and standard MARL algorithms in both yield and scalability.
Introduction: The Impression Allocation Challenge
Ad publishers, such as news websites and mobile applications, typically monetize their traffic through two primary channels: Guaranteed Contracts (GC) and Real-Time Bidding (RTB). In guaranteed contracts, advertisers pay upfront for a specific volume of impressions over a fixed period, with publishers facing penalties for under-delivery. Conversely, RTB allows for individual ad slots to be auctioned to the highest bidder in milliseconds.
The core technical challenge is Impression Allocation: determining whether a specific user impression should be assigned to a guaranteed contract or sold on the open RTB market. Static strategies often fail due to the inherent volatility of the advertising environment, where traffic patterns, market prices, and advertiser behaviors fluctuate unpredictably.
Methodology
1. The Auction Formulation
The authors mathematically demonstrate that the optimal allocation strategy involves treating every guaranteed contract as a "virtual bidder" within the RTB auction. They derive an optimal bidding function for these contracts:
$$b_{ij} = \lambda_j q_{ij} + \alpha_j$$
In this equation, $q_{ij}$ represents the quality of the impression, $\lambda_j$ is a quality weight, and $\alpha_j$ is a dynamic parameter adjusted based on the contract's fulfillment status. This formulation allows the publisher to leverage existing high-speed auction infrastructure for real-time decision-making.
2. MAPOLO Framework
To manage these virtual bidders, the researchers developed MAPOLO. Each contract acts as an agent responsible for adjusting its own $\alpha_j$ parameter. To ensure the system scales to industrial levels, two key innovations were introduced:
- Local Observations: To avoid the "input dimension explosion" common in standard MARL, MAPOLO agents only observe their own status and general environmental metrics. This keeps the model computationally efficient even as the number of contracts grows.
- Shaped Reward Function: To address the credit assignment problem in non-stationary environments, the framework uses the historical maximal return as a reward signal. This provides a stable baseline for agents, preventing them from overreacting to short-term market noise.
Experimental Results
The framework was evaluated using ad serving logs from Alibaba, comprising over 35 million impressions across five distinct datasets. The models were trained on one day of data and tested on the subsequent day to simulate real-world temporal shifts.
Performance and Scalability
MAPOLO demonstrated significant improvements over industry standards, outperforming "Contract First" (CF) and PID controllers by 5.7% and 4.5% in total yield, respectively.
As shown in the convergence analysis, MAPOLO reaches optimal performance levels significantly faster than the state-of-the-art MADDPG algorithm. Furthermore, MAPOLO exhibits superior scalability; while MADDPG's training time per episode increased by 4.7x when scaling from 25 to 68 agents, MAPOLO's training time only increased by 2.5x, indicating a more linear and sustainable scaling path for massive platforms.
Conclusion
MAPOLO successfully bridges the gap between theoretical auction design and practical multi-agent reinforcement learning. By framing guaranteed contracts as cooperative agents and stabilizing training through shaped rewards, the system provides a robust solution for impression allocation that is both high-performing and scalable. Future work will look into more granular adjustment frequencies and the application of this method to alternative auction mechanisms like VCG.
Summary updated