Metamorphic Testing of Deep Code Models: A Systematic Literature Review

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Asgari, Ali, de Koning, Milan, Derakhshanfar, Pouria, Panichella, Annibale
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912511074238464
author Asgari, Ali
de Koning, Milan
Derakhshanfar, Pouria
Panichella, Annibale
author_facet Asgari, Ali
de Koning, Milan
Derakhshanfar, Pouria
Panichella, Annibale
contents Large language models and deep learning models designed for code intelligence have revolutionized the software engineering field due to their ability to perform various code-related tasks. These models can process source code and software artifacts with high accuracy in tasks such as code completion, defect detection, and code summarization; therefore, they can potentially become an integral part of modern software engineering practices. Despite these capabilities, robustness remains a critical quality attribute for deep-code models as they may produce different results under varied and adversarial conditions (e.g., variable renaming). Metamorphic testing has become a widely used approach to evaluate models' robustness by applying semantic-preserving transformations to input programs and analyzing the stability of model outputs. While prior research has explored testing deep learning models, this systematic literature review focuses specifically on metamorphic testing for deep code models. By studying 45 primary papers, we analyze the transformations, techniques, and evaluation methods used to assess robustness. Our review summarizes the current landscape, identifying frequently evaluated models, programming tasks, datasets, target languages, and evaluation metrics, and highlights key challenges and future directions for advancing the field.
format Preprint
id arxiv_https___arxiv_org_abs_2507_22610
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Metamorphic Testing of Deep Code Models: A Systematic Literature Review
Asgari, Ali
de Koning, Milan
Derakhshanfar, Pouria
Panichella, Annibale
Software Engineering
Artificial Intelligence
Large language models and deep learning models designed for code intelligence have revolutionized the software engineering field due to their ability to perform various code-related tasks. These models can process source code and software artifacts with high accuracy in tasks such as code completion, defect detection, and code summarization; therefore, they can potentially become an integral part of modern software engineering practices. Despite these capabilities, robustness remains a critical quality attribute for deep-code models as they may produce different results under varied and adversarial conditions (e.g., variable renaming). Metamorphic testing has become a widely used approach to evaluate models' robustness by applying semantic-preserving transformations to input programs and analyzing the stability of model outputs. While prior research has explored testing deep learning models, this systematic literature review focuses specifically on metamorphic testing for deep code models. By studying 45 primary papers, we analyze the transformations, techniques, and evaluation methods used to assess robustness. Our review summarizes the current landscape, identifying frequently evaluated models, programming tasks, datasets, target languages, and evaluation metrics, and highlights key challenges and future directions for advancing the field.
title Metamorphic Testing of Deep Code Models: A Systematic Literature Review
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2507.22610