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 条
  • [1] Boosting source code learning with text-oriented data augmentation: an empirical study
    Dong, Zeming
    Hu, Qiang
    Guo, Yuejun
    Zhang, Zhenya
    Cordy, Maxime
    Papadakis, Mike
    Le Traon, Yves
    Zhao, Jianjun
    EMPIRICAL SOFTWARE ENGINEERING, 2025, 30 (03)
  • [2] Boosting Patient Representation Learning via Graph Contrastive Learning
    Zhang, Zhenhao
    Liu, Yuxi
    Bian, Jiang
    Yepes, Antonio Jimeno
    Shen, Jun
    Li, Fuyi
    Long, Guodong
    Salim, Flora D.
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES-APPLIED DATA SCIENCE TRACK, PT IX, ECML PKDD 2024, 2024, 14949 : 335 - 350
  • [3] Cycle Representation Learning for Inductive Relation Prediction
    Yan, Zuoyu
    Ma, Tengfei
    Gao, Liangcai
    Tang, Zhi
    Chen, Chao
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 162, 2022,
  • [4] Relation Representation Learning via Signed Graph Mutual Information Maximization for Trust Prediction
    Jing, Yongjun
    Wang, Hao
    Shao, Kun
    Huo, Xing
    SYMMETRY-BASEL, 2021, 13 (01): : 1 - 18
  • [5] Learning the Relation Between Code Features and Code Transforms With Structured Prediction
    Yu, Zhongxing
    Martinez, Matias
    Chen, Zimin
    Bissyande, Tegawende F. F.
    Monperrus, Martin
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (07) : 3872 - 3900
  • [6] Boosting Object Representation Learning via Motion and Object Continuity
    Delfosse, Quentin
    Stammer, Wolfgang
    Rothenbaecher, Thomas
    Vittal, Dwarak
    Kersting, Kristian
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES: RESEARCH TRACK, ECML PKDD 2023, PT IV, 2023, 14172 : 610 - 628
  • [7] Syntax-based metamorphic relation prediction via the bagging framework
    Yin, Yuyu
    Ruan, Jiajie
    Li, Youhuizi
    Li, Yu
    Pan, Zhijin
    EXPERT SYSTEMS, 2022, 39 (06)
  • [8] Code Multiview Hypergraph Representation Learning for Software Defect Prediction
    Qiu, Shaojian
    Huang, Mengyang
    Liang, Yun
    Peng, Chaoda
    Yuan, Yuan
    IEEE TRANSACTIONS ON RELIABILITY, 2024, : 1 - 14
  • [9] An Empirical Study of Representation Learning for Reinforcement Learning in Healthcare
    Killian, Taylor W.
    Zhang, Haoran
    Subramanian, Jayakumar
    Fatemi, Mehdi
    Ghassemi, Marzyeh
    MACHINE LEARNING FOR HEALTH, VOL 136, 2020, 136 : 139 - +
  • [10] The Scent of Deep Learning Code: An Empirical Study
    Jebnoun, Hadhemi
    Ben Braiek, Houssem
    Rahman, Mohammad Masudur
    Khomh, Foutse
    2020 IEEE/ACM 17TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2020, : 420 - 430