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

This paper introduces Collaborative Memory, a novel framework designed for multi-user, multi-agent LLM systems operating under dynamic and asymmetric access permissions. By separating memory into private and shared tiers and utilizing time-evolving bipartite access graphs, the framework enables agents to securely share knowledge across users, significantly reducing redundant external tool and database calls while strictly preventing unauthorized data leaks.

What Problem Does This Paper Address?

Recent breakthroughs in LLM agents have highlighted the power of persistent long-term memory (e.g., MemGPT, GraphRAG) for solving complex, long-horizon tasks. However, almost all existing architectures assume a monolithic, single-user paradigm where memory is globally accessible to a single actor.

In real-world enterprise environments, systems are inherently multi-user and multi-agent. This introduces two major challenges:

  1. Information Asymmetry: Different users possess different roles and privilege levels. A market researcher shouldn't see sensitive financial forecasting data, yet a strategy director might need access to both.
  2. Dynamic Access Patterns: Permissions are rarely static; users are onboarded, roles change, and project access is granted or revoked in real time.

Without a mechanism to handle these constraints, multi-agent systems face a harsh trade-off: either isolate everyone's memory (leading to massive computational redundancy and disjointed workflows) or pool all memory together (violating critical data privacy and security compliance).

Methods

The authors propose Collaborative Memory, a framework that embeds formal access-control mechanisms directly into the agent memory layer.

Figure 2: Left: Illustration of the dynamic multi-user environment, where multiple users collaborate with various agents that each have access to different resources. Right: Illustration of Collaborative Memory. User u1 sends a query q1 and receives responses from agents a1 and a2. These responses are passed to the write policies πwrite/private and πwrite/shared, which updates both the private and shared memories. Memory fragments that are not accessible are shown in gray. When user u2 issues another query q2, the agent access resource r1 as well as reading from the collaborative memory, retrieving only the information it is permitted to access.

The core architecture relies on four pillars:

  • Dynamic Bipartite Access Graphs: The system models permissions at any time $t$ using two distinct bipartite graphs: one mapping Users to Agents and another mapping Agents to Resources (external tools, APIs, KBs).
  • Two-Tier Memory System: Memory is partitioned into Private Memory (visible only to the originating user) and Shared Memory (selectively shared fragments containing generally applicable knowledge).
  • Immutable Provenance Attributes: Every memory fragment is tagged with unalterable metadata detailing its creation timestamp, contributing user, contributing agents, and the specific resources accessed. This allows the system to perform retrospective permission checks.
  • Fine-Grained Read/Write Policies:
  • Write Policies use LLMs to transform raw interaction logs into structured fragments. For the shared tier, prompts instruct the LLM to strip user-specific details and extract universal knowledge.
  • Read Policies dynamically intercept retrieval requests. They check the current state of the access graphs and project a filtered, authorized view of the memory to the agent in real time.

Datasets

The framework was evaluated across three progressively complex scenarios using a mix of established benchmarks and curated datasets:

  • MultiHop-RAG: A dataset containing 609 English news articles and 2,556 multi-hop reasoning questions, used to simulate a fully collaborative environment with overlapping user queries.
  • Synthetic Business Project Dataset: A new dataset curated using GPT-4o consisting of 200 business project scenarios (100 easy, 100 hard) mapped to distinct functional roles (Market, Finance, Logistics, Decision Maker) to evaluate asymmetric permissions.
  • SciQAG: A scientific question-answering benchmark. The authors selected a subset of 100 queries across 5 categories to test the system's resilience under rapidly changing, real-time access grants and revocations.

Key Insights and Ideas

  • The Efficiency of Collective Cognition: Allowing agents to securely tap into a shared memory pool drastically cuts down on redundant work. If User A already forced an agent to query a database and synthesize a complex insight, User B (if authorized) can instantly retrieve that insight from memory rather than re-running the expensive database tool.
  • Decoupled Security and Storage: Because security constraints are evaluated dynamically at the read layer using provenance tags, the system does not need to re-index or wipe physical databases when a user's permissions are revoked. The access graph simply blocks the retrieval path instantly.
  • LLM-Driven Anonymization: The use of a transformation write policy allows the system to automatically sanitize data—converting highly specific user interactions into generalized corporate knowledge graphs suitable for the shared tier.

Key Results

The authors validated their framework across three distinct scenarios:

Figure 1: Illustration of multi-user, multi-agent collaboration. Scenario 1 (top-left): A fully col- laborative memory environment where all users share unrestricted access to all agents. Scenario 2 (top-right): An asymmetric collaborative memory setup with heterogeneous privilege levels. Scenario 3 (bottom): Dynamically changing access, where permissions are granted or revoked over time.
  • Scenario 1 (Fully Collaborative): Collaborative memory maintained an average accuracy above 0.90 while reducing external resource utilization (API/KB calls) by up to 61% at a 50% query overlap compared to completely isolated user memories.
  • Scenario 2 (Asymmetric Access): In role-restricted environments, the framework successfully prevented lower-level roles from accessing restricted data while still allowing the high-privilege Strategy Director to benefit from the pooled insights of subordinates, eliminating redundant downstream work.
  • Scenario 3 (Dynamically Evolving): When edges in the access graph were randomly added or removed in real time, the system demonstrated strict policy adherence. Agents never leaked information from revoked states, and the average number of external resource queries dropped over time as the system safely reused valid historical memory fragments.

Limitations and Future Work

Despite its strengths, the authors note several limitations:

  • Scalability in Large Enterprises: The current evaluation focused on controlled environments with a moderate number of users and agents. Real-world enterprise settings with massive concurrency and complex, cascading role changes remain unexplored.
  • Probabilistic Policy Risks: Because the framework relies on LLMs to execute write transformations (like anonymization), it inherits the probabilistic risks of LLMs, meaning occasional hallucinations or subtle policy breaches could occur.
  • Simplified Latency Metrics: The paper measures efficiency via resource call counts rather than wall-clock execution time, leaving the impact of unpredictable external API latencies for future study.

Summary updated

BibTeX
@misc{rezazadeh2025collaborative,
  author = {Alireza Rezazadeh and Zichao Li and Ange Lou and Yuying Zhao and Wei Wei and Yujia Bao},
  title = {{Collaborative Memory: Multi-User Memory Sharing in LLM Agents with Dynamic Access Control}},
  year = {2025},
  eprint = {2505.18279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18279},
}
Figure