Collaborative Memory: Multi-User Memory Sharing in LLM Agents with Dynamic Access Control
Alireza Rezazadeh, Zichao Li, Ange Lou, Yuying Zhao, Wei Wei, Yujia Bao
TL;DR
Collaborative Memory enables memory sharing across multiple users and agents under dynamic, asymmetric permissions by modeling user-agent and agent-resource access as time-evolving bipartite graphs $G_{\\mathcal{U}\mathcal{A}}(t)$ and $G_{\\mathcal{A}\mathcal{R}}(t)$. It introduces a two-tier memory system with provenance-coupled fragments and separates read and write policies to enforce privacy while enabling cross-user knowledge transfer; provenance supports retrospective permission checks and auditability. Across three scenarios—fully collaborative, asymmetric, and dynamically evolving—the framework achieves substantial reductions in external knowledge base calls and maintain high accuracy, demonstrating practical benefits for enterprise-like multi-user AI systems. The approach provides a modular, policy-driven substrate compatible with existing memory architectures and offers a clear path toward scalable, trustworthy multi-agent collaboration. The findings highlight the importance of fine-grained, time-aware access control in realizing efficient and safe cross-user reasoning with LLM ensembles.
Abstract
Complex tasks are increasingly delegated to ensembles of specialized LLM-based agents that reason, communicate, and coordinate actions-both among themselves and through interactions with external tools, APIs, and databases. While persistent memory has been shown to enhance single-agent performance, most approaches assume a monolithic, single-user context-overlooking the benefits and challenges of knowledge transfer across users under dynamic, asymmetric permissions. We introduce Collaborative Memory, a framework for multi-user, multi-agent environments with asymmetric, time-evolving access controls encoded as bipartite graphs linking users, agents, and resources. Our system maintains two memory tiers: (1) private memory-private fragments visible only to their originating user; and (2) shared memory-selectively shared fragments. Each fragment carries immutable provenance attributes (contributing agents, accessed resources, and timestamps) to support retrospective permission checks. Granular read policies enforce current user-agent-resource constraints and project existing memory fragments into filtered transformed views. Write policies determine fragment retention and sharing, applying context-aware transformations to update the memory. Both policies may be designed conditioned on system, agent, and user-level information. Our framework enables safe, efficient, and interpretable cross-user knowledge sharing, with provable adherence to asymmetric, time-varying policies and full auditability of memory operations.
