# Beyond Passing Tests: A Systematic Review and Controlled Re-evaluation of Techniques for Improving the Quality of LLM-Generated Code

DevFeed: [Beyond Passing Tests: A Systematic Review and Controlled Re-evaluation of Techniques for Improving the Quality of LLM-Generated Code](<https://devfeed.tech/articles/beyond-passing-tests-a-systematic-review-and-controlled-re-evaluation-of-techniques-for-improving-the-quality-of-llm-generated-code-107387.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38977>)

Author: Prashank Kadam

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Code quality](<https://devfeed.tech/topics/code-quality.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>)

Tags: [2021](<https://devfeed.tech/tags/2021.md>), [2026](<https://devfeed.tech/tags/2026.md>), [agent](<https://devfeed.tech/tags/agent.md>), [automated](<https://devfeed.tech/tags/automated.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [budget](<https://devfeed.tech/tags/budget.md>), [code](<https://devfeed.tech/tags/code.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [compute](<https://devfeed.tech/tags/compute.md>), [contests](<https://devfeed.tech/tags/contests.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [llm](<https://devfeed.tech/tags/llm.md>), [quality](<https://devfeed.tech/tags/quality.md>), [review](<https://devfeed.tech/tags/review.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

The review of 628 studies finds that code-quality gains are often measured on only the targeted dimension, while correctness, compute, variance, and contamination are frequently unreported. In matched-budget evaluations, best-of-n sampling with an analyzer-weighted ranker matched or beat prompting, planning, self-refinement, a reviewer agent, and retrieval on measures the ranker did not optimize. Analyzer feedback and fine-tuning beat it only on analyzer issue counts. Quality prompting alone raised analyzer issue counts while leaving complexity and judge scores nearly unchanged. Of 66 techniques compared head-to-head on Gemma 4 31B, only one beat the sampling baseline on its primary target beyond the 95% interval. The authors recommend budget-matched sampling baselines and evaluation on measures independent of each technique's own signal.

## Source excerpt

arXiv:2610.38977v1 Announce Type: new Abstract: Large language models pass most functional-correctness benchmarks, but passing tests says little about whether their code is readable, efficient or secure. Many techniques claim to improve these qualities, yet their evidence is scattered, usually covers one quality dimension and is rarely compared at an equal compute budget. We contribute a systematic review and a controlled re-evaluation. A systematic literature review of 628 primary studies (July 2021 to October 2026), with disclosed, author-reviewed LLM assistance, organizes the techniques by stage, signal source and quality target. Most studies measure only the dimension they target, gains often come with unchanged or unreported correctness, single automated quality signals are gamed, and compute, variance and contamination are rarely reported. A controlled re-evaluation runs ten techniques on four models at matched budgets on correctness, maintainability, efficiency and security benchmarks, extends it to thirteen current models and repository-level tasks, and compares 66 highlighted techniques head-to-head on Gemma 4 31B. At one call, quality prompting raises analyzer issue counts and leaves complexity and judge scores almost unchanged. At matched budgets, best-of-n sampling with an analyzer-weighted ranker matches or beats prompting, planning, self-refinement, a reviewer agent and retrieval on measures the ranker does not optimize, while an analyzer feedback loop and fine-tuning beat it only on analyzer issue counts. Large correctness losses on HumanEval+, a likely contaminated benchmark near its ceiling, do not appear on contests held after the models' training cutoffs. In the head-to-head, 1 of 66 techniques beats best-of-n on its primary target beyond the 95% interval, a rate consistent with chance. Gains should be reported against a budget-matched sampling baseline and on measures independent of the technique's own signal.