When AI Improves Its Own Code

A higher AI score can reveal progress, but it cannot explain what caused it.

Neurosymbolic AI · Computer Science · Software Engineering
When AI Improves Its Own Code
Better scores need a fair comparison
2026

An AI system can change its own software and earn a higher score. The harder question is whether its changes deserve the credit.

I. The Trouble With a Rising Score

A rising score makes a compelling story. Yesterday, an artificial intelligence system struggled. Today, after changing its own software, it succeeds more often. The apparent explanation is that the machine improved itself. But between those two measurements, other things may have changed: the resources available, the difficulty of the work or the rules used to judge success. Before treating the result as evidence of a breakthrough, there is a less glamorous question to answer. What, exactly, was held constant?

Imagine a coding assistant that fixes 40 out of 100 software defects, then fixes 55 after adding a planning routine. That sounds like a substantial improvement. Now suppose it also received twice as many attempts per defect. The extra successes remain useful, but the experiment cannot tell us how much credit belongs to planning. The comparison it needs is the original assistant with the same allowance of attempts. That reference system is the baseline, and choosing it determines what the result can legitimately establish.

This distinction becomes crucial in recursive self improvement, the idea that an AI system could improve its ability to produce further improvements. Solving more problems is one claim. Becoming better at redesigning the machinery that solves them is another. Evidence for the second requires examining the improvement process itself. Otherwise, an impressive sequence of scores can conceal a much simpler explanation: the system received more resources, better underlying technology or a more accommodating exam.

01 A higher score leaves a question
A new planner and a larger attempt budget change together. The higher score cannot isolate which change caused the gain.
A higher score leaves a questionAn illustrative rise from 40 to 55 fixes accompanies both a new planner and twice as many attempts. The score does not isolate the planner’s contribution. 1. A higher score leaves a questionIllustrative coding task: 100 defects in each runOriginal system40 fixesOriginal workflowOne attempt per defectChanged system55 fixesNew planning routineTwo attempts per defectPlanning changed. The budget changed too.The score alone cannot separate their effects.More success is visible. Its cause is unresolved.
II. Evolution Needs a Fair Contest

Evolution supplies a powerful recipe for computational search. Generate variations, retain useful discoveries and let them influence the next generation. In software, the variations might be changes to an algorithm or an agent’s decision process. The appeal is that useful designs can emerge without anyone specifying their final form in advance. But selection is always tied to an environment. In a computer system, the evaluation procedure helps define that environment, shaping which modifications survive and which disappear.

Google DeepMind’s AlphaEvolve puts this principle to work by combining language models that propose programs with automated evaluators that assess them. Promising programs help guide subsequent proposals. This arrangement makes evaluation an active part of discovery: it directs the search toward whatever properties receive better scores. If the measurements capture useful performance, the search can uncover valuable algorithms. If they reward a shortcut, selection can preserve that shortcut just as efficiently.

To establish what actually helps, engineers use controlled ablations, experiments that remove or replace a component while holding other conditions steady. For recursive improvement, an especially revealing comparison keeps the original system in charge of proposing changes, then measures it against a process in which improved descendants take over. Both need comparable search budgets. An advantage for the descendants would support the claim that changing the improver matters. It would still be evidence within those conditions, rather than a guarantee that progress can continue indefinitely.

02 Give the baseline a fair chance
Give the baseline and the candidate matched conditions, then evaluate both on protected tasks and report uncertainty.
Give the baseline a fair chanceBaseline and candidate receive the same surrounding conditions and budget. Both face protected evaluation with repeated runs. A remaining advantage supports attribution within that setting. 2. Give the baseline a fair chanceCompare the proposed change under matched conditionsHold the surrounding conditions steadySame model, tasks, tools, grading and resource limitsBaselineOriginal workflowEqual opportunity to retryCandidateWorkflow with plannerSame total resource budgetEvaluate both on protected tasksRepeat runs and report uncertainty, including failuresDoes the advantage remain?If so, the change has stronger support in this setting.
III. A Test Can Teach Without Giving Away Answers

Keeping the test unchanged might seem like the safest way to compare generations. Yet repeated testing creates its own problem. Every result carries information, and a development process can gradually absorb that information. Computer scientists study this under adaptive data analysis: the next decision depends on the results of earlier decisions. Over time, a system can become increasingly suited to a particular collection of problems without becoming equally capable on unfamiliar ones.

Consider an agent that repeatedly revises its instructions after receiving scores from the same private exam. It never sees the answer key. Nevertheless, each score tells it whether its latest revision fits that exam better. After enough rounds, the winning version may partly reflect the peculiarities of those questions. Research on the reusable holdout shows that carefully controlling how much information an evaluation releases can preserve statistical validity under specified conditions. Simply keeping the questions private is insufficient when an unrestricted stream of feedback keeps flowing.

A credible improvement process therefore needs a boundary between development feedback and final evidence. Engineers can inspect development failures closely, but the acceptance decision should use protected material and rules chosen before seeing the outcome. If those results inspire another revision, they have become part of development too. Reporting must also preserve the unsuccessful attempts and explain when the search stopped. Otherwise, readers see the winner without knowing how many opportunities the experiment had to produce a lucky result.

Conceptual illustration of an AI system revising its own code while preserving an independent standard of evaluation

Code can change while the standard of comparison stays fixed. A useful improvement must survive an independent check.

IV. Passing Is Not the Same as Working

Even a well protected test can measure something narrower than people assume. Software tests check selected behaviors. Actual users depend on a broader set of expectations, including reliability, compatibility and maintainability. The distinction is easy to miss because automated grading produces such definite answers. A green light looks conclusive. Its meaning, however, depends on what the evaluator examined and what it left outside the frame.

A March 2026 METR research note exposed this gap through a review of AI generated software patches. Four maintainers assessed 296 patches across three repositories. Roughly half of the patches that passed SWE bench Verified tests would not have been accepted by maintainers, even after adjustment for inconsistency in review decisions. The agents were not allowed to revise their work after receiving feedback, so the result does not establish a permanent limit on their abilities. It shows that benchmark success and engineering acceptance can diverge substantially.

This is where neurosymbolic design offers a useful division of responsibilities. Learned models can propose changes, while explicit rules and formal reasoning check particular properties. Independent evaluation can then examine whether accepted changes remain useful beyond the development setting. Each layer has limits: a proof establishes what follows from its assumptions, while a test establishes behavior on the cases it covers. The practical challenge is to connect those assurances to actual requirements and keep changes to the acceptance machinery separately accountable.

V. Progress Has a Price and a Paper Trail

A system can be more capable and less economical at the same time. That is a legitimate tradeoff, but a single accuracy score hides it. Princeton’s AI Agents That Matter argues for evaluating performance and cost together, because additional attempts and elaborate workflows can make gains expensive. For systems that redesign themselves, the accounting extends further. There is the cost of discovering an improvement, followed by the cost of using the resulting system.

Suppose an automated optimizer spends a week searching for a faster algorithm. That investment could be worthwhile if the algorithm subsequently runs millions of times. It might never pay for itself if used only occasionally. A fair comparison therefore includes failed candidates, evaluation work and human assistance, alongside the eventual operating savings. It also measures accepted outcomes under comparable resource limits. Matching expenditure alone may leave differences in hardware, model pricing or available computation unresolved.

The clearest record keeps changes to the system separate from changes to the experiment. One history records the model, software and tools. Another records the tasks, grading rules, exclusions and budgets. When the test changes, the old system should be rerun under the new conditions wherever feasible. When that cannot be done, the uncertainty belongs in the published conclusion. The decisive evidence arrives when the baseline receives a fair opportunity to compete and the claimed advantage survives.

03 Build evidence beyond the score
Separate development from acceptance, check useful outcomes independently, and account for costs and experimental changes.
Build evidence beyond the scoreThree evidence layers lead to a defensible claim: separate development from acceptance, check useful outcomes independently, and account for full costs and experimental changes. 3. Build evidence beyond the scoreA useful improvement must survive more than selectionSeparate development from acceptanceUse feedback to improve candidates.Keep final evaluation protected from that feedback.Check that success means useful workCombine explicit checks with independent evaluation.Passing tests may still fall short of user requirements.Count costs and preserve the recordInclude discovery costs, retries and human effort.Record system changes separately from test changes.A defensible improvement claimMore accepted outcomes under comparable conditions,with costs, uncertainty and unmatched differences visible.

Key references: DeepMind’s AlphaEvolve report. Google DeepMind, May 2025. Research on adaptive analysis and holdout reuse. Google Research, August 2015. METR’s maintainer review study. METR research note, March 2026. AI Agents That Matter. Princeton University, first released July 2024.