arXiv:2610.24453cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24453

Hippo: Training-Free Agent Self-Evolution via Hippocampal Replay

Yutong Song, Jiang Wu, Yuxuan Ren, Tony Qin, Baoyuan Wang

Abstract

Motivated by recursive self-improvement (RSI), we study how LLM agents can learn through external memory without updating model parameters. Extracting useful experience from a single attempt is difficult: flawed reasoning can produce success, while poor execution can obscure a sound strategy. Preserving its value over time is also difficult: our accumulation baseline without consolidation initially improves but eventually performs below a no-memory baseline. Our key idea is to compare attempts at the same task to identify reusable decisions and refine when they apply. We introduce Hippo, a memory framework inspired by selective hippocampal encoding and replay that learns from these comparisons when shortcomings are diagnosed. It compares the resulting experience with existing memory to merge overlaps and resolve conflicts through explicit applicability conditions. This allows prior guidance to be revised without storing every lesson as a separate entry. Experiments on SWE-bench Verified, WebArena, and Mind2Web show performance gains in all three settings and substantially fewer retained experiences than the accumulation baseline. The gains extend across the evaluated base models of varying capabilities, indicating that memory-based adaptation remains useful even for highly capable models.

1 Introduction

Self-evolving agents seek to turn experience from past tasks into better decisions on future tasks (Gao et al., 2026). This objective has motivated research on recursive self-improvement, including agents that revise their own code in response to execution feedback (Zhang et al., 2026a). External memory offers a form of gradient-free learning without changes to model parameters (Shinn et al., 2023; Zhao et al., 2024). Past experience becomes part of the context for later decisions, so the agent's adaptation depends on what it retains and how it revises that experience.

Prior work has established several ways to represent, update, and reuse experience. Reasoning-Bank’s MaTTS also compares attempts to form memory, while its reported consolidation implementation appends new items without further pruning or merging (Ouyang et al., 2026). Vanilla-IB serves as a baseline for examining how interaction steps relate to token usage and task performance (Hajimiri et al., 2026). We focus on an update policy in which identified shortcomings determine whether to form new experience, what it should contain, and how it should revise prior guidance.

Continued adaptation, however, does not per se guarantee continued improvement. An example is illustrated in Figure 1. In our experiments, we examine an accumulation baseline that adds experience from both successful and failed attempts without consolidation. With this baseline, performance follows an inverted-U pattern as memory grows: it improves at first, then declines and eventually falls below the no-memory baseline.

This observation motivates our central question: how should an agent decide what experience to retain and how that experience should revise existing memory?

∗^{*}The views expressed in this paper are solely those of the authors and have not been reviewed or approved by their respective employers.

Figure

Figure 1: Correct outcomes can mask flawed reasoning, leading to erroneous or overly general lessons. Once retained in memory, these lessons may be repeatedly retrieved and misguide decisions across subsequent tasks.

An execution trace does not directly reveal what the agent should learn from it. A single failed attempt may reflect a flawed strategy or poor execution of a valid plan. A correct outcome can also conceal incorrect reasoning. A reflection may therefore extract a flawed lesson that later retrieval repeatedly presents as a trusted precedent. Even a sound lesson needs to capture the decision behind the observed actions and the conditions under which that decision applies. Task-specific action sequences may transfer poorly, while generic advice may offer little practical guidance. New information may also duplicate or contradict what the agent already retains (Chhikara et al., 2025).

We propose Hippo, a memory framework for self-evolving agents. The design draws on selective hippocampal encoding of salient episodes and replay of past experience during consolidation (Lisman & Grace, 2005; Kumaran et al., 2016). These processes motivate a separation between episodic reflections on individual attempts and persistent agent memory that integrates experience across tasks. Hippo reflects only on attempts judged to fail or succeed for the wrong reasons. We refer to these cases as surprise.

Hippo uses two comparisons to determine how memory should change. It first compares multiple attempts at the same task, sampled under the same frozen policy and retrieved memory, to distill candidate experience from their decisions and outcomes. It then compares this experience with related memories to merge overlaps and resolve conflicts through explicit applicability conditions. These comparisons determine both what can be learned from the current task and how it should revise prior guidance. A revision can therefore change existing guidance without adding another entry. The revised memory guides decisions on subsequent tasks. Experience from those tasks, in turn, provides evidence for further memory updates.

We evaluate Hippo on software issue resolution with SWE-bench Verified (Jimenez et al., 2024; OpenAI, 2024), interactive web task completion in WebArena (Zhou et al., 2024), and next-action prediction from recorded webpage states in Mind2Web (Deng et al., 2023). Hippo improves task performance in all three settings and retains substantially fewer experiences than the accumulation baseline. Experiments show gains across base models with different levels of capability. These gains extend to highly capable models such as GPT-5.6, which indicates that memory-based adaptation remains useful even for agents with strong base capabilities. Our main contributions are:

• We quantify how repeated attempts improve the chance of task success even without memory updates. This insight motivates direct retries as a baseline for future evaluations of self-evolving agents under comparable budgets, feedback, and success criteria.

• We propose Hippo, a framework for memory-based self-evolution that couples selective experience induction from multiple attempts at the same task with maintenance of existing memory. Experiments across task settings and base models demonstrate its effectiveness.

• We identify a failure mode of memory-based self-evolution: continued experience accumulation without consolidation can erode initial gains and eventually reduce performance below the no-memory baseline.

References (37)