# XLA from the Trenches: Correctness on TPU Workloads at Scale

arXiv: https://arxiv.org/abs/2611.00624 · HTML: https://mlsanity.com/paper/2611.00624/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 13 of its 30 references that are in the map.
- Submitted 31 Oct 2026.

## Builds on (most cited first, 13 of 13)

- [In-Datacenter Performance Analysis of a Tensor Processing Unit](https://mlsanity.com/paper/1704.04760/) (2017)
- [Learning to Optimize Tensor Programs](https://mlsanity.com/paper/1805.08166/) (2018)
- [Fuzz4All: Universal Fuzzing with Large Language Models](https://mlsanity.com/paper/2308.04748/) (2023)
- [Glow: Graph Lowering Compiler Techniques for Neural Networks](https://mlsanity.com/paper/1805.00907/) (2018)
- [NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers](https://mlsanity.com/paper/2207.13066/) (2022)
- [WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models](https://mlsanity.com/paper/2310.15991/) (2023)
- [Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing](https://mlsanity.com/paper/2204.08734/) (2022)
- [Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation](https://mlsanity.com/paper/2202.09947/) (2022)
- [Fuzzing Deep Learning Compilers with HirGen](https://mlsanity.com/paper/2208.02193/) (2022)
- [Fuzzing MLIR Compilers with Custom Mutation Synthesis](https://mlsanity.com/paper/2404.16947/) (2024)
- [TensorRight: Automated Verification of Tensor Graph Rewrites](https://mlsanity.com/paper/2511.17838/) (2025)
- [DESIL: Detecting Silent Bugs in MLIR Compiler Infrastructure](https://mlsanity.com/paper/2504.01379/) (2025)
- [Testing, Credible Compilation, and Verification in the Axon Verified Compiler in Lean and Claude Code](https://mlsanity.com/paper/2605.01660/) (2026)

## Abstract (arXiv)

Accelerating modern foundational models has pushed domain-specific compilers toward increasingly complex, multi-tiered optimization pipelines. However, this heavy optimization focus introduces delicate tradeoffs between peak execution performance and correctness. Subtle codegen defects can trigger numerical degradation and memory or buffer corruption, invalidating multi-million-dollar training runs and degrading live serving quality without raising obvious compiler errors. In this paper, we present a battle-tested methodology for verifying and triaging Google's XLA:TPU compiler at hyperscale. We leverage fuzzing techniques, combining synthetic program generation with real production traces, while orchestrating AI agent swarms to autonomously generate stress tests, reproduce failures, and draft fixes. To pinpoint root causes in full workloads, we pair this with a hierarchical differential pipeline that bisects large graphs down to individual failing operations inside fused kernels. Deployed in production, our framework has already driven the resolution of over 142 compiler bugs (with 103 additional findings under review), from which we distill pragmatic lessons learned.
