In real-time bidding (RTB) for display advertising and dynamic pricing, algorithms must constantly answer a fundamental question: What is the minimum price required to win this item? To answer this, models must accurately forecast the "bid landscape"—the probability distribution of winning market prices.
However, gathering data to train these models introduces a severe statistical hurdle: selection bias. When an advertiser bids on an auction and wins, the true market price is revealed (or can be inferred). But when the advertiser loses, the winning price remains hidden. The advertiser only learns a single piece of information: the market price was strictly greater than their own bid.
If a machine learning model is trained only on won auctions, it ignores the competitive environments where its bids were too low, leading it to drastically underestimate the market price. Conversely, if it treats lost auctions as missing data or zeros, the distribution becomes heavily distorted. To solve this problem, researchers borrowed a powerful framework from medical statistics: survival analysis.
The Intuition: Bids as Lifespans
In medical studies, survival analysis tracks how long patients live. If a patient drops out of a study at year 5, researchers do not know exactly when they will die; they only know the patient survived at least 5 years. In statistics, this data point is right-censored.
As formalized by Weinan Zhang et al. in their foundational work on Optimal real-time bidding for display advertising, ad auctions map perfectly to this concept if we flip the axes:
- Time becomes the Bid Price ($b$).
- Death becomes Winning the Auction.
- Surviving past a certain time means Losing the Auction because the market price was higher than your bid.
Traditional Survival Analysis:
Time Axis: 0 ------> 1 year ------> 2 years ------> 3 years (Patient drops out: Lifespan ≥ 3)
Auction Price Estimation:
Price Axis: $0 ------> $0.50 ------> $1.00 ------> $1.50 (Auction lost: Market Price > $1.50)
By treating a lost auction not as a failure or a missing entry, but as a strict mathematical lower bound ($MarketPrice > b$), models can utilize the entire dataset. This insight allows practitioners to reconstruct the true, unbiased distribution of market prices across the entire landscape, as detailed in the comprehensive monograph by Jun Wang 0012 et al. (Display Advertising with Real-Time Bidding (RTB) and Behavioural Targeting).
Reconstructing the Distribution
To see why this works, consider how classical survival estimators reconstruct distributions from partial observations.
Non-Parametric Estimation
The Kaplan-Meier estimator calculates the probability of surviving past a certain threshold by multiplying a chain of conditional probabilities. In an auction setting, Kareem Amin 0002 et al. adapted this technique in Budget Optimization for Sponsored Search: Censored Learning in MDPs to estimate market prices within a Markov Decision Process.
Instead of guessing the exact values of hidden bids, the estimator steps through the price grid. At each price increment, it computes the fraction of active bidders who "died" (won) versus those who "survived" (lost). This allows an advertiser to map out the win-rate curve without ever seeing the exact values of competing bids. Similarly, Avrim Blum et al. introduced the "Kaplan" algorithm in Learning Valuation Distributions from Partial Observation, proving that an agent can reconstruct the exact valuation distributions of competitors using only the identity of the winner and strategic reserve prices.
Gradient Descent with Censored Data
While non-parametric estimators work well for global distributions, real-time bidding requires conditioning on context (e.g., user demographics, website category). To train deep models or linear predictors under these conditions, the loss function itself must account for censoring.
Weinan Zhang et al. addressed this by developing Bid-aware Gradient Descent (BGD) in Bid-aware Gradient Descent for Unbiased Learning with Censored Data in Display Advertising. When an auction is won, the model minimizes the distance between its prediction and the observed market price. When an auction is lost, the survival-based loss function penalizes the model only if its predicted market price is lower than the bid that lost. If the model predicts a price higher than the lost bid, the penalty is zero, because that prediction is perfectly consistent with the censored observation.
If Auction is WON at Price X:
Loss = Distance(Prediction, X) <-- Standard Regression
If Auction is LOST at Bid B:
Loss = Max(0, B - Prediction) <-- Penalize only if prediction violates the lower bound
This formulation was expanded by Yuchen Wang et al. in Functional Bid Landscape Forecasting for Display Advertising, where they combined survival conditional probabilities with decision trees to predict highly non-linear, context-dependent price distributions.
From Second-Price to First-Price Auctions
The utility of survival analysis has become even more pronounced with the advertising industry's shift from second-price auctions (where the winner pays the second-highest bid) to first-price auctions (where the winner pays exactly what they bid).
In a first-price auction, bidding your true valuation results in zero utility. Advertisers must practice bid shading—reducing their bid below their true valuation while still maintaining a high probability of winning. Doing this effectively requires knowing the exact probability of winning at every price point.
To tackle this, Tian Zhou et al. designed a unified framework in An Efficient Deep Distribution Network for Bid Shading in First-Price Auctions. By integrating a survival objective directly into a deep neural network, the authors allowed the model to ingest both won and lost auction logs simultaneously. The survival constraints act as a regularizer, shaping the predicted probability density function so that it respects the boundaries established by lost bids.
This framework also provides strong theoretical guarantees. Rui Ai et al. demonstrated in No-regret Learning in Repeated First-Price Auctions with Budget Constraints that by using survival analysis to reconstruct competing bid distributions from censored feedback, an agent can achieve sublinear regret. This means an online learner can perform nearly as well as an oracle who sees every competitor's hidden bid.
Application to Dynamic Pricing
The core mechanism of survival learning extends beyond ad auctions into retail and e-commerce. When a web publisher or retailer sets a price for an item, they face a similar censoring problem:
- If the customer buys the item, their valuation was greater than or equal to the price.
- If the customer leaves without buying, their valuation was less than the price.
To optimize publisher revenues, Pedro Chahuara et al. implemented an online version of Aalen’s Additive Model—a classic survival framework—in Real-Time Optimization of Web Publisher RTB Revenues. This allowed publishers to dynamically adjust reserve price floors by treating non-purchases as informative upper bounds on market demand.
More recently, Dongguen Kim et al. introduced BayesCoxCP in A Bayesian Approach to Contextual Dynamic Pricing using the Proportional Hazards Model with Discrete Price Data. By applying a Bayesian Cox proportional hazards model to discrete price grids, the authors proved that treating binary purchase outcomes as censored survival data allows a seller to rapidly update their demand beliefs, minimizing revenue loss during the learning phase.
By framing market interactions through the lens of survival and censoring, these diverse algorithms all leverage the same fundamental truth: a rejection contains just as much structured information as a sale.
Key Foundational Work
Budget Optimization for Sponsored Search: Censored Learning in MDPs (2012) — contributed 2 concept elements to this direction.
Optimal real-time bidding for display advertising (2014) — contributed 2 concept elements to this direction.