MEGA Hub

EvoMem: Memory-Augmented Evolution for Code Optimization

Authors

Do you know Viktor Volkov?You can claim authorship or link another user.Do you know Valentin Khrulkov?You can claim authorship or link another user.Do you know Andrey V. Galichin?You can claim authorship or link another user.Do you know Danil Sivtsov?You can claim authorship or link another user.Do you know Nikita Glazkov?You can claim authorship or link another user.Do you know Olga Volkova?You can claim authorship or link another user.Do you know Konstantin Pchelin?You can claim authorship or link another user.Do you know Iaroslav Bespalov?You can claim authorship or link another user.Do you know Dmitry V. Dylov?You can claim authorship or link another user.Do you know Petr Anokhin?You can claim authorship or link another user.Do you know Ivan Oseledets?You can claim authorship or link another user.

Abstract

Successful mutation strategies in evolutionary code search may contain reusable knowledge that is useful beyond a single run, and in some cases may transfer across related tasks and domains. However, existing LLM-driven evolutionary frameworks largely discard such knowledge, repeatedly rediscovering similar ideas and limiting opportunities for cross-run and cross-task learning. We introduce EvoMem, a persistent memory architecture for LLM-based evolutionary program search that captures and reuses candidate mutation knowledge. EvoMem converts successful mutation events into structured, task-aware advice for future runs. It operates in two phases: after each run, it extracts and stores promising ideas with provenance, and during subsequent evolution, it retrieves a small set of relevant instructions based on the current task and program context to guide mutation. Across geometric optimization, multi-hop question answering, GPU kernel optimization, and related benchmarks, our experiments show positive average improvements in target metrics or search speed for most evaluated settings, while also revealing variability across tasks. Overall, EvoMem provides evidence that persistent memory can reduce some redundant exploration and improve the reuse and adaptation of successful strategies in LLM-driven evolutionary search.

Community

00