potentialpaper

LEAP: Library-driven Evolutionary Abstraction Paradigm for Large Language Models

Fanbin Lu, Chi-Wing Fu, Jiaya Jia

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Despite the remarkable progress of evolutionary LLM frameworks like AlphaEvolve in program and algorithm discovery, they consistently struggle with tasks requiring deep algorithmic reasoning and long-horizon planning, such as the Abstraction and Reasoning Corpus (ARC-AGI). A fundamental limitation of current evolutionary code generation is its reliance on unguided stochasticity to derive child programs from parents, lacking a systematic mechanism for knowledge accumulation, whereas human problem-solving thrives on the continuous consolidation and reuse of high-level conceptual abstractions. To bridge this gap, we propose the \textbf{Library-driven Evolutionary Abstraction Paradigm (LEAP)}, a cognitive-inspired framework that enables LLMs to autonomously construct and evolve a globally shared library of reusable algorithmic primitives. The evolution of this library is governed by two rigorous theoretical principles: First, the generation of new primitives is driven by a Minimum Description Length (MDL) objective, ensuring the system only assimilates concepts that genuinely compress the problem space. Second, the evolutionary survival and selection of these primitives are governed by a principled exploration-exploitation mechanism, dynamically regulating the library's life-cycle to strike an optimal balance between exploiting proven cognitive operators and exploring novel hypotheses while strictly bounding context entropy. Extensive experiments demonstrate that LEAP significantly outperforms existing LLM evolutionary baselines on the ARC-AGI benchmark and math optimizations problems, exhibiting robust cross-task generalization, highly efficient context utilization, and autonomous concept discovery capabilities.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers all agreed that library learning / evolution with LLMs is well-motivated and a timely topic. Both 7ime and Ttcn found the method (e.g. MDL based library admission mechnanism, UCB) principled and clean. The reviewers noted the promising results on ARC-AGI-2 and comparable or better results relative to a number of evolutionary baselines.

The reviewers raised a number of issues that require clarification or correction:

  • Overstated claims: 7ime noted a number of unsupported statements that may need to be either toned down or suported by evidence. Ttcn stated that the abstract overstates superiority on math optimization because AdaEvolve is comparable not significantly worse.
  • Clarity & missing details: all reviewers asked about additional methodological details, such as UCB routing, the global batch objective, lineage stagnation, and MDL token-reduction accounting.
  • Statistical methodology: the statistical significance checklist item was not answered (flagged by Ttcn), and there are no error bars in the main experiments.
  • Cross-task contamination: 7YjA raised the question of whether there could be cross-task leakage among eval tasks, which could provide effectively additional training data for the method. This is an important point to be clarified / remedied.
  • 7ime asks for additional memory-based baselines such as ReasoningBank/MaTTS and cost-matched BoN. Although extensive experiments are not required for the rebuttal, I agree that such additional baselines would strengthen the paper.

If the authors can address these issues satisfactorily, the paper could be considered for acceptance.

Post-rebuttal update: during rebuttals, most of the issues mentioned above have been addressed. Reviewers are generally positive about the work, ... Reviewer 7YjA has not updated their score and kept it at 3, but stated that "I'm satisfied with most of the explanations and results" with the remaining issue on test-time training also addressed in a subsequent author response. Hence, I recommend acceptance.

Final justification

See meta-review update.

Area Chair uNzX · Meta-reviewOpenReview ↗
Final justification
See meta-review update.
Read meta-review
Meta-review

The reviewers all agreed that library learning / evolution with LLMs is well-motivated and a timely topic. Both 7ime and Ttcn found the method (e.g. MDL based library admission mechnanism, UCB) principled and clean. The reviewers noted the promising results on ARC-AGI-2 and comparable or better results relative to a number of evolutionary baselines.

The reviewers raised a number of issues that require clarification or correction:

  • Overstated claims: 7ime noted a number of unsupported statements that may need to be either toned down or suported by evidence. Ttcn stated that the abstract overstates superiority on math optimization because AdaEvolve is comparable not significantly worse.
  • Clarity & missing details: all reviewers asked about additional methodological details, such as UCB routing, the global batch objective, lineage stagnation, and MDL token-reduction accounting.
  • Statistical methodology: the statistical significance checklist item was not answered (flagged by Ttcn), and there are no error bars in the main experiments.
  • Cross-task contamination: 7YjA raised the question of whether there could be cross-task leakage among eval tasks, which could provide effectively additional training data for the method. This is an important point to be clarified / remedied.
  • 7ime asks for additional memory-based baselines such as ReasoningBank/MaTTS and cost-matched BoN. Although extensive experiments are not required for the rebuttal, I agree that such additional baselines would strengthen the paper.

If the authors can address these issues satisfactorily, the paper could be considered for acceptance.

Post-rebuttal update: during rebuttals, most of the issues mentioned above have been addressed. Reviewers are generally positive about the work, ... Reviewer 7YjA has not updated their score and kept it at 3, but stated that "I'm satisfied with most of the explanations and results" with the remaining issue on test-time training also addressed in a subsequent author response. Hence, I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

Dear Area Chair uNzX,

We are deeply grateful for the constructive feedback from you and the reviewers, which we have carefully addressed by providing additional cost-matched baselines, statistical significance tests, and methodological clarifications. We are pleased that these efforts successfully resolved the main concerns, which encouraged Reviewer Ttcn to positively update their assessment of our work.

Thank you again for your time throughout this process, which has greatly contributed to improving this work.

Sincerely,

The Authors

Reviewer 7YjAOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces LEAP, a library evolutionary framework for LLM-based program synthesis. Several techniques are used in LEAP: It maintains a global library of helper functions mined from successful programs via AST-based abstraction; The primitives are selected using a Minimum Description Length objective to favor functions that compress solutions; Only compact function signatures and docstrings are exposed to the LLM to reduce context burden; UCB-style scoring and survival pruning are used to balance reuse of proven primitives with exploration of underused ones. Experimental results on ARC-AGI-2 and several mathematical optimization benchmarks show higher or comparable solved-task accuracy, better results, and faster evolutionary progress.

Strengths and weaknesses

Strengths

  1. The problem of library learning for evolutionary LLM systems is important, and the core idea is well motivated.
  2. The method is clear, and the paper is well written.

Weaknesses

  1. Some results (especially math) are tied to, or nearly identical to, AdaEvolve. Could the authors conduct more analysis on this and show LEAP's advantage?
  2. The library-learning setup could risk cross-task leakage unless the paper clearly separates library construction tasks from held-out evaluation tasks and explains whether solved evaluation tasks can contribute primitives that later help other evaluation tasks.
  3. The Figure and Table fonts are small.
Questions
  1. More experimental details are needed, such as the number of runs/seed, fitness definitions, and parent selection details.
  2. I found a "[TODO]" in the checklist, which seems to be an unfinished item.
  3. It is observed from Table 1 that, as the strength of LLMs grows, the gap between LEAP and other baselines is narrowing. Therefore, is it possible that LEAP does not work well on future LLMs like GPT-6? What is LEAP's irreplaceable advantage?
  4. Could the authors show the relative percentage of token reduction in Figure 7, which might be clearer for me on the effectiveness of MDL?
  5. Table 3 shows that the base model has the lowest token cost (~50 times less). I'm curious about how the base model would perform if it were equipped with a similar token cost by just sampling a lot?
Limitations

yes

Formatting concerns

"[TODO]" in the checklist.

4 comments
Authors · CommentOpenReview ↗

Dear Reviewer 7YjA:

We sincerely thank you for your thoughtful review and for recognizing that the problem of library learning is important and well-motivated and our method is clear. Your observation regarding the risk of cross-task leakage is an excellent point. We have carefully addressed this concern, along with providing the requested experimental details and cost-matched baselines. We have also corrected the formatting and checklist issues. We address each of your points in detail below.

Best regards,

Authors

W1. Similar performance to AdaEvolve on math optimization benchmarks.

We acknowledge that LEAP and AdaEvolve achieve comparable final scores on the mathematical optimization benchmarks. This is primarily due to a performance ceiling: the baseline results already approach near-optimal theoretical limits (e.g., on the circle packing task, GEAP, EvoX, and AdaEvolve all plateau between 2.6359 and 2.636). Additionally, unlike the highly compositional ARC tasks, continuous math optimization inherently benefits less from the discrete abstractions generated by our library learning pipeline.

However, despite similar final scores, LEAP's distinct advantage lies in its search efficiency. As illustrated in Figures 3–5, our framework converges to these optimal solutions significantly faster, requiring far fewer mutation iterations than the baselines. This demonstrates the accelerated search capability enabled by our library-driven approach. We will explicitly clarify this distinction between absolute peak performance and convergence speed in the revised manuscript.

W2. Risk of cross-task leakage and separation of library construction from evaluation.

We appreciate your comments in pointing out the risk of cross-task leakage. This is a good point. Although the mutual information among the ARC tasks are crucial for the extraction and construction of a valuable function library. It risks cross-task leakage. We perform an experiment to study how a constructed library works on brand-new ARC tasks. We split the 120 tasks from ARC-AGI2 into 80 for evolution and 40 for OOD evaluation.

To assess the quality and generalizability of the constructed library, we evaluated the held-out test set 8 times at different evolutionary checkpoints. As shown in the table below, while the training split performance naturally increases as the library accumulates primitives (from 20.15% at iteration 0 to 40.50% at iteration 30), the zero-shot performance on the strictly isolated test split also demonstrates steady, significant improvement (from 18.25% to 30.02%). This confirms that LEAP extracts genuinely reusable, generalizable algorithmic abstractions rather than merely memorizing or leaking task-specific solutions. We will include this rigorous train/test split evaluation and discussion in the revised manuscript to clarify the prevention of cross-task leakage.

Iteration Train Split Test Split
0 20.15 ± 0.19 18.25 ± 0.23
10 28.92 ± 0.18 24.36 ± 0.20
20 35.70 ± 0.21 27.19 ± 0.22
30 40.50 ± 0.20 30.02 ± 0.21

W3. The Figure and Table fonts are small Thanks! We will adjust them accordingly.

Authors · CommentOpenReview ↗

Q1: More experimental details (number of runs/seeds, fitness definitions, and parent selection).
We thank the reviewer and will make these protocol details explicit in the revision. For fitness, ARC-AGI-2 uses a dense evolutionary signal: candidates score 1.01.0 for exact matches on training grids, or their mean pixel accuracy otherwise. Final accuracy is the fraction of exactly solved test grids. Math benchmarks use standard objectives (e.g., sum of radii for circle packing). For parent selection, LEAP uses simple elitist selection: for each task tit_i, it selects the highest-fitness individual from archive Pg−1(ti)P^{(t_i)}_{g-1}, conditioning mutation together on code, library and execution feedback. Results are aggregated over 5 independent runs. Exact run counts and random seeds for all domains will be added to the revision.

Q2: Unfinished [TODO] item in the checklist. We sincerely apologize for the oversight and we will fix it and ensure the checklist is fully completed in the revised manuscript.

Q3: Narrowing performance gap on stronger LLMs We thank the reviewer for this insightful observation. It is true that as base LLMs become more powerful, the relative performance gain provided by LEAP narrows. To understand this dynamic, we conducted a granular analysis of solved and failed tasks, categorizing them by grid size and pattern complexity. As shown in the table below, LEAP yields the most substantial improvements on medium-sized grids (e.g., 10×10 to 20×20).

Base Model Grid Size Baseline Success Rate LEAP Success Rate Absolute Gain
Gemini-3-Flash Medium 46.0% 72.0% +26.0%
Gemini-3-Flash Large 13.5% 20.0% +6.5%
Gemini-3-Pro Medium 65.0% 79.0% +14.0%
Gemini-3-Pro Large 21.3% 30.2% +8.9%

The primary bottleneck for challenging tasks is perceiving large, complex grids. Base LLMs struggle to accurately process dense spatial information in text format. Consequently, even with LEAP's algorithmic abstractions, foundational perception failures prevent their correct application. This spatial reasoning limit bounds LEAP's gains on stronger models, as the hardest tasks are bottlenecked by raw perception rather than abstract logic.

Q4: Relative Percentage of Token Reduction in Figure 7

We thank the reviewer for this helpful suggestion. For a batch size of 32, the total number of tokens for the generated Python solutions typically ranges from 10,00010,000 to 20,00020,000. This absolute reduction translates to a relative token reduction of approximately 2%2\% to 6%6\%. To provide a clearer perspective on the compression efficiency, we will update Figure 7 and the surrounding text in the revised manuscript to explicitly include these relative percentages.

Q5: Performance of the Base Model with Scaled Compute (Best-of-NN) We evaluated a Best-of-N baseline using Gemini-3-Flash to compare against LEAP's token budget.

Method Accuracy (%) Cost per Task (USD)
BoN-1 19.2 0.3
BoN-8 25.6 2.4
BoN-16 26.2 4.8
BoN-64 27.5 19.2
LEAP (Ours) 39.2 14.7

As shown, LEAP significantly outperforms naive sampling. Even when BoN-64 exceeds LEAP's computational cost (USD 19.2 vs. USD 14.7), its accuracy plateaus at 27.5%, well below LEAP's 39.2%. This demonstrates that our library-driven evolution yields fundamental algorithmic improvements and highly efficient context utilization, rather than just benefiting from increased computation.

Reviewer 7YjA · CommentOpenReview ↗

I thank the authors for their rebuttal. I apologize for my late reply.

I'm satisfied with most of the explanations and results, and I thank the reviewers for showing the performance gap on LLMs with growing capability (the Gemini 3 family).

The only remaining concern is about the Train-Test split. It is shown that LEAP drops a lot on the test split, which may question the effectiveness of LEAP. I'm not familiar with recent ARC tasks, although I also worked on it 3 years ago -- at that time, people split ARC into train and validation, and we could use validation for training, but we would be tested by a held-out test set that we could not see. Is using the same set for training and testing a usual choice today? I think the authors can make a rebuttal in two ways: either providing some evidence to show it is usual or conduct expeiments to show that baselines also drop on the held-out test set and LEAP still beats them.

Thanks.

Authors · CommentOpenReview ↗

Dear Reviewer 7YjA,

Thank you for your continued engagement. We appreciate the opportunity to clarify the train-test split concern. Utilizing the demonstration examples of test tasks during inference is a standard and highly effective practice in recent ARC literature. We address this from two perspectives:


1. The Prevalence of Test-Time Training Performing adaptation or search directly on a test task's demonstration pairs (without accessing the hidden test outputs) is a common paradigm. We will diccuss the following recent works in our revision to support the validity of this approach:

  • Hu et al. "ARC Is a Vision Problem!." arXiv:2511.14761 (2025).
  • Akyürek et al. "The surprising effectiveness of test-time training for few-shot learning." arXiv:2411.07279 (2024).
  • Zhu et al. "T^5-ARC: Test-Time Training for Transductive Transformer Models..." OpenReview (2024).

2. Transductive Models vs. Coding Models It is important to distinguish between two primary approaches to ARC. While transductive models , which is trained end-to-end, require strict train/test splits to prevent data leakage, coding models like LEAP operate differently. They perform test-time search by iteratively sampling and evolving code solutions based on the provided test tasks, until a valid code solution is found that solves all demonstration examples.". Thus, evolving on the test set is an inherent and valid part of the inference process.



We hope this addresses your concerns regarding the train-test split. Thank you again for helping us strengthen the paper!

Best regards,

The Authors

Reviewer TtcnOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes LEAP, a new approach to LLM-based evolutionary program search. The idea is to evolve a shared library, along with the program search. The library learning part can be thought of as knowledge accumulation. This allows synthesizing new programs by bootstrapping learned primitives in the library. The library learning is guided by the Minimum Description Length (MDL) principle, while exploration is controlled by UCB-guided library modulation. The proposed system outperforms other LLM-based evolutionary program search methods on ARC-AGI-2 and strong performance on mathematical optimization benchmarks.

Strengths and weaknesses

Strengths:

  • Proposes an important idea: LLM-based evolutionary program search with library learning. The idea of library learning has been underexplored in this context, even though it is intuitive
  • The algorithm is well-designed: the use of MDL objective for library learning and UCB for exploration-exploitation is principled and clean

Weaknesses:

  • Poor quality: No error bars in the main experiment (figure 1). The statistical significance item in the checklist (number 7) is left unanswered. In the abstract, the paper claims outperforming baselines on math optimizations problems, but that is quite false according to the numbers reported in the paper -- AdaEvolve is as good as LEAP.
  • Poor clarity: I am quite confused by the method section -- I will write my questions in the question section.
  • (Minor) Poor readability: small fonts in figure 1, hard to distinguish color in figure 3, 4, and 5

I would be happy to increase the score if these concerns are resolved.

Questions
  • In section 2.1, the paper gives an overview of the four stages of the algorithm, but then it's followed by section 2.2 and 2.3 which do not explain the four stages sequentially. This is quite confusing, why do you make this writing choice?
  • What exactly is the global batch objective mentioned in dual-level optimization?
  • How exactly do you use the UCB score? The paper it ranks and annotates the global interface based on the score -- can you give details on how this works exactly? Do you put the scores in the prompt or something?
  • How do you compute lineage stagnation?
Limitations

yes

Final justification

My concerns are address, so I have raised my score to Weak Accept (4). The main reason for not increasing the score further is the results are not that strong -- the proposed method only outperforms the baselines in certain settings. On ARC-AGI-2, the proposed method do not outperform the baseline when the LLM is GPT-5.4.

Formatting concerns

no

5 comments
Authors · CommentOpenReview ↗

Dear Reviewer Ttcn:

We sincerely thank you for careful reading and for giving us various constructive suggestions, especially for the willingness to raise the score if concerns are addressed. We have followed your suggestions to run new multi-seed experiments and have substantially expanded the method description accordingly. We address each point below.

Kind regards Authors


W1: Missing error bars and statistical significance.

We have rerun the main ARC-AGI-2 comparison with [3] independent seeds for LEAP and the two strongest baselines (AdaEvolve, ) on [Gemini-3-Pro and GPT-5]. Updated results (mean ± std, pass@5):

Method Gemini-3-Flash Gemini-3-Pro GPT-5.4
GEPA 30.06 ± 0.31 64.20 ± 0.29 64.8 ± 0.28
EvoX 31.62 ± 0.24 65.48 ± 0.26 64.04 ± 0.26
AdaEvolve 35.00 ± 0.15 59.20 ± 0.17 66.25 ± 0.22
LEAP 39.12 ± 0.31 68.80 ± 0.20 67.02 ± 0.24

A per-task paired bootstrap test confirms LEAP's improvement over AdaEvolve is significant at p<[0.05]p < [0.05] on [both] language models. Full per-seed numbers and the test protocol will be in new Appendix [D].

Regarding the mathematical optimization benchmarks, we acknowledge that the absolute performance of LEAP and AdaEvolve is closely matched. This occurs because the benchmark scores are already approaching near-optimal theoretical limits (e.g., on the circle packing task, GEPA, EvoX, and AdaEvolve all plateau around 2.636). Furthermore, mathematical optimization tasks inherently benefit less from discrete library learning compared to the highly compositional ARC tasks. However, while the final converged values are similar, LEAP exhibits significantly higher search efficiency. As illustrated in Figures 3, 4, and 5, our framework converges to these optimal values in far fewer mutation iterations than the baselines, demonstrating the accelerated exploitation enabled by our library-driven approach. We will clarify this distinction between absolute peak performance and convergence speed in the revised text.

W2: Implementation details. Please refer to Q2, Q3, and Q4.

W3: Paper readability. We thank the reviewer for pointing this out. In the revised manuscript, we will increase font size for Figure 1 and apply high-contrast colors in Figure 3-5.

Authors · CommentOpenReview ↗

Q1: Misalignment between the four-stage overview (2.1) and Sections 2.2/2.3.

The first two stages introduced in Section 2.1 are Task Unification and Cross-Task Mutation. Since they follow standard practices in existing evolutionary baselines, we chose not to emphasize them extensively. Conversely, the latter two stages, Dual-Level Optimization and Library Consolidation, represent the core novelties of our approach and are therefore illustrated in detail in Sections 2.2 and 2.3. Nevertheless, all four stages are essential and interconnected components of the entire LEAP framework. We will add explicit transitional sentences in the revised manuscript to better map the detailed mechanisms back to the initial four stage overview.

Q2: Explanation to the global batch objective in the dual-level optimization.

Thank you for the question. In the Dual-Level Optimization, the task-specific objective is the usual fitness Fti(pi)\mathcal{F}_{t_i}(p_i) for evaluating and selecting offspring for each task, whereas the global batch objective is the batch-level Minimum Description Length (MDL) compression criterion applied during the Library Consolidation: for a candidate subroutine lnewl_{new} extracted from the current generation, we compute a batch compression gain ΔMDL\Delta_{\mathrm{MDL}} (Eq. in Sec. 2.2), and admit lnewl_{\mathrm{new}} into the shared library L\mathcal{L} only if ΔMDL>0\Delta_{\mathrm{MDL}}>0. Thus, the “global batch objective” is not a second scalar reward for ranking individual programs, but a population-level regularizer that decides which abstractions to keep across the batch by rewarding cross-task code compression and penalizing redundant library growth.

Q3: How is UCB scoring actually implemented in the project? We thank you for asking about the UCB usage. The UCB score U(f)=μ^f+cln⁡N/nfU(f)=\hat\mu_f+c\sqrt{\ln N/n_f} is used only as an attention-routing score for prompt construction, not as text that is shown to the language model: at each generation we score every helper f∈Lf\in\mathcal{L}, rank them by U(f)U(f), keep the top-kk functions, and inject solely their abstract interfaces, signatures and short docstrings, as Σti(L)\Sigma_{t_i}(\mathcal{L}) into the LLM prompt; the numeric UCB values themselves are not written into the prompt. In other words, “rank and annotate” in Alg.1 means (i) rank helpers by U(f)U(f) to decide which subset is visible, and (ii) annotate that subset into a compact API-style interface description; We will provide further details in the paper.

Q4: Definition of lineage stagnation ω(t)\omega(t)

Lineage stagnation ω(ti)∈{0,1}\omega(t_i)\in\{0,1\} indicates whether the latest offspring for task tit_i failed to beat that lineage’s historical best fitness (we set ω(ti)=0\omega(t_i)=0 once the task is solved). When routing library helpers via UCB, we use c′=(1+ω(ti)) cc'=(1+\omega(t_i))\,c instead of the base coefficient cc to compute U(f)U(f), re-rank helpers, and inject only the top-kk interfaces Σti(L)\Sigma_{t_i}(\mathcal{L}) into the prompt, raising exploration when a lineage stalls, without exposing UCB scores to the LLM.

Reviewer Ttcn · CommentOpenReview ↗

Thank you for your replies. I have a follow-up question as the new table with 3 seeds looks strange, compared to what's reported in the original paper:

In the paper, AdaEvolve gets 35.00%, 59.16%, and 66.30% accuracy on ARC-AGI-2 with Gemini-3-Flash, Gemini-3-Pro, and GPT-5.4. The new table shows AdaEvolve gets 35.00 +/- 0.15% with Gemini-3-Pro, is this a typo? Are the column names correct? And can we have the results with seeds on all three LLMs? In the original paper, the numbers on GPT-5.4 look very close, so I suspect the difference is not statistically significant -- which is fine, but they should be reported.

Reviewer 7imeOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces LEAP, a library-driven evolutionary program synthesis framework for LLMs. It targets ARC-AGI-style reasoning and mathematical optimization tasks by evolving executable Python programs rather than directly generating final answers. LEAP maintains a shared library of reusable helper functions. At each generation, the LLM mutates candidate programs while being conditioned on compact library interfaces, namely function signatures and docstrings, while the actual implementations are loaded separately during execution. New helper functions are extracted from successful or improved programs using AST analysis and execution traces. They are added to the library only if they improve an MDL-style compression objective over a batch of tasks. The library is further managed through survival scoring and UCB-guided routing, which control which functions are retained and which ones are prioritized in the prompt. Experiments on ARC-AGI-2 and mathematical optimization benchmarks show that LEAP outperforms or matches several evolutionary baselines, including OpenEvolve, GEPA, ShinkaEvolve, EvoX, and AdaEvolve, while also reporting lower token cost per ARC task.

Strengths and weaknesses

Strengths:

  • Timely and relevant topic. The paper studies library-driven evolutionary search for LLMs, which is a relevant direction given the growing interest in agentic workflows, program synthesis, and test-time optimization.
  • Promising empirical results. LEAP outperforms or matches several strong evolutionary baselines, including OpenEvolve, GEPA, ShinkaEvolve, EvoX, and AdaEvolve, on ARC-AGI-2 and mathematical optimization benchmarks.
  • Principled library admission mechanism. The use of an MDL-style objective for deciding whether to add new helper functions is a reasonable and principled way to control library growth and encourage reusable abstractions rather than task-specific code fragments.

Weaknesses:

  • Unsupported claims and overstatements. The paper contains several strong claims that are not sufficiently supported by experiments or analysis. For example, the claim that LEAP is the first to deeply integrate library learning with cross-task reflection is too strong given recent memory- and library-based test-time learning methods. Similarly, statements about “safe” large-scale exploration, projection into a dense manifold, guaranteed syntactic robustness, and escaping local optima due to UCB are mostly asserted rather than empirically demonstrated. These claims should either be supported with direct evidence or toned down.
  • Clarity and presentation issues. Some methodological details are unclear, especially how UCB-based “attention routing” is implemented in practice and how much of the prompt is occupied by the library over time. It is also unclear what exactly “MDL token reduction” means in Figure 7: whether it is measured as the difference between original and refactored solution lengths, whether the helper function definition itself is included in the cost, and over which batch of tasks this reduction is computed. The figures also need improvement: several plots appear to use low-quality raster images, and the colors for LEAP and AdaEvolve are visually too similar, making the curves difficult to distinguish.
  • Missing memory-based baseline. Since LEAP’s main contribution is a reusable evolving library, the comparison would benefit from a strong memory-based test-time learning baseline. In particular, ReasoningBank / MaTTS is closely related because it also stores and retrieves self-generated reasoning memories and studies test-time scaling with memory. Including such a baseline would better isolate whether the gains come from library learning specifically, rather than from general memory-augmented test-time search.
Questions

Questions for the authors.

  • How does LEAP handle the cold-start phase? Since functions are pruned based on their contribution to success and usage, is there a risk that useful but initially underused functions are removed before they have a chance to become useful?
  • How does the library grow over time in terms of both the number of functions and input prompt tokens? Is Figure 7 reporting the actual library prompt size or only the MDL token reduction? If the library interface is only around a few hundred tokens, why is such aggressive compression necessary, given modern long-context LLMs?
  • How exactly are UCB scores used in practice? Are the scores themselves injected into the prompt, or are they only used to rank/select which library functions are shown to the model?
  • The paper claims that UCB-guided modulation helps escape local optima, but AdaEvolve performs similarly to LEAP on several math optimization benchmarks without this specific feature. Can the authors provide stronger evidence that the improvement is specifically due to UCB rather than the general evolutionary search setup?
  • Figure 8 states that a UCB factor of 1.5 is optimal, but the plotted curves seem to suggest earlier convergence for c=2. Can the authors clarify this apparent inconsistency and specify which metric defines “optimal”?
  • Can the authors compare against a strong memory-based test-time learning baseline, such as ReasoningBank / MaTTS?
  • Can the authors evaluate LEAP on code-generation benchmarks such as LiveCodeBench + KernelBench / SWE-Pro? These are natural settings for executable helper libraries and would test whether primitives learned from software engineering or competitive programming transfer across tasks.
  • Given the high cost of evolutionary methods, can the authors include a cost-matched Best-of-N baseline, for example, with a comparable budget of roughly 0.8–1M tokens?
Limitations

yes

Final justification

The cost-matched Best-of-N comparison and clarifications regarding MDL, cold start, and prompt construction adequately address several of my questions. The routing ablation supports UCB as an effective design choice, although it does not by itself establish that UCB specifically enables escape from local optima. The lack of an empirical memory-based comparison and broader code-generation evaluation also remain limitations. Nevertheless, the method is technically sound, and the existing results are promising, so I am keeping my positive rating of 4 (Borderline Accept) unchanged.

Formatting concerns

no

4 comments
Authors · CommentOpenReview ↗

Dear Reviewer 7ime:

We sincerely thank you for your detailed, technically engaged review and for recognizing the timeliness of our work and the principled nature of our MDL-based library admission. We have carefully addressed each point, including running new ablations and cost-matched baselines.

Kind regards,

Authors

W1 and Q4: Overclaimed Statements and Unsupported UCB claims

First, regarding the concerns about over-statement, we sincerely apologize for the overly strong claims in the original manuscript. We completely agree with your assessment and will carefully revise the text to tone down the words according to the suggestions.

Also, we thank you for your constructive feedback on our statements regarding UCB, especially concerning its ability to escape local optima. Motivated by this, we conducted additional experiments to demonstrate the superiority of UCB over other standard exploration-exploitation strategies, hoping to provide a more rigorous justification for our design choice.

Specifically, we introduced an ϵ\epsilon-Greedy routing baseline (ϵ=0.2\epsilon=0.2), and compared it alongside the Greedy and Random routing across both Gemini-3-Flash and Gemini-3-Pro.

The updated results are presented in the table below:

Routing Strategy Gemini-3-Flash Gemini-3-Pro
Greedy (Pure Exploitation) 23.33 47.50
Random (Pure Exploration) 31.67 60.00
ϵ\epsilon-Greedy 33.33 62.50
UCB 39.20 68.80

The results highlight the vulnerability of pure exploitation, with the Greedy baseline performing worst and quickly trapping generation in sub-optimal local minima. Our UCB routing consistently achieves the leading performance. This confirms that UCB’s deterministic, uncertainty-aware exploration is crucial for efficiently escaping local optima and achieving fitness breakthroughs.

W2: Clarity issues about MDL and Library Growth

Thank you for your helpful comments on the clarity and presentation. We will revise the paper accordingly. (i) UCB routing: U(f)U(f) only ranks/selects the top-k interface Σ(L)\Sigma(\mathcal{L}) for the prompt; numeric scores are excluded. (ii) Prompt occupancy: The Σ(L)\Sigma(\mathcal{L}) token statistics grow over time and L\mathcal{L} is capped at 30 helpers/20k tokens. (iii) MDL reduction (Fig 7): This represents the batch compression gain ΔC=Σ(∣St∣−∣St′∣)−λ∣ln∣\Delta C = \Sigma (|S_t| - |S'_t|) - \lambda |l_n| (total token savings minus the helper's complexity penalty, sec 2.2). (iv) Figures: We will use vector graphics and distinct colors for LEAP and AdaEvolve.

W3 and Q6-8: Memory-based baselines ReasoningBank(MaTTS) and Best-of-N

Thanks for highlighting ReasoningBank. While it is a valuable approach, we cannot directly adapt it from agentic tasks (e.g., SWE-bench) to abstract puzzle solving (ARC-AGI2) for the following two fundamental reasons:

1. Executable vs. Textual Memory: ReasoningBank distills experiences into natural language hints. While effective for semantic domains, textual heuristics are too ambiguous for ARC-AGI2, which requires exact spatial and logical transformations. Our method instead builds an executable library to guarantee precise execution.

2. Retrieval Challenges: ARC-AGI2 puzzles are highly abstract and visually oriented. Surface-level textual similarity, which ReasoningBank relies on for retrieval, fails to capture the deep logical isomorphism needed to map past experiences to novel, unseen puzzles.

ReasoningBank is a highly valuable contribution to memory-augmented agents. We have updated the Related Work section to cite it and will discuss these architectural differences in the paper.

Regarding Cost-Matched Best-of-N (BoN) Baseline:

We evaluated a Best-of-N baseline using Gemini-3-Flash to compare with LEAP's token budget.

Method Accuracy (%) Cost per Task (USD)
BoN-1 19.2 0.3
BoN-8 25.6 2.4
BoN-16 26.2 4.8
BoN-64 27.5 19.2
LEAP (Ours) 39.2 14.7

As shown in the table above, LEAP significantly outperforms naive sampling. Even when BoN-64 exceeds LEAP's computational cost (USD 19.2 vs. USD 14.7), its accuracy plateaus at 27.5%, well below LEAP's 39.2%. This demonstrates that our library-driven evolution yields fundamental algorithmic improvements and highly efficient context utilization, rather than just benefiting from increased computation.

Authors · CommentOpenReview ↗

Q1: Cold Start and Grace Period Thank you for pointing out the cold-start / premature-pruning concern. i) LEAP starts with an empty library (L=∅\mathcal{L}=\emptyset), relying initially on standard LLM mutation. ii) New functions are protected and retained by a grace period of prompt exposures (set to 8, via ucb_prune_min_uses in code.). iii) UCB routing inherently favors new functions since cln⁡N/nfc\sqrt{\ln N/n_f} is largest precisely when usage of $n_f$ is small, ensuring thorough testing before eviction.

Q2: Library Growth and MDL See W2. Regarding "Why compress aggressively given long-context LLM?", the constraint is not the LLM's context window but the selection quality (attention routing). Fully injecting the library overwhelms the LLM and degrades the signal-to-noise ratio. By compressing it and limiting the exposed interface to K∈[20,30]K \in [20, 30] functions, we ensure the library co-evolution with the program offspring.

Q3: UCB score usage. Please see W2. UCB score is only used for ranking and not included in prompts.

Q4: UCB and Local Optima Please see W1. We conduct experiments to address the concern about UCB's effect on escaping local optima.

Q5: Apparent Contradiction in Figure 8 We respectfully clarify that Figure 8 shows faster convergence and a higher peak for a UCB factor of c=1.5c=1.5 (red) compared to c=2.0c=2.0 (purple). At c=2.0c=2.0, excessive exploration of rare helper functions distracts the LLM from exploiting known, high-yield primitives, slowing overall convergence compared to the optimal balance achieved at c=1.5c=1.5. We can provide more details in the paper.

Q6 & Q7 & Q8. Please see W3.

Reviewer 7ime · CommentOpenReview ↗

I thank the authors for the detailed rebuttal and additional experiments. The cost-matched Best-of-N comparison and clarifications regarding MDL, cold start, and prompt construction adequately address several of my questions. The routing ablation supports UCB as an effective design choice, although it does not by itself establish that UCB specifically enables escape from local optima. The lack of an empirical memory-based comparison and broader code-generation evaluation also remain limitations. Nevertheless, the method is technically sound and the existing results are promising, so I am keeping my positive rating of 4 (Borderline Accept) unchanged.

Authors · CommentOpenReview ↗

We sincerely thank you for your continued engagement and for maintaining your positive rating of our work. We deeply appreciate your constructive feedback and will ensure your remaining points regarding memory-based comparisons and broader evaluations are carefully addressed in our future revisions.

Best regards,

The Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…