Manuscript Offprint

arXiv:2610.19386

STRATA: Self-Maintaining Structured Experience Graphs for Self-Evolving Language Agents

Guanhua Zhu, Hanwen Li, Zhi Wei, Mengnan Du, Chenxi Yuan

Abstract

Large language model (LLM) agents can self-evolve at test time by accumulating experience: retrieving relevant memories before acting and writing new lessons back afterwards. Yet most are single-level: trajectories, distilled workflows and reasoning items all land in one undifferentiated pool indexed by embedding similarity, with no typed abstraction hierarchy. They never forget or deduplicate, and are prone to negative transfer, where a superficially similar but directionally opposite experience is recalled and its concrete steps are copied verbatim, actively harming the agent. We introduce STRATA, a structured, outcome-grounded, self-maintaining memory that organizes experience into a three-layer graph of atomic skills and code snippets, task workflows and generalized meta-frameworks, connected by typed edges. STRATA maintains itself through five mechanisms sharing one similarity geometry: a multi-dimensional similarity that scores retrieval by operation and target; a typed reflector crystallizing procedures from successes and pitfalls from failures; community detection that induces meta-frameworks; pressure-triggered garbage collection with articulation-point protection; and contrast edges that flag confusable, direction-opposite experiences. Across four interactive benchmarks (AppWorld, WebArena, ALFWorld, ScienceWorld), two frozen backbones and seven baselines, STRATA attains the best average score while simultaneously using the lowest latency and fewest environment steps of any memory-augmented method, and 44% fewer lines of injected memory than the most context-hungry baseline. We isolate two failure modes of prior memories: single-level memory degrades sharply as the task set grows, and single-level concrete memories suffer catastrophic negative transfer, which contrast edges repair, lifting ScienceWorld from 78.7 to 96.7 within the same system.

Introduction

Language-model agents increasingly solve long-horizon interactive tasks such as navigating websites, orchestrating APIs across applications, and acting in simulated environments (Yao et al. 2023b; Trivedi et al. 2024; Zhou et al. 2024; Shridhar et al. 2020; Wang et al. 2022), building on prompting and tool-use techniques that structure a single episode (Wei et al. 2022; Yao et al. 2023a; Schick et al. 2023; Wang et al. 2024a). A promising route to improving such agents without weight updates is experience-driven self-evolution: the agent keeps a memory of its past episodes, retrieves relevant experience before each new task, and folds

Figure

Figure 1: Agent memories are asked to serve tool calling, experience reuse and role-based decomposition at once (left). Existing memories are either flat lists or generic graphs, which mix content of different granularity, dilute retrieval as they grow, and are never maintained (right). STRATA unifies the three in a single three-layer self-evolving graph (middle).

fresh lessons back into memory afterwards, becoming more capable over time (Ouyang et al. 2025; Xu et al. 2026; Shinn et al. 2023). Because this loop runs purely at test time, its effectiveness hinges almost entirely on how experience is represented, retrieved and maintained (Snell et al. 2024).

Despite rapid progress, prevailing agent memories share three limitations.

(1) They lack a typed abstraction hierarchy. Several do organize what they store (AWM distils workflows from trajectories (Wang et al. 2024b), A-Mem links notes into a network (Xu et al. 2026)), but within one undifferentiated level: nothing separates a one-off tool call from a reusable procedure from a cross-task principle, and no operation folds procedures into a principle. Retrieval stays a single similarity search dominated by surface overlap, merging same-material, different-operation pairs like “create a playlist” and “add months to a note”.

(2) They are not self-maintaining. Memory grows monotonically, with no forgetting, no deduplication and no consolidation, so stale entries crowd out useful ones. We measure this: with forgetting disabled the workflow store grows to 269 nodes injecting 48.7 lines of memory per task, yet scores lower than a bounded 201-node memory injecting less than half as much.

(3) They are vulnerable to negative transfer. When two experiences are superficially similar but directionally opposite, as in “heat the substance” versus “cool the substance”, similarity recall surfaces the wrong one, and if the memory stores concrete executable steps the agent copies them and acts catastrophically. This is not hypothetical: on ScienceWorld a production agent’s native flat memory scores −100-100 on a task family that a memoryless agent solves outright.

We address these limitations with STRATA, a memory that is structured, outcome-grounded and self-maintaining. STRATA organizes experience into a three-layer directed graph: atomic nodes (reusable skills, code snippets, or specialized sub-roles), workflow nodes (generalized task procedures), and meta-framework nodes (task families abstracted from recurring workflows), linked by typed call, generalization, merge and contrast edges. The graph is grown and pruned by five mechanisms that all operate in one similarity geometry: (i) a multi-dimensional similarity combining content and goal embeddings with an explicit operation/target tag term; (ii) a typed reflector that crystallizes a reusable procedure only from solved episodes and attaches a pitfall bullet on failure, with a per-group adaptive threshold deciding whether to create, extend, or skip a workflow; (iii) community detection that induces a meta-framework whenever a community is large, tight, and novel; (iv) pressure-triggered garbage collection that ranks workflows by a competition-aware quality score and forgets the lowest while protecting articulation points of the similarity graph; and (v) contrast edges that connect confusable, direction-opposite experiences so that retrieving one injects an explicit “do not confuse” warning about the other.

Our contributions are as follows.

• We propose STRATA, a three-layer structured experience graph for self-evolving LLM agents, together with five maintenance mechanisms that grow, generalize, and forget it, formulated precisely and reproducibly.

• We evaluate STRATA on four interactive benchmarks across two frozen backbones, seven baselines and three seeds, with a component-wise ablation of every mechanism. STRATA obtains the best average score at the lowest latency and fewest environment steps of any memory baseline.

• We identify two failure modes of prior memories: a scale failure of single-level memory that neither abstracts nor forgets (on Flash the strongest baseline ranks first at 168 tasks and seventh at 812), and negative transfer in single-level concrete memories, which contrast edges repair, exposing a structure-versus-abstraction trade-off.

References (51)