Building intelligent agents that can navigate complex, interactive environments is a cornerstone of modern AI research. However, these agents often struggle with a fundamental trade-off: how do you reuse past experiences without getting bogged down by details that only applied to a specific, previous room?
In their recent paper, MemCo: Memory-Centric Collaboration for Generalizing LLM Agents to Unseen Environments, researchers from UBC, the Vector Institute, and NVIDIA introduce a framework that allows agents to share "wisdom" while keeping their "feet on the ground."
TL;DR
MemCo is a dual-memory framework for LLM agents that separates environment-specific "local" grounding from transferable "global" workflows. By using a statistically rigorous "Wilson score" to promote reliable experiences to a shared global bank, MemCo enables agents to generalize to entirely new environments with significantly higher success rates and fewer interaction steps.
What Problem Does This Paper Address?
LLM agents typically learn through trial and error. While memory systems help them remember what worked in the past, most current designs treat memory in isolation—an agent in a kitchen doesn't benefit from the successes of an agent in a bathroom.
Existing "shared-memory" attempts often fail because of a granularity problem:
- Too Specific: The memory includes details like "the blue cloth on the marble counter," which is useless (or confusing) in a room with a wooden table and no cloth.
- Too Coarse: The memory is so abstract it provides no actionable guidance for the next step.
The challenge is creating a system where agents can collaborate by sharing high-level strategies (workflows) while retaining the local context (grounding) necessary to actually execute those strategies in a new environment.
Methods
MemCo introduces a three-pillar architecture to manage this collaboration:
- Local Memory Construction: Each agent builds a local memory graph from its own trajectories. This graph preserves the specific context of its environment—what objects are where and what specific actions led to success or failure.
- Progressive Global Memory Collaboration: This is the "sharing" phase. MemCo abstracts local records into general rules (e.g., "clean target object before placing"). Crucially, it uses the Wilson Lower Confidence Bound to decide which rules to promote to the global memory. This ensures that only strategies with strong, consistent evidence across multiple agents and episodes are shared, filtering out "fluke" successes.
- Query-guided Memory Support: During interaction, the agent doesn't just blindly follow a rule. It queries both its local and the shared global memory. It then "grounds" the global workflow into its current reality—mapping an abstract "water source" to the specific "bathroom basin" it currently sees.
Datasets
The authors evaluated MemCo across four diverse benchmarks that require multi-step reasoning:
- ALFWorld: A robotic simulator where agents perform household tasks (e.g., "put a clean cloth on the countertop").
- PDDL: A symbolic planning benchmark testing the ability to generate valid action sequences.
- FEVER: A fact-verification task requiring agents to retrieve and reason over external evidence.
- ScienceWorld: A complex environment for elementary science experiments.
Key Insights and Ideas
- Separation of Concerns: By keeping "grounding" local and "workflows" global, MemCo avoids the "distraction" problem where irrelevant details from one environment hinder performance in another.
- Reliability Over Quantity: The use of the Wilson score is a standout idea. In environments where data is sparse, a high success rate might just be luck. The Wilson score penalizes rules with low sample sizes, ensuring the global memory isn't cluttered with unreliable "noise."
- Adaptive Composition: MemCo doesn't just retrieve a memory; it composes a context. It filters out global guidance that contradicts the current local state (e.g., if the global memory suggests using a sink, but the agent is in a room without one, that guidance is discarded).
Key Results
MemCo consistently outperformed both memory-free (ICL) and state-of-the-art shared-memory baselines (like G-Memory).
- Generalization: On ALFWorld's "Held-out" (unseen) layouts, MemCo improved accuracy by a staggering 43.47% relative to the best baseline when using the Qwen3-4B model.
- Efficiency: Agents weren't just more successful; they were faster. MemCo reduced the number of interaction steps required to complete tasks by up to 32.10%.
- Robustness: The benefits held true across different LLM backbones, including GPT-4o-mini and various Qwen models, proving the framework isn't dependent on a specific "smart" model to work.
Limitations and Future Work
While impressive, the authors note a few hurdles:
- Cold-Start Problem: The system relies on initial interaction traces to build the global memory. If no agent has ever succeeded, there's nothing to share.
- Modality: Currently, MemCo is limited to text-based and symbolic environments. Expanding this to multimodal agents that process visual observations (like actual robots) is the next logical step.
- Initial Exploration: The framework still requires some level of initial exploration to bootstrap the memory, which can be expensive in real-world robotics.
For those interested in the implementation, the code is available at https://github.com/SYannL/nvdamas.
Summary updated