LLMLOOP: Improving LLM-Generated Code and Tests through Automated Iterative Feedback Loops
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are showing remarkable performance in generating source code, yet the generated code often has issues like compilation errors or incorrect code. Researchers and developers often face wasted effort in implementing checks and refining LLM-generated code, frequently duplicating their efforts. This paper presents LLMLOOP, a framework that automates the refinement of both source code and test cases produced by LLMs. LLMLOOP employs five iterative loops: resolving compilation errors, addressing static analysis issues, fixing test case failures, and improving test quality through mutation analysis. These loops ensure the generation of high-quality test cases that serve as both a validation mechanism and a regression test suite for the generated code. We evaluated LLMLOOP on HUMANEVAL-X, a recent benchmark of programming tasks. Results demonstrate the tool's effectiveness in refining LLM-generated outputs.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 12 of its 22 references that are in the map. First posted on arXiv 24 Mar 2026.
Builds on
12 of 22 references.
References · 12
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2022Pynguin: Automated Unit Test Generation for Pythoncited by 49
- 2024The Future of AI-Driven Software Engineeringcited by 23
- 2023LLM for Test Script Generation and Migration: Challenges, Capabilities, and Opportunitiescited by 19
- 2024Do LLMs generate test oracles that capture the actual or the expected program behaviour?cited by 10
- 2024Comparing large language models and human programmers for generating programming codecited by 9
- 2021Automatic Code Generation using Pre-Trained Language Modelscited by 8
- 2024An Empirical Study on Self-correcting Large Language Models for Data Science Code Generationcited by 2
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixescited by 2
- 2026VeriSimpl: Robust Optimization Modeling from Natural Language using Simplification-based Verificationcited by 2
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysiscited by 1
- 2026Natural-Language to SysMLv2 Translation via Conformance-Driven Iterative Refinementcited by 0
- 2026Comprendia: AI-Augmented Code Comprehensioncited by 0
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026Segment-Level Agentic Topic Modeling for Improved Data Exploration and Resource Efficiencycited by 0
- 2026ReMCTS: Reflection-Enhanced Monte Carlo Tree Search for Code Generationcited by 0
- 2026ReMCTS: Reflection-Enhanced Monte Carlo Tree Search for Code Generation28 Sep 2026
- 2026Segment-Level Agentic Topic Modeling for Improved Data Exploration and Resource Efficiency25 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026Comprendia: AI-Augmented Code Comprehension10 Aug 2026
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes22 Jul 2026
- 2026Natural-Language to SysMLv2 Translation via Conformance-Driven Iterative Refinement14 Jul 2026
- 2026VeriSimpl: Robust Optimization Modeling from Natural Language using Simplification-based Verification24 May 2026
- 2026MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling Analysis11 Apr 2026