Abstract
This technical note provides a generalized mathematical framework for determining optimal bid prices in Real-Time Bidding (RTB) environments. Extending the research presented in "Optimal Real-Time Bidding for Display Advertising" (KDD 2014), this work explores bid optimization across different auction types—specifically first-price and second-price—and various advertiser utility goals under fixed budget constraints. By employing the Calculus of Variations, the authors derive closed-form solutions that demonstrate how optimal bidding strategies transition from linear to non-linear based on the underlying cost functions of the auction.
Introduction
In the ecosystem of Real-Time Bidding (RTB), advertisers must make split-second decisions regarding the value of individual ad impressions. This decision is typically informed by a predicted click-through rate (CTR) or other utility metrics. The fundamental challenge lies in balancing two competing objectives: bidding high enough to secure valuable impressions and bidding low enough to maintain budget efficiency over the duration of a campaign.
While many existing models simplify the bidding process by assuming the cost of an ad is equal to the bid price, real-world auctions often follow more complex rules. This paper addresses this gap by providing a unified framework that handles various cost functions and utility goals (such as maximizing clicks or net profit) while strictly adhering to a total campaign budget.
Methodology
The authors approach the bidding problem as a constrained optimization task, utilizing Calculus of Variations and Lagrangian Multipliers to solve for the optimal bidding function.
1. Objective Function and Constraints
The primary goal is to maximize the total utility $U$ (e.g., total clicks or conversions) over the lifetime of a campaign. This is subject to a budget constraint $B$, where the total expected cost across all auctions must not exceed the allocated funds.
2. The Lagrangian Framework
To solve this, a Lagrangian function $\mathcal{L}$ is constructed to balance the utility against the "shadow price" of the budget, represented by the multiplier $\lambda$. The shadow price effectively represents the marginal utility of an additional unit of budget.
3. The Euler-Lagrange Condition
By applying the gradient to this function, the authors derive a general optimality condition (Equation 13) that defines the best bidding function $b(r)$ regardless of the specific auction mechanics, providing a foundation for both first-price and second-price auction analysis.
Optimal Bidding Strategies
The paper provides specific closed-form solutions for the optimal bidding function $b(r)$ based on a predicted utility $u(r)$ and a predicted CTR $r$:
Second-Price Auctions
In a second-price auction—the historical industry standard—the winner pays the price of the second-highest bidder. The research finds that under a budget constraint, the optimal bid is strictly linear with respect to the utility:
$$b(r) = \frac{u(r)}{\lambda}$$
This implies that if an impression is twice as likely to result in a click, the advertiser should bid exactly twice as much. This linear scaling is elegant in its simplicity and provides a clear heuristic for campaign management.
First-Price Auctions
In first-price auctions, where the winner pays exactly what they bid, the strategy becomes more conservative and non-linear. The derived function is:
$$b(r) = \sqrt{\frac{u(r)l}{\lambda} + l^2} - l$$
Here, $l$ represents a market distribution parameter. The non-linear (square root) nature of this function reflects the need for "bid shaving"—reducing the bid to preserve budget because the bid itself directly determines the cost.
Key Insights
- The Truth-Telling Baseline: If an advertiser has an infinite budget and the goal is to maximize net profit, the optimal strategy is "truth-telling" ($b(r) = vr$), where the bid equals the expected value. However, once a budget constraint is introduced, the bid must be scaled by the shadow price $\lambda$.
- The Risk of Budget Exhaustion: A significant practical insight is the "50% Exhaustion" risk. If an advertiser bids based solely on expected costs in a second-price auction, market fluctuations create a 50% statistical probability that the budget will be exhausted prematurely, leading to missed opportunities later in the campaign.
Limitations and Future Directions
The current framework, while robust, relies on certain assumptions that present opportunities for future research:
- Market Modeling: The first-price solution depends on the accuracy of the market price distribution ($p_z(z)$). Discrepancies between the model and real-world market behavior can lead to sub-optimal bidding.
- Dynamic Bidding: The current model treats the budget constraint $\lambda$ as a constant. Future work should explore dynamic bidding, where $\lambda$ is adjusted in real-time based on the remaining budget and time elapsed.
- Joint Optimization: The authors suggest moving toward systems that simultaneously optimize both the utility estimation (e.g., CTR prediction) and the bidding strategy, rather than treating them as sequential, independent steps.
Conclusion
This generalized framework provides a theoretical bridge between auction theory and practical RTB application. By identifying the mathematical necessity of linear bidding in second-price auctions and non-linear bidding in first-price auctions, it offers a rigorous basis for developing more effective automated bidding algorithms.
Summary updated