arXiv:2610.35966cs.MAOct 2026

Manuscript Offprint

arXiv:2610.35966

EMMA: Structured Episodic Memory for Multi-Agent Workflow Synthesis

Ruijia Niu, Kaiwen Liu, Rose Yu, Kristina Klinkner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Deploying LLM agents in specialized domains often require fine-grained task-specific procedures and knowledge a general model lacks, yet parameter training is costly and non-interpretable, and hand-engineered agent systems shift the cost to expert labor. Episodic memory updates at context level, but single agent adaptation struggles to alleviate cross-task interference, especially with complex tasks such as multi-application navigation or data pool analysis. Although multi-agent evolution alleviates this problem, existing methods lack clear definitions on update rules and rely on the backbone model to decide where and how much the system changes. This ill-scoped evolution makes learning follow the backbone's structural preferences rather than the observed failures: one backbone accumulates skills while another spawns agents. We present EMMA (structured Episodic Memory for Multi-Agent workflow synthesis), which treats the configuration of a multi-agent system (controller routing memory, specialists inheriting a generalist prompt, and per-step procedural skills) as episodic memory. EMMA makes the ownership and admissibility of updates explicit: a reflector assigns each diagnosed failure to the scope owning its correction and proposes one edit within it, and backbone-independent guards keep every accepted edit scoped, incremental and bounded. Across KramaBench, AppWorld and BBEH with five backbones and four baselines (ACE, GEPA, EvoMAS and ADAS), EMMA attains the best overall performance on every benchmark, up to 32.5% over the strongest baseline, maintains consistent improvements across backbones, and uses 17–38% fewer training executions than the most efficient baseline.

1 Introduction

Deploying LLM agents in specialized domains demands more than general capability. Real-world applications such as data-to-insight pipelines and multi-application tasks require tailored conventions and procedures that a general model does not possess [Lai et al., 2026, Trivedi et al., 2024]. Two mechanisms are conventionally used to supply such knowledge, and each incurs a distinct cost. Parameter training, whether supervised fine-tuning or reinforcement learning under objectives such as GRPO and DAPO [Shao et al., 2024, Yu et al., 2025], is computationally expensive and yields an artifact that can be neither inspected nor selectively corrected. Human engineering of agent systems avoids that cost but transfers it to expert labor: hand-specified roles and topologies perform well [Du et al., 2024, Hong et al., 2024, Li et al., 2025] but must be re-authored for every new domain.

Episodic memory offers a more efficient mechanism, in which the experience of solving a task is persisted as text and reused on later tasks with the model weights held fixed. Reflexion, A-Mem and MemRL store retrievable reflections, notes and utility-ranked entries [Shinn et al., 2023, Xu et al., 2025, Zhang et al., 2026a], while ACE and GEPA adapt the context of a ReAct-style agent, as an accumulating playbook and as a reflectively optimized prompt [Zhang et al., 2026b, Agrawal et al., 2026]. Both use a single generic agent and adapt only its context. Complex applications such as data lake analysis, however, involve thousands of files from various sources [Lai et al., 2026]. A single agent cannot

∗^{*}Work done during an internship at Amazon.

†^{\dagger}Work performed while Rose Yu was an Amazon Scholar; no longer affiliated with Amazon.

1^{1}University of California San Diego

2^{2}Amazon

Correspondence to: Ruijia Niu rniu@ucsd.edu.

(a) Ill-scoped update: the backbone decides

Figure

(b) EMMA: the failure decides the scope

Figure

Figure 1: Ill-scoped versus scoped updates. (a) Without scope constraints, the update is a backbone habit: Opus 5 accumulates skills, DeepSeek v3.2 repeatedly creates agents (one mark per created artifact). (b) EMMA assigns the diagnosed failure to a scope and makes one bounded edit within it.

specialize its behavior per subtask, and its failure becomes observable only at the end of a long trajectory, so the learning signal cannot be attributed to the step that caused it.

Multi-agent evolution and learning systems supply the missing structure. EvoMAS, EvoAgent, ADAS and AFlow search over agent configurations or programs through mutation, recombination or meta-agent proposals guided by a task score [Hu et al., 2026, Yuan et al., 2025, Hu et al., 2025, Zhang et al., 2025a]. In these systems, however, the optimizing backbone decides where and how extensively to change the system: a meta-model proposes a whole new configuration or program, and although EvoMAS constrains each update step to one component per mutation, there is no limit on which component is selected, a choice that relies entirely on the backbone model (Appendix D.1). This ill-scoped evolution makes learning heavily dependent on the backbone's own behavior. As demonstrated in Figure 1, without scope constraints, different backbone models have almost orthogonal structural preferences, which overshadow the knowledge actually learned from the task.

We present EMMA, structured Episodic Memory for Multi-Agent workflow synthesis, which makes the ownership and admissibility of updates explicit. EMMA treats reusable configurations as memory derived from task experience. Its controller selects planning knowledge, agents, and procedural skills, executes one step at a time, and revises unfinished work from intermediate outputs. Training assigns each diagnosed failure to a scope and permits a single corresponding edit. Generalization instructions encourage transferable corrections; programmatic guards enforce scope-action compatibility, preserve existing prompt content, bound memory growth, and require a change of strategy after repeated unsuccessful edits. Specialized agents inherit the current generalist prompt, allowing general improvements to propagate without duplicating them. Our contributions are:

• Configuration as episodic memory. We formulate multi-agent workflow synthesis as episodic learning over routing knowledge, inheriting agents and procedural skills.

• Explicit, guarded updates for consistent update behavior. Each diagnosed failure is assigned to a scope and corrected by a single guarded edit within it. This keeps reflection focused on the information a task actually provides, instead of superficial structural modifications, repetitive additions, or destructive rewrites of existing entries.

• Consistent gains across model families. EMMA achieves the best mean performance on every benchmark, improving over the strongest baseline by up to 32.5%, while ranking first in 17 of 20 settings and using the fewest training executions.