Demystifying Deep Learning Compiler Frontend Bugs: An LLM-Aided Empirical Study
Xinyi YuanWCWei ChenJinyi LiuPengyu ChenJun WeiGuoquan WuJiaxin ZhuTao Huang
Xinyi Yuan
WCWei Chen
Jinyi Liu
Pengyu Chen
Jun Wei
Guoquan Wu
Jiaxin Zhu
Tao Huang
+8
This paper presents the first systematic empirical study of frontend bugs (fBugs) in deep learning compilers, focusing on TorchDynamo, the default frontend for PyTorch 2. Using a domain-knowledge-enhanced LLM-aided methodology, the authors analyze 123 fBugs and construct a taxonomy with 7 root cause categories and 15 subcategories. They then leverage the LLM to generate root cause-aware test cases, uncovering 23 previously unknown fBugs (15 confirmed) in recent releases, demonstrating the effectiveness of their approach for testing and hardening DLC frontends.

arXiv ·
· July 28, 2026