MAP-Graph: Provenance-Aware Shared Memory for Multi-Agent Workflows

Yiqi Wang, Zihao Yan, Jiaqi Zhang, Zhangkai Wu, Mingkai Zheng, Zequn Sun, Yanming Zhu, Taotao CaiarXiv 2026

TL;DR

Multi-agent LLM workflows rely heavily on shared memory, but standard semantic retrieval is blind to data security, trust, and risk. MAP-Graph introduces a provenance-aware memory layer that tracks data ancestry using a typed execution graph to enforce hard permissions, calculate path trust, and gate risky actions before execution.

What Problem Does This Paper Address?

When multiple AI agents collaborate on complex tasks, they use a shared memory store to pass information back and forth. However, standard vector search only looks at semantic similarity—whether a piece of text matches a query. It doesn't know where that text came from.

This creates a major security and safety vulnerability. If Agent A reads a confidential or poisoned document and writes a summary of it into the shared memory, the original security restrictions or untrusted origins are "washed away" in the text transformation. When Agent B later retrieves that summary via semantic search, it might inadvertently leak a secret or execute an unsafe action based on corrupted data.

The authors break this challenge down into three core requirements:

  1. Recursive Ancestry (C1): Admissibility must be tracked across multi-step derivation chains, not just local metadata.
  2. Heterogeneous Constraints (C2): The system must separate hard access permissions (can an agent read this?) from graded trust signals (how reliable is this source?).
  3. Action-Dependent Admissibility (C3): A memory that is safe to use for a simple text answer might be highly dangerous if used to authorize a high-risk tool call or financial transaction.

Methods

MAP-Graph sits as a safety and governance layer between the multi-agent workflow and the execution environment. Its architecture operates in three sequential stages:

  1. Online Graph Construction: It tracks the execution lineage of the workflow in real-time, building a heterogeneous directed provenance graph. Nodes represent entities like Agents, Memories, and Resources, while edges define relationships like derived_from or summarized_from.
  2. Provenance-Aware Retrieval: When an agent queries the memory, MAP-Graph first applies a hard binary permission filter (CanRead). Records that pass are then reranked using a multiplicative path trust score, which recursively factors in source trust, path integrity, and transformation loss.
  3. Action-Time Gating: Once an agent proposes an action, a risk-sensitive gate re-evaluates the action's supporting memories based on the specific risk level of the action. It then outputs a final decision: ALLOW, BLOCK, REVERIFY, REDACT, or ASK_USER.
Figure 1: Overview of MAP-Graph. A task-scoped typed provenance graph records memory origins and downstream depen- dencies. MAP-Graph combines semantic retrieval, recursive ancestry tracing, permission filtering, path-trust reranking, and risk-sensitive action gating to return Allow, Block, Reverify, Redact, or AskUser.

Datasets

Because no existing dataset evaluated memory provenance under controlled multi-agent conditions, the authors introduced a new synthetic benchmark consisting of 2,700 tasks split evenly across three domains:

  • Corporate Workflow (Roles: manager, analyst, HR-assistant, executor)
  • Software Engineering (Roles: planner, coder, reviewer, executor)
  • Research Assistance (Roles: retriever, summarizer, writer, verifier)

The benchmark evaluates six distinct scenarios: clean utility, poisoned propagation, private leakage, permission revocation, action-risk sensitivity, and clean compression. The authors validated the system across three different LLM backbones: Qwen2.5-7B-Instruct, GLM-4-9B-0414, and Llama-3.1-8B-Instruct.

Key Insights and Ideas

  • Retrieval is Not Authorization: The core philosophy of the paper is that semantic relevance and provenance admissibility must be decoupled. Just because a memory is highly relevant to an agent's prompt doesn't mean the agent has the right to use it for a specific action.
  • Utility Metrics Can Mask Security Failures: In one of the paper's most striking ablation studies, removing the hard permission filter actually increased overall task success and exact decision accuracy. Why? Because agents had access to more context. However, it resulted in a 100% unauthorized access rate. This highlights a critical lesson for AI engineers: you cannot rely on end-to-end utility metrics alone to validate system safety.
  • Audit-Preserving Containment: When a source is revoked or found to be poisoned, MAP-Graph doesn't simply delete the data. Instead, it propagates an "affected" state down the dependency chain. This preserves the lineage for post-hoc auditing while safely blocking downstream execution.
Figure 2: Running example of poisoned-memory propagation and containment in MAP-Graph. A poisoned resource R1 produces memory M1, which is summarized into M2 while retaining its provenance ancestry. During retrieval, recursive ancestry tracing identifies the poisoned source and reduces the path trust of the affected memories. When M2 supports a high-risk action, the action-time gate returns Block, while preserving the affected lineage for audit.

Key Results

  • High Task Success: MAP-Graph achieved a 94.96% Task Success Rate (TSR) and 72.70% exact decision accuracy, outperforming the strongest flat-metadata baseline by over 20 percentage points in TSR.
  • Zero-Leakage Safety: It successfully reduced the Attack Success Rate (ASR), private data leakage, and permission revocation violations to 0%.
  • No Over-Blocking: It maintained a 90.22% success rate on clean tasks, proving that its safety mechanisms do not come at the cost of aggressive over-blocking.
  • Robust Backbone Transfer: When tested on a 540-task subset across Qwen, GLM, and Llama, MAP-Graph consistently maintained the highest exact decision accuracy and lowest unsafe execution rates.

Limitations and Future Work

While highly effective, the authors note several boundaries to their current work:

  • Synthetic Environment: The benchmark is entirely synthetic and templated; real-world deployments will feature much messier, unstructured multi-agent interactions.
  • Scale and Horizon: The evaluation was restricted to a single round of four agents. Future work must test MAP-Graph in long-horizon, cross-session, and deployment-scale settings.
  • Utility-Safety Trade-offs: On certain backbones (like GLM-4-9B), the strict safety gating slightly degraded clean task utility, indicating that prompt tuning or model-specific calibration may be required.

Summary updated

BibTeX
@misc{wang2026map,
  author = {Yiqi Wang and Zihao Yan and Jiaqi Zhang and Zhangkai Wu and Mingkai Zheng and Zequn Sun and Yanming Zhu and Taotao Cai},
  title = {{MAP-Graph: Provenance-Aware Shared Memory for Multi-Agent Workflows}},
  year = {2026},
  eprint = {2608.10509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.10509},
}
Figure