mlsanityData to 7 Oct 2026

Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integration

arXiv 2412.19770 ↗First posted 27 Dec 2024cs.LGcited by 4

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Translating legacy Fortran code into C++ is a crucial step in modernizing high-performance computing (HPC) applications. However, the scarcity of high-quality, parallel Fortran-to-C++ datasets and the limited domain-specific expertise in large language models (LLMs) present significant challenges for automated translation. In this paper, we introduce Fortran2CPP, a multi-turn dialogue dataset generated by a novel LLM agent-based approach that integrates a dual-LLM Questioner-Solver module to enhance translation accuracy. Our dataset comprises 11.7k dialogues capturing iterative feedback-decision workflows including code translation, compilation, execution, unit testing, and error-fixing. Using this dataset, we fine-tune several open-weight LLMs and achieve up to a 3.31x improvement in CodeBLEU scores and a 92% increase in compilation success rate, demonstrating enhanced syntactic accuracy and functional reliability. Our findings highlight the value of dialogue-based LLM training for complex code translation tasks. The dataset and model have been open-sourced and are available on our public GitHub repositoryfootnoteurlhttps://github.com/HPC-Fortran2CPP/Fortran2Cpp.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 38 references that are in the map. First posted on arXiv 27 Dec 2024.

Builds on

15 of 38 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug

Other references · 14

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  4. 2023StarCoder: may the source be with you!cited by 790
  5. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  7. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  8. 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
  9. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  10. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  11. 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
  12. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
2 more
  1. 2022Code Translation with Compiler Representationscited by 42
  2. 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translation
  2. 2025LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
  3. 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment
  4. 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora
  5. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
  6. 2025REMODEL-LLM: Transforming C code to Java using LLMs
  7. 2026Exploring the Role of LLMs in HPC Programming: A Survey
  8. 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validation