ACL Findings2023
AVATAR: A Parallel Corpus for Java-Python Program Translation
Wasi Uddin Ahmad, Md Golam Rahman Tushar, Saikat Chakraborty, Kai-Wei Chang
摘要
Program translation refers to migrating source code from one programming language to another. It has tremendous practical value in software development, as porting software across languages is time-consuming and costly. Automating program translation is of paramount importance in software migration, and recently researchers explored unsupervised approaches due to the unavailability of parallel corpora. However, the availability of pre-trained language models for programming languages enables supervised fine-tuning with a small number of labeled examples. Therefore, we present AVATAR, a collection of 9,515 programming problems and their solutions written in two popular languages, Java and Python. AVATAR is collected from competitive programming sites, online platforms, and open-source repositories. Furthermore, AVATAR includes unit tests for 250 examples to facilitate functional correctness evaluation. We benchmark several pretrained language models fine-tuned on AVATAR. Experiment results show that the models lack in generating functionally accurate code.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
- Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generation 引用了 CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generation 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generation 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- NatGen: generative pre-training by "naturalizing" source code 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- NatGen: generative pre-training by "naturalizing" source code 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
- NatGen: generative pre-training by "naturalizing" source code 引用了 DOBF: A Deobfuscation Pre-Training Objective for Programming Languages
- NatGen: generative pre-training by "naturalizing" source code 引用了 GraphCodeBERT: Pre-training Code Representations with Data Flow
- SelfCodeAlign: Self-Alignment for Code Generation 引用了 CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- SelfCodeAlign: Self-Alignment for Code Generation 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization 引用了 CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
- EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization 引用了 CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
引用它的顶会 Paper23
- NatGen: generative pre-training by "naturalizing" source codeSaikat Chakraborty, Toufique Ahmed, Yangruibo Ding, Premkumar T. Devanbu 等FSE 2022 · 101 次引用
- Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating CodeRangeet Pan, Ali Reza Ibrahimzada, Rahul Krishna, Divya Sankar 等ICSE 2024 · 96 次引用
- SelfCodeAlign: Self-Alignment for Code GenerationYuxiang Wei, Federico Cassano, Jiawei Liu, Yifeng Ding 等NeurIPS 2024 · 79 次引用
- EffiLearner: Enhancing Efficiency of Generated Code via Self-OptimizationDong Huang, Jianbo Dai, Han Weng, Puzhen Wu 等NeurIPS 2024 · 54 次引用
- Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code GenerationJingchang Chen, Hongxuan Tang, Zheng Chu, Qianglong Chen 等NeurIPS 2024 · 29 次引用
它引用的 Paper7
- CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
- GraphCodeBERT: Pre-training Code Representations with Data FlowDaya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng 等ICLR 2021 · 1,644 次引用
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationYue Wang, Weishi Wang, Shafiq R. Joty, Steven C. H. HoiEMNLP 2021 · 1,224 次引用
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu 等ICLR 2023 · 234 次引用
- DOBF: A Deobfuscation Pre-Training Objective for Programming LanguagesMarie-Anne Lachaux, Baptiste Rozière, Marc Szafraniec, Guillaume LampleNeurIPS 2021 · 174 次引用
相关 Paper
- Syntax and Domain Aware Model for Unsupervised Program TranslationFang Liu, Jia Li, Li ZhangICSE 2023 · 25 次引用
- Multilingual Code Co-evolution using Large Language ModelsJiyang Zhang, Pengyu Nie, Junyi Jessy Li, Milos GligoricFSE 2023 · 34 次引用
- Exploring and Unleashing the Power of Large Language Models in Automated Code TranslationZhen Yang, Fang Liu, Zhongxing Yu, Jacky Wai Keung 等FSE 2024 · 72 次引用
- Program Translation via Code DistillationYufan Huang, Mengnan Qi, Yongqiang Yao, Maoquan Wang 等EMNLP 2023 · 7 次引用
- Leveraging Automated Unit Tests for Unsupervised Code TranslationBaptiste Rozière, Jie Zhang, François Charton, Mark Harman 等ICLR 2022 · 161 次引用
