The Loop That Builds Knowledge

A new class of AI systems has learned to make educated guesses instead of blind ones.

Neural Search · Neurosymbolic AI · Program Synthesis · AI
When the Search Learned to Guess
Neural models are replacing the random noise at the heart of evolutionary search. What comes next is a new design pattern for how AI systems discover knowledge.
2026

For most of computing history, evolutionary search ran on controlled randomness. Keep a population of candidate solutions, score each one, let the best survive, and generate new candidates by applying a mutation operator that introduces small random changes. The randomness was not a flaw. It was the mechanism: blind perturbation is how you avoid getting permanently stuck at a local optimum, the computational equivalent of a valley that looks like the bottom of everything until you step outside it.

Over decades this approach produced real results in engineering, scheduling, and circuit design. It also produced a familiar frustration: the search could consume millions of evaluations while slowly groping toward solutions a knowledgeable engineer might recognize in minutes.

The question that has come to define a new generation of systems is what happens when you replace that random operator with a neural network that has absorbed most of what humans have ever written about code, mathematics, and structured problem-solving. The mutation stops being noise. It becomes a proposal.

01 How one change rewires the search
The classical and neural-guided loops share the same four-step structure. Only the mutation operator changes — from a random perturbation to an informed neural proposal.
Diagram 1: Classical search vs neural-guided search Side-by-side comparison of the classical random mutation loop and the neural-guided mutation loop, showing the same four-step structure with only the mutation operator changed. DIAGRAM 1 How one change rewires the search Classical search Neural-guided search Population Candidate solutions Random mutation Blind perturbation Score Evaluate each candidate Select Keep best survivors Slow — millions of evaluations Population Candidate solutions Neural mutation Informed proposal Score Evaluate each candidate Select Keep best survivors Faster — structured, informed edits vs Same loop — one operator replaced
I. From Noise to Proposal

A classical mutation operator samples from a fixed distribution that knows nothing about the current candidate or the problem. A neural mutation operator samples from a distribution conditioned on the specific candidate in front of it, shaped by patterns absorbed across millions of similar problems during training. The expensive work of learning what good edits look like gets paid once, during pretraining, and reused at negligible cost on every subsequent step. In practice this means the operator can propose a coherent multi-line rewrite of a function rather than a single character substitution that probably breaks compilation.

The clearest early demonstration came from FunSearch, built at Google DeepMind and published in Nature in late 2023. FunSearch uses a language model as the variation operator inside an island-based evolutionary loop, but the candidates it evolves are not direct solutions. They are short programs that generate solutions. On the cap set problem, a question in extremal combinatorics about the largest subset of integers containing no three-term arithmetic progressions, FunSearch found a construction that beat the best-known result in that dimension, a margin that had stood for decades. Because the output is a program rather than a raw answer, mathematicians could read it, simplify it, and extract genuine insight from it. The search had not just found a number. It had found a strategy.

AlphaEvolve, released by Google DeepMind in May 2025, extended the architecture to entire code files and paired the language model with automated evaluators scoring correctness and performance simultaneously. It found the first improvement over Strassen's 1969 matrix multiplication method in 56 years. More concretely, a scheduling heuristic it produced has been running inside Google's Borg data center orchestrator for over a year, recovering an average of 0.7 percent of Google's global compute per day, and a kernel optimization it discovered cut a key bottleneck in Gemini's own training by 23 percent.

II. The Neurosymbolic Connection

The reason this design pattern draws serious attention in AI research is not the benchmark numbers. It is what the architecture implies for building systems that can reason. The hardest open problems in artificial intelligence involve searches over discrete, structured spaces: programs, mathematical proofs, logical hypotheses. Pure symbolic search over these spaces is principled but combinatorially ruinous. Pure neural generation is fast but unreliable. The neural-mutation loop threads between both failures by separating the job of proposing where to look from the job of verifying what is actually true.

AlphaGeometry, from Google DeepMind, makes this architecture tangible. Its symbolic deduction engine derives consequences from a geometry problem's premises exhaustively, but formal proof depends critically on auxiliary constructions, points and lines not mentioned in the problem statement, that open up new derivation paths. A language model trained on millions of synthetically generated proofs proposes one construction at a time; the symbolic engine checks whether it brings the proof within reach. On a benchmark of 30 International Mathematical Olympiad geometry problems, the combined system solved 25. The average human gold medalist solves 25.9.

DreamCoder, from MIT CSAIL, takes the same loop further. After each round of search, the system refactors successful programs into a growing library of reusable abstractions, functions discovered in one problem that become useful primitives in the next. The neural recognition model then learns to search using the expanded library, so the search space itself improves with every iteration, a property purely random mutation cannot achieve because random noise has no way to notice when it has found something worth keeping.

Neural-guided search visualization

Replace IMAGE_HERE in the script at the top of this file with your image URL before publishing.

02 The neurosymbolic loop: propose, verify, refine
A neural model proposes candidates; a symbolic verifier accepts or rejects each one. Accepted solutions compound into a growing library of reusable abstractions.
Diagram 2: The neurosymbolic propose-and-verify loop Three-node horizontal flow showing the neural model proposing candidates, the symbolic verifier accepting or rejecting them, and a growing library of reusable abstractions accumulating from accepted solutions. DIAGRAM 2 The neurosymbolic loop: propose, verify, refine Neural model Generates proposals Candidate Program or proof step Symbolic verifier Checks correctness accept Verified output Accept and keep reject — refine and try again Library of abstractions grows Each solution becomes a reusable primitive (DreamCoder) Neural intuition + symbolic guarantee = verified discovery
III. Software Engineering as a Search Problem

The design pattern generalizes directly to software engineering, where candidates are programs and the evaluator is a compiler, a test suite, or a performance benchmark. CodaMosa, developed at Microsoft Research in collaboration with the University of British Columbia, makes the structure explicit. It runs a standard evolutionary test generator until coverage stalls, then calls a language model to propose tests for functions that have gone unreached, using those proposals to restart the search in a productive direction. Across 486 benchmark programs it raised coverage on a substantial majority of cases without reducing it on the rest.

Automated program repair fits the pattern even more naturally. ChatRepair, from the University of Illinois Urbana-Champaign, treats repair as a multi-turn loop in which each candidate patch is conditioned on the specific test failures of the previous attempt. The language model reads the error output, forms a hypothesis about what went wrong, and proposes a targeted fix. Across the Defects4J benchmark it repaired 162 of 337 bugs at an average cost of 42 cents per bug.

Treating a language model as a mutation oracle means the model is never trusted directly. Every proposal gets evaluated against an objective criterion before anything is kept, removing the central failure mode of standalone code generation, where plausible-looking output masks subtle incorrectness. The search loop converts probabilistic fluency into verified, executable results.

IV. What Gets Hard and Why It Matters

The failure modes of this architecture are documented well enough that the field has developed engineering responses to each. The most fundamental is mode collapse: because a language model proposes probable edits, an unguarded search loop drifts toward what the model already believes, diversity collapses, and the search degrades into the same local-optimum trap that motivated random mutation in the first place. The standard countermeasure comes from quality-diversity research, particularly the MAP-Elites family of algorithms, which maintain an archive spread across behavioral dimensions rather than a single ranked frontier. AlphaEvolve and its serious open-source successors build on this architecture, combined with island populations that evolve in parallel and exchange candidates at intervals.

The second failure mode is reward hacking. When the neural operator can modify any part of the candidate, including the part that interacts with the evaluator, the search eventually finds edits that score well without solving the problem. The fix is to restrict what the operator may edit, separate the scored interface from the implementation, and design evaluation functions that give partial credit to near-solutions rather than binary pass-fail scores. Hard binary scoring creates a flat landscape where most mutations look equally bad even when one is a step in the right direction.

The third constraint shapes system design most directly: evaluation cost. Generating candidates via a language model is fast. Running the evaluator is the bottleneck. The architecture that handles this is a cost cascade: cheap syntactic checks eliminate broken candidates first, more expensive semantic checks run on survivors, and the full evaluation runs only on finalists, all parallelized across a cluster. What this implies is that the decisive engineering asset in this class of systems is not the generator, which can be accessed from any large model provider. It is the evaluator: automated, reliable, hard to game, and fast enough to run at scale. The teams that have built the strongest systems share one trait. They spent most of their effort designing the objective function, not the neural operator. The quality of the search depends entirely on the quality of what it is searching for.

03 The evaluation cascade: where the real work happens
Candidates narrow through three increasingly expensive filter tiers. The three documented failure modes — mode collapse, reward hacking, and evaluation cost — are annotated with their engineering countermeasures.
Diagram 3: The evaluation cascade and failure modes A narrowing funnel of four evaluation tiers from wide to narrow, with three failure modes annotated on the left with dashed leader lines, ending in a verified solution and the article thesis. DIAGRAM 3 The evaluation cascade: where the real work happens All candidates Language model generates proposals — fast, many Syntactic check Fast — discard obviously broken candidates Mode collapse Fix: MAP-Elites most discarded Semantic check Slower — survivors only Reward hacking Fix: restrict edits further discarded Full evaluation Finalists only — most expensive Evaluation cost Fix: cascade + parallelize verified Verified solution The evaluator decides The generator is rented. The evaluator is built. Quality of search = quality of what it searches for The decisive engineering asset is not the generator — it is the evaluator

Key references: Romera-Paredes, B. et al., "Mathematical discoveries from program search with large language models (FunSearch)," Nature 625, December 2023. AlphaEvolve Technical Report, Google DeepMind, May 2025. Trinh, T. et al., "Solving olympiad geometry without human demonstrations (AlphaGeometry)," Nature 625, January 2024. Ellis, K. et al., "DreamCoder: Bootstrapping Inductive Program Synthesis with Wake-Sleep Library Learning," PLDI 2021. Lemieux, C. et al., "CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models," ICSE 2023. Wei, Y. et al., "Automated Program Repair in the Era of Large Pre-trained Language Models (ChatRepair)," ISSTA 2024. Daice Labs is a deep tech science company spun out of MIT CSAIL, focused on the intersection of machine learning, formal reasoning, and intelligent systems.