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 条
  • [21] Heterogeneous representation learning and matching for few-shot relation prediction
    Wu, Tao
    Ma, Hongyu
    Wang, Chao
    Qiao, Shaojie
    Zhang, Liang
    Yu, Shui
    PATTERN RECOGNITION, 2022, 131
  • [22] State Sequences Prediction via Fourier Transform for Representation Learning
    Ye, Mingxuan
    Kuang, Yufei
    Wang, Jie
    Yang, Rui
    Zhou, Wengang
    Li, Houqiang
    Wu, Feng
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [23] Interactive optimization of relation extraction via knowledge graph representation learning
    Liu Y.
    Ma Y.
    Zhang Y.
    Yu R.
    Zhang Z.
    Meng Y.
    Zhou Z.
    Journal of Visualization, 2024, 27 (2) : 197 - 213
  • [24] Interactive optimization of relation extraction via knowledge graph representation learning
    Liu, Yuhua
    Ma, Yuming
    Zhang, Yong
    Yu, Rongdong
    Zhang, Zhenwei
    Meng, Yuwei
    Zhou, Zhiguang
    JOURNAL OF VISUALIZATION, 2024, 27 (02) : 197 - 213
  • [25] An Empirical Study of Boosting Spectrum-Based Fault Localization via PageRank
    Zhang, Mengshi
    Li, Yaoxian
    Li, Xia
    Chen, Lingchao
    Zhang, Yuqun
    Zhang, Lingming
    Khurshid, Sarfraz
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (06) : 1089 - 1113
  • [26] Improving Cross-Language Code Clone Detection via Code Representation Learning and Graph Neural Networks
    Mehrotra, Nikita
    Sharma, Akash
    Jindal, Anmol
    Purandare, Rahul
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (11) : 4846 - 4868
  • [27] Deep learning model for temperature prediction: an empirical study
    Shrivastava, Virendra Kumar
    Shrivastava, Aastik
    Sharma, Nonita
    Mohanty, Sachi Nandan
    Pattanaik, Chinmaya Ranjan
    MODELING EARTH SYSTEMS AND ENVIRONMENT, 2023, 9 (02) : 2067 - 2080
  • [28] Deep learning model for temperature prediction: an empirical study
    Virendra Kumar Shrivastava
    Aastik Shrivastava
    Nonita Sharma
    Sachi Nandan Mohanty
    Chinmaya Ranjan Pattanaik
    Modeling Earth Systems and Environment, 2023, 9 : 2067 - 2080
  • [29] An Empirical Study of Learning Based Happiness Prediction Approaches
    Miao Kong
    Lin Li
    Renwei Wu
    Xiaohui Tao
    Human-Centric Intelligent Systems, 2021, 1 (1-2): : 18 - 24
  • [30] Boosting Coverage-Based Fault Localization via Graph-Based Representation Learning
    Lou, Yiling
    Zhu, Qihao
    Dong, Jinhao
    Li, Xia
    Sun, Zeyu
    Hao, Dan
    Zhang, Lu
    Zhang, Lingming
    PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, : 664 - 676