Towards Robust Models of Code via Energy-Based Learning on Auxiliary Datasets

被引:0
|
作者
Bui, Nghi D. Q. [1 ,2 ]
Yu, Yijun [2 ]
机构
[1] Singapore Management Univ, Singapore, Singapore
[2] Huawei Ireland Res Ctr, Dublin, Ireland
关键词
D O I
10.1145/3551349.3561171
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Existing approaches to improving the robustness of source code models concentrate on recognizing adversarial samples rather than valid samples that fall outside of a given distribution, which we refer to as out-of-distribution (OOD) samples. To this end, we propose to use an auxiliary dataset (out-of-distribution) such that, when trained together with the main dataset, they will enhance the model's robustness. We adapt energy-bounded learning objective function to assign a higher score to in-distribution samples and a lower score to out-of-distribution samples in order to incorporate such out-of-distribution samples into the training process of source code models. In terms of OOD detection and adversarial samples detection, our evaluation results demonstrate a greater robustness for existing source code models to become more accurate at recognizing OOD data while being more resistant to adversarial attacks at the same time.
引用
收藏
页数:3
相关论文
共 50 条
  • [41] Energy-based robust controller design for flexible spacecraft
    Hong, F
    Ge, SS
    Lee, TH
    Goh, CH
    PROCEEDINGS OF THE 4TH ASIA-PACIFIC CONFERENCE ON CONTROL & MEASUREMENT, 2000, : 53 - 57
  • [42] Implicit Generation and Modeling with Energy-Based Models
    Du, Yilun
    Mordatch, Igor
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 32 (NIPS 2019), 2019, 32
  • [43] LOCAL AND NONLOCAL ENERGY-BASED COUPLING MODELS
    Acosta, Gabriel
    Bersetche, Francisco
    Rossi, Julio D.
    SIAM JOURNAL ON MATHEMATICAL ANALYSIS, 2022, 54 (06) : 6288 - 6322
  • [44] Energy-Based Survival Models for Predictive Maintenance
    Holmer, Olov
    Frisk, Erik
    Krysander, Mattias
    IFAC PAPERSONLINE, 2023, 56 (02): : 10862 - 10867
  • [45] RNA pseudoknot prediction in energy-based models
    Lyngso, RB
    Pedersen, CNS
    JOURNAL OF COMPUTATIONAL BIOLOGY, 2000, 7 (3-4) : 409 - 427
  • [46] An integrated, structure- and energy-based view of the genetic code
    Grosjean, Henri
    Westhof, Eric
    NUCLEIC ACIDS RESEARCH, 2016, 44 (17) : 8020 - 8040
  • [47] Bi-level Doubly Variational Learning for Energy-based Latent Variable Models
    Kan, Ge
    Lu, Jinhu
    Wang, Tian
    Zhang, Baochang
    Zhu, Aichun
    Huang, Lei
    Guo, Guodong
    Snoussi, Hichem
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2022), 2022, : 18439 - 18448
  • [48] Energy-Based Learning for Scene Graph Generation
    Suhail, Mohammed
    Mittal, Abhay
    Siddiquie, Behjat
    Broaddus, Chris
    Eledath, Jayan
    Medioni, Gerard
    Sigal, Leonid
    2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, : 13931 - 13940
  • [49] Energy-Based Learning for Preventing Backdoor Attack
    Gao, Xiangyu
    Qiu, Meikang
    KNOWLEDGE SCIENCE, ENGINEERING AND MANAGEMENT, KSEM 2022, PT III, 2022, 13370 : 706 - 721
  • [50] Probabilistic capacity energy-based machine learning models for soil liquefaction reliability analysis
    Zhao, Zening
    Duan, Wei
    Cai, Guojun
    Wu, Meng
    Liu, Songyu
    Puppala, Anand J.
    ENGINEERING GEOLOGY, 2024, 338