Data Science in the Wild

Peter Liu

How do top tech companies actually ship machine learning? Each episode is a conversational deep dive into one real production system or research result, from teams like Netflix, Airbnb, Meta, Uber, Spotify, Instacart, Shopify, and Google. We cover the business problem, the technical approach, the trade-offs, and the measured impact. Topics include A/B testing and experimentation, recommender systems and ranking, LLM evaluation, AI agents, search and retrieval, and applied causal inference. It's data science in the wild: not textbook theory, but the models and decisions real companies run in production. New episodes several times a week, about 15–20 minutes each, so they fit a commute. Hosted by Peter Liu, a data scientist with 10+ years in consumer tech (Meta, Webflow, Adobe, eBay). Episodes are produced with AI-generated voices from curated source articles and papers, which are linked in each episode's notes.

  1. 15h ago

    Netflix — Grading AI agents when nobody knows the right answer

    How do you grade an AI agent with no answer key? Cornell Tech and Netflix bound agent quality with e-values: Opus 5 ≥0.15 vs Haiku 4.5 ≤0.11 correct changes. Key takeaways: The problem. Once an agent ships changes, whether each truly helped is never observed. LLM-judge labels can be biased with invalid confidence intervals; prediction-powered inference needs some true labels.The framework. Each decision gets a pair of hypotheses (correct or not), and agent quality is a weighted sum of correct decisions, e.g. the share of adopted changes that helped. Two e-value sequences per decision replace the missing labels. Unlike p-values, e-values stay valid under early stopping and can be combined under arbitrary dependence.Guarantees. Upper and lower bound estimators are valid in expectation for any agent trajectory, and the class gets arbitrarily close to the sharpest bound. With a fixed number of decisions, a simple member is never larger than Storey's (2002) estimator after e-to-p conversion. Confidence sets need a shared wealth budget: separate per-label bets can fail when an agent reacts to a false alarm.Case study. Claude Opus 5 and Claude Haiku 4.5 (high effort) each proposed up to 50 sequential speedups to NetworkX, timed on random graphs with seeds neither agent saw. At a 5% minimum speedup, Opus's estimated lower bound (~0.15) is above Haiku's estimated upper bound (0.11). These are estimates, not guarantees. Opus leads at every threshold, and both agents' 90% confidence sets stay above zero at 10%.Our caveats. This is one offline timing study on one library, which the authors call a case study, not a rigorous evaluation. The efficiency gains they expect under stronger assumptions (e.g. i.i.d. e-value pairs) are statistical, not computational.Chapters: 00:00 Cold open: a developer you can't grade 01:30 The paper and the missing answer key 02:31 Why benchmarks, LLM judges and PPI fall short 05:19 Agent evaluation as multiple testing 06:29 e-values vs p-values 08:31 Adaptive decisions, kill switches, late metrics 10:52 Upper and lower bounds, confidence sets 11:42 Case study: Opus 5 vs Haiku 4.5 on NetworkX 13:18 Results at 5% and 10% thresholds 15:55 Novelty: sharpness and Storey's estimator 18:50 The authors' caveats 20:03 Our take: thresholds tied to business value 21:11 Recap and closing question Sources: Agent Evaluation Without Ground Truth: A Null Proportion Perspective (Brian M. Cho, Michael Lindon, Nathan Kallus (Cornell Tech / Netflix); arXiv cs.AI, Nov 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    Netflix — Grading AI agents when nobody knows the right answer
  2. 1d ago

    Pinterest — Editing a recommender's weights instead of retraining it

    Can an LLM agent improve a recommender by editing its weights directly? Pinterest's weight coding lifts Image Search recall@10 by up to 15.0 points (+24% relative) for about a quarter of a fine-tune's GPU hours. Key takeaways: The loop. An Opus 5.5 coding agent scans module groups on a dev day, filters out edits whose effects reverse sign on other days, then edits or searches (gradient-free evolution strategy). Engineers pick candidates that pass held-out-day validation. A cached engine makes forward-only evaluation fast.Trained retriever. On the 147M-parameter two-tower model with a DHEN (Deep and Hierarchical Ensemble Network) interaction module, resetting some normalization values gains 10.1 points; edit L07 gains 15.0 vs ~1% for a common launch. A loop averages 8.6 GPU hours; the best model took 4 loops, 24.6% of a ~140 GPU-hour fine-tune. Naively stacking edits cut a gain from 14.1 to 10.2.From random weights. After reinitializing the 13.6M-parameter DHEN, searching 2,448 mixing and normalization values lands 9.8 points above production. Removing all four trained branches alone gains 6.1.Across the funnel. PinRec (106M): +2.31 pp unordered, +2.64 pp ordered recall@1. Ranker (1.37B MMoE): weakening experts adds +0.53% utility NDCG on every held-out day (z 7.8–10.5). One coefficient moves fresh Pins in the top 10 from 2% to 70%; product share goes 0.26% to 1.06%.Online. ~10M users per arm for about a week. Save-oriented arms A2/B2/C2 raised saves from the edited source 8.4–10.7% per user and closeups 4.8–7.6%, while long clicks and product share fell. Caveats: the ranker over-ranks the edited source's Pins (cannibalization), and early retrievers can have online-offline gaps.Chapters: 00:00 Cold open: an AI repairing another AI 00:57 The paper and why recommenders evolve slowly 03:17 The loop: scan, filter, search, ship 05:26 The cached engine 06:48 Reward hacking and held-out days 07:43 Retriever results and GPU cost 09:00 Rebuilding a randomized DHEN 10:42 PinRec and the 1.37B ranker 13:15 Steering freshness and products 14:00 Online A/B tests 14:42 Related work and the authors' caveats 16:38 Our take: wasted capacity, operational risk 18:21 Recap and closing question Sources: Weight Coding: Evolving Web-Scale Recommenders through Direct Weight Edits with LLM Agents (Junpeng Hou, Jiaxing Qu, Derek Cheng, Jaewon Yang, Abhinav Naikawadi, Karthik Subbian (Pinterest); arXiv cs.IR, Nov 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    Pinterest — Editing a recommender's weights instead of retraining it
  3. 2d ago

    University of Michigan — Can your old A/B tests sharpen a new one?

    Can old A/B tests sharpen a new one? University of Michigan Ross researchers prove that, with known biases, borrowing from even one biased past experiment strictly lowers MSE, then test three practical estimators. Key takeaways: The setup. One new treatment effect plus past experiments on related but different interventions, each off by an unknown bias. The goal is point-estimate accuracy (MSE). If biases and variances were known, optimal weights always beat the new test alone; a noisier new test gains more.Three practical estimators. General plug-in: split each experiment into pilot and testing samples, estimate each past study's bias on the pilot, weight the testing means. Pooled plug-in: one pooled bias, so weights depend only on precision. FH: sample-size weights on full samples, used only if the past mean isn't significantly different from the new one.Two numbers decide. Average bias and bias dispersion (how much biases vary across studies). Lower average bias always helps. For the general plug-in, spread cuts both ways: it lets weights cancel biases, but a noisy pilot estimate steers that, so it overfits. Small bias and spread: general; small bias, large spread: pooled; large bias: FH.Simulations. 100 target observations (no-borrowing MSE 0.64), up to 80 past studies, 50,000 replications, gate α = 0.10. With large average bias both plug-ins do worse than not borrowing; FH largely reverts and stays near 0.64. Context: 80–90% of Google and Bing experiments show near-zero effects (Kohavi et al.).Our caveats. FH's gate reacts to the observed gap, so its MSE stays above the better of always or never borrowing. The two-number summary assumes biases aren't tied to study precision, and the simulations are Gaussian; archives with shared shocks (say, one holiday season) may be messier.Chapters: 00:00 Cold open: can old A/B tests help? 02:00 Archives, bias vs variance, MSE as the goal 03:22 Oracle result: even one biased study helps 04:37 Shrinkage and the general plug-in 06:41 Pooled plug-in and the FH testing gate 08:40 Bias dispersion, explained 09:44 Simulation setup 10:33 Which estimator wins where 12:54 Why spread both helps and hurts 14:21 James–Stein and related work 16:46 Our take: correlated biases, the gate's cost 18:29 Recap and closing question Sources: Combining Past Experimental Data for Efficient Estimation: A Shrinkage Approach (Qianxi Zhang, Dae Woong Ham, Stefanus Jasin (University of Michigan Ross); arXiv stat.ME, Nov 20, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    University of Michigan — Can your old A/B tests sharpen a new one?
  4. 5d ago

    Amazon — How much history does a customer forecast need?

    Amazon tested what lifts a one-year customer forecast most: going from 8 to 16 weeks of history added 0.070–0.107 log-space R² in all eight model families, about ten times more than data, capacity or architecture. Key takeaways: One lever at a time. Target: each customer's 364-day forward activity, scored in log-space R². Eight families (transformer, GRU, LSTM, ContiFormer and Neural Hawkes stand-ins, LightGBM, 6-feature ridge, a one-feature linear model) on 1M/5M/10M internal tiers, plus five public datasets for the direction of the effect.The window beats the usual levers. 8→16 weeks: +0.070 to +0.107 at the 1M tier, largest for the linear models. The 10M tier moved sequence models by ≤0.006, a ~54× larger transformer scored 0.006 below the base (unresolved), and five architectures sat within 0.0052. These are observed intervals, not proof of equivalence.Matched cohorts. Longer windows admit lapsed customers. Scored on the same customer-weeks, the transformer's gain is +0.096 vs +0.075 raw (Huber), so the raw comparison understates it.Saturation depends on activity. A weekly ridge probe plateaus at 22–24 weeks. The top activity decile reaches half-saturation at 3.9 weeks; the bottom half is still climbing at 16. The one fully blind registered prediction (+0.014 from 24 to 32 weeks) missed: −0.0004.Caveats. All test anchors sit in one 8-week band, so window length and calendar (holiday) coverage aren't separated, and the anchor-varying control was void under its own criterion. Multi-scale time encoding (MS-RoPE) added +0.021 over the authors' own RoPE implementation.Chapters: 00:00 Cold open: is bigger always better? 01:32 The task, the window and log-space R² 03:58 Eight model families and the datasets 06:43 8 → 16 weeks: the headline gain 07:15 Scale, capacity, architecture, objective 10:18 Matched cohorts: raw gains understate 12:05 Where history saturates, by activity 13:46 The registered prediction that failed 14:42 MS-RoPE and physical time 15:50 Related work: scaling laws, prior art 17:09 The calendar confound and void control 18:57 Our take, caveats and recap Sources: The Window Lever: Longer Observation Windows Outweigh the Observed Effects of Data, Capacity, and Architecture in Customer Behavior Forecasting (Tara Sowrirajan, Yanqiao Wang (Amazon); arXiv cs.LG, Nov 19, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    Amazon — How much history does a customer forecast need?
  5. 6d ago

    Netflix — Do better recommendations make hits bigger?

    Netflix ran a 60-day test on 8.5 million subscribers: better recommendations moved viewing from superstar hits to the middle tail while view hours rose 0.37%. Key takeaways: Cumulative holdback. Across 8,559,252 subscribers (February–April 2025), the control arm kept the recommender as it was before the test, while the treatment arm got every personalization change shipped in that window: a multi-task ranker, reweighted plays, play duration and thumbs, specialized rankers for parts of the interface, and new features and embeddings. No change targeted titles by popularity.Away from superstars, toward the middle. Recommendation and play shares moved from the top 5% of titles to the middle tail (50th–95th percentile). The bottom 50% barely changed. Title-level concentration (HHI) fell 5.7% for recommendations and 1.2% for plays.More viewing, more reliance on recs. Relative to control: view hours +0.37%, plays +0.62%, distinct titles +1.2%, days with a play +0.21%, plays per visit +0.47%, share of first-in-session plays from homepage recommendations +0.5%, and mean reciprocal rank +0.1%.Match quality. Users completed 1.3% more titles (15, 30 and 45 minutes) and gave 0.57% more positive thumbs. Per play, the 30-minute completion share and positive-thumb share dipped slightly, possibly from extra marginal plays. Lee bounds can't say whether the newly played titles are better or worse.Why the middle tail. In the authors' model, a weaker recommender falls back on popular titles when data is thin. Superstars are already well matched and long-tail titles have too little data, so better algorithms help the middle tail most. Our caveat: the test bundles many changes over 60 days, so it can't say which change did what or how things look over the long run.Chapters: 00:00 Cold open: do better recs kill blockbusters? 03:04 The 60-day cumulative holdback 04:03 Four routine algorithm changes 06:41 Title buckets and popularity bias 08:43 Concentration falls: the HHI results 09:27 Engagement and reliance on recommendations 11:06 Match quality, marginal plays and Lee bounds 14:00 Algorithm maturity: why the middle tail wins 15:10 Related work: concentration vs. dispersion 17:01 Where the result should hold 18:08 Our take, recap and closing question Sources: Recommendation Quality and the Concentration of Consumption: Experimental Evidence from Netflix (Guy Aridor, Winston Chou, Nathan Kallus, Antoine Scheid, Allen Tran, Kevin Zielnicki (Netflix); arXiv, v1 Aug 21, 2026, v2 Nov 18, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    Netflix — Do better recommendations make hits bigger?
  6. Nov 18

    HKUST & Trip.com — When RL makes a recommender worse at retrieval

    HKUST & Trip.com: RL post-training makes a generative recommender a better ranker but a worse retriever, with recall@500 down 5.1 points on Office as NDCG@10 rises. Key takeaways: Better ranker, worse retriever. Scoring every catalogue item for every test user on five Amazon datasets (Qwen2.5-1.5B-Instruct, semantic IDs), GRPO lifts Office NDCG@10 from 11.59% to 12.55% while hit@500 falls from 52.84% to 47.69%. The loss starts at K≈20 (Office) and K≈50 (Industrial); 14–22% of targets in the SFT top 500 drop out.Reordering, not sharpening. Entropy falls from 6.0 to 3.1 nats, but sharpening can't change hit@K; mid-ranked targets are demoted. The exact KL-regularised objective can't lower expected hit@K; the loss comes from how the update is estimated.The cause. GRPO (Group Relative Policy Optimization) rewards the logged item in a 16-candidate rollout and penalises the rest, often other users' real next items, and shared weights carry the penalty to similar users. Positive-only advantages remove the loss (and the top gain); negative-only makes it ~3× larger on Office; DPO with beam negatives loses 4.1 points. A pre-RL rollout record predicts who loses most.The fix: out-of-rollout anchoring. One KL term keeps the SFT model's order of 16 sampled out-of-rollout neighbours. Office hit@500 returns to 52.14% (4.4 of 5.1 points) with NDCG@10 at 12.64%; the other four datasets reach SFT level. With REINFORCE++ (−14.9 points on Office) the anchor recovers 13.3.Our take. Evaluate each funnel stage at the depth it's used. Tests use public benchmarks and a 1.5B model; industrial scale with a ranker in the loop is still open.Chapters: 00:00 Cold open: better rankers, worse retrievers 02:08 Semantic IDs and how they're deployed 04:07 Why item 500 matters 05:14 Office results: NDCG@10 up, hit@500 down 07:24 Sharpening or reordering? 08:44 Inside GRPO: rollouts and penalties 10:25 Printer-ink example and gating 12:27 Controlled experiments 14:06 The fix: out-of-rollout anchoring 15:59 Recall recovered, top gains kept 17:27 Earlier warnings from industry 18:22 Our take, recap and closing question Sources: Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation (Yuheng Chen, Fan Zhang, Yixuan Xu, Chao Yang, Yang Xiang, Can Yang (HKUST / Trip.com Group); arXiv, Nov 17, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    HKUST & Trip.com — When RL makes a recommender worse at retrieval
  7. Nov 17

    University of Granada — Does your AI shopping assistant prefer wordier products?

    Do AI shopping assistants favor wordy listings? A University of Granada audit finds longer descriptions raise selection odds 12–38% per SD in all nine LLMs tested. Key takeaways: A label-free test. For 20,000 synthetic shopping queries, the top 5 products from an Amazon ML Challenge 2023 catalog sample are each rewritten by a randomly assigned paraphraser (DeepSeek-R1 7B, GPT-OSS 20B, Gemma-3 12B, Falcon-3 7B, or the untouched original) and shown in random order. If the recommender ignores wording, each paraphraser is picked 20% of the time—no relevance labels needed.Seven of nine aren't uniform. A χ² test rejects uniform selection for all but the two GPT-OSS models, though deviations are at most about 1.3 points from 20%.Length counts beyond relevance. In a conditional logit that controls for cross-encoder and bi-encoder relevance and similarity to the original, length keeps a positive unique effect in all nine: +12% odds per SD of length (GPT-OSS 120B) to +38% (DeepSeek-R1 7B Qwen). Relevance stays the biggest driver.When they conflict, relevance wins—by less. Comparing an original description with another candidate's paraphrase, the average gap is 16.3 points when length and relevance agree but 6.5 when they disagree. With relevance tied, the longer one is preferred in all nine, by 0.3–4.9 points.Our caveats. Synthetic queries, 5 candidates, single turn, temperature 0; Steps 2–4 measure associations, not causal effects. Normalizing or truncating descriptions is a mitigation the authors suggest testing, not a proven fix.Chapters: 00:00 Cold open: does the wordiest product win? 01:01 The paper and why it matters 03:54 Headline: longer wins in all nine models 04:55 Setup: queries, retriever, paraphrasers 06:36 Taste-test analogy and the uniformity test 08:11 Nine recommenders, seven non-uniform 09:32 Controlling for relevance 12:46 Direction: +12% to +38% odds per SD 13:29 When length and relevance conflict 15:30 Prior work on positional and verbosity bias 17:58 Caveats and our take 20:34 Recap and closing question Sources: Label-Free Detection of Structural Bias in LLM-Based Recommender Systems via Randomized Paraphrasing: The Case of Verbosity (Carlos Peláez-González, David Herrera-Poyatos, Francisco Herrera, Andrés Herrera-Poyatos (University of Granada / DaSCI); arXiv, Nov 13, 2026)Is Your LLM-as-a-Recommender Agent Trustable? (BiasRecBench) (Tang et al.; arXiv, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    University of Granada — Does your AI shopping assistant prefer wordier products?
  8. Nov 17

    Columbia University — Why LLM evals and A/B tests can disagree

    Why can a better chatbot lose its A/B test? Columbia's Hannah Li shows users adapt to a model's answers—in her example the stronger model scores 81.1% vs 86.65% because it invites harder asks. Key takeaways: Two tests, two estimands. Offline benchmarks (and replays of logged prompts) converge to a common-distribution effect—both models on the same prompts. Live A/B tests converge to an induced-distribution effect—each model on the prompts its own users end up sending.The email example. Both models succeed 90% on routine drafts; M1 also wins on hard ones (70% vs 30%) and gives 80% excellent answers, so 80 of its 90 users try a hard task next (vs 10). Turn-2 success: 72.2% vs 83.3%; two-turn: 81.1% vs 86.65%. A/B picks M0 though M1 is at least as good on every task.When to trust the benchmark. The A/B gap = performance effect + composition effect. If the offline effect is large relative to the total-variation shift in prompts times the range of the new model's performance (Prop. 3), rankings are guaranteed to agree—a screen you can estimate from offline and historical data.Side effects of adaptivity. A model can raise aggregate success by steering users to easier prompts (reward hacking); gains on tasks users learned to avoid may not show up; dropping burn-in turns biases a same-prompt comparison. In a stylized linear model, variance falls as 1/T if user×model feedback 1, grows linearly at 1, exponentially above.Practical caveat. The screen needs prompt cells where performance is constant; lumping "routine" and "difficult" into "writing" understates the shift.Chapters: 00:00 Cold open: too good on day one 00:49 The paper and the jagged frontier 02:12 Offline benchmarks vs live A/B tests 02:48 Headline: ranking reversals 03:32 Markov feedback and the two estimands 04:42 Fitness-trainer analogy 05:11 Example 1: the email-writing reversal 09:10 Variance: three feedback regimes 10:52 What's new: decomposition and screening rule 12:22 Reward hacking and related work 14:38 Our take: burn-in and partitions 16:04 Recap and closing question Sources: When Both Sides Adapt: The Challenges of Evaluating Interactive LLM Systems (Hannah Li (Columbia Business School); arXiv, Nov 12, 2026)Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.

    Columbia University — Why LLM evals and A/B tests can disagree

About

How do top tech companies actually ship machine learning? Each episode is a conversational deep dive into one real production system or research result, from teams like Netflix, Airbnb, Meta, Uber, Spotify, Instacart, Shopify, and Google. We cover the business problem, the technical approach, the trade-offs, and the measured impact. Topics include A/B testing and experimentation, recommender systems and ranking, LLM evaluation, AI agents, search and retrieval, and applied causal inference. It's data science in the wild: not textbook theory, but the models and decisions real companies run in production. New episodes several times a week, about 15–20 minutes each, so they fit a commute. Hosted by Peter Liu, a data scientist with 10+ years in consumer tech (Meta, Webflow, Adobe, eBay). Episodes are produced with AI-generated voices from curated source articles and papers, which are linked in each episode's notes.