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 条
  • [41] Fault-aware flow control and multi-path routing in VANETs
    Xiaomei Zhang
    Xiaolei Dong
    Naixue Xiong
    Jie Wu
    Xiuqi Li
    Peer-to-Peer Networking and Applications, 2015, 8 : 1090 - 1107
  • [42] A holistic hardware-software approach for fault-aware embedded systems
    Kempf, Fabian
    Kuehbacher, Christoph
    Mellwig, Christian
    Altmeyer, Sebastian
    Ungerer, Theo
    Becker, Juergen
    2022 25TH EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD), 2022, : 704 - 711
  • [43] Fault-Aware Resource Allocation for Heterogeneous Data Sources with Multipath Routing
    Zhang, Xiaomei
    Chen, Qiang
    Shi, Zhicai
    Liang, Jianru
    SCIENTIFIC PROGRAMMING, 2017, 2017
  • [44] SalvageDNN: salvaging deep neural network accelerators with permanent faults through saliency-driven fault-aware mapping
    Hanif, Muhammad Abdullah
    Shafique, Muhammad
    PHILOSOPHICAL TRANSACTIONS OF THE ROYAL SOCIETY A-MATHEMATICAL PHYSICAL AND ENGINEERING SCIENCES, 2020, 378 (2164):
  • [45] Mitigating multiple single-event upsets during deep neural network inference using fault-aware training
    Vinck, Toon
    Jonckers, Nain
    Dekkers, Gert
    Prinzie, Jeffrey
    Karsmakers, Peter
    JOURNAL OF INSTRUMENTATION, 2025, 20 (02):
  • [46] Realizing Extreme Endurance Through Fault-aware Wear Leveling and Improved Tolerance
    Zhang, Jiangwei
    Wang, Chong
    Zhu, Zhenhua
    Kline, Donald, Jr.
    Jones, Alex K.
    Yang, Huazhong
    Wang, Yu
    2023 IEEE INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTER ARCHITECTURE, HPCA, 2023, : 964 - 976
  • [47] FARM: Fault-Aware Resource Management in NoC-based Multiprocessor Platforms
    Chou, Chen-Ling
    Marculescu, Radu
    2011 DESIGN, AUTOMATION & TEST IN EUROPE (DATE), 2011, : 673 - 678
  • [48] Modelling and Analysing Replica- and Fault-aware Management of Horizontally Scalable Applications
    Soldani, Jacopo
    Cameriero, Marco
    Paparelli, Giulio
    Brogi, Antonio
    ACM TRANSACTIONS ON INTERNET TECHNOLOGY, 2022, 22 (03)
  • [49] Fault-Aware Compression for High Sampling Rate Data Acquisition in Smart Grids
    Sahasranand, K. R.
    Rout, Biswajeet
    Joglekar, Ashish
    Gurrala, Gurunath
    Tyagi, Himanshu
    E-ENERGY'19: PROCEEDINGS OF THE 10TH ACM INTERNATIONAL CONFERENCE ON FUTURE ENERGY SYSTEMS, 2019, : 422 - 424
  • [50] FARe: Fault-Aware GNN Training on ReRAM-based PIM Accelerators
    Dhingra, Pratyush
    Ogbogu, Chukwufumnanya
    Joardar, Biresh Kumar
    Doppa, Janardhan Rao
    Kalyanaraman, Ananth
    Pande, Partha Pratim
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,