Fault-Aware Neural Code Rankers

被引:0
|
作者
Inala, Jeevana Priya [1 ]
Wang, Chenglong [1 ]
Yang, Mei [1 ]
Codas, Andres [1 ]
Encarnacion, Mark [1 ]
Lahiri, Shuvendu K. [1 ]
Musuvathi, Madanlal [1 ]
Gao, Jianfeng [1 ]
机构
[1] Microsoft Res, Redmond, WA 98052 USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Large language models (LLMs) have demonstrated an impressive ability to generate code for various programming tasks. In many instances, LLMs can generate a correct program for a task when given numerous trials. Consequently, a recent trend is to do large scale sampling of programs using a model and then filtering/ranking the programs based on the program execution on a small number of known unit tests to select one candidate solution. However, these approaches assume that the unit tests are given and assume the ability to safely execute the generated programs (which can do arbitrary dangerous operations such as file manipulations). Both of the above assumptions are impractical in real-world software development. In this paper, we propose CODERANKER, a neural ranker that can predict the correctness of a sampled program without executing it. Our CODERANKER is fault-aware i.e., it is trained to predict different kinds of execution information such as predicting the exact compile/runtime error type (e.g., an IndexError or a TypeError). We show that CODERANKER can significantly increase the pass@1 accuracy of various code generation models (including Codex [11], GPT-Neo, GPT-J) on APPS [25], HumanEval [11] and MBPP [3] datasets.
引用
收藏
页数:14
相关论文
共 50 条
  • [31] DTM: Degraded Test Mode for Fault-Aware Probabilistic Timing Analysis
    Slijepcevic, Mladen
    Kosmidis, Leonidas
    Abella, Jaume
    Quinones, Eduardo
    Cazorla, Francisco J.
    PROCEEDINGS OF THE 2013 25TH EUROMICRO CONFERENCE ON REAL-TIME SYSTEMS (ECRTS 2013), 2013, : 237 - 248
  • [32] Fault-aware flow control and multi-path routing in VANETs
    Zhang, Xiaomei
    Dong, Xiaolei
    Xiong, Naixue
    Wu, Jie
    Li, Xiuqi
    PEER-TO-PEER NETWORKING AND APPLICATIONS, 2015, 8 (06) : 1090 - 1107
  • [33] LESP:A fault-aware internet of things service placement in fog computing
    Apat, Hemant Kumar
    Sahoo, Bibhudatta
    SUSTAINABLE COMPUTING-INFORMATICS & SYSTEMS, 2025, 46
  • [34] Fault-aware scheduling for Bag-of-Tasks applications on Desktop Grids
    Anglano, Cosimo
    Brevik, John
    Canonico, Massimo
    Nurmi, Dan
    Wolski, Rich
    2006 7TH IEEE/ACM INTERNATIONAL CONFERENCE ON GRID COMPUTING, 2006, : 56 - +
  • [35] Fault-aware grid scheduling using performance prediction by workload modeling
    Mohammad Kalantari
    Mohammad Kazem Akbari
    The Journal of Supercomputing, 2008, 46 : 15 - 39
  • [36] Fault-Aware Group-Collective Communication Creation and Repair in MPI
    Rocco, Roberto
    Palermo, Gianluca
    EURO-PAR 2023: PARALLEL PROCESSING, 2023, 14100 : 47 - 61
  • [37] nCare: Fault-aware edge intelligence for rendering viable sensor nodes
    Sinha, Aparna
    Chowdhury, Deepraj
    Sharma, Sandeep
    Sherke, Yashasva Raj
    Das, Debanjan
    INTERNET OF THINGS, 2023, 21
  • [38] Fault-Aware ECC Scheme for Enhancing the Read Reliability of STT-MRAMs
    Wu, Meng-Shan
    Chua, Yen-Lin
    Li, Jin-Fu
    Chuan, Yun-Ting
    Huang, Shih-Hsu
    2023 IEEE INTERNATIONAL TEST CONFERENCE IN ASIA, ITC-ASIA, 2023,
  • [39] Fault-Aware Sensitivity Analysis for Probabilistic Real-Time Systems
    Santinelli, Luca
    Guo, Zhishan
    George, Laurent
    2016 IEEE INTERNATIONAL SYMPOSIUM ON DEFECT AND FAULT TOLERANCE IN VLSI AND NANOTECHNOLOGY SYSTEMS (DFT), 2016, : 69 - 74
  • [40] Fault-Aware Service Scheduling Optimization Framework in Edge Data Center
    Zhang, Yaqiang
    Zhao, Yaqian
    Shi, Hongzhi
    Gao, Fei
    Xu, Guangyuan
    Chen, Xiaolin
    Li, Xiao
    2024 IEEE 21ST INTERNATIONAL CONFERENCE ON MOBILE AD-HOC AND SMART SYSTEMS, MASS 2024, 2024, : 514 - 519