mlsanityData to 14 Oct 2026

Demystifying the Silence of Correctness Bugs in PyTorch Compiler

arXiv 2604.08720 ↗First posted 9 Apr 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Performance optimization of AI infrastructure is key to the fast adoption of large language models (LLMs). The PyTorch compiler (torch.compile), a core optimization tool for deep learning (DL) models (including LLMs), has received due attention. However, torch.compile is prone to correctness bugs, which cause incorrect outputs of compiled DL models without triggering exceptions, crashes, or warnings. These bugs pose a serious threat to the reliability of downstream LLM applications. Data from the PyTorch community shows that 19.2% of high-priority issues are incorrect outputs of compiled DL models induced by torch.compile bugs, the second-most-common bug category (only behind program crashes at 19.57%). However, no systematic study has been conducted to specifically characterize and thereby detect these bugs. In this paper, we present the first empirical study of the correctness bugs in torch.compile, examine their characteristics, and assess the effectiveness of existing fuzzers in detecting them. Based on our findings, we propose a proof-of-concept testing technique named AlignGuard, tailored specifically for detecting correctness bugs in torch.compile. AlignGuard incorporates bug characteristics distilled from our empirical study, applying LLM-based test mutation to existing test cases for correctness bug detection. At the time of writing, AlignGuard has successfully detected 23 new correctness bugs in recent torch.compile. All these bugs have been confirmed or fixed by the PyTorch development team, and over half (14/23) of them are even marked as high-priority bugs, underscoring the usefulness of our technique.

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

Builds on

13 of 32 references.

References · 13

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  2. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  3. 2023LLM4Drive: A Survey of Large Language Models for Autonomous Drivingcited by 136
  4. 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
  5. 2024Large Language Models for Disease Diagnosis: A Scoping Reviewcited by 51
  6. 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
  7. 2021Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlowcited by 25
  8. 2022DeepStability: A Study of Unstable Numerical Methods and Their Solutions in Deep Learningcited by 11
  9. 2025Training with Confidence: Catching Silent Errors in Deep Learning Training with Automated Proactive Checkscited by 10
  10. 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 7
  11. 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 5
  12. 2025Isolating Language-Coding from Problem-Solving: Benchmarking LLMs with PseudoEvalcited by 3
1 more
  1. 2025Mut4All: Fuzzing Compilers via LLM-Synthesized Mutators Learned from Bug Reportscited by 3

Built on by

Not cited yet.