Boosting Metamorphic Relation Prediction via Code Representation Learning: An Empirical Study

被引:0
|
作者
Zheng, Xuedan [1 ]
Jiang, Mingyue [1 ]
Quan Zhou, Zhi [2 ]
机构
[1] Zhejiang Sci Tech Univ, Sch Comp Sci & Technol, Hangzhou, Zhejiang, Peoples R China
[2] Univ Wollongong, Sch Comp & Informat Technol, Wollongong, NSW, Australia
来源
关键词
deep learning; predicting metamorphic relation; source code representation;
D O I
10.1002/stvr.1889
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Metamorphic testing (MT) is an effective testing technique having a broad range of applications. One key task for MT is the identification of metamorphic relations (MRs), which is a fundamental mechanism in MT and is critical to the automation of MT. Prior studies have proposed approaches for predicting MRs (PMR). One major idea behind these PMR approaches is to represent program source code information via manually designed code features and then to apply machine-learning-based classifiers to automatically predict whether a specific MR can be applied on the target program. Nevertheless, the human-involved procedure of selecting and extracting code features is costly, and it may not be easy to obtain sufficiently comprehensive features for representing source code. To overcome this limitation, in this study, we explore and evaluate the effectiveness of code representation learning techniques for PMR. By applying neural code representation models for automatically mapping program source code to code vectors, the PMR procedure can be boosted with learned code representations. We develop 32 PMR instances by, respectively, combining 8 code representation models with 4 typical classification models and conduct an extensive empirical study to investigate the effectiveness of code representation learning techniques in the context of MR prediction. Our findings reveal that code representation learning can positively contribute to the prediction of MRs and provide insights into the practical usage of code representation models in the context of MR prediction. Our findings could help researchers and practitioners to gain a deeper understanding of the strength of code representation learning for PMR and, hence, pave the way for future research in deriving or extracting MRs from program source code. This study explores and investigates the effectiveness of code representation learning techniques for predicting MRs. Our results confirm that code representation learning is effective for predicting MRs and provide insights into the practical usage of code representation learning in the context of MR prediction. image
引用
收藏
页数:21
相关论文
共 50 条
  • [31] Boosting Representation Learning via Similarity-based Active Data Sampling from the Web
    Ueno, Shiryu
    Kato, Kunihito
    2024 INTERNATIONAL WORKSHOP ON INTELLIGENT SYSTEMS, IWIS 2024, 2024,
  • [32] Self-Supervised Representation Learning via Latent Graph Prediction
    Xie, Yaochen
    Xu, Zhao
    Ji, Shuiwang
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 162, 2022,
  • [33] Generating Realistic Vulnerabilities via Neural Code Editing: An Empirical Study
    Nong, Yu
    Ou, Yuzhe
    Pradel, Michael
    Chen, Feng
    Cai, Haipeng
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 1097 - 1109
  • [34] Empirical analysis: stock market prediction via extreme learning machine
    Li, Xiaodong
    Xie, Haoran
    Wang, Ran
    Cai, Yi
    Cao, Jingjing
    Wang, Feng
    Min, Huaqing
    Deng, Xiaotie
    NEURAL COMPUTING & APPLICATIONS, 2016, 27 (01): : 67 - 78
  • [35] Empirical analysis: stock market prediction via extreme learning machine
    Xiaodong Li
    Haoran Xie
    Ran Wang
    Yi Cai
    Jingjing Cao
    Feng Wang
    Huaqing Min
    Xiaotie Deng
    Neural Computing and Applications, 2016, 27 : 67 - 78
  • [36] An Empirical Study On Software Metrics and Machine Learning to Identify Untrustworthy Code
    Medeiros, Nadia
    Ivaki, Naghmeh
    Costa, Pedro
    Vieira, Marco
    2021 17TH EUROPEAN DEPENDABLE COMPUTING CONFERENCE (EDCC 2021), 2021, : 87 - 94
  • [37] Automatic Data-Driven Software Change Identification via Code Representation Learning
    Hericko, Tjasa
    27TH INTERNATIONAL CONFERENCE ON EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, EASE 2023, 2023, : 319 - 323
  • [38] An empirical evaluation of deep learning-based source code vulnerability detection: Representation versus models
    Semasaba, Abubakar Omari Abdallah
    Zheng, Wei
    Wu, Xiaoxue
    Agyemang, Samuel Akwasi
    Liu, Tao
    Ge, Yuan
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2023, 35 (11)
  • [39] An Empirical Study on Energy Disaggregation via Deep Learning
    He, Wan
    Chai, Ying
    PROCEEDINGS OF THE 2016 2ND INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INDUSTRIAL ENGINEERING (AIIE 2016), 2016, 133 : 338 - 342
  • [40] Interpretable thoracic pathologic prediction via learning group-disentangled representation
    Li, Hao
    Wu, Yirui
    Hu, Hexuan
    Lu, Hu
    Huang, Qian
    Wan, Shaohua
    METHODS, 2023, 218 : 110 - 117