Paired Test for Comparing Two TPU Compiler Versions on Benchmarks
Last updated: November 29, 2026
Quick Overview
A new XLA compiler release is run on the same 8 models as the old release; step times range from 7 ms to 95 ms. Decide whether the new compiler is faster and explain why the choice of paired versus unpaired test changes the answer completely.
0
0
0 solved
A new XLA compiler release is run on the same 8 models as the old release; step times range from 7 ms to 95 ms. Decide whether the new compiler is faster and explain why the choice of paired versus unpaired test changes the answer completely.
Google ML infrastructure teams benchmark compilers and kernels across very different models, so between-model variance dwarfs the change. The interviewer wants you to notice the pairing, run the right test, and talk about relative rather than absolute differences.
What the Interviewer Expects
- Recognize that each model is measured under both versions
- Compute the paired t statistic on differences
- Contrast with an unpaired test and explain the gap
- Consider log ratios for multiplicative effects
- Mention a nonparametric backup such as the sign or Wilcoxon test
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- Would you analyze absolute or relative speedups, and why?
- How would you account for run-to-run noise within one model?
- What if one model got 30% slower while the rest sped up?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Confirm each model ran on the same TPU type with the same batch size under both compilers, and ask whether each number is a median over many steps. Assume yes, so the 8 pairs are the unit of analysis....
Approach
Because the same models appear in both groups, analyze per-model differences . The paired with degrees of freedom. An unpaired...