Paper · 2026 · Open access

Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models

Nils Kiele, Zainab Saad, Zirui Wang, Steve Drew, Samira Ebrahimi Kahou

DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Published 1 January 2026 · DOI 10.4230/lipics.esem.2026.49

Open PDFView at the publisherCite this paper

In brief

“Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models” is a 2026 paper by Nils Kiele and 4 co-authors, published in DROPS (Schloss Dagstuhl – Leibniz Center for Informatics). OpenAlex counts 0 citations as of 23 November 2026. It is open access under a CC BY licence: the full text is free to read at DROPS (Schloss Dagstuhl – Leibniz Center for Informatics).

Citations
0
References
29
Authors
5

Abstract

Background. Mutation testing evaluates test-suite adequacy by injecting synthetic faults into program code. However, traditional rule-based tools often generate large numbers of trivial, redundant, or equivalent mutants that limit their practical use for identifying gaps in a test suite. While recent large language model (LLM)-based approaches generate more realistic faults, most remain test-blind: The model sees only the source code and cannot reason about what existing tests already cover. Ignoring such tests means neglecting context that could help generate higher-quality mutants and thus stronger tests to patch the remaining test suite gaps. Aims. We propose test-aware mutant generation, in which an LLM receives the problem statement, canonical solution and base tests in a single prompt, and must generate a nontrivial mutant that passes the base unit tests. Method. We evaluate this approach across a set of five LLMs - Gemini 3.1 Pro, Gemini 3 Flash, GPT 5.1 Codex Mini, GPT 4.1 Mini, Qwen3-32B - on the HumanEval and MBPP benchmarks. The extended EvalPlus test suites serve as an automated oracle to verify whether surviving mutants represent genuine bugs. Results. Test-aware prompting yields verified fault rates of 87.7% (HumanEval) and 79.1% (MBPP), meaning these mutants pass all base tests but are caught by the oracle. This vastly outperforms the matched test-blind prompting (which yields only 12.2% and 23.0%, respectively) and the traditional rule-based tool mutmut (4.4% and 5.7%). While fault subtlety (the fraction of extended tests a mutant fails) remains comparable across all three methods, test-awareness minimizes the computational cost per verified fault, compared to test-blind prompting. Conclusions. Exposing LLMs to existing unit tests shifts mutant generation from untargeted bug injection toward effective discovery of weaknesses in an existing test suite. Our work establishes a concrete foundation for future research to scale test-aware mutant generation to production-level environments.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Kiele, N., Saad, Z., Wang, Z., Drew, S., & Kahou, S. E. (2026). Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models. DROPS (Schloss Dagstuhl – Leibniz Center for Informatics). https://doi.org/10.4230/lipics.esem.2026.49

MLA 9

Kiele, Nils, et al. “Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models.” DROPS (Schloss Dagstuhl – Leibniz Center for Informatics), 2026. https://doi.org/10.4230/lipics.esem.2026.49.

Chicago

Kiele, Nils, Zainab Saad, Zirui Wang, Steve Drew, and Samira Ebrahimi Kahou. 2026. “Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models.” DROPS (Schloss Dagstuhl – Leibniz Center for Informatics). https://doi.org/10.4230/lipics.esem.2026.49.

Harvard

Kiele, N. et al. (2026) ‘Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models’, DROPS (Schloss Dagstuhl – Leibniz Center for Informatics). doi:10.4230/lipics.esem.2026.49.

IEEE

N. Kiele, Z. Saad, Z. Wang, S. Drew, and S. E. Kahou, “Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models,” DROPS (Schloss Dagstuhl – Leibniz Center for Informatics), 2026, doi: 10.4230/lipics.esem.2026.49.

BibTeX

@article{kiele2026beyond,
  title     = {{Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models}},
  author    = {Kiele, Nils and Saad, Zainab and Wang, Zirui and Drew, Steve and Kahou, Samira Ebrahimi},
  journal   = {DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)},
  year      = {2026},
  doi       = {10.4230/lipics.esem.2026.49},
  url       = {https://doi.org/10.4230/lipics.esem.2026.49}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques

  • mutation testing
  • large language models
  • test suite adequacy
  • HumanEval
  • MBPP
  • prompt engineering
  • fault injection

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Kiele, N., Saad, Z., Wang, Z., Drew, S., & Kahou, S. E. (2026). Beyond Rule-Based Mutation Testing: Test-Aware Mutant Generation Using Large Language Models. DROPS (Schloss Dagstuhl – Leibniz Center for Informatics). https://doi.org/10.4230/lipics.esem.2026.49

How many times has this paper been cited?

0 times, according to OpenAlex on 23 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at DROPS (Schloss Dagstuhl – Leibniz Center for Informatics): sign in and open the PDF from this page.

Who wrote this paper?

Nils Kiele, Zainab Saad, Zirui Wang, Steve Drew, Samira Ebrahimi Kahou.

What is the DOI of this paper?

10.4230/lipics.esem.2026.49, permanently at https://doi.org/10.4230/lipics.esem.2026.49. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 23 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.