LLM-as-judge metrics in A/B tests
A judge slightly kinder to treatment made a test with no real effect come out significant 99% of the time at 20,000 units per arm; correcting it with 500 human labels per arm (PPI++) kept that near the nominal 5%.
Data scientist · Microsoft
When someone shows you a number about an AI feature, ask two questions before acting on it: what was randomized, and who labeled the outcome?
I like to find out what actually moved the number. I work on experiments and causal inference for AI features, paid media, and forecasts. Most projects check the method against a known answer and end with a decision rule.
Short essays on the methods behind the case studies. Start with these three.
Twelve decisions about AI features, the number teams are usually shown for each, and the number that actually supports it.
Use offline evals to choose what to test, and an online A/B to ship.
An earlier targeting rule, revised after a second dataset disagreed.
A judge slightly kinder to treatment made a test with no real effect come out significant 99% of the time at 20,000 units per arm; correcting it with 500 human labels per arm (PPI++) kept that near the nominal 5%.
A change that helped coding prompts but hurt chat shipped in 100% of runs on a coding-heavy eval set and in 0% once the eval was reweighted to live traffic, so an offline win should pick what to test, not replace the test.
The platform credited itself with 2.50x the conversions its ads actually caused, rising to 3.43x as targeting sharpened, while a ghost-ads holdout stayed unbiased.
Written business definitions took the model from 13 to 40 of 40 correct answers; most of its misses without them were the right answer in the wrong time zone.
On a second randomized dataset the top 20% by propensity held 25.9% of incremental visits, not the 72.2% seen on Criteo, so the earlier targeting rule was revised.
On a 6-fold rolling-origin backtest SARIMA had 18.5% lower error than a seasonal-naive baseline, and LightGBM didn't beat the classical models on this single series.
When users opt in because their need is rising, adjusted estimates were biased by +0.72 to +0.84 sessions/week against a true effect of 1.24, and a placebo test caught it only 6.2-6.5% of the time.
Results: opt-in AI feature adoptionEssay: opt-in AI features
The staggered rollout shipped a fading novelty effect in 100% of replications; a fixed holdout shipped it in 4.7%.
With a judge that is 95% accurate, 982 labels per arm instead of 4,126.
GPT-4 audited against expert humans on MT-Bench.
Human labels drawn at random across the whole test kept PPI++ valid under every drift tested.
Quote it only from traffic the bandit never learned from.
Eight worked cases, each with a memo: CUPED, synthetic control, difference-in-differences, propensity methods, sequential testing, and switchbacks.
With survey controls in place of randomized ones, the naive estimate reads about −$8,500 against a benchmark of about +$1,794; matching, IPW, and AIPW bring it back to positive values between about $1,100 and $1,700, with matching closest.
A small, typed, tested Python package (v0.3.1): CUPED-aware sample size, always-valid mSPRT p-values, delta-method ratio metrics, staggered DiD, sensitivity bounds, and the AI-measurement modules above.
PyPI: experiment-toolkitEssay: finding and fixing an mSPRT bug
On Criteo's randomized data, platform-credited visits were 4.71x the incremental visits when everyone was targeted and 8.58x for the top 5% by propensity.
Results: Criteo upliftEssay: the targeting model already knows who would convert
Geo lift, attribution, conversion-lift tests, media mix modeling, and web attribution, each with a decision memo.
Zero-shot Chronos-Bolt didn't beat SARIMA with full history (UK MASE 0.784 vs 0.741), but did with only the last 56 days (0.729 vs 0.850).
Code: pretrained forecaster vs SARIMAEssay: pretrained forecasters vs SARIMA
Funnels, cohort retention, RFM and k-means segmentation, and a north-star metric memo, in SQL tested on DuckDB.
18 window-function problems framed as production scenarios, with worked solutions.
Classic games with alpha-beta AIs, and logic puzzles generated in the browser and checked for a unique solution, with a shared daily puzzle. Plain HTML, CSS, and JavaScript.
Three single-file toys, still being play-tested: guess a hidden cellular-automaton rule, seed a rumor in a network, or watch noise reshuffle a prisoner's-dilemma tournament.
The projects above are the fastest way in. Message me on LinkedIn, or open an issue and I'll see it.