paper-with-me

홈 › Papers

Demystifying the Silence of Correctness Bugs in PyTorch Compiler

2026-04-09 · Meiziniu Li, Dongze Li, Jianmeng Liu, Shing-Chi Cheung 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.

📄 PDF Abstract BibTeX arXiv:2604.08720

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers

2022-07-26 · Jiawei Liu, JinKun Lin, Fabian Ruffy, Cheng Tan 외

Deep-learning (DL) compilers such as TVM and TensorRT are increasingly being used to optimize deep neural network (DNN) models to meet performance, resource utilization and other requirements. Bugs in these compilers can…

valid

WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models

2023-10-24 · Chenyuan Yang, Yinlin Deng, Runyu Lu, Jiayi Yao 외

Compiler correctness is crucial, as miscompilation can falsify program behaviors, leading to serious consequences. Fuzzing has been studied to uncover compiler defects. However, compiler fuzzing remains challenging: Exis…

Code GenerationCompiler Optimization

Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation

2022-02-21 · Jiawei Liu, Yuxiang Wei, Sen yang, Yinlin Deng 외

In the past decade, Deep Learning (DL) systems have been widely deployed in various domains to facilitate our daily life. Meanwhile, it is extremely challenging to ensure the correctness of DL systems (e.g., due to their…

NeuRI: Diversifying DNN Generation via Inductive Rule Inference

2023-02-04 · Jiawei Liu, Jinjun Peng, Yuyao Wang, Lingming Zhang

Deep Learning (DL) is prevalently used in various industries to improve decision-making and automate processes, driven by the ever-evolving DL libraries and compilers. The correctness of DL systems is crucial for trust i…

Decision MakingProgram Synthesisvalid

Agentic Harness for Real-World Compilers

2026-03-20 · Yingwei Zheng, Cong Li, Shaohua Li, Yuqun Zhang 외 arxiv

Compilers are critical to modern computing, yet fixing compiler bugs is difficult. While recent large language model (LLM) advancements enable automated bug repair, compiler bugs pose unique challenges due to their compl…