BabelTower: Learning to Auto-parallelized Program Translation
Yuanbo Wen, Qi Guo, Qiang Fu, Xiaqing Li, Jianxing Xu, Yanlin Tang, Yongwei Zhao, Xing Hu, Zidong Du, Ling Li, Chao Wang, Xuehai Zhou, Yunji Chen
摘要
GPUs have become the dominant computing platforms for many applications, while programming GPUs with the widely-used CUDA parallel programming model is difficult. As sequential C code is relatively easy to obtain either from legacy repositories or by manual implementation, automatically translating C to its parallel CUDA counterpart is promising to relieve the burden of GPU programming. However, because of huge differences between the sequential C and the parallel CUDA programming model, existing approaches fail to conduct the challenging auto-parallelized program translation. In this paper, we propose a learning-based framework, i.e., BabelTower, to address this problem. We first create a large-scale dataset consisting of computeintensive function-level monolingual corpora. We further propose using back-translation with a discriminative reranker to cope with unpaired corpora and parallel semantic conversion. Experimental results show that BabelTower outperforms state-of-the-art by 1.79, 6.09, and 9.39 in terms of BLEU, CodeBLEU, and specifically designed ParaBLEU, respectively. The CUDA code generated by BabelTower attains a speedup of up to 347× over the sequential C code, and the developer productivity is improved by at most 3.8×.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 Unsupervised Translation of Programming Languages
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 Leveraging Automated Unit Tests for Unsupervised Code Translation
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
- Leveraging Automated Unit Tests for Unsupervised Code Translation 引用了 Unsupervised Translation of Programming Languages
- Leveraging Automated Unit Tests for Unsupervised Code Translation 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
- DOBF: A Deobfuscation Pre-Training Objective for Programming Languages 引用了 Unsupervised Translation of Programming Languages
- ExeCoder: Empowering Large Language Models with Executability Representation for Code Translation 引用了 Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code
- ExeCoder: Empowering Large Language Models with Executability Representation for Code Translation 引用了 Unsupervised Translation of Programming Languages
- ExeCoder: Empowering Large Language Models with Executability Representation for Code Translation 引用了 Leveraging Automated Unit Tests for Unsupervised Code Translation
- A Joint Learning Model with Variational Interaction for Multilingual Program Translation 引用了 Unsupervised Translation of Programming Languages
- A Joint Learning Model with Variational Interaction for Multilingual Program Translation 引用了 Leveraging Automated Unit Tests for Unsupervised Code Translation
- A Joint Learning Model with Variational Interaction for Multilingual Program Translation 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
引用它的顶会 Paper3
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating CodeRangeet Pan, Ali Reza Ibrahimzada, Rahul Krishna, Divya Sankar 等ICSE 2024 · 96 次引用
- A Joint Learning Model with Variational Interaction for Multilingual Program TranslationYali Du, Hui Sun, Ming LiASE 2024 · 6 次引用
- ExeCoder: Empowering Large Language Models with Executability Representation for Code TranslationMinghua He, Yue Chen, Fangkai Yang, Pu Zhao 等EMNLP 2025 · 1 次引用
它引用的 Paper4
- Unsupervised Translation of Programming LanguagesBaptiste Rozière, Marie-Anne Lachaux, Lowik Chanussot, Guillaume LampleNeurIPS 2020 · 606 次引用
- DOBF: A Deobfuscation Pre-Training Objective for Programming LanguagesMarie-Anne Lachaux, Baptiste Rozière, Marc Szafraniec, Guillaume LampleNeurIPS 2021 · 174 次引用
- Leveraging Automated Unit Tests for Unsupervised Code TranslationBaptiste Rozière, Jie Zhang, François Charton, Mark Harman 等ICLR 2022 · 161 次引用
- Discriminative Reranking for Neural Machine TranslationAnn Lee, Michael Auli, Marc'Aurelio RanzatoACL 2021
相关 Paper
- QiMeng-MuPa: Mutual-Supervised Learning for Sequential-to-Parallel Code TranslationChangxin Ke, Rui Zhang, Shuo Wang, Li Ding 等NeurIPS 2025 · 3 次引用
- CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel ProgrammingAli TehraniJamsaz, Arijit Bhattacharjee, Le Chen, Nesreen K. Ahmed 等NeurIPS 2024 · 36 次引用
- Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code TranslationLe Chen, Nuo Xu, Winson Chen, Bin Lei 等ACL 2026 · 6 次引用
- Understanding Performance Problems in CUDA ProgramsYuyang Bi, Junming Cao, You Lu, Bihuan Chen 等FSE 2026
- QiMeng-Xpiler: Transcompiling Tensor Programs for Deep Learning Systems with a Neural-Symbolic ApproachShouyang Dong, Jun Bi, Di Huang, Jiaming Guo 等OSDI 2025 · 6 次引用
