mlsanityData to 14 Oct 2026

Fake Runs, Real Fixes -- Analyzing xPU Performance Through Simulation

arXiv 2503.14781 ↗First posted 18 Mar 2025cs.PF cs.DC cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

As models become larger, ML accelerators are a scarce resource whose performance must be continually optimized to improve efficiency. Existing performance analysis tools are coarse grained, and fail to capture model performance at the machine-code level. In addition, these tools often do not provide specific recommendations for optimizations. We present xPU-Shark, a fine-grained methodology for analyzing ML models at the machine-code level that provides actionable optimization suggestions. Our core insight is to use a hardware-level simulator, an artifact of the hardware design process that we can re-purpose for performance analysis. xPU-Shark captures traces from production deployments running on accelerators and replays them in a modified microarchitecture simulator to gain low-level insights into the model's performance. We implement xPU-Shark for our in-house accelerator and used it to analyze the performance of several of our production LLMs, revealing several previously-unknown microarchitecture inefficiencies. Leveraging these insights, we optimize a common communication collective by up to 15% and reduce token generation latency by up to 4.1%.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 47 references that are in the map. First posted on arXiv 18 Mar 2025.

Builds on

9 of 47 references.

References · 9

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  4. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  5. 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
  6. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 202
  7. 2022TinyIREE: An ML Execution Environment for Embedded Systems from Compilation to Deploymentcited by 12
  8. 2018Analyzing Machine Learning Workloads Using a Detailed GPU Simulatorcited by 9
  9. 2020GPA: A GPU Performance Advisor Based on Instruction Samplingcited by 3

Built on by

Not cited yet.