TL;DR
This paper introduces Multi-Agent Transactive Memory (MATM), a framework that allows decentralized LLM agents to share and reuse their interaction histories (trajectories) via a collective memory pool. By retrieving procedural knowledge from other agents, consumer models significantly improve their task success rates and execution efficiency without requiring explicit coordination or joint training.
What Problem Does This Paper Address?
When large language model (LLM) agents operate in complex, interactive environments, they generate rich procedural knowledge in the form of action-observation trajectories. Unfortunately, in current architectures, these valuable artifacts are typically discarded after a single use or kept strictly private to the individual agent. This means newly instantiated agents must constantly "reinvent the wheel," incurring massive computational and reasoning costs to rediscover existing solutions.
While Retrieval-Augmented Generation (RAG) successfully helps individual agents leverage human-authored text, it isn't designed for population-level knowledge sharing of agent-generated procedural data. The authors address this gap by introducing a shared infrastructure inspired by the psychological concept of transactive memory—a mechanism where groups coordinate and distribute knowledge by knowing who knows what.
Methods
The MATM framework consists of a two-sided marketplace of producer agents (who contribute successful trajectories to a shared repository) and consumer agents (who retrieve trajectories to aid task execution).
The core technical components include:
- State-Conditioned Key-Value Indexing: Instead of indexing trajectories solely by the initial task description, MATM uses a rolling window approach. The recent interaction history serves as the retrieval key, and the subsequent interaction segment serves as the stored value. This allows consumer agents to get context-aware guidance mid-task.
- RetrievalPlanner: To prevent context dilution from irrelevant data, each consumer agent uses an LLM-based planner to selectively decide at each interaction step whether or not to issue a retrieval call to MATM.
- Learning to Rank Trajectories (LTRT): The authors implement a second-stage reranking pipeline using lightweight machine learning models (FFN, LambdaMART, SVMRank). The rerankers score trajectory chunks based on 44 features across six categories, including producer metadata (to model trust) and consumer metadata (for personalization).
Datasets
The authors evaluated MATM across two interactive benchmarks using a diverse population of 34 to 37 LLM models acting as producers and consumers:
- ALFWorld: A text-based household task environment. The authors utilized 3,553 training episodes to populate the memory and evaluated on 274 official test episodes.
- WebArena: A highly realistic web navigation environment. The authors created a custom split resulting in 724 training episodes and 88 test episodes.
Key Insights and Ideas
- Distributed Benefits (Not Just Competence Transfer): Surprisingly, the benefits of MATM are not concentrated solely on weak models copying strong models. Consumer agents benefit from retrieval regardless of whether the producer agent is weaker, comparable, or stronger than themselves.
- Cross-Task Generalization: Restricting retrieval to the exact same task type actually degrades performance. Trajectories from structurally different tasks still carry transferable procedural utility (e.g., a pattern for navigating a menu or handling an error), proving that agent-generated trajectories encode generalized interaction patterns.
- Trust Modeling via Metadata: Feature importance analysis revealed that the rerankers rely heavily on producer capability metadata (like benchmark scores). The ranking model effectively learns which agents to trust for specific contexts.
Key Results
Integrating MATM yielded substantial improvements in both task effectiveness (Success Rate) and efficiency (Average Steps):
- ALFWorld: The baseline success rate of 47.1% jumped to 55.1% with single-stage dense retrieval, and reached 64.3% when paired with an SVMRank reranker. Concurrently, the average number of steps per episode dropped from 11.77 to 10.35.
- WebArena: Success rates improved from 18.2% to 20.5% using an FFN reranker, while reducing the average step count from 22.0 to 19.91.
- Memory Scaling: For both environments, efficiency improved monotonically as the memory size grew. While WebArena showed a slight non-monotonic dip in success rate at intermediate scales due to retrieval noise, full-scale coverage yielded the strongest overall results.
Limitations and Future Work
While MATM proves the viability of population-level agent memory, the authors note several limitations:
- Scope of Evaluation: The framework was tested within the boundaries of individual benchmarks; cross-benchmark reranker generalization remains unexamined.
- One-Sided Focus: The study focuses entirely on consumer-side welfare. Because MATM operates as a marketplace, future work must address producer-side incentives, contribution fairness, and token-cost remuneration.
- Security Risks: The current framework assumes a cooperative ecosystem and does not account for adversarial or malicious producers who might poison the shared repository with harmful trajectories.
Summary updated