Topology Matters: Measuring Memory Leakage in Multi-Agent LLMsTopology Matters: Measuring Memory Leakage in Multi-Agent LLMs
The paper proposes MAMA (Multi-Agent Memory Attack), a controlled evaluation framework for comparing memory leakage in multi-agent LLM systems under different communication topologies. The framework uses tasks generated from synthetic documents containing labeled PII, in two stages: Engram, which implants private information into the target agent's memory, and Resonance, multi-turn interaction extraction; it runs 10 rounds and judges leakage by a two-stage criterion combining exact matching with LLM inference. The authors evaluate on six topologies—complete, circle, chain, tree, star, and star-ring—and settings including n=4, 5, 6, and find that denser connectivity, shorter distance between attacker and target, and higher target centrality lead to more leakage; leakage mostly occurs in early rounds and then levels off; the choice of base model changes absolute leakage rates but preserves structural trends; and spatiotemporal/location attributes leak more readily than identity credentials or regulated identifiers.