$\varepsilon$-MemEvo Boosts LLM Program Evolution with Cross-Task Memory

Aofan Liu, Shiyuan Song, Yiyan Qi· August 14, 2026 View original

Key takeaways

  • Cross-task knowledge transfer significantly enhances LLM program evolution.
  • $\varepsilon$-MemEvo uses natural-language tactic memories for transferability.
  • An adaptive injection gate prevents negative transfer across tasks.
  • The framework improves convergence and overall performance with minimal overhead.

Who benefits

Software DevelopmentAI ResearchManufacturingFinancial ServicesLogistics

Summary

$\varepsilon$-MemEvo is a new framework that enables Large Language Model (LLM) program evolution systems to transfer knowledge across different optimization tasks. It stores successful algorithmic strategies as natural-language "tactic memories" and uses an adaptive injection gate to prevent negative transfer.

Existing LLM-based program evolution systems, like FunSearch, typically optimize each task in isolation, discarding valuable search experience after completion. This new research introduces $\varepsilon$-MemEvo, a framework designed to facilitate cross-task knowledge transfer in LLM program evolution. Instead of storing raw code, $\varepsilon$-MemEvo captures prior experience as compact, task-agnostic natural-language summaries of successful algorithmic strategies, making them transferable across diverse tasks with varying APIs and evaluators. To mitigate the risk of negative transfer from semantically mismatched memories, $\varepsilon$-MemEvo incorporates an adaptive injection gate. This gate intelligently decides whether and at what intensity retrieved memories should be applied. Evaluation across eight diverse optimization benchmarks, including mathematical optimization and systems engineering, demonstrated significant improvements. Using a GPT-5 backbone, $\varepsilon$-MemEvo achieved a mean relative gain of +8.7% in Area Under the Curve of Convergence (AUCC) over AdaEvolve and improved early-stage convergence by +9.4% on average, with less than 1% computational overhead. Ablation studies confirmed the necessity of adaptive gating, as naive memory injection could lead to catastrophic failures.

Why it matters

For professionals developing or utilizing LLMs for complex problem-solving and code generation, this framework offers a way to significantly improve efficiency and performance by enabling models to learn from past experiences across different tasks.

How to implement this in your domain

  1. 1Investigate integrating cross-task memory transfer mechanisms into existing LLM-based program evolution pipelines.
  2. 2Develop methods to summarize successful algorithmic strategies into natural language "tactic memories."
  3. 3Implement adaptive gating mechanisms to control the injection of retrieved memories based on task relevance.
  4. 4Benchmark the performance of LLM program evolution systems with and without memory transfer to quantify gains.
  5. 5Explore applying this approach to internal code generation or optimization challenges within your organization.

Original post by Aofan Liu, Shiyuan Song, Yiyan Qi

"arXiv:2608.12522v1 Announce Type: new Abstract: LLM-based program evolution systems such as FunSearch and AlphaEvolve have shown strong ability to discover novel algorithms, but typically optimize each task in isolation, discarding search experience after completion. We introduce…"

View on X

Originally posted by Aofan Liu, Shiyuan Song, Yiyan Qi on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Engineering & DevTools