paper-with-me

홈 › Papers

A Metamorphic Testing Approach to Diagnosing Memorization in LLM-Based Program Repair

2026-04-23 · Milan De Koning, Ali Asgari, Pouria Derakhshanfar, Annibale Panichella arxiv

LLM-based automated program repair (APR) techniques have shown promising results in reducing debugging costs. However, prior results can be affected by data leakage: large language models (LLMs) may memorize bug fixes when evaluation benchmarks overlap with their pretraining data, leading to inflated performance estimates. In this paper, we investigate whether we can better reveal data leakage by combining metamorphic testing (MT) with negative log-likelihood (NLL), which has been used in prior work as a proxy for memorization. We construct variant benchmarks by applying semantics-preserving transformations to two widely used datasets, Defects4J and GitBug-Java. Using these benchmarks, we evaluate the repair success rates of seven LLMs on both original and transformed versions, and analyze the relationship between performance degradation and NLL. Our results show that all evaluated state-of-the-art LLMs exhibit substantial drops in patch generation success rates on transformed benchmarks, ranging from -4.1% for GPT-4o to -15.98% for Llama-3.1. Furthermore, we find that this degradation strongly correlates with NLL on the original benchmarks, suggesting that models perform better on instances they are more likely to have memorized. These findings show that combining MT with NLL provides stronger and more reliable evidence of data leakage, while metamorphic testing alone can help mitigate its effects in LLM-based APR evaluations.

📄 PDF Abstract BibTeX arXiv:2604.21579

Code (0)

등록된 구현이 없습니다.

Tasks

Program Repair

Similar Papers 제목 키워드 기반

MTGP: Combining Metamorphic Testing and Genetic Programming

2023-01-20 · Dominik Sobania, Martin Briesch, Philipp Röchner, Franz Rothlauf

Genetic programming is an evolutionary approach known for its performance in program synthesis. However, it is not yet mature enough for a practical use in real-world software development, since usually many training cas…

Program Synthesis

Metamorphic Relation Prioritization for Effective Regression Testing

2021-09-20 · Madhusudan Srinivasan, Upulee Kanewala

Metamorphic testing (MT) is widely used for testing programs that face the oracle problem. It uses a set of metamorphic relations (MRs), which are relations among multiple inputs and their corresponding outputs to determ…

Fault DetectionregressionRelation

LGMT: Logic-Grounded Metamorphic Testing for Evaluating the Reasoning Reliability of LLMs

2026-05-12 · Zenghui Zhou, Man Li, Xiaoke Fang, Xinyi Zhou 외 arxiv

Large Language Models (LLMs) achieve strong performance on logical reasoning benchmarks, yet their reliability remains uncertain. Existing evaluations rely on static benchmarks, which fail to assess robustness under logi…

Logical Reasoning

Object-based Metamorphic Testing through Image Structuring

2020-02-12 · Adrian Wildandyawan, Yasuharu Nishi

Testing software is often costly due to the need of mass-producing test cases and providing a test oracle for it. This is often referred to as the oracle problem. One method that has been proposed in order to alleviate t…

Object

Can ChatGPT advance software testing intelligence? An experience report on metamorphic testing

2023-10-30 · Quang-Hung Luu, Huai Liu, Tsong Yueh Chen

While ChatGPT is a well-known artificial intelligence chatbot being used to answer human's questions, one may want to discover its potential in advancing software testing. We examine the capability of ChatGPT in advancin…

Chatbotsoftware testing