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 条
  • [31] Learning the Stein Discrepancy for Training and Evaluating Energy-Based Models without Sampling
    Grathwohl, Will
    Wang, Kuan-Chieh
    Jacobsen, Jorn-Henrik
    Duvenaud, David
    Zemel, Richard
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 119, 2020, 119
  • [32] Learning Energy-Based Models for 3D Human Pose Estimation
    Zhu, Xianglu
    Zhang, Zhang
    Wang, Wei
    Wang, Zilei
    Wang, Liang
    2024 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, IJCNN 2024, 2024,
  • [33] Learning the Stein Discrepancy for Training and Evaluating Energy-Based Models without Sampling
    Grathwohl, Will
    Wang, Kuan-Chieh
    Jacobsen, Jorn-Henrik
    Duvenaud, David
    Zemel, Richard
    25TH AMERICAS CONFERENCE ON INFORMATION SYSTEMS (AMCIS 2019), 2019,
  • [34] Model-Based Planning with Energy-Based Models
    Du, Yilun
    Lin, Toru
    Mordatch, Igor
    CONFERENCE ON ROBOT LEARNING, VOL 100, 2019, 100
  • [35] Undersampled Face Recognition via Robust Auxiliary Dictionary Learning
    Wei, Chia-Po
    Wang, Yu-Chiang Frank
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2015, 24 (06) : 1722 - 1734
  • [36] Energy-based Data Sampling for Traffic Prediction with Small Training Datasets
    Yang, Zhaohui
    Jerath, Kshitij
    IFAC PAPERSONLINE, 2024, 58 (28): : 738 - 743
  • [37] On Energy-based Robust Passive Control of a Robot Manipulator
    Cao, Sheng
    Luo, Zhiwei
    2013 IEEE/SICE INTERNATIONAL SYMPOSIUM ON SYSTEM INTEGRATION (SII), 2013, : 635 - 640
  • [38] Energy-based Robust controller design for flexible spacecraft
    Shuzhi Sam Ge
    Tong Heng Lee
    Fan Hong
    Cher Hiang Goh
    Journal of Control Theory and Applications, 2004, 2 (1): : 27 - 34
  • [39] Energy-based models for sparse overcomplete representations
    Teh, YW
    Welling, M
    Osindero, S
    Hinton, GE
    JOURNAL OF MACHINE LEARNING RESEARCH, 2004, 4 (7-8) : 1235 - 1260
  • [40] Energy-based robust controller design for flexible spacecraft
    Shuzhi Sam GE
    Tong Heng LEE
    Cher Hiang GOH
    Journal of Control Theory and Applications, 2004, (01) : 27 - 34