Manuscript Offprint

arXiv:2609.40340

EvoDuet: Bilevel Co-Evolution of Web Searching and Task Solving for Scientific Discovery

Young-Jun Lee, Jinheon Baek, Soyeong Jeong, Minki Kang, Seungyeon Jwa, Jonghyun Choi, Seungho Han, Dongyeop Kang

Abstract

Evolutionary search with large language models (LLMs) can stall when progress requires external knowledge the model lacks. Supplying relevant documents helps, but simply adding web search tool can keep returning the same pages as solutions change. We introduce EVODUET, a bi-level optimization method that co-evolves solutions and search queries with fixed model parameters. At each iteration, a retrieval gate lets the LLM assess its knowledge gap and choose to retrieve new documents, reuse stored ones, or proceed without them. An inner loop refines queries and ranks documents by the solution scores they are predicted to yield; an outer loop generates candidates in parallel from these documents and records the evaluated outcomes for later searches. Across 21 optimization tasks with one candidate per iteration, EVODUET raises OpenEvolve's normalized discovery gain from 74.1% to 78.0% with GPT-5.6-Luna and from 61.3% to 82.3% with Gemini-3.8-Flash, whereas Qwen3.5-9B does not benefit. Our best runs surpass the previously reported best scores on eight tasks, including Swap Reduction on Q20 and Rosetta, and match them on three more. EVODUET also improves with other scaffolds (e.g., Top-K, EvoX) on Sums/Diffs and Denoising, demonstrating its applicability across evolutionary search scaffolds.

1. Introduction

Evolutionary search scaffolds driven by large language models (LLMs) (Romera-Paredes et al., 2024; Novikov et al., 2025) have begun to discover new solutions to optimization tasks such as the Erdős minimum-overlap problem (Erdős, 1955), GPU kernel design (Ouyang et al., 2025), and single-cell RNA-seq denoising (Yuksekgonul et al., 2026). In these tasks, an evaluator can score any candidate solution, but the optimal solution cannot be computed directly (Kirkpatrick et al., 1983). Scaffolds therefore iterate: the LLM proposes candidates, the evaluator scores them, and high-scoring candidates seed the next iteration.

Most scaffolds (Sharma, 2025; Lange et al., 2025; Cemri et al., 2026) run only this solution loop. Others keep the solution loop from saturating by wrapping additional loops around it, a design we call Loop Packing (Figure 1). For example, EvoX (Liu et al., 2026a) adds a strategy loop that revises the search strategy when progress stagnates. However, every loop packed so far draws on the same two sources of knowledge: the run's evolutionary history and the LLM's parametric knowledge. The search is therefore closed, and it stalls when progress requires external knowledge that neither source contains (e.g., how to use a newer library version). Human scientists, by contrast, consult the literature and search again as new knowledge gaps emerge.

Our preliminary analysis (§ 2.3) shows that external knowledge helps LLM-driven search, but not automatically. Supplying task-relevant and helpful documents at every iteration (oracle documents) raises OpenEvolve's average

Figure

Figure 1: Packing loops of multiple optimization scaffolds

Normalized Discovery Gain (NDG) on

∗^{*}Co-second authors with equal contribution, listed alphabetically by surname.

Best-so-Far Evaluator Score

Figure

Figure 2: EVODUET co-evolves solutions and web queries. The inner loop evolves queries; the outer loop uses retrieved documents to revise and evaluate solutions. The Swap Reduction example illustrates method transfer (the most common of the six behaviors analyzed in Section 5.1): the model applies retrieved routing principles to prioritize gates closer to execution (iteration 5) and penalize reversing the last SWAP (iteration 66). At iteration 64, the gate reuses stored documents without a new web search. The best router found in this run uses 14,835 Q20 SWAPs, 2.31% fewer than the released SimpleTES program (WILL Team, 2026) (15,186) under the same evaluator.

31 tasks by 10.3% with Qwen3.5-9B and 4.0% with GPT-5.6-Luna. Two further observations show that turning such knowledge into progress takes more than a search tool: First, the LLM needs room to explore: on Sums/Diffs, oracle documents help only when the LLM generates eight candidates per iteration rather than one. Second, queries must evolve with the solution: on Denoising, an LLM that searches inside the solution loop mostly retrieves pages it has already seen (88.1% of returned URLs) and stops improving after 50 iterations. We therefore co-evolve web search queries with solutions (Figure 1), making the search open.

We introduce EVODUET, a bi-level optimization method that co-evolves solutions in an outer loop and web search queries in an inner loop, with the LLM's parameters fixed. A knowledge-gap-based retrieval gate connects the loops: at each iteration, the LLM assesses what it still needs to know to improve the current solution (its knowledge gap) and decides whether to retrieve new documents, reuse stored ones, or proceed without documents. When it retrieves, the inner loop constructs queries targeting the gap, searches the web, and ranks documents by hypothetical evidence scoring, which predicts the evaluator score of a candidate built on each document. These predictions and the updated knowledge state steer the next round of queries without evaluating any candidate. Given documents, the outer loop generates candidates in parallel and records the documents with the evaluated outcome to guide later searches. Figure 2 illustrates this interplay on Swap Reduction (quantum compilation).

We evaluate EVODUET with OpenEvolve on 21 optimization tasks. With one candidate per iteration, it raises overall NDG from 74.1% to 78.0% with GPT-5.6-Luna and from 61.3% to 82.3% with Gemini-3.8-Flash, and parallel generation improves it further. Qwen3.5-9B does not benefit, even though oracle documents help it: it often leaves retrieved methods unused or misimplemented (26% of sampled revisions), suggesting that co-evolution requires a model that can both find and apply evidence. The best runs of EVODUET surpass the previously reported best scores on eight tasks and match them on three more; on Denoising, EVODUET surpasses SimpleTES (WILL Team, 2026) at 6.9×6.9\times lower estimated cost. It also improves other scaffolds, Top-K and EvoX, on Sums/Diffs and Denoising, showing that the search loop can be packed alongside existing loops.

Finally, we analyze how retrieved documents shape the search. Candidates improve on their parent in 67.1% of iterations that retrieve a document predicted to beat the parent, compared with 52.1% of iterations without documents. The most common use of documents is method transfer, in which the model applies a retrieved method to its solution (55 of 82

Figure

(a) Average NDG ( ↑\uparrow)

Figure

(b) Gain vs. Headroom

Figure

(c) Δ\DeltaNDG per task ( ↑\uparrow)

Figure 3: OpenEvolve with and without oracle documents on 31 optimization tasks using Qwen3.5-9B and GPT-5.6-Luna. (a) Average NDG across tasks. (b) Per-task Δ\DeltaNDG versus baseline NDG, with bin medians pooled across models. Shading marks baseline NDG below 5% or at least 80%; hollow markers denote simple tasks. The dashed line shows the gain needed to reach 100% NDG. (c) Per-task Δ\DeltaNDG in descending order. Legends count tasks with NDG increases (improved) or decreases (degraded) of more than 1%; shading indicates changes within ±1%\pm1\%.

runs). Yet documents predicted to help can also yield much worse candidates (29 of 82 runs), so predicted gains must still be validated by the evaluator.

References (85)