Your new prompt improves aggregate pass rate by 3 points, but one customer segment drops 8. How do you catch this before shipping, and what do you do about it?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Catch it by never gating on an aggregate. The aggregate is a weighted average over slices and it will happily hide a segment on fire, which is how you ship a win and lose a customer.
Full worked answer with diagram
Catch it by never gating on an aggregate. The aggregate is a weighted average over slices and it will happily hide a segment on fire, which is how you ship a win and lose a customer.
Define slices before the run, from dimensions that plausibly change model behaviour: language, customer tier, query intent, document source, context length bucket, modality, new versus returning. Report per-slice deltas with confidence intervals next to the aggregate, and gate on "no slice regresses beyond the noise floor" as well as "aggregate improves".
The hard part is that slicing destroys your sample size. 500 examples across 12 slices is ~40 each, where everything is noise and you have learned nothing. The fix happens at dataset construction, not analysis: allocate a floor of ~50-100 examples per slice you actually care about, which means deliberately oversampling rare slices relative to production, then reweight back to the production mix when computing the aggregate. Design the sampling for the question you intend to ask.
On Simpson's paradox specifically: an aggregate can move opposite to every individual slice only when the slice mix differs between the arms. Fixed per-slice counts across arms structurally prevent it, which is another reason for paired designs over the identical examples.
Watch multiple comparisons. Twelve slices at alpha 0.05 gives you roughly a 46% chance of at least one spurious alarm. So I treat slice results as a triage signal that tells me which transcripts to read, not as an automatic ship gate, and I apply a correction if I am making a formal claim.
Then decide. If the segment is small and the regression is cosmetic, ship with a follow-up. If it is your enterprise tier, do not ship. Usually reading those 8 points of failures reveals one fixable cause, like the new prompt assuming a formatting convention that only that segment violates.
Worth sketching. One aggregate box exploding into slices is the fastest way to argue that the gate belongs on the slices, not the average.
flowchart TD
A["Aggregate: +3 points"] --> S["Split by pre-declared slices"]
S --> S1["EN retail: +5"]
S --> S2["JA enterprise: -8"]
S --> S3["Nine other slices: flat"]
S1 --> G{"Any slice regressed<br/>beyond its noise floor?"}
S2 --> G
G -->|"yes"| R["Read that slice's failures;<br/>usually one fixable cause"]
G -->|"no"| SH["Ship"]
What a good answer covers
- Catch it by never gating on an aggregate
- The aggregate is a weighted average over slices and it will happily hide a segment on fire, which is how…
- Define slices before the run, from dimensions that plausibly change model behaviour
- Report per-slice deltas with confidence intervals next to the aggregate, and gate on "no slice regresses…
- The hard part is that slicing destroys your sample size
Interviewer follow-ups to expect
How do you pick slices for failure modes you have not thought of yet?
The regressed slice has 12 examples total. What do you do?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep