XLA from the Trenches: Correctness on TPU Workloads at Scale
Ignacio Cano, Amir Saadat, Rishipal Singh Bhatia, Samuel Ginzburg, Patrick C. Toulme, Ioannis Zarkadas, Praveen Narayanan, Pratik Bhatu, Nicolas Basile, Alexander Dietmüller, Ruishan Wang, Jacob Wahlgren, Victor Barros, Subhankar Shah, Michael Kuperstein, Farzin Houshmand, Emma Sevastian, Peter Gavin, Karthik Srinivasa Murthy, Berkin Ilbeyi, Amit Sabne, Eli Bendersky
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG, cs.PL
Related papers
From atomic events to material degradation across metre and year scales
Shared title terminologycs.AIKun Li, Tian Luo, Haozhi Han et al.
Diversity over Scale: Recursive Self-Improvement with Ensembles of Small Open-Weight Models
Shared title terminologycs.AINavapat Nananukul, Mayank Kejriwal
CoworkOS:Scaling Agent Coworkers for Real-world Automation
Shared title terminologycs.AIJiajie Jin, Guanting Dong, Chengjun Pan et al.
CUA-Master: Scaling Computer-use Agents through Open-World Recursive Improvements
Shared title terminologycs.AIXinlei Yu, Gen Li, Ji Zhao et al.
TLAPS-Bench: Formally Proving Correctness of Real-World System Specifications with TLA+ Proof System
Shared title terminologycs.AIQian Cheng, Ruize Tang, Saad Mohammad Rafid Pial et al.
MURFormer: Attention-Based Lightweight Multi-Scale Uncertainty-Guided Refinement Framework for PPG Denoising
Shared title terminologycs.AIHaram Kwon, Chaeeun Hwang, Seayul Choi et al.