mlsanityData to 7 Oct 2026

Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translation

arXiv 2512.03086 ↗First posted 29 Nov 2025cs.PL cs.AI cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown remarkable capabilities in code translation, yet their performance deteriorates in low-resource programming domains such as Fortran and emerging frameworks like CUDA, where high-quality parallel data are scarce. We present an automated dataset generation pipeline featuring a dual-LLM Questioner-Solver design that incorporates external knowledge from compilers and runtime feedback. Beyond traditional source-target code pair datasets, our approach additionally generates (1) verified translations with unit tests for assessing functional consistency and (2) multi-turn dialogues that capture the reasoning process behind translation refinement. Applied to Fortran-to-C++ and C++-to-CUDA, the pipeline yields 3.64k and 3.93k dialogues, respectively. Fine-tuning on this data yields dramatic improvements in functional correctness, boosting unit test success rates by over 56% on the challenging C++-to-CUDA task. We show that the generated data enables a 7B open-weight model to significantly outperform larger proprietary systems on key metrics like compilation success.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 22 of its 141 references that are in the map. First posted on arXiv 29 Nov 2025.

Builds on

22 of 141 references.

References · 22

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  8. 2020Unsupervised Translation of Programming Languagescited by 262
  9. 2025Evaluation and Benchmarking of LLM Agents: A Surveycited by 145
  10. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  11. 2024Can Large Language Models Write Parallel Code?cited by 36
  12. 2024The Landscape and Challenges of HPC Research and LLMscited by 22
10 more
  1. 2024CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programmingcited by 19
  2. 2023Learning to Parallelize with OpenMP by Augmented Heterogeneous AST Representationcited by 14
  3. 2023MonoCoder: Domain-Specific Code Language Model for HPC Codes and Taskscited by 12
  4. 2023Creating a Dataset for High-Performance Computing Code Translation using LLMs: A Bridge Between OpenMP Fortran and C++cited by 11
  5. 2024LASSI: An LLM-based Automated Self-Correcting Pipeline for Translating Parallel Scientific Codescited by 10
  6. 2024Leveraging Large Language Models for Code Translation and Software Development in Scientific Computingcited by 9
  7. 2023AutoParLLM: GNN-guided Context Generation for Zero-Shot Code Parallelization using LLMscited by 5
  8. 2025Can Large Language Models Predict Parallel Code Performance?cited by 4
  9. 2025ParEval-Repo: A Benchmark Suite for Evaluating LLMs with Repository-level HPC Translation Taskscited by 4
  10. 2025UniPar: A Unified LLM-Based Framework for Parallel and Accelerated Code Translation in HPCcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Fortran2CPP: Automating Fortran-to-C++ Translation using LLMs via Multi-Turn Dialogue and Dual-Agent Integration
  2. 2025LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
  3. 2025Evaluating and Improving Large Language Models for Competitive Program Generation
  4. 2025Data-efficient LLM Fine-tuning for Code Generation
  5. 2024Case2Code: Scalable Synthetic Data for Code Generation
  6. 2025Infinite-Instruct: Synthesizing Scaling Code instruction Data with Bidirectional Synthesis and Static Verification
  7. 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique
  8. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement