Summary
Clicks reflect both relevance and whether users examined the result under the displayed ranking. Identical relevance can produce different click counts at different positions. Define the desired outcome and the probability creating its observation before choosing a correction.
Examination weighting estimates a signal under a click model; policy ratios target an alternative policy’s reward. These are different estimands and different propensities.
The observation process
A simple examination model writes click probability as
where means the user examined position and means document was relevant to query .
Here denote click, examination, and relevance; denote query, document, and position. The factorization excludes effects such as trust-driven clicks and examination dependencies on snippets or neighboring results. No click does not distinguish an unexamined result from an examined rejection.
Learning objective
Importance weights change estimated contribution, not the observed click count
Reference drawing
Learning objective
Importance weights change estimated contribution, not the observed click count
Derivation
Position 1 · usually examined
100 impressions with the same assumed 60% relevance rate
| Examination propensity | e = 1.00 |
|---|---|
| Expected clicks | 100 × 0.60 × 1.00 = 60 |
| Inverse weight | 1 / 1.00 = 1× |
| Weighted click signal | 60 × 1 = 60 |
Position 4 · often skipped
100 impressions with the same assumed 60% relevance rate
| Examination propensity | e = 0.25 |
|---|---|
| Expected clicks | 100 × 0.60 × 0.25 = 15 |
| Inverse weight | 1 / 0.25 = 4× |
| Weighted click signal | 15 × 4 = 60 |
Estimate propensities
Examination propensity is the probability of examination; policy propensity is the probability of assigning an action or slate. Randomized swaps or a validated click model can inform examination probabilities. Randomized assignment should log its actual conditional policy probability, candidates, and policy version. Propensities inferred from click outcomes alone need an identification model.
Worked example
Fix one context and deterministic toy rewards, with a five-event log containing four A actions and one B.
| Action | Logger | Target | Reward | Policy ratio |
|---|---|---|---|---|
| A | 0.8 | 0.2 | 1 | 0.25 |
| B | 0.2 | 0.8 | 0 | 4 |
| B under a different, unsupported logger | 0 | 0.8 | Unknown | Undefined |
The last row is a separate failure scenario, not part of the five-event log. Raw reward is , but the original target policy’s value is .
Inverse propensity scoring
For contextual bandit data logged under policy , the value of target policy can be estimated by
Here are context, chosen action, and mature reward; are logger and target policies. The fixture gives . The action counts match logger expectations by construction, not by a precision guarantee.
With correct assignment probabilities, overlap, consistent outcomes, and no hidden assignment confounding, the expectation becomes target-policy reward. Very small logger probabilities can create large variance; reward maturity and interference remain separate assumptions.
Self-normalization and clipping
Self-normalized IPS, often called SNIPS, divides by the sum of weights:
The fixture’s weight sum is , so SNIPS also equals . Its effective sample-size diagnostic is . Self-normalization has finite-sample bias and is undefined when the realized weight sum is zero.
Weight clipping applies
Clipping changes weights, whereas SNIPS changes normalization. Either can trade variance against bias; neither is an identification repair.
Doubly robust estimation
Let predict the expected reward. A doubly robust value estimate is
where
For outcome predictions , the target-model baseline is . The average weighted residual is , restoring estimate . Under valid identification and regularity, DR can remain consistent if either nuisance model is correct. Use independent nuisance fitting or suitable cross-fitting; reusing evaluation outcomes naively can invalidate that claim.
Leave logged support
New task: evaluate a candidate the deterministic logger never exposes.
Picture and change: check before forming ratios.
Check: the unsupported table row requires division by zero. More logs from the same deterministic policy do not reveal its missing reward. An extrapolating outcome model adds assumptions; calling it doubly robust does not supply observed evidence.
Use when: restrict the target policy/population or obtain permitted evidence where coverage is absent.
Change weight tails
New task: reduce sensitivity to a few large weights.
Picture and change: compare declared clipping, normalization, nuisance models, and additional supported data separately.
Check: clipping at changes the B weight from four to one. The clipped SNIPS denominator becomes , giving instead of . Lower dispersion therefore need not preserve the estimate.
Use when: report ESS, weight quantiles/maxima, and clipping sensitivity rather than trusting nominal sample size.
Slates and ranking policies
A ranked list is a structured action whose full assignment probability may be very small. Replacing slate propensities with independent item or position probabilities requires assumptions about interactions and examination. One click may change whether later items are examined. An inverse-examination weight is not a generic whole-slate policy-value ratio. Randomized interleaving or online experiments can answer suitable comparisons when offline identification is inadequate.
Diagnostics
Before trusting a counterfactual estimate, report:
- how propensities were generated or estimated;
- effective sample size;
- weight quantiles and maximum weight;
- overlap by query and item slice;
- sensitivity to clipping;
- agreement with randomized online results;
- reward maturity and missing outcomes;
- policy and data versions.
A precise result on a supported slice does not identify value for unsupported traffic. Report target population, reward definition, and unknown outcomes alongside numerical uncertainty.
In an interview
Does doubly robust mean assumption-free?
Answer
No. Its nuisance-model robustness operates within a valid identification setup. It does not fix zero support, interference, confounded assignment, immature rewards, or an ill-defined outcome.
Common mistakes
Do not treat the toy log as a confidence interval or empirical reproduction. More independent supported data can improve precision; more unsupported traffic cannot create an absent counterfactual. Neither a smaller variance estimate nor a fitted reward model proves examination or assignment assumptions.
Practice next
Use this material in learning-to-rank losses, evaluating a search ranker, causal inference for ML decisions, and personalized search ranking.