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 条
  • [1] Self-Edit: Fault-Aware Code Editor for Code Generation
    Zhang, Kechi
    Li, Zhuo
    Li, Jia
    Li, Ge
    Jin, Zhi
    PROCEEDINGS OF THE 61ST ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, ACL 2023, VOL 1, 2023,
  • [2] Fault-Aware Application Management Protocols
    Brogi, Antonio
    Canciani, Andrea
    Soldani, Jacopo
    SERVICE-ORIENTED AND CLOUD COMPUTING, (ESOCC 2016), 2016, 9846 : 219 - 234
  • [3] RETROFIT: Fault-Aware Wear Leveling
    Zhang, Jiangwei
    Kline, Donald, Jr.
    Fang, Long
    Melhem, Rami
    Jones, Alex K.
    IEEE COMPUTER ARCHITECTURE LETTERS, 2018, 17 (02) : 167 - 170
  • [4] Denoising Fault-Aware Wavelet Network:A Signal Processing Informed Neural Network for Fault Diagnosis
    Zuogang Shang
    Zhibin Zhao
    Ruqiang Yan
    Chinese Journal of Mechanical Engineering, 2023, (01) : 17 - 34
  • [5] Denoising Fault-Aware Wavelet Network: A Signal Processing Informed Neural Network for Fault Diagnosis
    Shang, Zuogang
    Zhao, Zhibin
    Yan, Ruqiang
    CHINESE JOURNAL OF MECHANICAL ENGINEERING, 2023, 36 (01)
  • [6] Denoising Fault-Aware Wavelet Network:A Signal Processing Informed Neural Network for Fault Diagnosis
    Zuogang Shang
    Zhibin Zhao
    Ruqiang Yan
    Chinese Journal of Mechanical Engineering, 2023, 36 (01) : 17 - 34
  • [7] Denoising Fault-Aware Wavelet Network: A Signal Processing Informed Neural Network for Fault Diagnosis
    Zuogang Shang
    Zhibin Zhao
    Ruqiang Yan
    Chinese Journal of Mechanical Engineering, 36
  • [8] A Fault-Aware Toolchain Approach for FPGA Fault Tolerance
    Gupte, Adwait
    Vyas, Sudhanshu
    Jones, Phillip H.
    ACM TRANSACTIONS ON DESIGN AUTOMATION OF ELECTRONIC SYSTEMS, 2015, 20 (02)
  • [9] Model-based programming of fault-aware systems
    Williams, BC
    Ingham, MD
    Chung, S
    Elliott, P
    Hofbaur, M
    Sullivan, GT
    AI MAGAZINE, 2003, 24 (04) : 61 - 75
  • [10] Fault-aware Communication Mapping for NoCs with Guaranteed Latency
    Sorin Manolache
    Petru Eles
    Zebo Peng
    International Journal of Parallel Programming, 2007, 35 : 125 - 156