EffiReasonTrans: RL-Optimized Reasoning for Code Translation
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Code translation is a crucial task in software development and maintenance. While recent advancements in large language models (LLMs) have improved automated code translation accuracy, these gains often come at the cost of increased inference latency, hindering real-world development workflows that involve human-in-the-loop inspection. To address this trade-off, we propose EffiReasonTrans, a training framework designed to improve translation accuracy while balancing inference latency. We first construct a high-quality reasoning-augmented dataset by prompting a stronger language model, DeepSeek-R1, to generate intermediate reasoning and target translations. Each (source code, reasoning, target code) triplet undergoes automated syntax and functionality checks to ensure reliability. Based on this dataset, we employ a two-stage training strategy: supervised fine-tuning on reasoning-augmented samples, followed by reinforcement learning to further enhance accuracy and balance inference latency. We evaluate EffiReasonTrans on six translation pairs. Experimental results show that it consistently improves translation accuracy (up to +49.2% CA and +27.8% CodeBLEU compared to the base model) while reducing the number of generated tokens (up to -19.3%) and lowering inference latency in most cases (up to -29.0%). Ablation studies further confirm the complementary benefits of the two-stage training framework. Additionally, EffiReasonTrans demonstrates improved translation accuracy when integrated into agent-based frameworks. Our code and data are available at https://github.com/DeepSoftwareAnalytics/EffiReasonTrans.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 54 of its 109 references that are in the map. First posted on arXiv 21 Oct 2025.
Builds on
54 of 109 references.
References · 54
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Modelscited by 456
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2022Large Language Models Are Reasoning Teacherscited by 318
38 more
- 2025Chain of Draft: Thinking Faster by Writing Lesscited by 290
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2025TokenSkip: Controllable Chain-of-Thought Compression in LLMscited by 246
- 2024Token-Budget-Aware LLM Reasoningcited by 242
- 2024From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Stepcited by 225
- 2025CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillationcited by 216
- 2025CoT-Valve: Length-Compressible Chain-of-Thought Tuningcited by 167
- 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 165
- 2025Sketch-of-Thought: Efficient LLM Reasoning with Adaptive Cognitive-Inspired Sketchingcited by 116
- 2024Concise Thoughts: Impact of Output Length on LLM Reasoning and Costcited by 108
- 2025Efficient Reasoning Models: A Surveycited by 93
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2025Efficient Reasoning with Hidden Thinkingcited by 72
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
- 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
- 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 31
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2024HumanEvo: An Evolution-aware Benchmark for More Realistic Evaluation of Repository-level Code Generationcited by 26
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024STALL+: Boosting LLM-based Repository-level Code Completion with Static Analysiscited by 21
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2024Rectifier: Code Translation with Corrector via LLMscited by 20
- 2024Unraveling the Potential of Large Language Models in Code Translation: How Far Are We?cited by 17
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2024Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmarkcited by 13
- 2022Tackling Long Code Search with Splitting, Encoding, and Aggregatingcited by 9
- 2023SteloCoder: a Decoder-Only LLM for Multi-Language to Python Code Translationcited by 9
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 9
- 2023TransCoder: Towards Unified Transferable Code Representation Learning Inspired by Human Skillscited by 8
- 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignmentcited by 7
- 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rustcited by 6
- 2024Demystifying and Detecting Cryptographic Defects in Ethereum Smart Contractscited by 4
- 2025Code Copycat Conundrum: Demystifying Repetition in LLM-based Code Generationcited by 4
- 2025FORGE: An LLM-driven Framework for Large-Scale Smart Contract Vulnerability Dataset Constructioncited by 4
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinementcited by 3
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
- 2026Bootstrapping Code Translation with Weighted Multilanguage Explorationcited by 0
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translationcited by 0
- 2026Bootstrapping Niche Multilingual Code Translation via Reinforcement Learning with Execution-Based Verifiable Supervisioncited by 0
- 2026Bootstrapping Niche Multilingual Code Translation via Reinforcement Learning with Execution-Based Verifiable Supervision14 Aug 2026
- 2026Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation16 Jun 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2026Bootstrapping Code Translation with Weighted Multilanguage Exploration7 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2025R1-T1: Fully Incentivizing Translation Capability in LLMs via Reasoning Learning
- 2026Unlocking Reasoning Capability on Machine Translation in Large Language Models
- 2025EffiReason-Bench: A Unified Benchmark for Evaluating and Advancing Efficient Reasoning in Large Language Models
- 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
- 2026Efficient Multilingual Reasoning Transfer via Progressive Code-Switching
- 2025Code-enabled language models can outperform reasoning models on diverse tasks
- 2025DeepTrans: Deep Reasoning Translation via Reinforcement Learning