EM and Gradient Optimization for the Delayed Feedback Model
Summary
Chapelle (2014) fits the joint classifier-plus-delay model of Delayed Feedback Model for Conversion Prediction two equivalent ways: (1) an EM algorithm that infers the latent conversion indicator and reduces to a weighted logistic regression + a weighted censored exponential regression at each M-step, or (2) direct gradient descent on the (non-convex) regularized negative log-likelihood. Both reveal the same interpretable structure: an unlabeled (not-yet-converted) example contributes to the classifier’s gradient in proportion to how implausible “still pending” has become, and contributes to the delay model’s gradient as a survival-analysis censored observation whose censoring time is down-weighted by the same plausibility.
Overview
The joint likelihood derived in thm-dfm-likelihood has (whether the user will ever convert) as a latent variable for every not-yet-converted example. This note covers how Chapelle actually optimizes that likelihood, which is important both practically (it’s the part that makes the model trainable at scale with L-BFGS) and conceptually (it makes explicit the reduction to weighted survival regression, tightening the connection to Survival Analysis).
Main Content
Expectation-Maximization
E-step: posterior probability of eventual conversion (Chapelle Eq. 10)
For an unlabeled example (), define . Using Bayes’ rule and the censored-survival term derived in Delayed Feedback Model for Conversion Prediction:
For a labeled example (), trivially (Eq. 3: observing a conversion resolves with certainty).
M-step: decomposed weighted log-likelihood (Chapelle Eqs. 11–13)
Treating each unlabeled example as a soft mixture of a positive example (weight ) and a negative example (weight ), the expected complete-data log-likelihood to maximize is:
This objective decomposes into two independent, convex sub-problems:
- A weighted logistic regression for (soft labels ).
- A weighted/censored exponential regression for — identical to standard survival-time exponential regression (Kalbfleisch & Prentice §3.5), except each censored observation’s censoring time is scaled by , the posterior probability that this example is even a “real” (eventually-converting) censored case rather than a true negative. When is small, that observation contributes almost nothing to the delay likelihood.
This EM approach converges but is a nested optimization (each M-step itself requires two inner convex optimizations), which is slow; Chapelle proposes solving the M-step approximately, or bypassing EM altogether with direct gradient descent.
Direct joint (gradient) optimization
Definition: Regularized negative log-likelihood (Chapelle Eqs. 14–15)
This is exactly the likelihood of thm-dfm-likelihood, optimized directly by L-BFGS rather than via EM. Chapelle notes is not convex overall (Fig. 3 shows two comparable basins in a toy example — low-conversion/short-delay vs. high-conversion/long-delay), though the ambiguity shrinks with more data and caused no observed local-minima issues in practice.
The gradients (Eqs. 16–17) make the two limiting behaviors from Delayed Feedback Model for Conversion Prediction precise: as an unlabeled example’s contribution to vanishes (no information yet); as its contribution converges to exactly the ordinary logistic-regression negative-example gradient — the model “gives up waiting” and treats it as confirmed-negative, automatically and smoothly, without any hand-tuned matching window.
Connection to survival analysis, made precise
Corollary: reduction to censored exponential regression
In the degenerate case where every user eventually converts (, so ), the delay term of Eq. 13 becomes a standard right-censored exponential regression exactly as in Survival Analysis: unconverted examples are censored observations at time , converted examples are exact event times . Without features this has the closed-form MLE
(total time-at-risk over number of observed events — the classic exponential MLE under censoring). The full Delayed Feedback Model is thus a generalization of censored survival regression in which each censored time is additionally down-weighted by the posterior probability that the unit was ever “at risk” of the event at all.
Examples
Empirical validation against baselines (Chapelle §6.3–6.5, Table 1)
Against Naive (unconverted = negative, underpredicts by 21% on average), Rescale (PU-learning correction assuming missing-at-random labels — assumption violated here, underpredicts 5.9% overall but 30% on recent campaigns), Shifted (fully-labeled but 30-day-stale training set), and Short-Term-Conversion (a two-model heuristic ratio), the jointly-optimized DFM achieves the lowest NLL among all non-oracle methods, with its advantage over Shifted and Rescale growing on recent campaigns — exactly where censoring bias is most severe and where a live system most needs a correct model.
Connections
- Directly fits the model defined in Delayed Feedback Model for Conversion Prediction; read that note first for the likelihood being optimized here.
- Formalizes the informal link to Survival Analysis: the M-step’s delay sub-problem literally is weighted censored exponential regression.
- Contrasts with the sequential/regret-based fitting problem in Bandit Models with Delayed and Censored Feedback, which needs online, anytime delay-corrected estimators rather than a batch MLE.
See Also
- Delayed Feedback Model for Conversion Prediction — the model and likelihood being optimized
- Survival Analysis — censored exponential regression, the classical special case
- Delayed and Censored Feedback - Overview — topic overview and reading order
- Bandit Models with Delayed and Censored Feedback — the online/regret-minimizing analogue