TL;DR
This paper introduces MEMMARK, a novel watermarking technique that embeds attribution signals directly into the decision-making process of an agent's long-term memory evolution. This allows for robust, snapshot-only attribution of memory writes, even when external logs or trusted metadata are lost, by relying on reproducible behavioral traces rather than mutable provenance fields.
What Problem Does This Paper Address?
As AI agents become more sophisticated and rely on long-term memory to maintain state across interactions, ensuring the provenance and integrity of this memory becomes critical. Traditional provenance methods often rely on external logs or metadata that can be lost, tampered with, or unavailable in a post-compromise forensic setting. This paper addresses the challenge of attributing memory writes in such scenarios, where the only durable artifact might be the final memory snapshot itself. The authors tackle the problem of how to make memory evolution traceable and verifiable even when the agent's history is compromised or incomplete.
Methods
MEMMARK introduces a "state-evolution attribution watermark" that operates by subtly influencing the agent's memory write decisions. Instead of adding explicit provenance fields, MEMMARK intercepts the process of selecting which existing memory item to update, which related item to link, or which semantically equivalent realization to store.
Key techniques include:
- Distribution-Preserving Behavioral Watermarking: MEMMARK uses a secret-keyed sampler to select among admissible candidates for memory updates. This sampler is designed to preserve the backend's original preference distribution, ensuring that the watermark doesn't significantly degrade the memory's utility.
- Carrier Taxonomy: The system defines three "carriers" for embedding attribution signals: update-target, link-target, and semantic-realization decisions. These correspond to different types of memory evolution choices.
- Cryptographic Audit Trace: MEMMARK records a cryptographic trace, including per-decision commitments and a Merkle tree, to enable verification. This trace is designed to be tamper-evident.
- Verification Regimes (R1, R2, R3): The system supports three verification levels: R1 (full external log), R2 (partial external log), and R3 (snapshot-only), with R3 being the most challenging scenario where only the final memory snapshot and an in-record sidecar are available.
Datasets
The primary dataset used for evaluation is LoCoMo, a benchmark containing ten long-term multi-session dialogues with QA annotations across various reasoning categories. The authors use LoCoMo for memory-oriented QA evaluation.
Key Insights and Ideas
- Attribution Beyond Mutable Fields: The core insight is that attribution can be embedded in the behavior of memory evolution itself, rather than relying on external, mutable provenance fields. This makes the watermark resilient to attacks that target traditional provenance mechanisms.
- Snapshot-Only Attribution is Feasible: The paper demonstrates that robust attribution is achievable even when only the final memory snapshot is available (R3 verification), a significant advancement for forensic analysis of compromised agent memories.
- Utility Preservation is Key: MEMMARK's design prioritizes preserving the agent's downstream utility. By subtly influencing existing decision points and preserving the backend's preference distribution, it minimizes performance degradation.
- Carrier Diversity for Portability: The use of multiple carriers (update-target, link-target, semantic-realization) makes MEMMARK adaptable to different memory backend architectures without requiring significant changes to the core watermarking logic.
Key Results
- Utility Preservation: MEMMARK preserves 99.6% of the unwatermarked Overall F1 score and slightly improves BLEU-1 by 0.2% on average across six model-backend settings.
- Capacity: The system demonstrates usable carrier capacity, with mean per-decision entropies of 1.16, 1.14, and 1.26 bits for update-target, link-target, and semantic-realization decisions, respectively.
- Snapshot-Only Verification (R3): MEMMARK successfully recovers the full 40-bit payload from final snapshots in the R3 setting, outperforming signed-metadata-only approaches which recover 0.00 bits.
- Robustness: Under nine memory-lifecycle attacks, MEMMARK's verification mechanism effectively distinguishes tampering, evidence deletion, and partial payload recovery. Recovery rates remain high for non-removal attacks, and removal attacks are correctly identified by the system.
Limitations and Future Work
- Limited Backend/Benchmark Scope: The current evaluation is limited to two memory backends (A-MEM, GRAPHITI) and one benchmark (LoCoMo). Broader deployment settings, including those with longer memory lifecycles, compaction, migration, and periodic summarization, need further investigation.
- Adaptive Attack Exploration: While the study covers representative attacks, future work should explore more adaptive attempts to remove evidence while preserving utility, and develop verification procedures to distinguish benign lifecycle changes from targeted tampering.
- Key Management: The security of MEMMARK relies on secret keys. Future work could explore more robust key management strategies.
Summary updated