mlsanityData to 7 Oct 2026

LLM Assisted Coding with Metamorphic Specification Mutation Agent

arXiv 2511.18249 ↗First posted 23 Nov 2025cs.SEcited by 1

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Metamorphic Relations (MRs) serve as a foundational mechanism for generating semantically equivalent mutations. Software engineering has advanced significantly in recent years with the advent of Large Language Models (LLMs). However, the reliability of LLMs in software engineering is often compromised by ambiguities and inconsistencies due to improper user specification. To address this challenge, we present CodeMetaAgent (CMA), a metamorphic relation-driven LLM agent that systematically refines task specifications and generates semantically constrained test cases. Our proposed framework uses MRs with LLMs to improve generation consistency and reduce variability caused by specifications, unlike the traditional use of MRs as post validations. Our framework has been evaluated on the HumanEval-Pro, MBPP-Pro, and SWE-Bench_Lite datasets using the GPT-4o, Mistral Large, GPT-OSS, and Qwen3-Coder models. It improved code generation accuracy by up to 17% and achieved code coverage gains of up to 99.81%. These results show that metamorphic relations can be a simple but effective guide in assisting LLM-based software development.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 25 of its 41 references that are in the map. First posted on arXiv 23 Nov 2025.

Builds on

25 of 41 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
  2. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  4. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  5. 2023ChatDev: Communicative Agents for Software Development16 Jul

Other references · 20

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  7. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  8. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
  9. 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 216
  10. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  11. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
  12. 2020Metamorphic Testing: A New Approach for Generating Next Test Casescited by 71
8 more
  1. 2024HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generationcited by 39
  2. 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
  3. 2024Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generationcited by 11
  4. 2024MORTAR: Multi-turn Metamorphic Testing for LLM-based Dialogue Systemscited by 7
  5. 2024MR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testingcited by 6
  6. 2024Observation-based unit test generation at Metacited by 5
  7. 2025Metamorphic Testing for Fairness Evaluation in Large Language Models: Identifying Intersectional Bias in LLaMA and GPTcited by 4
  8. 2024Metamorphic Relation Generation: State of the Art and Visions for Future Researchcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
  2. 2026Projectional Decoding: Towards Semantic-Aware LLM Generation
  3. 2025Beyond Code Generation: LLM-supported Exploration of the Program Design Space
  4. 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
  5. 2025LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Code
  6. 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
  7. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
  8. 2025A Survey on Code Generation with LLM-based Agents