Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

NYT Open 9 min read Case study hardMaster

Scaling Subscriptions at The New York Times with Real-Time Causal Machine Learning

The New York Times replaced its monthly batch Dynamic Meter model with real-time algorithms that decide within milliseconds whether to show a registration wall, a paywall, or allow access. Separate models for unregistered and registered users use S-Learner predictors trained on an always-on randomized control trial, so they can estimate counterfactual outcomes per action. Per-objective predictions are combined with convex weights, and the action that maximizes the combined objective is chosen. The weights are re-tuned daily by backtesting on recent RCT data with U-NSGA-III so that target paywall and registration-wall rates are met, and a new model ships only if the constraint loss is low enough. Performance is measured against the random policy's surface in KPI space, with A/B tests also used, and the approach raised subscription and registration rates while holding wall rates steady.

Assumes: supervised learningcausal inference basicsrandomized controlled trialsmulti-objective optimization

Related posts

  • Roonomics: How Economics Helped Us to Build a Churn Prediction Model

    Deliveroo Engineering mediumAdept

    Deliveroo replaced a high-recall, rule-based restaurant churn flagging system with a ranked probability model tuned for precision, because retention teams have limited capacity and false positives carry a real opportunity cost. The model uses rolling-window cross-validation to avoid leakage, a precision-oriented score for the rare-event setting, business-importance weighting for prioritisation, and Shapley values for per-restaurant explanations, and it runs weekly as an Argo pipeline. Offline, it cut flagged restaurants by over 90% and raised precision 8x at the cost of recall, with calibration curves tracking the 45-degree line. A randomised treatment/control experiment is under way to test whether acting on the flags actually reduces churn.

  • Improving Instagram notification management with machine learning and causal inference

    Meta Engineering mediumAdept

    Instagram replaced click-through-rate filtering for daily digest story notifications with a neural uplift model that estimates the incremental effect of sending versus not sending on user activity. The model was trained on data from a randomized experiment that dropped eligible notifications with 50% probability, and sending was framed as a budget allocation problem that favours high-uplift notifications. Because uplift scores drift online, raw estimates pass through an online quantile service that maps them to a uniform distribution while preserving order, so comparing against a fixed rate r keeps sending volume stable. The result was substantially fewer notifications than CTR-based filtering with no drop in engagement.

  • Let AI Entertain You: Increasing User Engagement with Generative AI and Rejection Sampling

    Nextdoor Engineering mediumAdept

    Nextdoor improved notification email subject lines by having ChatGPT extract (not rewrite) the most interesting phrase from a post, then using a fine-tuned OpenAI ada reward model to accept the generated subject only when it predicts more clicks than the user-written one, a form of rejection sampling. The reward model was trained on ~50k A/B-labeled pairs collected by serving each variant to small random user buckets. It reaches about 65% accuracy, is monitored daily against control buckets, and is retrained when accuracy drops 10%+. Prompt engineering alone plateaued below control, while the full system lifted sessions 1%, WAU 0.4% and ads revenue 1%. Per-post caching cut cost 600x, and retries fall back to the user subject.

  • Turning Opportunistic AI Inference Capacity Into Better Ads Recommendations

    Meta Engineering mediumAdept

    Meta aggregates locally idle inference capacity, stranded by peak provisioning, delivery timing, resource-ratio and accelerator-type mismatches, into a preemptible opportunistic pool used to improve ads recommendations. Two elasticity levers consume it: Rank More Ads (RMA) raises the number of candidates through the ranking stages and needs both CPU and accelerator surplus, while Serve Better Models (SBM) routes a larger share of requests to a more powerful model and needs only accelerator surplus. Baseline serving is protected by physical isolation for SBM and a logical global budget for RMA. A PID controller driven by tail latency sets RMA candidate volume, and an explore/exploit router picks SBM requests by request value. Because the central loops act on the order of minutes, millisecond-level value-aware load shedding on both servers and clients removes low-value optional work when capacity is suddenly reclaimed.

  • Reducing experiment duration with predicted control variates

    Etsy Code as Craft mediumAdept

    Etsy upgraded its experimentation platform's variance reduction from CUPED to CUPAC, which feeds pre-experiment features (over 100, up from 3) into LightGBM models whose predictions serve as the covariate in a linear CUPED-style adjustment. Average variance reduction rose from 7% to 27%, with a range of 2% to 77% depending on metric stability. That cuts average experiment duration by almost 3 days. The pipeline runs as an Airflow DAG: BigQuery computes features, Dataflow runs batch predictions, Spark fits the regression, and t-tests follow. Because per-metric models are costly to train and maintain, Etsy still encourages CUPED for team-specific metrics and plans to automate CUPED's pre-experiment data collection.

The quest for software engineering knowledge.

Look:
Layout: