LLMorpheus: Mutation Testing using Large Language Models
Not on the map. Why?
Abstract (arXiv)
In mutation testing, the quality of a test suite is evaluated by introducing faults into a program and determining whether the program's tests detect them. Most existing approaches for mutation testing involve the application of a fixed set of mutation operators, e.g., replacing a "+" with a "-", or removing a function's body. However, certain types of real-world bugs cannot easily be simulated by such approaches, limiting their effectiveness. This paper presents a technique for mutation testing where placeholders are introduced at designated locations in a program's source code and where a Large Language Model (LLM) is prompted to ask what they could be replaced with. The technique is implemented in LLMorpheus, a mutation testing tool for JavaScript, and evaluated on 13 subject packages, considering several variations on the prompting strategy, and using several LLMs. We find LLMorpheus to be capable of producing mutants that resemble existing bugs that cannot be produced by StrykerJS, a state-of-the-art mutation testing tool. Moreover, we report on the running time, cost, and number of mutants produced by LLMorpheus, demonstrating its practicality.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 15 Apr 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2025Mutation-Guided LLM-based Test Generation at Metacited by 25
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 8
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2026A semantic mutation metric for metamorphic relation adequacy in scientific computing programscited by 0
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarkingcited by 0
- 2026LLMs Can See the Smoke but not the Fire: Evaluating Abductive Reasoning with Elenchoscited by 0
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verificationcited by 0
- 2026Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Modelscited by 0
- 2026Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models24 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026LLMs Can See the Smoke but not the Fire: Evaluating Abductive Reasoning with Elenchos14 Jul 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026A semantic mutation metric for metamorphic relation adequacy in scientific computing programs17 May 2026
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learning16 Mar 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2025Mutation-Guided LLM-based Test Generation at Meta22 Jan 2025