Papers
Topics
Authors
Recent
Search
2000 character limit reached

Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations

Published 13 Nov 2023 in cs.CL | (2311.07070v1)

Abstract: This work explores the use of self-generated natural language explanations as an intermediate step for code-to-code translation with LLMs. 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.

Citations (7)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.