Memory centric collaboration improves language agents in new environments

MemCo: Memory-Centric Collaboration for Generalizing LLM Agents to Unseen Environments

Artificial Intelligence

Summary

Large language models acting as agents often need to remember experiences to make better decisions. The authors found that existing memory methods either keep experiences too separate or mix them too much, which makes it hard for agents to work well in new places. They propose MemCo, a system that keeps some detailed memories private while sharing general patterns globally. This way, agents can learn from others without copying environment-specific details, leading to better success and less repeated exploring.

What this means in practice

  • For robotics developers: Improve robots' ability to perform tasks in unfamiliar settings by sharing and reusing experience efficiently without mixing environment-specific details.
  • For game ai engineers: Enhance non-player characters to adapt better to new game scenarios by combining local and global memory of past interactions.

Authors

Xinting Liao, Siyan Liu, Rabab K. Ward, Holger R. Roth, Xiaoxiao Li

Abstract

Large language model (LLM) agents increasingly operate in interactive environments, where they need to make sequential decisions through observation, action, and feedback. Although memory can help agents reuse experience, existing work designs memory in isolation, where collecting enough trajectories to populate it is expensive. Existing shared-memory approaches mitigate isolated experience by pooling episodic memories across tasks and environments. However, retrieving shared memory is challenged by the granularity, where retrieved memories can be either too specific to preserve current grounding or too coarse to support the next action. In this work, we propose MemCo, a memory-centric collaboration framework for generalizing LLM agents to unseen interactive environments. It maintains complementary local and global memory spaces, preserving environment-specific details locally while promoting transferable workflows induced from local trajectories to global memory. During online interaction, MemCo routes relevant local and global memories in terms of the agent's current state and decision phase, enabling agents to reuse the experience of other agents without blindly transferring environment-specific details. Experiments on interactive decision-making benchmarks show that MemCo improves task success and reduces redundant exploration compared with isolate-memory and shared-memory baselines. Our code is available at https://github.com/SYannL/nvdamas.