Numerical computing · Manuscript under review · MLSys 2027

Bit-level TPU MXU characterization

Localizing cross-generation bf16 matrix-multiplication differences on TPU v4, v5e, and v6e, reproducing them in a CPU emulator, and testing what it takes for a whole model to agree across generations.

Manuscript under review · MLSys 2027Lead · Gianluigi VitaleLast updated · 29 October 2026

Overview

Localizing cross-generation bf16 matrix-multiplication differences on TPU v4, v5e, and v6e, reproducing them in a CPU emulator, and testing what it takes for a whole model to agree across generations.

Problem

The same model served on different TPU generations can produce different outputs, and accelerator arithmetic can differ from idealized numerical descriptions in ways that affect reproducibility, porting, and model behavior.

Approach

Probing TPU v4, v5e, and v6e from outside, the project localizes where matrix-multiplication results diverge, implements a CPU emulator of the numerical path, and tests which parts of the program must be pinned for a full model to agree across generations.

Results & current status

  • Cross-generation bf16 matrix-multiplication differences on TPU v4, v5e, and v6e were localized to the compiled cross-pass reduction order.
  • A CPU emulator reproduced 34.6M fresh outputs bit for bit on all three generations (bf16, default precision, four standard input regimes).
  • Matching matrix multiplications alone does not make the model agree across generations.
  • Whole-program pinning yields identical logits and greedy text across all three generations, and identical vLLM output on TPU v5e and v6e.
  • A paper on this work, co-authored with Prof. Rocco Pietrini, is under review at MLSys 2027.

Technical details

The work spans floating-point reduction order, bf16 matrix-multiplication probing, CPU reference emulation, JAX/Pallas execution, and serving-stack validation in vLLM.

Reproducibility

Methods, code, and artifacts will be linked when the review process permits a public release.