让多个用户在大模型智能体间安全共享记忆,支持动态权限控制。
Collaborative Memory: Multi-User Memory Sharing in LLM Agents with Dynamic Access Control
- 用双向图建模用户-代理-资源的动态权限关系,实现细粒度访问控制。
- 内存分私有与共享两层,每段记忆带不可篡改的来源和时间戳。
- 支持跨用户知识迁移,适合多角色协作场景,审计可追溯。
复杂任务正越来越多地交由具备推理、通信与协调能力的专用大模型智能体集群处理,这些智能体不仅相互协作,还通过外部工具、API 和数据库进行交互。尽管持久化记忆已被证明能提升单智能体性能,但现有方法大多假设为单一用户上下文,忽视了在动态、非对称权限下跨用户知识传递的潜力与挑战。本文提出 Collaborative Memory 框架,支持多用户、多智能体环境中的记忆共享,其权限以二部图形式编码,连接用户、智能体与资源。系统维护双层记忆:(1)私有记忆——仅原用户可见;(2)共享记忆——经选择性共享。每个记忆片段携带不可变的溯源属性(贡献智能体、访问资源、时间戳),支持事后权限验证。读取策略根据当前用户-智能体-资源约束,将记忆片段投影为过滤后的视图;写入策略决定片段保留与共享,并基于上下文感知变换更新记忆。两类策略均可基于系统、智能体与用户级信息设计。该框架实现了安全、高效、可解释的跨用户知识共享,满足非对称、时变策略要求,并具备完整操作审计能力。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。