mlsanityData to 14 Oct 2026

Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation

arXiv 2606.17683 ↗First posted 16 Jun 2026cs.CL cs.PLcited by 0

Not on the map. Why?

Abstract (arXiv)

While large language models (LLMs) have greatly advanced the functional correctness of automated code translation systems, the runtime efficiency of translated programs has received comparatively little attention. With the waning of Moore's law, runtime efficiency has become increasingly important for program quality, alongside functional correctness. Our preliminary study reveals that LLM-translated programs often run slower than human-written ones, and this issue cannot be remedied through prompt engineering alone. Therefore, our work proposes SwiftTrans, a code translation framework comprising two key stages: (1) Multi-Perspective Exploration, where MpTranslator leverages parallel in-context learning (ICL) to generate diverse translation candidates; and (2) Difference-Aware Selection, where DiffSelector identifies the optimal candidate by explicitly comparing differences between translations. We further introduce Hierarchical Guidance for MpTranslator and Ordinal Guidance for DiffSelector, enabling LLMs to better adapt to these two core components. To support the evaluation of runtime efficiency in translated programs, we extend existing benchmarks, CodeNet and F2SBench, and introduce a new benchmark, SwiftBench. Experimental results across all three benchmarks show that SwiftTrans achieves consistent improvements in both correctness and runtime efficiency.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 31 references that are in the map. First posted on arXiv 16 Jun 2026.

Builds on

23 of 31 references.

References · 23

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  3. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  4. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
  5. 2023Learning Performance-Improving Code Editscited by 106
  6. 2024Benchmarking Benchmark Leakage in Large Language Modelscited by 106
  7. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  8. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
  9. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
  10. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  11. 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
  12. 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
11 more
  1. 2023CoTran: An LLM-based Code Translator using Reinforcement Learning with Feedback from Compiler and Symbolic Executioncited by 22
  2. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  3. 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiencycited by 16
  4. 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generationcited by 16
  5. 2024Large-Language-Model Enabled Semantic Communication Systemscited by 12
  6. 2024Scalable, Validated Code Translation of Entire Projects using Large Language Modelscited by 12
  7. 2025ExeCoder: Empowering Large Language Models with Executability Representation for Code Translationcited by 10
  8. 2024ClassEval-T: Evaluating Large Language Models in Class-Level Code Translationcited by 8
  9. 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
  10. 2024Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generationcited by 4
  11. 2025Function-to-Style Guidance of LLMs for Code Translationcited by 4

Built on by

Not cited yet.