Manuscript Offprint

arXiv:2610.31366

AfterDeleteBench: Auditing Post-Deletion Information Persistence in LLM Agents

Ehsan Saleh, Roozbeh Nahavandi, Sama Salarian, Raef Bassily, Andrew Perrault

Abstract

Many LLM agents maintain external persistent memory and derive additional state from past interactions, such as summaries. Deleting an original memory record therefore need not remove information carried by its descendants. We introduce AfterDeleteBench, a controlled behavioral audit for this failure mode in fixed-weight LLM agents. For each synthetic secret, we compare an exposed-then-deleted agent with an otherwise matched agent that was never exposed to the secret, allowing post-deletion recovery to be attributed to the original exposure. In our primary setting, a single query recovers the deleted secret from Qwen2.5-7B-Instruct in roughly two thirds of cases, while matched never-exposed controls have zero recovery. Crucially, recovery does not require a surviving verbatim copy: when the complete secret string is absent and only separately stored components remain under a public composition rule, exact reconstruction succeeds in 62–99% of cases across Qwen, Mistral, and Phi-3. We also show that the response interface is part of the measurement system: target-bearing replies can be scored as failures when the requested format and parser are misaligned. Finally, we separate reconstruction from write-back and fresh-session recall. Provenance-aware closure eliminates observed recovery in the tested positive-baseline settings, whereas an exact-literal write filter blocks reinsertion but cannot erase information already present. Together, these results show that source deletion should be evaluated behaviorally at the level of the agent and its memory system, not only as a storage operation.

1 Introduction

Consider a user who tells an agent a private code. The agent stores the message in its external memory and later builds a persistent summary that repeats the code. The user then deletes the original message. The record is gone, but the derived summary remains readable in a later session. We ask whether the code is still behaviorally recoverable from this external persistent memory; the model's weights never change. Throughout, exact source-record deletion means that the addressed record and its text are removed, not that every descendant or behavioral effect of that record has been erased. This distinction is natural in memory-augmented agents (Park et al., 2023; Zhong et al., 2024) and in lineage-aware views of forgetting (Cao & Yang, 2015).

AfterDeleteBench turns this question into a controlled behavioral audit. The benchmark fixes the external-memory operations while leaving the evaluated model's weights unchanged. For each synthetic secret, one world exposes the agent to it, builds persistent memory, and then deletes the source record. A matched control world follows the same workflow but is never exposed to the secret. Comparing exact post-deletion recovery between these worlds attributes recovery to the original exposure rather than to guessing or background knowledge. A correct reconstruction in the exposed-then-deleted world is itself a disclosure, regardless of the control rate.

In the primary setting, a single direct question recovers the deleted target from Qwen2.5-7B-Instruct in roughly two thirds of cases, while matched never-exposed controls have zero recovery. The effect is not limited to a duplicate of the complete secret surviving elsewhere. In a separate controlled experiment, the complete string is absent but its components remain in distinct records with a public composition rule; exact reconstruction is still high across Qwen, Mistral, and Phi-3. Thus post-deletion recovery can arise from both verbatim and non-verbatim derived state.

Post-deletion auditing is also sensitive to measurement design. A model can emit the correct secret in its raw response while a mismatch between the requested answer format and the official parser records failure. We therefore treat exact reconstruction as the primary privacy event and ask two later questions separately: whether recovered information is written back into persistent memory, and whether it is produced again in a fresh session. This separation matters because an agent may disclose deleted information without a new write, and blocking a write cannot erase information already present in memory.

The interventions reinforce this distinction. Removing or rebuilding every tracked summary whose recorded provenance includes the deleted source yields zero observed recovery in the tested positive-baseline settings. This result relies on the benchmark’s complete provenance and does not establish general semantic erasure. By contrast, an exact-literal filter applied to a proposed future write can stop reinsertion, but it neither removes existing residue nor reverses an earlier disclosure.

These results matter because a deletion that succeeds at the storage level can still fall short of what a user reasonably expects: that the deleted interaction no longer affects the agent's persistent behavior. AfterDeleteBench does not solve agent forgetting in general. It offers a controlled way to detect this failure mode, attribute it to a specific exposure, test whether the information remains reconstructible, and separate disclosure from write-back and later use. Semantic (non-literal) deletion, incomplete provenance, learned or compressed memory, natural-language secrets, and autonomous production memory systems all remain open.

AfterDeleteBench contributes: (1) a paired behavioral audit that attributes post-deletion recovery to a specific prior exposure in fixed-weight persistent-memory agents; (2) controlled evidence that exact reconstruction can persist from both verbatim and non-verbatim derived state; (3) interface and lifecycle diagnostics that separate disclosure, write-back, fresh-session recall, and scoring artifacts; and (4) matched evaluations showing how deletion-stage and write-stage interventions act at distinct points in the information lifecycle. These contributions are established for synthetic exact-string targets, controlled memory constructions, a finite set of querying strategies, and specified response interfaces.

References (46)