Execution-based Evaluation for Data Science Code Generation Models
Beihang University(北京航空航天大学);Microsoft Research Redmond(微软研究院雷德蒙德分院);Microsoft Research Asia(微软亚洲研究院);Microsoft(微软公司);Hong Kong University of Science and Technology(香港科技大学);Toronto University(多伦多大学)
Junjie Huang, Chenglong Wang, Jipeng Zhang, Cong Yan, Haotian Cui, Jeevana Priya Inala, Colin Clement, Nan Duan, Jianfeng Gao
备注:
Accepted by the 4th Workshop on Data Science with Human-in-the-loop (DaSH) at EMNLP 2022
Code generation models can benefit data scientists' productivity by automatically generating code from context and text descriptions. An important measure of the modeling progress is whether a model can generate code that can correctly execute to solve the task. However, due to the lack of an evaluation dataset that directly supports execution-based model evaluation, existing work relies on code surface form similarity metrics (e.g., BLEU, CodeBLEU) for model selection, which can be inaccurate.
To remedy this, we introduce ExeDS, an evaluation dataset for execution evaluation for data science code generation tasks. ExeDS contains a set of 534 problems from Jupyter Notebooks, each consisting of code context, task description, reference program, and the desired execution output. With ExeDS, we evaluate the execution performance of five state-of-the-art code generation models that have achieved high surface-form evaluation scores. Our experiments show that models with high surface-form scores do not necessarily perform well on execution metrics, and execution-based metrics can better capture model code generation errors. Source code and data can be found at https://github.com/Jun-jie-Huang/ExeDS
Natural Language to Code Translation with Execution
Meta AI;Toyota Technological Institute at Chicago(芝加哥丰田技术研究院);Carnegie Mellon University(卡内基梅隆大学);University of Washington(华盛顿大学)
在大型程序语料库上预训练的代码生成模型在将自然语言转换为代码方面已经显示出巨大的成功(Chen et al.,2021; Austin等人,2021年; Li等人,2022年,除其他外)。虽然这些模型没有明确地结合程序语义(即,执行结果),在培训期间,他们能够对许多问题产生正确的解决方案。然而,选择一个正确的程序从每个问题的生成集仍然具有挑战性。在这项工作中,我们引入了基于执行结果的最小贝叶斯风险解码(MBR-EXEC)的程序选择,并表明它提高了自然语言到代码任务的预训练代码模型的Few-Shot性能。我们选择输出程序从一个产生的候选人集边缘化的程序实现,共享相同的语义。由于精确等价是棘手的,我们执行每个程序上的少量测试输入近似语义等价。跨数据集,执行或模拟执行显著优于不涉及程序语义的方法。我们发现,MBR-EXEC一贯改善所有执行不知情的选择方法,这表明它是一种有效的方法,自然语言的代码翻译。我们在github.com/facebookresearch/mbr-exec上开源我们的代码,在dl.fbaipublicfiles.com/mbr-exec/mbr-exec-release.zip上开源我们的数据
CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment
School of Computer Science, Peking University(北京大学计算机科学系);Tongyi Lab, Alibaba Group(阿里集团通义实验室);School of Computer Science, Wuhan University(武汉大学计算机科学系)
CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification
Hong Kong Baptist University(香港浸会大学);UC Santa Barbara(加州大学圣巴巴拉分校);UC Berkeley(加州大学伯克利分校);Alibaba Group(阿里巴巴集团);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)
SpaceTime Programming: Live and Omniscient Exploration of Code and Execution
Université de Rennes, IRISA(雷恩大学,IRISA);Université de Rennes, CNRS, IRISA(雷恩大学,CNRS,IRISA);Université de Rennes, Inria, CNRS, IRISA(雷恩大学,Inria,CNRS,IRISA)
CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generation
University of California, Santa Barbara(加利福尼亚大学圣巴巴拉分校);School of Software Engineering, Xi’an Jiaotong University(西安交通大学软件学院);Zhejiang University(浙江大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Alibaba Group(阿里巴巴集团);TU Wien(维也纳技术大学);University of Chinese Academy of Sciences(中国科学院大学)
EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization
The University of Hong Kong(香港大学);University of Edinburgh(爱丁堡大学);University College Dublin(都柏林大学学院);Shanghai AI Laboratory(上海人工智能实验室);University of Cambridge(剑桥大学)
OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement
Multimodal Art Projection Research Community(多模态艺术投影研究共同体);University of Waterloo(滑铁卢大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);HKUST(香港科技大学);IN.AI Research(IN.AI研究机构)
Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs
Xi’an Jiaotong University(西安交通大学);Institute of AI for Industries, Chinese Academy of Sciences(中国科学院人工智能产业研究院);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)
ResearchEnvBench: Benchmarking Agents on Environment Synthesis for Research Code Execution
Institute of Trustworthy Embodied AI(可信具身AI研究院);Shanghai Innovation Institution(上海创新机构);Shanghai Key Laboratory of Multimodal Embodied AI(上海多模态具身AI重点实验室);College of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);OpenMOSS;Wuhan University(武汉大学);Nanjing University(南京大学);Jilin University(吉林大学)
BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Execution
Monash University(墨尔本大学);CSIRO’s Data61(CSIRO的数据61);Purdue University(普渡大学);Independent(独立);HKUST (Guangzhou)(香港科技大学(广州));UCSD(加州大学圣地亚哥分校);UVA(弗吉尼亚大学);CNRS, France(法国国家科学研究中心);IBM;Cisco(思科);Comenius University in Bratislava(布拉提斯拉瓦康门纽斯大学);University of Notre Dame(Notre Dame大学);Uber;Tano Labs(Tano实验室);NUS(国立大学新加坡);Institute of Automation, CAS(中国科学院自动化研究所);Tencent AI Lab(腾讯AI实验室);University of Washington(华盛顿大学);Nevsky Collective(Nevsky集体);ETH Zurich(苏黎世联邦理工学院);Detomo Inc(Detomo公司);University of Oxford(牛津大学);UIUC(伊利诺伊大学香槟分校);Google(谷歌);NVIDIA;Singapore Management University(新加坡管理学院);ServiceNow Research(ServiceNow研究);Hugging Face
Execution-Anchored Hallucination Calibration Reranking for Verilog Code Generation
State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州国家高新区(滨江)区块链与数据安全研究院);School of Artificial Intelligence and Computer Science, Nantong University(南通大学人工智能与计算机学院);Department of Computer Science, Monash University(蒙纳士大学计算机科学系);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61)