The Right to Be Forgotten Meets the Knowledge Graph
Deleting a row from a database is a solved problem. Deleting a fact that has been summarised, embedded, reflected on, and re-derived across a graph is not — and that is the shape of a deletion request in 2026.
The request that breaks naive deletion
A data subject asks you to delete everything about them. In a flat vector store the operation is crude but tractable: find the chunks, drop them. In a knowledge graph the entity node is the easy part. The hard part is everything derived from it — summaries that mention the person, reflections an agent generated, edges whose weight depended on their contribution, embeddings fitted on their triples, and the key–value cache that still holds the raw text mid-inference.
This is not a hypothetical gap. Work on execution-state unlearning shows that today's "forget" usually deletes plaintext and leaves the derived artifacts intact. The record disappears from the graph and survives in everything the graph taught the model.
Parameter–memory backflow
A subtler trap is that deleting memory and deleting parameters are not independent. A 2026 result on agent unlearning names the failure parameter–memory backflow: even after you drop a memory and unlearn the parameters, retrieval can reactivate parametric remnants, while memory artifacts can reintroduce content you thought was gone. The two stores recontaminate each other in a closed loop.
The practical consequence is that forgetting must be synchronised: memory first, then parameters, in one atomic operation, with neither path left able to revive the other.
Model memory as a dependency graph, then delete the closure
If remembering is derivation, forgetting is dependency closure. Model agent memory as a directed graph G = (V, E) where the vertices are raw memories, derived summaries, reflections, and graph entities, and the edges are derivation relations — this summary was built from those episodes, this edge was induced by that fact.
To forget a target, you must delete everything whose derivation depends on it, not just the node itself.
// The true deletion set: every derived artifact downstream of one memory.
MATCH (target:Memory {subject: $subject})
MATCH (target)<-[:DERIVED_FROM*1..]-(derived)
RETURN DISTINCT derived
Two mechanisms make this safe. A reference counter r(v) tracks how many live artifacts still depend on a node, so you only drop it when the count reaches zero. A persistent blocklist B sits at the retrieval boundary — an O(1) membership check on every fetch — so an artifact that escaped deletion cannot be pulled back into context. Deletion at the boundary, not just in the store, is what makes the guarantee hold under retrieval.
Erasure is not refusal
The most common failure is to confuse forgetting with refusal. In the first benchmark built from knowledge-graph triples, models scored a perfect 1.000 on "unlearning" while actually just refusing to answer 71.5% of the time — the knowledge was still there, only the polite path to it was blocked. Probe with a paraphrase and the model answers.
The benchmark introduces a Knowledge Connectivity Score to separate the two:
| Method | Direct "unlearning" | Δ Knowledge Connectivity | Verdict |
|---|---|---|---|
| NPO | 0.635 | −0.18 | largely cosmetic |
| NEDS | higher | −0.52 | genuine erasure |
| ICU | 1.000 | — | 71.5% refusal, not erasure |
The design lesson is that you must also protect neighbours. Bluntly erasing a target can scorch semantically correlated facts that were never the subject of the request, causing reasoning leakage and catastrophic forgetting elsewhere. Neighbourhood-expanded shaping removes the target while leaving the region intact — and stays robust even when up to 80% of the anchor examples are corrupted.
The KV cache is part of the memory
For stateful agents the problem extends past the store entirely. An agent accumulates summaries, plaintext memory, tool plans, and a key–value cache. Formalising forgetting as a deterministic transition system gives a cold result: exact unlearning requires recomputing at least T − τ + 1 transitions, where τ is how far back the influence reaches.
The practical technique is provenance-guided selective replay: a provenance graph locates the injection point, a checkpoint restore crops the KV cache to before the contamination, and a sanitised replay rebuilds forward. Audited behaviour shows why the blunt options fail — memory deletion leaves measured leakage unchanged, instruction-based forgetting collapses under elicitation (Leak@probes of 1.00), and source redaction still acts on a revoked preference in 80% of episodes. Selective replay reaches roughly the same result as a full reset at up to 9× fewer recomputed tokens.
The honest caveat: a graph is not automatically better
It would be convenient if graph memory also deleted better. It does not, on its own. On a long-term-memory benchmark, a graph-based memory did not beat a flat vector store at a matched budget — token-level F1 of 0.417 versus 0.468 — and the gap widened exactly on the task of recalling a specific past assistant turn. What the graph did well was pruning: on a persistent 27,021-node graph, removing 9.8% of nodes and 9.5% of bytes moved F1 by +0.001 while correctness fell only 1.6 points, with the loss bounded below about 3.8 points.
So the graph's value in a deletion context is auditability and dependency structure, not automatically better retention. You adopt it because you can name the closure; you still have to do the deletion work.
What to actually do
A defensible deletion pipeline for graph-backed agent memory looks like this:
- Trace derivation. Keep
DERIVED_FROMedges so the closure is computable, not guessed. - Count references. Reference-count shared artifacts; drop only at zero.
- Guard the boundary. Enforce a persistent blocklist at retrieval, not only in the store.
- Unlearn parameters to uncertainty. Move toward a high-entropy prior — maximally uncertain, never confidently wrong.
- Synchronise both stores. One operation spanning memory and parameters, or backflow recontaminates.
- Replay selectively. Use provenance plus a checkpoint to crop the KV cache, then rebuild forward.
- Log tamper-evidently. An append-only audit log is what you show a regulator.
- Measure erasure, not refusal. Score with paraphrase and multi-hop probes, not the polite path.
The regulatory backdrop — GDPR's right to erasure, the EU AI Act's record-keeping duties, and the discovery fights around model training data — has made "delete it" a first-class engineering requirement rather than an afterthought. For a system whose memory is a graph, the right to be forgotten is a graph algorithm.
The takeaway
Forgetting in a knowledge graph is not a DELETE. It is a closure over the derivation graph, enforced at the retrieval boundary, synchronised with parameter unlearning, verified with probes that resist refusal, and recorded in an audit log you can hand to a regulator. Do that, and a deletion request becomes a procedure you can prove you followed — which is the only version of "we deleted it" that survives scrutiny.