Skip to content

DualEvolve: Co-Evolving Recommendation Models and Agent Workflows

THE ARGUMENT

Picking models by task score alone cannot tell a sound experiment from a lucky one; grading the process separately, and locking the grader outside what the agent may edit, is what makes automated search hold up.

On this page

All 64 comparisons came back higher, and the team was about to ship the best version the agent had picked, but who graded how those experiments were run [1]? Suppose you run a small ranking team and let a program rewrite its own code, run its own trials, and keep whichever version scores best. In one night it tries dozens of variants, and each one reports a number. Most people watch the biggest number, keep it, and throw the rest away. That is the wrong move. A score tells you whether that version is good; it says nothing about whether the trial was fair. Did it keep an unchanged control? Did it separate a flat result from a crash? Did it really change direction when one path stalled? Nobody grades those, so the program walks the same bad road again and again, reporting good news the whole way.

A Top Score Is Not a Fair Trial: Who Grades the Process

The usual advice is simple: keep the version with the highest score. That works when you have one candidate, but it breaks as soon as a program runs dozens of trials in a row and picks its own winner. A score is a result; a trial is a process, and the two are different things. This is wrong. When you keep the top number, you also assume that round was well designed, and nobody checked that: whether a control stayed in place, whether a flat result was logged apart from a crash, whether a stalled path led to a real change of course. None of that enters the number, so a high score proves the result looks good, not that the round deserves your trust.

The paper gives a concrete scene [1]. A controlled trial shows no gain in the current setting, and two things can happen next. The program may cut retries in that direction and try something else, or it may ignore the failure and submit a near-identical change again. Both paths can leave the same best model and the same score, yet only the first one used evidence to redirect the search. Look at the final number alone and you cannot tell them apart. The gap is not in the model, it is in how the experimenter digests one failure; what the paper adds is a separate grade for exactly that gap.

  • Whether it kept an unchanged control, or compared one edited version against another edited version.
  • Whether a null result and a run that crashed were logged as two different things, or merged into one vague failure.
  • Whether a stalled direction led to a genuinely different next round, or the same change came back under a different name.

Two Loops Change Different Things; the Evaluator Stays Fixed

The method is called DualEvolve, and it splits what can change into two layers [1]. The inner loop rewrites model and training code: it reads a diagnosis of the current version, changes the network or the loss, then runs a trial and watches the score, so this layer asks whether the model is good. The outer loop rewrites rules, meaning the written instructions that decide what to try next, how to read a failure, and when to stop, so this layer asks whether the experiment was run well. Each layer stays in its lane. A third thing does not move: the grader that scores candidates, the gate that decides whether a new version may replace the old one, the data split, and the metric code all sit outside what the program may edit. The paper calls this reward integrity, which in plain words means the referee is not allowed to play.

How does the outer layer score a round? A fixed GLM-5.2 grader reads the whole trace and grades four things: decision quality, experimental rigor, analysis depth, and novelty, with 5, 3, 6, and 4 criteria respectively, and it grades each one 3 times before averaging. The four weights are 0.35, 0.15, 0.30, and 0.20, summing to exactly 1. Call it a process score, since it measures how well the experiment ran, not how good the model is. The next round's process score minus a running historical baseline gives that action's payoff, and Thompson sampling then picks what to do next: keep everything, edit the harness, or edit a skill. Thompson sampling is a way to draw from what has paid off before, so a better action is more likely but no path is fully closed. Picking keep is fine; in the archived records 54% of rounds did exactly that, while 25% chose a harness edit and 21% a skill edit.

Scale matters, or 'it improved' means nothing. The four datasets are CDs&Vinyl, ML-1M, Baby, and Software; CDs&Vinyl, Baby, and Software come from Amazon Reviews 2023, while ML-1M is MovieLens-1M. The four starting methods are NCF, NGCF, SASRec, and GRU4Rec. Together that is 16 settings, each reported on HR@5, HR@10, NDCG@5, and NDCG@10, so there are 64 comparisons. The three comparators are Base, which does not evolve at all, OpenEvolve, and DeepEvolve, next to DualEvolve itself. All three share the same frozen GLM-5.2, the same splits, the same single GPU, and the same 12-hour search cap; test scores are means over three seeds, 12352, 12353, and 12354. Each evaluation ranks 1 held-out positive against 99 uniformly sampled negatives.

One round is fixed too: at most 6 outer rounds, and each round scores 1 starting candidate, then writes three batches that refine it at widths 3, 2, and 1, giving 7 candidate mechanisms per completed round. Low fidelity screens at 15 to 295 epochs; high fidelity settles it at a fixed 300 epochs. To promote a candidate the gate looks at gain but also at cost: the cost coefficient lambda is 0.5, the smoothing coefficient alpha is 0.3, and two consecutive rounds without a new winner stop the search. The numbers are small, yet every one of them is set before the search begins, and the program cannot move them.

The Numbers You Can Check Against the Paper

Get the direction right first: DualEvolve posts higher test means than Base, OpenEvolve, and DeepEvolve in all 64 setting-metric comparisons [1]. Macro-averaged relative gains over DeepEvolve are 7.6% on HR@5 and 9.0% on NDCG@5; over Base the four gains are 13.8%, 10.0%, 17.1%, and 14.3%. Those are not huge, but 64 comparisons with no reversal is more telling than any single peak. Take the smallest case: on ML-1M/SASRec, HR@10 rises from the strongest displayed baseline mean of 0.8216 to 0.8239, which the paper writes as a 0.28% relative gain. It wins, but it wins thin.

Orchestration designBaby/NGCF HR@5Baby/NGCF NDCG@5What changed
Full (DualEvolve)0.27840.1896Process score plus sampled actions
w/o Wiki0.26240.1783Froze the memory store
w/o TS0.25740.1757Took the mean, no sampling
Fixed Rules0.22500.1480No rule writing
Task-Gain0.22120.1441Only task score as feedback
Base0.21310.1387No change at all

The other setting is CDs&Vinyl/GRU4Rec, same designs, different numbers, and every cell here can be checked against the paper too.

DesignCDs&Vinyl/GRU4Rec HR@5CDs&Vinyl/GRU4Rec NDCG@5What changed
Full (DualEvolve)0.56890.4436Process score plus sampled actions
w/o Wiki0.56660.4383Froze the memory store
w/o TS0.53820.4231Took the mean, no sampling
Fixed Rules0.56130.4352No rule writing
Task-Gain0.56210.4392Only task score as feedback
Base0.47170.3632No change at all

These tables are the direct answer to who grades the process. Swap the feedback from a process score to a task score, the Task-Gain row, and Baby/NGCF HR@5 falls from 0.2784 to 0.2212; the paper puts the four-metric gap at 0.0455 to 0.0643, while Task-Gain beats Base by only 0.0033 to 0.0081. On CDs&Vinyl/GRU4Rec the same swap narrows the gap to 0.0044 to 0.0104, yet Task-Gain still sits 0.0760 to 0.0939 above Base. Same memory, same way to pick actions, only the score changes, and the process score wins in both settings. The paper never says task scores are useless; it says they are not enough alone.

The other three rows say something too. On Baby/NGCF, Fixed Rules trails Full by 0.0411 to 0.0534, w/o TS by 0.0139 to 0.0217, and w/o Wiki by 0.0107 to 0.0160. On CDs&Vinyl/GRU4Rec the largest gap is instead w/o TS, at 0.0205 to 0.0412, while Fixed Rules shows only 0.0076 to 0.0089. One component, two datasets, two very different sizes of effect. Do not copy the ranking over.

  • DualEvolve beats all three comparators on test means in all 64 comparisons, with macro gains of 7.6% on HR@5 and 9.0% on NDCG@5.
  • Across three independent searches, DualEvolve has the top repeated-search mean in all 12 setting-metric comparisons, with between-search sample SDs from 0.0025 to 0.0118 and two-sided Welch p below 0.05.
  • Of the 16 final mechanisms, 13 end with a within-lineage refinement and 3 with a newly selected starting point; both kinds count, so do not remember only one.

Four Steps to Audit Your Own Agent's Experiments

The recipe splits into four checks you can run on your own automated setup, without touching the model. The order matters: draw the boundary first, add the grade second, then pick actions, and only then run a check where you tempt the program on purpose. Do it backwards and you let the program learn to chase the score before any rule exists, which is too late.

  • Step 1, lock the referee outside: move the grader, the metric code, the data split, and the gate that lets a new version replace the old one out of what the program may edit, and run a static audit before any candidate code executes to block interfaces that could reach held-out data.
  • Step 2, log a separate process score for each round: grade decision quality, experimental rigor, analysis depth, and novelty, with 5, 3, 6, and 4 criteria, and count a criterion only when trace evidence supports it; do not let the task score stand in.
  • Step 3, use the next round's process score to work out this round's payoff, then pick among keep, edit the harness, or edit a skill; allow keep, since 54% of archived rounds chose it.
  • Step 4, run a shortcut check: expose interfaces that could inflate the score and watch whether the program uses them. On Baby/SASRec the paper placed 4 such interfaces, and under full disclosure 25 of 56 generated mechanisms took the bait, pushing the winner's validation score to 1.6961, above the objective's theoretical maximum of 1; that winner could not even run on the clean grader.

The first two checks stop cheating; the last two stop laziness. Skip Step 1 and the program learns to game the score; skip Step 3 and it walks the same bad road again. None of the four is hard. The hard part is admitting that once a program rewrites its own model, someone still has to watch how it rewrites, and that someone cannot be the program itself. That is the extra layer, and it is what the paper actually adds.

Where It Breaks, and My Judgment

State the caveat first. The design only holds on four offline datasets, four starting methods, one single GPU, a 12-hour cap, and one frozen GLM-5.2; the paper gives no online A/B result, no serving latency, and no business number such as repeat visits or revenue. DeepEvolve token counts are estimated, not measured; wall-clock time is lower in only three of the four settings, and on ML-1M/SASRec DualEvolve takes 11.2 hours against 10.5, which is slower. Transfer ran for just 1 target-side round and excluded the cost of acquiring the source rules. Significance uses two-sided Welch tests with no adjustment for multiple comparisons, and the main grid ran one search per setting. These are not fine print; they are the ruler for how far the claim reaches.

A sharper limit sits in the grader itself. Four annotators labeled traces with the same rubric, and the process grader agreed with them 83.1% of the time, with Cohen's kappa at just 0.432, which is moderate at best. Split by part, decision quality scores kappa 0.271, experimental rigor 0.333, analysis depth 0.598, and novelty 0.667. Two other models were tried: DeepSeek-V4-Flash agrees with humans 81.5% of the time with kappa 0.378, while Qwen3.5-Plus agrees 81.6% with kappa only 0.202. Who grades the process is a question the paper answers with something that works, not with a final answer.

The line worth a screenshot is this: scores can lie, so someone has to grade the grading, and that referee must sit where the program cannot reach it. But do not read it as a master key. It breaks down when no clean grader exists, when traces cannot be re-checked, or when nobody is willing to read that process score; outside that setting the method does not apply.

References

  1. DualEvolve: Dual-Level Self-Evolution of Mechanism and Orchestration for Recommendation

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…