SAFE-Mem:具备细粒度权限与治理感知检索的安全智能体记忆
SAFE-Mem: Secure Agentic Memory with Fine-Grained Authority and Governance-Aware Retrieval
AI总结:
针对LLM智能体记忆的安全问题,提出具备细粒度权限与治理感知检索的SAFE-Mem框架,在MPBench和LoCoMo上实现攻击成功率降低至少77%、答案准确率提升最高15%的效果。
摘要:
大型语言模型(LLM)智能体越来越依赖持久记忆来支持长期推理和个性化交互。然而,从外部来源收集的信息若将不可信声明(即原子陈述)后续视为授权偏好、策略或权限,会引入安全风险。现有防御措施通常依赖基于内容的过滤或粗粒度来源跟踪,要么无法防止未授权的记忆使用,要么会阻止合法信息,牺牲记忆效用。为解决这些局限,我们提出SAFE-Mem,这是一种在保留合法记忆使用的同时提升安全性的细粒度记忆治理框架。首先,SAFE-Mem为每个声明标注三个治理标签(即类型、权限和范围),以捕获其来源和允许的使用方式。其次,治理感知检索将查询需求与声明权限匹配,以阻止未授权影响,同时保留合法信息。第三,启用治理的记忆图连接源句子、声明和实体,以支持来源跟踪和高效检索。在MPBench和LoCoMo上针对四个LLM主干的实验中,SAFE-Mem在保留合法记忆的防御措施中实现了最低的攻击成功率,比其中最强的防御措施低至少77%,并且在所有评估的防御措施中达到最高的答案准确率,提升幅度高达15%。代码可在该https URL获取。
英文摘要:
Large language model (LLM) agents increasingly rely on persistent memory to support long-term reasoning and personalized interactions. However, information collected from external sources can introduce security risks when untrusted claims (i.e., atomic statements) are later treated as authorized preferences, policies, or permissions. Existing defenses typically rely on content-based filtering or coarse-grained provenance tracking, which either fail to prevent unauthorized memory use or block legitimate information, sacrificing memory utility. To address these limitations, we propose SAFE-Mem, a fine-grained memory governance framework that improves security while preserving legitimate memory use. First, SAFE-Mem annotates each claim with three governance labels (i.e., kind, authority, and scope) to capture its provenance and permitted use. Second, governance-aware retrieval matches query requirements with claim permissions to block unauthorized influence while retaining legitimate information. Third, a governance-enabled memory graph connects source sentences, claims, and entities to support provenance tracking and efficient retrieval. Across four LLM backbones on MPBench and LoCoMo, SAFE-Mem attains the lowest attack success among defenses that retain legitimate memory, at least 77% below the strongest of them, and the highest answer accuracy of all evaluated defenses, improving it by up to 15 points. The code is available at https://github.com/LVenum/SAFE-Mem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。