arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.04668cs.CRcs.AIcs.CL
收藏

拓扑结构至关重要:多智能体大语言模型中的内存泄漏测量

Topology Matters: Measuring Memory Leakage in Multi-Agent LLMs

Arizona State University(亚利桑那州立大学);University of Southern California(南加州大学);Florida State University(佛罗里达州立大学)

Jinbo Liu, Defu Cao, Yifei Wei, Tianyao Su, Yuan Liang, Yushun Dong, Yan Liu, Yue Zhao, Xiyang Hu

AI总结:

提出MAMA框架,通过控制图拓扑结构评估多智能体LLM系统中的内存泄漏,发现密集连接、短攻击距离和高中心性增加泄漏,并给出稀疏或层次化拓扑的设计建议。

摘要:

图拓扑结构是多智能体LLM系统中内存泄漏的基本决定因素,但其影响尚未得到充分量化。我们提出了MAMA(多智能体内存攻击),一个用于比较多智能体LLM系统中拓扑条件内存泄漏的受控评估框架。MAMA操作于包含标记的个人身份信息(PII)实体的合成文档,从中生成经过清理的任务指令。我们执行两阶段协议:Engram(将私人信息植入目标智能体的内存)和Resonance(多轮交互,攻击者尝试提取)。在10轮中,我们使用两阶段恢复标准测量泄漏,该标准结合了精确匹配提取和基于LLM对攻击者最终输出的推理。我们评估了六种典型拓扑(完全图、环、链、树、星、星环),涉及n∈{4,5,6}、攻击者-目标放置和基础模型。结果一致:更密集的连通性、更短的攻击者-目标距离和更高的目标中心性增加泄漏;大多数泄漏发生在早期轮次,然后趋于平稳;模型选择改变绝对比率但保留广泛的结构趋势;时空/位置属性比身份凭证或受监管标识符更容易泄漏。我们提炼出系统设计的实用指导:倾向于稀疏或层次化连通性,最大化攻击者-目标分离,并通过拓扑感知访问控制限制枢纽/捷径路径。我们的代码可在https://github.com/llll121/mama-eval获取。

英文摘要:

Graph topology is a fundamental determinant of memory leakage in multi-agent LLM systems, yet its effects remain poorly quantified. We introduce MAMA (Multi-Agent Memory Attack), a controlled evaluation framework for comparing topology-conditioned memory leakage in multi-agent LLM systems. MAMA operates on synthetic documents containing labeled Personally Identifiable Information (PII) entities, from which we generate sanitized task instructions. We execute a two-phase protocol: Engram (seeding private information into a target agent's memory) and Resonance (multi-round interaction where an attacker attempts extraction). Over 10 rounds, we measure leakage using a two-stage recovery criterion that combines exact-match extraction with LLM-based inference over the attacker's final output. We evaluate six canonical topologies (complete, circle, chain, tree, star, star-ring) across $n\in\{4,5,6\}$, attacker-target placements, and base models. Results are consistent: denser connectivity, shorter attacker-target distance, and higher target centrality increase leakage; most leakage occurs in early rounds and then plateaus; model choice shifts absolute rates but preserves broad structural trends; spatiotemporal/location attributes leak more readily than identity credentials or regulated identifiers. We distill practical guidance for system design: favor sparse or hierarchical connectivity, maximize attacker-target separation, and restrict hub/shortcut pathways via topology-aware access control. Our code is available at https://github.com/llll121/mama-eval.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑