Applied AI Vol. 1 · 5 min read
Plain inverse propensity scoring is unbiased but can be very noisy. Two standard remedies reduce variance, each with a trade-off.
Doubly robust estimation
Train a model that predicts the reward for any context and action. Use it to estimate the new policy’s value directly, then add an importance-weighted correction based on the model’s errors on the logged actions.
The estimate remains consistent if either the reward model or the logging probabilities are correct, which is where the name comes from. When the reward model is decent, the correction terms are small, so variance drops.
Clipping weights
Cap each importance weight at some maximum M. This stops a few rare, large weights from dominating the estimate. It introduces bias, since you are no longer reweighting exactly, but it can reduce error overall. The cap is a tuning choice, so pick it with a held-out method or report results across several values.
Self-normalization
Dividing by the sum of weights instead of the sample size, known as self-normalized importance sampling, keeps estimates within the range of observed rewards and often lowers variance, at the cost of a small bias that shrinks with sample size.
A practical checklist
- Report plain IPS, a self-normalized version and a doubly robust version side by side. Big disagreement is a signal to investigate.
- Show the weight distribution and effective sample size.
- Fit the reward model on data separate from the evaluation, or use cross-fitting.
- Treat the estimates as a screening step before an online test.
