MemCut: Every Secret Leaves a Trail in the Long-Term Memory of LLM Agents
Organizations: The Hong Kong University of Science and Technology (Guangzhou) · University of Science and Technology of China · The Hong Kong University of Science and Technology
Abstract
Long-term memory has become a crucial component of large language model (LLM) agents, with most research focusing on retrieving relevant information accurately and efficiently. However, a dependable memory system must also forget sensitive user data upon request. To evaluate this capability, we introduce MemCut, a systematic benchmark for user-requested forgetting. Its 456 hand-designed secrets in long-horizon conversations have fully annotated evidence trails to test recovery after deletion, including from messages that never state the secrets directly. We propose two recovery metrics. Native recovery measures reader success through the system's retrieval, whereas residual recovery measures the same reader's success when directly given surviving objects traced to annotated disclosures or evidence. We establish three reference deletion baselines to test how far existing retrievers and write models support forgetting across five memory designs and four LLMs. Disclosure removal reduces native recovery far more than residual recovery. LLM-guided deletion of ten additional turns from twenty retrieval candidates leaves 39-76% residual recovery. Subset sweeps (144 facts, three systems, two models) show that widening the pool at a fixed budget reduces residual recovery more than deleting all original candidates. These sweeps identify candidate coverage as a bottleneck in the reference baselines.
Figures & tables
| Benchmark | Probe | Human design | LLM- free | All checked |
| LoCoMo | – | ✗ | ✗ | ✓ |
| LongMemEval-S | latest value | ✗ | ✓ | |
| MemoryAgentBench | latest value | ✗ | ✗ | |
| Memora | obsolete reuse | ✗ | ||
| ForgetEval | direct recall | |||
| MemLeak | correlated cues | ✗ | ✗ | ✗ |
| What each recovery metric needs | MemCut |
| Evidence is dispersed and redundant | |
| sessions spanned by a fact’s evidence | 8.0 |
| evidence turns in the disclosure’s session | 1.8% |
| minimal sufficient sets per fact | 15.7 |
| Evidence is harmless alone and complete | |
| recovered from the best single evidence turn | 0% |
| Overall | Fact assembly | Relation chain | Aggregation | Temporal state | |||||||||
| Model | Nat. | Res. | Hid. | Nat. | Res. | Nat. | Res. | Nat. | Res. | Nat. | Res. | ||
| Turn RAG | DeepSeek | S0 | 59.9 | 98.2 | 39.1 | 68.7 | 100.0 | 18.4 | 99.1 | 75.4 | 94.7 | 77.0 | 99.1 |
| S1 | 22.6 | 60.1 | 62.4 | 30.4 | 74.8 | 15.8 | 79.8 | 14.9 | 31.6 | 29.2 | 54.0 | ||
| S2 | 10.3 | 44.3 | 76.7 | 20.0 | 55.7 | 11.4 | 72.8 | 2.6 | 16.7 | 7.1 | 31.9 | ||
| Qwen | S0 | 56.6 | 97.8 | 42.2 | 60.9 | 100.0 | 24.6 | 100.0 | 45.6 | 91.2 | 95.6 | 100.0 | |
| S1 | 19.1 | 58.6 | 67.4 | 22.6 | 46.1 | 7.9 | 74.6 | 22.8 | 38.6 | 23.0 | 75.2 | ||
| Overall | Fact assembly | Relation chain | Aggregation | Temporal state | |||||||||
| Model | Nat. | Res. | Hid. | Nat. | Res. | Nat. | Res. | Nat. | Res. | Nat. | Res. | ||
| MemoryBank | DeepSeek | S0 | 40.1 | 93.0 | 56.8 | 53.0 | 100.0 | 7.0 | 95.6 | 45.6 | 79.8 | 54.9 | 96.5 |
| S1 | 23.0 | 80.9 | 71.5 | 32.2 | 92.2 | 5.3 | 88.6 | 20.2 | 58.8 | 34.5 | 84.1 | ||
| S2 | 15.8 | 71.7 | 78.0 | 23.5 | 84.3 | 6.1 | 86.8 | 7.0 | 37.7 | 26.5 | 77.9 | ||
| Qwen | S0 | 41.9 | 95.8 | 56.3 | 53.9 | 97.4 | 7.9 | 96.5 | 50.9 | 89.5 | 54.9 | 100.0 | |
| S1 | 21.7 | 80.5 | 73.0 | 28.7 | 88.7 | 5.3 | 92.1 | 17.5 | 57.9 | 35.4 | 83.2 | ||
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Derivation type | |||||
| Per fact | Overall | Fact assembly | Relation chain | Aggregation | Temporal state |
| Protected facts | 456 | 115 | 114 | 114 | 113 |
| Evidence | |||||
| Evidence turns per fact | 8.1 | 7.9 | 8.3 | 8.1 | 8.2 |
| Sessions they span | 8.0 | 7.8 | 8.2 | 8.1 | 8.0 |
| Span in days (median) | 29 | 31 | 31 | 28 | 25 |
| EP | Turns | Tokens | Sess. | Tok./ turn | Turns/ sess. | Days | Facts |
| EP01 | 2,136 | 103,805 | 26 | 48.6 | 82.2 | 30 | 28 |
| EP02 | 2,152 | 77,846 | 28 | 36.2 | 76.9 | 27 | 28 |
| EP03 | 2,200 | 85,815 | 28 | 39.0 | 78.6 | 27 | 28 |
| EP04 | 2,200 | 70,715 | 29 | 32.1 | 75.9 | 28 | 27 |
| EP05 | 2,738 | 99,776 | 33 | 36.4 | 83.0 | 32 | 33 |
| EP06 | 2,798 | 100,768 | 35 | 36.0 | 79.9 | 34 | 32 |
| DeepSeek | Qwen | GLM | MiMo | |||||
| System | Nat. | Res. | Nat. | Res. | Nat. | Res. | Nat. | Res. |
| Retrieval stores | ||||||||
| Turn RAG | 95.0 | 100.0 | 90.8 | 100.0 | 92.1 | 100.0 | 92.8 | 100.0 |
| Session RAG | 62.5 | 100.0 | 48.2 | 100.0 | 52.9 | 100.0 | 69.7 | 100.0 |
| Memory systems | ||||||||
| MemoryBank | 89.9 | 99.8 | 89.0 | 99.8 | 90.6 | 99.8 | 89.5 | 99.3 |
| DeepSeek | Qwen | GLM | MiMo | |||||||||||||
| System | Full | S0 | S1 | S2 | Full | S0 | S1 | S2 | Full | S0 | S1 | S2 | Full | S0 | S1 | S2 |
| Retrieval stores | ||||||||||||||||
| Turn RAG | 5.0 | 39.1 | 62.4 | 76.7 | 9.2 | 42.2 | 67.4 | 82.0 | 7.9 | 39.5 | 65.6 | 78.5 | 7.2 | 38.7 | 63.7 | 76.4 |
| Session RAG | 37.5 | 75.3 | 77.6 | 82.6 | 51.8 | 79.7 | 78.1 | 83.3 | 47.1 | 82.4 | 84.2 | 92.3 | 30.3 | 71.0 | 86.1 | 85.4 |
| Memory systems | ||||||||||||||||
| MemoryBank | 9.9 | 56.8 | 71.5 | 78.0 | 10.8 | 56.3 | 73.0 | 81.6 | 9.2 | 55.6 | 73.8 | 81.9 | 9.9 | 54.8 | 71.3 | 78.1 |
| Turn RAG | MemoryBank | LightMem | ||||||||||
| DeepSeek | Qwen | DeepSeek | Qwen | DeepSeek | Qwen | |||||||
| S1 | S2 | S1 | S2 | S1 | S2 | S1 | S2 | S1 | S2 | S1 | S2 | |
| Widening the candidate pool (budget ; first column: pool size) | ||||||||||||
| 10 | 66.7 | 66.7 | 63.2 | 62.9 | 80.6 | 80.6 | 80.6 | 80.6 | 63.2 | 63.4 | 57.6 | 56.1 |
| 20 ⋆ | 66.7 | 52.1 | 63.2 | 47.9 | 80.6 | 72.2 | 80.6 | 72.2 | 62.5 | 49.3 | 52.1 | 47.2 |
| 30 | 66.7 | 47.2 | 63.2 | 44.1 | 80.6 | 68.1 | 80.6 | 58.7 | 62.5 | 44.9 | 52.1 | 39.3 |
| System | Assem. | Chain | Aggr. | Temp. | All | |
| MemoryBank | S1 | 2.2 | 1.2 | 2.9 | 2.3 | 2.2 |
| S2 | 3.0 | 1.7 | 3.7 | 3.2 | 2.9 | |
| Nemori | S1 | 2.9 | 1.8 | 3.5 | 2.9 | 2.8 |
| S2 | 3.6 | 2.4 | 3.9 | 3.5 | 3.4 | |
| LightMem | S1 | 3.9 | 2.4 | 5.2 | 4.2 | 3.9 |
| S2 | 4.8 | 2.9 | 6.0 | 5.1 | 4.7 |
| Pool | Selected | Off-target | Res. (%) |
| 20 | 10 | 5.54 | 52.08 |
| 20 | 20 | 15.49 | 50.69 |
| 60 | 10 | 4.50 | 39.58 |
| Derivation type | ||||
| Fact | Rel. | Aggr. | Temp. | |
| Recovery, mean % | ||||
| Native before deletion | 91.9 | 81.1 | 90.4 | 96.1 |
| Native after S0 (visible) | 73.8 | 18.2 | 60.9 | 76.6 |
| Residual lost at S0 | 0.1 | 2.3 | 14.7 | 0.9 |
| Residual recovery after S2 | 60.2 | 71.8 | 24.3 | 58.4 |
| Full | S0 | S1 | S2 | ||||||
| Type | System | Nat. | Res. | Nat. | Res. | Nat. | Res. | Nat. | Res. |
| DeepSeek | |||||||||
| Fact assembly | MemoryBank | 85.2 | 100.0 | 53.0 | 100.0 | 32.2 | 92.2 | 23.5 | 84.3 |
| Nemori | 94.8 | 98.3 | 81.7 | 97.4 | 65.2 | 84.3 | 50.4 | 63.5 | |
| LightMem | 97.4 | 100.0 | 93.0 | 99.1 | 53.9 | 62.6 | 40.0 | 51.3 | |
| Relation chain | MemoryBank | 84.2 | 100.0 | 7.0 | 95.6 | 5.3 | 88.6 | 6.1 | 86.8 |
LLM Agent Memory
Large language model agent memory lets agents retain, organize, retrieve, and update information across interactions and long-running tasks.
See all 373 papers