Creating a Dataset for High-Performance Computing Code Translation using LLMs: A Bridge Between OpenMP Fortran and C++
Bin Lei, Caiwen Ding, Le Chen, Pei-Hung Lin, Chunhua Liao

TL;DR
This paper introduces a new dataset for training machine learning models to translate between OpenMP Fortran and C++ code, significantly improving translation accuracy and reaching near-human performance.
Contribution
The creation of a high-quality, representative dataset for OpenMP Fortran and C++ code translation, enhancing LLM performance in high-performance computing contexts.
Findings
Models without prior coding knowledge improved CodeBLEU scores by 5.1 times.
Models with some coding experience improved scores by 9.9 times.
The best fine-tuned model surpasses GPT-4 and approaches human-level accuracy.
Abstract
In this study, we present a novel dataset for training machine learning models translating between OpenMP Fortran and C++ code. To ensure reliability and applicability, the dataset is created from a range of representative open-source OpenMP benchmarks. It is also refined using a meticulous code similarity test. The effectiveness of our dataset is assessed using both quantitative (CodeBLEU) and qualitative (human evaluation) methods. We showcase how this dataset significantly elevates the translation competencies of large language models (LLMs). Specifically, models without prior coding knowledge experienced a boost of in their CodeBLEU scores, while models with some coding familiarity saw an impressive -fold increase. The best fine-tuned model using our dataset outperforms GPT-4. It is also reaching human-level accuracy. This work underscores…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Natural Language Processing Techniques · Topic Modeling
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Residual Connection · Adam · Byte Pair Encoding · Softmax · Dropout · Label Smoothing · Absolute Position Encodings
