Beyond IPS: Reliable Counterfactual Evaluation in Multi-Stage Ad Systems without Logged Propensities

Mohsen Malmir, Mohamed A. Radwan, Houssam Nassif, Murat BayirNeurIPS 2026

TL;DR

Evaluating new ad-ranking algorithms offline is notoriously tricky because complex production pipelines rarely log the exact probabilities of why an ad was shown, breaking standard statistical tools. To solve this, researchers at Meta train a single "domain classifier" to estimate how differently new candidate models behave compared to the live system, using those estimates to reweight a shared reward simulator. Not only does this reliably identify the best-performing new models without needing logged probabilities, it also provides a mathematical sanity check to tell engineers when offline logs aren't enough and an online A/B test is required.

What Problem Does This Paper Address?

Before deploying a new deep learning ranking model to millions of users, engineers want to know if it actually improves outcomes (like clicks) using historical logs. Live A/B testing is the gold standard, but traffic capacity is scarce—you can't test every idea on real users.

The textbook way to do this offline is Inverse Propensity Scoring (IPS), which reweights historical events by the probability (propensity) that the old policy chose them. However, modern ad delivery isn't a single model; it's a sprawling, multi-stage pipeline of auctions, caching, pacing, and business rules. Because of these deterministic and unlogged post-ranking steps, clean action propensities simply don't exist.

The alternative is the Direct Method (DM): train a reward model (e.g., a click predictor) on historical logs, replay your new candidate policies on past user contexts, and let the reward model grade their choices. The catch? Distribution shift. A reward model trained on yesterday's policy is optimized for the ads yesterday's policy liked. If a new candidate policy favors different ads, the reward model is forced to extrapolate into unfamiliar territory, leading to systematic errors and bad deployment decisions.

Methods

Instead of letting a reward model get blindsided by distribution shift, the authors force it to pay extra attention to the historical impressions that look like what the new candidate policies would choose.

Here is how they pull this off without propensities:

  1. Counterfactual Replay & Domain Classification (Novel Application): Suppose you have $N$ new candidate policies and 1 production logging policy. By replaying the candidates on historical user contexts, you see which ad each policy picks. The authors pool all these impressions and train a standard multiclass domain classifier to guess which policy (0 through $N$) generated a given (user, ad) pair.
  2. Density Ratios without Propensities: Using a neat mathematical identity, the ratio of the classifier's predicted probability for candidate $j$ versus the logging policy ($0$) gives the exact density ratio—how much more likely candidate $j$ is to pick that ad than the live system.
  3. Mixture-Weighted Reward Modeling (Novel): Rather than training $N$ separate reward models, they average the density ratios across all candidates (clipping extreme weights to prevent instability) and train one shared reward model using a weighted loss. They also pair this with a Doubly Robust (DR) correction, combining the reward model with residual errors on logged data.
  4. An Offline-vs-Online Routing Rule (Novel): By theoretically decomposing the estimation error, they isolate a "cold-start mass"—the fraction of a candidate's chosen impressions where the domain classifier says the logging policy almost never goes. They derive an asymptotic rule: if this cold-start mass exceeds your error budget, don't trust offline evaluation; send the candidates to a live A/B test.

Datasets

  • Open-Source Ad-Ranking Simulator (New): A configurable synthetic environment with 10,000 users, 1,000 ads (10 candidates per impression), and 70,000 logged impressions per trial. It features nonlinear user-ad oracle rewards and lets researchers dial the distribution overlap—measured via Effective Sample Size (ESS)—up or down to stress-test estimators.
  • Industrial Production Traffic: Real-world data from a large-scale click-through rate (CTR) ranking system at Meta, comparing 1 production logging policy against 5 candidate policies that each served live traffic in an online A/B test (providing true ground-truth CTRs).

Key Insights and Ideas

  • One shared mixture model beats $N$ specialized models: You might think training a dedicated, custom-weighted reward model for each candidate policy would be best. Surprisingly, a single reward model trained on the uniform mixture of all candidates consistently beat per-policy models. Sharing a single baseline prevents independent model noise from scrambling the relative rankings between candidates.
  • More data won't save you from cold-start blind spots: Their theoretical error bound cleanly separates finite-sample error from cold-start error. As you collect infinite historical data, model and variance errors vanish, except on impressions the logging policy never explores. Knowing this irreducible floor gives practitioners a principled trigger for online A/B testing.
  • Offline evaluation knows when to fold 'em: In the production dataset, the top two candidate policies were virtually tied (separated by 0.15%, swapping places in 24 out of 50 subsamples)—a real-world demonstration of when a candidate set must be routed to live testing.

Key Results

  • Synthetic Low-Overlap Regime (Hardest setting, ~43% cold-start mass):
  • Selecting the best policy (Top-1 Accuracy) jumped from 0.67 (Unweighted DM) and 0.60 (classifier-based IPS) to 0.81 with Weighted DM, outperforming Per-policy Weighted DM (0.75).
  • Adding the doubly robust correction (Weighted DR) pushed Top-1 Accuracy to 0.90 and slashed value estimation error (MAE%) from 7.20% (Unweighted DM) down to 1.71%.
  • Production CTR System:
  • Among Direct Method variants, Weighted DM achieved the highest Top-1 Accuracy (0.40 vs. 0.36 for Unweighted DM and 0.24 for Per-policy Weighted DM, where random guessing is 0.20) and lowest regret (0.00244).
  • Weighted DR achieved the highest overall Top-1 Accuracy in production at 0.44 (vs. 0.38 for Unweighted DR and 0.24 for IPS).

Limitations and Future Work

  • Stationary Rewards & Replayability: The framework assumes candidate policies can be cleanly replayed on historical contexts and that user click behavior on an (ad, user) pair doesn't change based on which policy selected it (e.g., ignoring broader page-level auction externalities).
  • Classifier Quality & Feature Representations: Estimating cold-start mass and density ratios relies on the domain classifier being well-calibrated and having input features rich enough to actually distinguish between different policies' choices.
  • Asymptotic Routing & Clipping: The A/B test routing rule is derived in the infinite-data limit and assumes weight-clipping bias vanishes (meaning true density ratios never exceed the clip threshold $c$). Validating this routing rule operationally on live traffic is left for future work.

Summary updated

Abstract

Offline evaluation of ad-ranking policies in multi-stage delivery systems is challenging because action propensities are often unavailable, limiting inverse propensity scoring (IPS). Reward-model-based estimators such as the Direct Method (DM) avoid propensities but can be biased when candidate policies induce impression distributions that differ from the logged data. We formalize DM-based counterfactual replay and propose mixture-weighted reward modeling, which reweights logged data toward a mixture of candidate-policy distributions using density ratios from a multiclass domain classifier. We bound each candidate's value-estimation error by overlap, cold-start, and replay terms, and derive an asymptotic rule that uses the cold-start mass to decide whether to trust offline selection or route candidates to online A/B testing. On an ads-delivery simulator and on production traffic from a large-scale CTR ranking system, the mixture-weighted reward model improves policy selection over its unweighted counterpart in both settings, with the largest gains at low overlap in simulation. Combined with a doubly robust correction, it attains the highest Top-1 accuracy in production and at low and medium overlap in simulation.
BibTeX
@inproceedings{malmir2026beyond,
  author = {Mohsen Malmir and Mohamed A. Radwan and Houssam Nassif and Murat Bayir},
  title = {{Beyond IPS: Reliable Counterfactual Evaluation in Multi-Stage Ad Systems without Logged Propensities}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Xwazdb6LB8},
}
Figure