LearnQuestion bank

You are A/B testing a new LLM model and prompt for a customer-support assistant. Outputs are non-deterministic, the provider may update the model mid-test, and your main quality metric comes from an LLM judge. Design the experiment so the result is trustworthy.

ML engineeringTechnicalHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Randomise at conversation/user level, not request; pin model/prompt versions and log the served version on every call
  • Primary outcome tied to business (resolution without escalation, repeat contact within 7 days, CSAT); guardrails for latency, cost per conversation, safety incidents, complaint rates
  • Treat the LLM judge as a noisy measurement: validate against human labels, calibrate/correct bias (e.g. prediction-powered inference), keep judge blind to arm
  • Cluster variance by conversation, use CUPED on pre-period behaviour, run long enough for novelty to fade, pre-register stopping rules or use sequential testing
  • Learn from the 2025 sycophancy rollback: add behavioural evals and qualitative transcript review before shipping, not just short-term approval

In full

I’d randomise at the conversation or user level, not per request, so a single conversation stays in one arm, and I’d pin the model version and prompt while logging the served version on every call so any mid-test provider change is detected and the affected traffic is flagged or excluded. The primary outcome would be a business metric such as resolution without escalation, repeat contact within 7 days, or CSAT, with guardrails on latency, cost per conversation, safety incidents and complaint rates. I’d treat the LLM judge as a measurement with error: validate it against a human-labelled sample, calibrate or correct for its bias (e.g. prediction-powered inference), and keep the judge blind to the arm. For variance and power, I’d cluster by conversation, use CUPED on pre-period behaviour, run long enough for novelty to fade, and pre-register stopping rules or use sequential testing rather than peeking. Finally, given the 2025 sycophancy rollback, I wouldn’t ship on short-term approval alone — I’d add behavioural evals and qualitative review of transcripts before rollout.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Randomises at the user or conversation level (not request) to avoid cross-over within a conversation, and pins model versions with a check that logs the served version on every call
  • Primary outcome tied to the business (resolution without escalation, repeat contact within 7 days, CSAT), with guardrails for latency, cost per conversation, safety incidents and complaint rates
  • Judge metrics treated as measurements with error: validate the judge against human labels, correct for its bias (e.g. calibrate with a small human-labelled sample, prediction-powered inference style), keep the judge blind to the arm
  • Variance and power: conversation-level clustering, CUPED on pre-period behaviour, enough duration for novelty to fade, sequential or pre-registered stopping rules
  • Learns from the 2025 sycophancy rollback: short-term approval metrics can reward agreeable but harmful answers, so include behaviour evals and qualitative review before shipping

Common mistakes

  • Using thumbs-up rate alone as the success metric
  • Ignoring a mid-test model update that changes both arms or one arm

Follow-ups

  • The judge says variant B is better but escalations are flat. What do you conclude?