Why Evaluation Should Feed Back into AI

Why recording a mistake is only the beginning of teaching a computer to avoid it.

What Happens After an AI Gets It Wrong?
Neurosymbolic AI · Computer Science · Software Engineering
What Happens After an AI Gets It Wrong?
A computer can discover a mistake and still learn nothing from it.
2026

Building systems that improve over time requires giving their evaluations somewhere to go.

I. A Mistake Should Change the Next Attempt

Imagine asking an AI to write a program that sorts numbers. The code looks convincing, runs without crashing and puts its output in ascending order. But there is a flaw: when a number appears twice, the program keeps only one copy. A conventional test might mark the attempt as a failure and record it in a report. A more useful system would preserve the precise input that exposed the mistake, together with the correct answer, and require future versions to handle it. The failure would become part of the machinery that produces the next solution.

Computer scientists have formalized this approach in a technique called counterexample guided inductive synthesis. A program generator proposes a solution. A checker searches for an input that violates the requirements. If it finds one, that counterexample returns to the generator, which must produce a candidate that satisfies all the counterexamples collected so far. Each discovery narrows the search by excluding other programs with the same weakness. The evaluation actively shapes what can be proposed next.

This suggests a different way to think about a data pipeline, the sequence of operations that collects, transforms and uses information. A pipeline built to operate for years needs a route through which the consequences of its work can influence future decisions. Merely storing more records will not accomplish that. An evaluation must become something another component can use: a constraint, a revised procedure or evidence that an earlier assumption no longer holds. Otherwise, the system can faithfully document the same mistake indefinitely.

01 Make a failure useful
A failed check becomes a saved test that changes the next attempt.
1. Make a failure usefulA sorting program loses a duplicate. A check detects the error. The failing input and expected answer become a saved test that returns to the next coding attempt. 1. Make a failure useful An evaluation should change the next attempt. Write a programSort these numbersInput: 3, 1, 3Run itActual output1, 3Check itExpected: 1, 3, 3A duplicate is lostKeep the failureSave the input andexpected answer as a testThe evidence returns to the pipelineThe next version must preserve duplicates.
II. Give Useful Discoveries a Way to Survive

Evolution offers a structural clue. Variations arise, their consequences affect which persist, and inheritance carries those differences forward. Nature has no central examiner explaining what went wrong. Yet past outcomes alter the possibilities available to subsequent generations. The useful lesson for computing is this relationship between variation, selection and retention. Software can make the process explicit by recording which changes succeeded, under what conditions, and what future attempts should inherit from them.

Google DeepMind’s AlphaEvolve applies this principle to computer code. Language models propose modifications, automated evaluators measure their performance, and a database preserves candidates and their results for later rounds. In 2025, the team reported discovering a scheduling rule that recovered an average of 0.7 percent of Google’s computing resources that would otherwise have remained stranded. The company evaluated the rule on unseen workloads before deploying it and reported confirming the improvement afterward.

The architecture also retains diversity rather than allowing a single successful candidate to dominate every subsequent proposal. That matters because a promising route may initially perform worse than an established one. Different candidates can preserve useful approaches that later changes improve or combine. The resulting memory serves two purposes: exploiting discoveries that already work and keeping alternatives available for further exploration. Its usefulness depends on how stored results influence the next search, rather than how many results the database contains.

III. Turn Experience Into Building Blocks

Remembering an answer is useful. Discovering a reusable operation inside that answer can be more powerful. This is one ambition of neurosymbolic AI, which connects neural networks with explicit structures such as programs, rules and logical relationships. Neural networks help recognize patterns and identify promising directions. Symbolic structures give those suggestions a form that can be executed, inspected and, in some settings, verified. Together, they offer a way for experience to change the tools available for solving future problems.

DreamCoder, developed by a team including MIT researchers, illustrates this process. It searches for programs that solve tasks and then looks for reusable components within its solutions. In one published illustration, programs that double every number in a list and subtract one from every number reveal a shared operation: applying a function to each list element. That operation can become a library component. Future searches can use it directly, avoiding the need to reconstruct the same machinery each time.

DreamCoder also trains a neural network using previous solutions and generated practice problems to guide later searches. Its learning therefore changes both the programming vocabulary and the search process. For software engineering, the broader implication is compelling: evaluated work can yield reusable abstractions that make subsequent work easier. This is a richer form of accumulation than keeping a catalogue of successful answers. The pipeline gradually acquires components with which new answers can be constructed.

02 Turn successful work into reusable tools
Accepted solutions reveal shared operations that become tools for future searches.
2. Turn successful work into reusable toolsA neural model proposes code, explicit checks evaluate it, accepted programs reveal common operations, and those operations enter a reusable library that helps future proposals. The example abstracts a shared operation for applying a function to each item in a list. 2. Turn successful work into reusable tools Neural search and explicit programs improve together. Neural modelPropose a programusing available toolsExplicit checksExecute the programand test its behaviorAccepted programsDouble each list itemSubtract one from each itemReusable libraryApply a functionto every list itemExtract the shared operationMake it available to future searchesExperience expands what the system can build.
Conceptual illustration of evaluation signals returning to improve an AI pipeline

Evaluation becomes useful learning when its evidence changes the next computation.

IV. Send the Lesson to the Right Place

The difficulty in an operational system is deciding what a disappointing result actually means. A final output may depend on data collection, retrieval, reasoning and execution. Failure at the end does not identify which stage caused it. A sensible architecture would therefore preserve the evidence behind an evaluation: the input, the output, the relevant software versions and the checks performed. An explanation of the failure should remain distinguishable from the failure itself. Observing an omission does not establish its cause.

Consider an AI assistant answering questions from a company’s document collection. It gives an outdated answer because the current policy never entered its searchable index. Retraining the language model would not directly repair that missing source. The appropriate response would begin with fixing document ingestion and adding a check that detects the omission. If the correct document had been available but overlooked, the investigation would instead turn toward retrieval. The same visible symptom can require changes in different parts of the pipeline.

This example suggests organizing learning across several timescales. Immediate feedback can help repair the current answer. Repeated failures can justify durable tests or changes to shared procedures. Broader evidence may support model retraining. Each lesson should retain information about where it applies and why it was accepted. Over longer periods, that record becomes essential: interfaces change, documents expire and workloads shift. A system needs to withdraw obsolete guidance while preserving enough history to explain how that guidance once made sense.

V. Keep the Test From Becoming the Goal

A system that repeatedly uses evaluation results can become skilled at satisfying the evaluator without achieving the intended objective. Consider an assistant scored mainly on whether its answers sound confident and contain citations. Success under that rubric would not establish that the citations support its claims. Returning those scores to the pipeline could reward polished misinformation. The feedback loop would be functioning exactly as designed, while the design would be selecting for the wrong behavior.

Reliable evidence is therefore central to correction. A 2024 survey found that dependable external feedback was a major condition for successful language model correction in the research it examined. Repeated testing creates a separate difficulty: when benchmark results shape revisions, those revisions can become increasingly tailored to the benchmark. Research on adaptive data analysis shows why repeated interaction with evaluation data complicates claims that a system will generalize.

A durable learning pipeline must therefore distinguish evidence used to improve a system from evidence used to judge whether improvement extends to unfamiliar situations. Development failures should return as usable lessons, while protected tests and fresh workloads provide a separate assessment. The ambition is a system whose accumulated experience makes its future behavior measurably better. After every evaluation, its designers should be able to identify what changed, why that change was justified, and what evidence could overturn it. That is how a pipeline begins to carry learning forward.

03 Learn from feedback. Check on fresh evidence.
Development feedback improves the candidate. Protected evaluation checks whether the gains extend to unseen cases.
3. Learn from feedback. Check on fresh evidence.A candidate update is tested on development cases. Lessons return to the next candidate. A separate path sends the candidate to protected evaluation with unseen cases. Release requires passing that check. Protected cases remain outside the development feedback loop. 3. Learn from feedback. Check on fresh evidence. Improvement and independent evaluation need separate paths. CandidateUpdated code, rulesor model behaviorDevelopmentTest for weaknessesand useful changesRetain lessonsKeep evidencefor the next attemptFeedback guides the next candidateProtected evaluationTest on unseen casesoutside the learning loopReleaseOnly if thecheck passesBetter scores must also mean better performance.

Section I: Introduction to Verified Functional Synthesis. MIT course notes on counterexample guided synthesis.

Section II: AlphaEvolve: A Coding Agent for Scientific and Algorithmic Discovery. Google DeepMind technical report, 2025.

Section III: DreamCoder: Bootstrapping Inductive Program Synthesis with Wake Sleep Library Learning. PLDI, 2021.

Section V: When Can LLMs Actually Correct Their Own Mistakes?. Transactions of the Association for Computational Linguistics, 2024.

Section V: The Reusable Holdout: Preserving Validity in Adaptive Data Analysis. Science, 2015.