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.

Google
Statistics & Math
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Technical Screen
Statistics & Math
Medium

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
paired t test
within-subject design
log ratio
Wilcoxon signed-rank
benchmark variance
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample 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 di=newi−oldid_i = \text{new}_i - \text{old}_i. The paired t=dˉ/(sd/k)t = \bar d / (s_d / \sqrt k) with k−1k - 1 degrees of freedom. An unpaired...


Submit Your Answer
Markdown supported