arXiv:2610.33539cs.AIOct 2026

Manuscript Offprint

arXiv:2610.33539

CoEvolve: Counterfactual-Guided Co-Evolution of Memory and Collaboration in Multi-Agent Systems

Xufei Shi, Derong Xu, Wei Chen, Yanyu Yao, Zhi Zheng, Tong Xu

ABSTRACT

Large language model (LLM)-based multi-agent systems have demonstrated remarkable capabilities across diverse tasks. Yet their memory and collaboration architectures often remain static, constraining continued adaptation and improvement over time. Recent work addresses this limitation by evolving memory or collaboration based on interaction experience. However, updates to these interdependent components are not necessarily aligned: an evolved workflow may require experience that memory does not provide, while evolved memory may encode guidance that the workflow cannot use. To address this problem, we propose CoEvolve, a skill-centered framework for aligned memory–collaboration evolution. CoEvolve represents reusable local collaboration patterns as skills that link evolving collaboration decisions to their supporting memories. It further compares original and counterfactual trajectories to identify local evolution signals, which coordinate updates to the skill library, skill memory, and executor memories across rounds. Experiments on the ALFWorld and WebShop benchmarks confirm that CoEvolve achieves the best overall performance among the evaluated baselines, while ablation studies further validate the effectiveness of aligned co-evolution and counterfactual-guided evolution. Our code is available at https://github.com/MINE-USTC/CoEvolve.

1 INTRODUCTION

Large language model (LLM)-based agent systems have demonstrated strong capabilities on complex reasoning tasks and are increasingly deployed in open-ended settings that require long-horizon planning, collaboration, and sustained interaction with the environment (Hao et al., 2026b; Zhang et al., 2026d). Yet the underlying models are typically fixed after training, while the memory and collaboration architectures of many multi-agent systems (MAS) remain unchanged after deployment (Gao et al., 2026). Consequently, these systems have limited ability to incorporate interaction experience and adapt to new tasks, evolving knowledge, or changing environments.

To move beyond static designs, recent self-evolving approaches use task outcomes or execution traces to revise persistent MAS components across rounds. One line of work evolves how memory represents, organizes, and retrieves experience. For example, MemEvolve (Zhang et al., 2025a) jointly evolves experiential knowledge and its modular memory architecture, while MemSkill (Zhang et al., 2026b) evolves reusable memory operations and their selection. Another line adapts how agents communicate and organize their workflows. GPTSwarm (Zhuge et al., 2024), for instance, optimizes communication graphs, whereas HFlow (Liu et al., 2026b) revises workflow structures using execution experience and human–agent feedback. EvoChamber (Zhang et al., 2026d) further adapts both individual agents and team organization at test time. Together, these studies show that persistent components can improve from experience. However, memory and collaboration should not evolve independently because they are mutually dependent. An update to one component can change what the other needs to provide or consume.

Figure

Figure 1: Cross-component mismatch under independent evolution: (a) memory-only and (b) collaboration-only updates leave workflow requirements and memory support misaligned, whereas (c) CoEvolve aligns both via shared skills.

When this dependency is not maintained, a locally useful update may fail to improve overall system behavior. We call this incompatibility cross-component mismatch. As shown in Figure 1(a), memory evolution may produce guidance that a fixed workflow cannot invoke. Conversely, Figure 1(b) shows that collaboration evolution may introduce decisions without sufficient experience in fixed memory. In both cases, collaboration requirements and memory support evolve out of sync. Figure 1(c) illustrates the desired case, where each collaboration capability remains aligned with the memory support required for its decisions. This motivates a shared interface that jointly coordinates the evolution of collaboration and memory.

Effective coordination also depends on identifying where updates should occur. Existing evolution signals provide two main forms of evidence for this decision. Performance-driven methods use task-level scores, such as pass rates or final rewards, to search for or select candidate agent systems (Hu et al., 2025; Zhuge et al., 2024; Zhang et al., 2025b). While these scores enable comparisons between system designs, they provide limited guidance on which local decisions should be improved. In contrast, process-driven methods inspect execution experience to diagnose potential improvements. ReCreate (Hao et al., 2026a) reasons over interaction histories before editing agent scaffolds; Meta-Team (Hao et al., 2026b) organizes distributed evidence through post-task communication; and RetroAgent (Zhang et al., 2026c) uses retrospective feedback to refine agent behavior. Although more informative, these signals remain grounded in the observed trajectory and do not directly test whether replacing a local segment would change the outcome. Decision-level counterfactual credit assignment provides a more direct test by evaluating local alternatives under matched context (Chen et al., 2026). However, identifying an outcome-sensitive segment alone does not indicate how the corresponding collaboration pattern and memory support should evolve together.

Building on these analyses, we propose CoEvolve, a counterfactual-guided framework for the aligned co-evolution of memory and collaboration. Keeping the two evolution processes aligned requires a shared unit for local collaboration capabilities and their supporting experience. To this end, CoEvolve represents reusable local collaboration patterns as skills and organizes three evolvable components around them: a skill library stores executable collaboration patterns, skill memory guides stage allocation, and executor memories support execution. This design supplies new collaboration capabilities with relevant memory while giving evolved memory concrete decision interfaces. To obtain evolution signals that indicate where updates should occur, CoEvolve constructs counterfactual trajectories from matched branch points after each round and compares them with the original trajectories. The resulting differences are further localized to identify outcome-sensitive pivot segments. These pivot-level signals jointly update the skill library, skill memory, and executor memories, keeping collaboration capabilities aligned with their memory support across rounds.

Our main contributions are summarized as follows:

• We identify cross-component mismatch as an alignment challenge in self-evolving MAS and propose CoEvolve, which uses skills as shared interfaces to coordinate the evolution of collaboration patterns and their supporting memories.

• We introduce a counterfactual signal-acquisition method that identifies outcome-sensitive pivot segments and converts them into coordinated updates to the skill library, skill memory, and executor memories.

• We evaluate CoEvolve on ALFWorld and WebShop, where it achieves the highest overall scores among the evaluated methods, and ablation studies validate the effectiveness of aligned co-evolution and counterfactual-guided evolution.