Shared memories help language agents act better for individual users

Learning from Others, Acting for You: Cross-User Memory Sharing for LLM Agents

Artificial Intelligence

Summary

When many AI assistants help different people, they often face similar tasks but keep their experiences separate. The authors propose ShareMem, a system that shares helpful past experiences among assistants while making sure each assistant still respects its own user's preferences. This way, AI helpers can learn from each other without mixing up users’ unique needs. Tests across different tasks showed that sharing memories improves how well AIs complete steps and whole tasks compared to working only from their own user's data.

What this means in practice

  • For software developers: Improve AI assistants that serve multiple users by enabling them to share past experiences without mixing user preferences.
  • For customer service teams: Enhance chatbots by integrating shared memory to provide better, personalized responses using prior interactions from similar user contexts.

Authors

Jinming Hu, Haodong Zhao, Qi Jia, Die Chen, Tianhang Zhao, Sufeng Duan, Gongshen Liu

Abstract

Large language model (LLM) agents serving different users often solve related tasks, yet separate user histories can leave reusable experience inaccessible to other agents. Pooling memories expands access but risks transferring preferences that conflict with the receiving user's requirements. We introduce ShareMem, a memory architecture that shares reusable experience while grounding its application in the receiving user's own preferences. Shared experiences indicate how to act and which preferences to consult; the receiving user's memory supplies their concrete values. Two-stage consolidation refines experience locally before integrating accepted edits into a shared pool. During execution, scope-first retrieval jointly selects local and shared experiences under a common entry budget, while a user-bound channel supports initial and agent-initiated preference retrieval. We evaluate ShareMem across web navigation (Mind2Web), online personalized interaction (VitaBench~2.0), and multi-session coding (MemoryCode) with four backbone models. It improves step success, average task success, and dialogue-macro coding scores, respectively, over matched user-local memory across all four models. Ablations favor two-stage consolidation for smaller shared pools, lower induction token usage, and better downstream performance, and support complementarity between experience guidance and active preference retrieval. Further analyses show that sharing helps most when relevant local experience is scarce, while source quality and cross-user preference interference limit useful transfer.