TL;DR
HEAMS (Holistic Evaluation of Agent Memory Systems) is an open-source framework that moves beyond judging AI memory solely on performance and speed. It introduces a multi-dimensional benchmark suite to evaluate how well memory systems handle privacy, security, and user control, revealing that high-performing systems often fail significantly at protecting user data.
What Problem Does This Paper Address?
As AI agents transition from single-turn chatbots to long-term assistants (like ChatGPT’s "memory" feature), they must persist information across sessions. Traditionally, researchers have evaluated these Agent Memory Systems (AMS) based on performance (can the agent remember the fact?) and efficiency (how many tokens/seconds did it take?).
However, the authors argue that memory systems are the "custodians" of user data. Storing information long-term introduces critical risks:
- Privacy: Disclosing sensitive info in the wrong context.
- User Sovereignty: The inability for a user to inspect, correct, or delete their own data.
- Security: "Memory poisoning," where an attacker plants malicious info to steer future agent behavior.
Until now, there hasn't been a unified way to measure the trade-offs between being a "helpful" assistant and a "responsible" data guardian.
Methods
The authors developed the HEAMS framework, which standardizes how memory systems are tested. Key components include:
- Standardized Interface: Every memory system is adapted to four core operations:
retain(store),recall(retrieve),delete(remove), andconsolidate(summarize/clean up). - Modular Governance Layer: A novel wrapper that sits around any memory system. It applies Retention Policies (deciding what to store at the "front door") and Recall Policies (deciding what to show the agent at the "back door") using LLM-based reasoning.
- MilaMem: A prototype memory system designed specifically to test how different configurations of the four core operations affect holistic outcomes.
- Controlled Comparison: By holding the agent model (e.g., GPT-4o) and the interaction strategy fixed, the framework ensures that differences in scores are actually due to the memory system itself.
Datasets
HEAMS utilizes a suite of 10 benchmarks, combining five established performance tests with five new or adapted tests for safety and control:
- Performance: LoCoMo, LongMemEval, Evo-Memory, BEAM, and STALE.
- Security: MPBench, which tests resistance to malicious memory poisoning.
- New Privacy/Sovereignty Benchmarks:
- Contextual Integrity: Measures if the agent leaks private info when it's not strictly necessary for the task.
- Transparency: Evaluates if the agent can accurately report what it currently knows about a user.
- Editability/Erasability: Tests if "forget this" or "change this" requests actually work.
- Retention Policy: Checks if the system obeys specific user rules (e.g., "never store my health data").
Key Insights and Ideas
- The Performance-Privacy Paradox: A system that is "perfect" at remembering everything for a task is often the most dangerous for privacy. For example, HippoRAG scored highest on performance but leaked private information in over 71% of test scenarios.
- Governance as a Separate Layer: The authors demonstrate that you don't necessarily need a new memory architecture to improve safety. Adding a governance layer to a standard system can drastically improve security and privacy.
- Memory is not just a Database: The paper reframes AMS as a component with its own ethical responsibilities to the user, independent of the agent's immediate goals.
- Trade-offs are Inevitable: Improving privacy (via recall policies) often comes at a slight cost to "helpfulness," as the system becomes more cautious about what it shares with the agent.
Key Results
- No Universal Winner: No single memory system led across all benchmarks. While HippoRAG excelled at long-history retrieval, In-context memory (keeping everything in the prompt) was often superior for shorter, complex reasoning tasks like LoCoMo.
- Security Gains: Adding a combined retention and recall policy to the MilaMem prototype raised its resistance to memory poisoning from 40% to 88.6%.
- Privacy Improvements: A "necessity-gated" recall policy halved the number of privacy leaks, though it reduced the agent's helpfulness score by about 4.8%.
- The Deletion Gap: Most current systems are terrible at forgetting. Even the best-performing configuration (MilaMem) only successfully erased facts 47% of the time when asked.
Limitations and Future Work
- Offline Evaluation: The benchmarks are static. Real-world "online" usage might reveal different behavioral dynamics.
- Breadth vs. Depth: While HEAMS covers five dimensions, it only uses one or two benchmarks for security and privacy. The authors call for the community to contribute more diverse scenarios.
- Single-User Focus: The current suite only considers a single user interacting with a private agent, ignoring the complexities of shared or organizational memory.
- LLM Judge Reliability: The framework relies heavily on LLMs to grade the agent's responses, which introduces the risk of "judge error" or bias.
Summary updated