تقرير
Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations
العنوان: | Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations |
---|---|
المؤلفون: | Tang, Zilu, Agarwal, Mayank, Shypula, Alex, Wang, Bailin, Wijaya, Derry, Chen, Jie, Kim, Yoon |
سنة النشر: | 2023 |
المجموعة: | Computer Science |
مصطلحات موضوعية: | Computer Science - Computation and Language |
الوصف: | 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. Comment: 9 pages, 4 figures, 5 tables, 48 pages total. To be published in EMNLP Findings 2023 |
نوع الوثيقة: | Working Paper |
URL الوصول: | http://arxiv.org/abs/2311.07070 |
رقم الأكسشن: | edsarx.2311.07070 |
قاعدة البيانات: | arXiv |
الوصف غير متاح. |