paper-with-me

Papers

CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programming

2024-10-27 · Ali TehraniJamsaz, Arijit Bhattacharjee, Le Chen, Nesreen K. Ahmed, Amir Yazdanbakhsh, Ali Jannesari

Recent advancements in Large Language Models (LLMs) have renewed interest in automatic programming language translation. Encoder-decoder transformer models, in particular, have shown promise in translating between different programming languages. However, translating between a language and its high-performance computing (HPC) extensions remains underexplored due to challenges such as complex parallel semantics. In this paper, we introduce CodeRosetta, an encoder-decoder transformer model designed specifically for translating between programming languages and their HPC extensions. CodeRosetta is evaluated on C++ to CUDA and Fortran to C++ translation tasks. It uses a customized learning framework with tailored pretraining and training objectives to effectively capture both code semantics and parallel structural nuances, enabling bidirectional translation. Our results show that CodeRosetta outperforms state-of-the-art baselines in C++ to CUDA translation by 2.9 BLEU and 1.72 CodeBLEU points while improving compilation accuracy by 6.05%. Compared to general closed-source LLMs, our method improves C++ to CUDA translation by 22.08 BLEU and 14.39 CodeBLEU, with 2.75% higher compilation accuracy. Finally, CodeRosetta exhibits proficiency in Fortran to parallel C++ translation, marking it, to our knowledge, as the first encoder-decoder model for this complex task, improving CodeBLEU by at least 4.63 points compared to closed-source and open-code LLMs.

📄 PDF Abstract BibTeX arXiv:2410.20527

Code (0)

등록된 구현이 없습니다.

Tasks

Code TranslationDecoderTranslation

Similar Papers 제목 키워드 기반

Mutual-Supervised Learning for Sequential-to-Parallel Code Translation

2025-06-11 · Changxin Ke, Rui Zhang, Shuo Wang, Li Ding 외

The rise of GPU-based high-performance computing (HPC) has driven the widespread adoption of parallel programming models such as CUDA. Yet, the inherent complexity of parallel programming creates a demand for the automat…

Code TranslationGPUTranslation

Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation

2024-01-16 · Haoran Xu, Amr Sharaf, Yunmo Chen, Weiting Tan 외

Moderate-sized large language models (LLMs) -- those with 7B or 13B parameters -- exhibit promising machine translation (MT) performance. However, even the top-performing 13B LLM-based translation models, like ALMA, does…

DecoderMachine TranslationTranslation

PnPNet: Pull-and-Push Networks for Volumetric Segmentation with Boundary Confusion

2023-12-13 · Xin You, Ming Ding, Minghui Zhang, Hanxiao Zhang 외

Precise boundary segmentation of volumetric images is a critical task for image-guided diagnosis and computer-assisted intervention, especially for boundary confusion in clinical practice. However, U-shape networks canno…

Pushing the Limits of AMR Parsing with Self-Learning

2020-10-20 · Findings of the Association for Computational Linguistics 2020 · Young-suk Lee, Ramon Fernandez Astudillo, Tahira Naseem, Revanth Gangi Reddy 외

Abstract Meaning Representation (AMR) parsing has experienced a notable growth in performance in the last two years, due both to the impact of transfer learning and the development of novel architectures specific to AMR.…

Abstract Meaning RepresentationAMR ParsingMachine TranslationQuestion Answering+3

Syntactically Guided Neural Machine Translation

2016-05-15 · ACL 2016 8 · Felix Stahlberg, Eva Hasler, Aurelien Waite, Bill Byrne

We investigate the use of hierarchical phrase-based SMT lattices in end-to-end neural machine translation (NMT). Weight pushing transforms the Hiero scores for complete translation hypotheses, with the full translation g…

DecoderLanguage ModelingLanguage ModellingMachine Translation+2