Large Language Models for Equivalent Mutant Detection: How Far Are We?
Not on the map. Why?
Abstract (arXiv)
Mutation testing is vital for ensuring software quality. However, the presence of equivalent mutants is known to introduce redundant cost and bias issues, hindering the effectiveness of mutation testing in practical use. Although numerous equivalent mutant detection (EMD) techniques have been proposed, they exhibit limitations due to the scarcity of training data and challenges in generalizing to unseen mutants. Recently, large language models (LLMs) have been extensively adopted in various code-related tasks and have shown superior performance by more accurately capturing program semantics. Yet the performance of LLMs in equivalent mutant detection remains largely unclear. In this paper, we conduct an empirical study on 3,302 method-level Java mutant pairs to comprehensively investigate the effectiveness and efficiency of LLMs for equivalent mutant detection. Specifically, we assess the performance of LLMs compared to existing EMD techniques, examine the various strategies of LLMs, evaluate the orthogonality between EMD techniques, and measure the time overhead of training and inference. Our findings demonstrate that LLM-based techniques significantly outperform existing techniques (i.e., the average improvement of 35.69% in terms of F1-score), with the fine-tuned code embedding strategy being the most effective. Moreover, LLM-based techniques offer an excellent balance between cost (relatively low training and inference time) and effectiveness. Based on our findings, we further discuss the impact of model size and embedding quality, and provide several promising directions for future research. This work is the first to examine LLMs in equivalent mutant detection, affirming their effectiveness and efficiency.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Aug 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 93
- 2025Mutation-Guided LLM-based Test Generation at Metacited by 23
- 2025Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detectioncited by 0
- 2026Advancing Language Models for Code-related Taskscited by 0
- 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregationcited 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
- 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregation6 Aug 2026
- 2026Advancing Language Models for Code-related Tasks8 Jan 2026
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul 2025
- 2025Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detection26 Jul 2025
- 2025Mutation-Guided LLM-based Test Generation at Meta22 Jan 2025