← Latest papers
🤖 AI

What Do Evolutionary Coding Agents Evolve?

This paper introduces EvoTrace, a dataset of evolutionary coding traces, and EvoReplay, a replay-based methodology, to reveal that performance gains in evolutionary coding agents often stem from diverse mechanisms like re-tuning or reusing existing knowledge rather than genuine algorithmic innovation, evidenced by frequent deterministic cycling of code lines.

Original authors: Nico Pelleriti, Sree Harsha Nelaturu, Zhanke Zhou, Zongze Li, Max Zimmer, Bo Han, Sebastian Pokutta

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Nico Pelleriti, Sree Harsha Nelaturu, Zhanke Zhou, Zongze Li, Max Zimmer, Bo Han, Sebastian Pokutta

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a team of AI programmers trying to solve a complex puzzle, like designing a new way to pack circles into a box or writing a faster video game engine. Instead of one person working alone, they use a system called Evolutionary Coding.

Here's how it works: The AI generates a piece of code, tests it, and sees how well it scores. Then, it makes small changes (mutations) to that code, tests the new version, and keeps the ones that do better. It repeats this thousands of times, "evolving" the code over time, much like nature evolves animals.

For a while, everyone assumed these AI agents were discovering brilliant, brand-new ways of thinking to solve problems. But this paper asks a simple, skeptical question: "What are they actually evolving?"

To answer this, the researchers built a massive "black box recorder" called EvoTrace. Think of it like a flight recorder for these AI experiments. It doesn't just record the final score; it records every single step, every line of code added or deleted, every prompt the AI saw, and every mistake it made. They also built a tool called EvoReplay, which lets them pause the experiment, rewind it, and ask, "What if we changed this one thing?"

Here are the four main things they discovered, explained with everyday analogies:

1. The "Tweaker" vs. The "Architect"

When the AI gets a better score, what actually changed?

  • The Reality: Most of the time, the AI isn't inventing a new strategy. It's just tweaking the knobs.
  • The Analogy: Imagine you have a radio. The AI spends 90% of its time turning the volume up and down, or slightly adjusting the tuning dial (changing a number from 1.85 to 1.90). It rarely decides to build a completely new radio from scratch.
  • The Finding: The changes that actually lead to big score jumps (like adding a new library or completely rewriting a section of code) are rare. The AI spends most of its energy on tiny, boring adjustments.

2. The "Forgetful Gardener" (Cycling)

This was the most surprising discovery.

  • The Reality: The AI keeps deleting lines of code, only to add them back a few steps later.
  • The Analogy: Imagine a gardener who pulls up a weed, walks away, and then comes back five minutes later to plant the exact same weed in the exact same spot. They do this over and over.
  • The Finding: About 30% of the new code the AI adds is actually code it deleted earlier. It's like the AI has a short memory, forgetting what it just discarded and wasting time "re-evolving" the same ideas. This happens in almost every run, no matter which AI model is used.

3. The "Ghost in the Machine" (Replayability)

If you ask the AI to solve the problem again using the exact same instructions, will it get the same result?

  • The Reality: No.
  • The Analogy: Imagine a chef who makes a perfect soup. If you ask them to make it again using the exact same recipe and ingredients, they will make a different soup. It won't look the same, and the ingredients might be in a different order.
  • The Finding: However, even though the code looks different, the soup tastes the same. The AI can reproduce the high score using a completely different piece of code. This means the "score" is real, but the specific solution is just one lucky draw from a hat, not a unique masterpiece.

4. The "Simple Tuner" (The Tuning Gap)

How much of the AI's success is actually just finding the right numbers, rather than finding a new algorithm?

  • The Reality: A huge chunk of the improvement comes from simple math tuning.
  • The Analogy: Imagine a car race. The AI spends weeks building a fancy new engine (the structure). But the researchers found that if they just took a mediocre engine and spent a few hours adjusting the fuel mixture and tire pressure (the hyperparameters), they could get almost the same speed.
  • The Finding: In many math tasks, a simple computer program that just tweaks the numbers of a "middle-of-the-road" solution can match or even beat the final score of the complex evolutionary search. The AI didn't necessarily discover a new way to solve the problem; it just found the perfect settings for an old way.

The Big Picture

The paper concludes that when we see these AI agents getting better scores, we shouldn't automatically assume they are "discovering new science."

Often, they are just:

  1. Tweaking numbers (Hyperparameter tuning).
  2. Forgetting and remembering the same code (Cycling).
  3. Overfitting to the test (memorizing the test answers rather than learning the lesson).

The authors argue that to truly understand if these agents are smart, we need to look at the journey (the trace), not just the destination (the final score). We need to know if they are building a new house or just rearranging the furniture in the old one.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →