arXiv:2311.07070
공식 코드 · Papers with Code
Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations
원문 초록
This work explores the use of self-generated natural language explanations as an intermediate step for code-to-code translation with language models. Across three types of explanations and 19 programming languages constructed from the MultiPL-E dataset, we find the explanations to be particularly effective in the zero-shot case, improving performance by 12% on average. Improvements with natural language explanations are particularly pronounced on difficult programs. We release our dataset, code, and canonical solutions in all 19 languages.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Mutual-Supervised Learning for Sequential-to-Parallel Code Translation
Function-to-Style Guidance of LLMs for Code Translation
Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees
LEGO-Compiler: Enhancing Neural Compilation Through Translation Composability
On-Policy Optimization with Group Equivalent Preference for Multi-Programming Language Understanding
LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
토론
이 논문과 연결된 포럼 글이 아직 없습니다.