TL;DR
PRISMEM introduces a "capability-driven" framework for self-evolving LLM agent memory, moving beyond traditional holistic optimization that relies on a single scalar score. By decomposing memory into specific dimensions like temporal tracking and factual retrieval, PRISMEM identifies hidden gains and integrates specialized improvements to achieve state-of-the-art performance on million-token interaction histories.
What Problem Does This Paper Address?
As LLM agents move toward long-term, multi-session interactions, they require sophisticated memory systems to store and retrieve information. "Self-evolving" memory—where an LLM iteratively writes and refines its own executable memory program—has emerged as a powerful solution.
However, existing methods typically use holistic evolution. They judge a memory program's progress based on a single, aggregate performance score. The authors argue this is flawed for two reasons:
- Ambiguous Directions: Mixed feedback from diverse tasks can suggest conflicting revisions for the same component (e.g., broadening retrieval might help synthesis but hurt precision).
- Hidden Gains: A revision might significantly improve one capability (like temporal tracking) while slightly regressing another, resulting in a stagnant overall score. As shown in Figure 1(a), 80.5% of revisions that show no overall gain still improve at least one specific capability. Holistic evolution discards these "hidden" breakthroughs, leading to premature performance plateaus.
Methods
PRISMEM (short for PRISm-like MEMory evolution) treats memory evolution like a prism separating white light into a spectrum of individual capabilities. The process follows three main stages:
- Stage I: Cold Start: Quickly establishes a balanced base program by considering feedback across all capabilities simultaneously.
- Stage II: Capability Refinement: This is the core of the paper. Instead of optimizing the whole, PRISMEM selects a specific "specialist" program for a target capability. It uses Dependency-Aware Capability Selection to prioritize capabilities that are either weak or act as "bottlenecks" for others. For example, if poor temporal tracking is causing errors in multi-session synthesis, the system prioritizes temporal tracking.
- Stage III: Trace-Guided Integration: Once specialists are developed for different capabilities (e.g., a "Factual Specialist" and a "Temporal Specialist"), PRISMEM merges them. It uses paired differential cases—comparing how two programs behave on the exact same task—to help a "Planning Coder" consolidate complementary gains into a single, unified program.
To keep costs down, the authors implemented Revision-Aware Execution Reuse, which skips re-running parts of the memory pipeline (like extraction or indexing) if a revision only affects downstream components like retrieval.
Datasets
The authors evaluated PRISMEM on two major benchmarks designed for long-term memory:
- BEAM (and BEAM-1M): Focuses on complex interactions, event ordering, and resolving contradictions.
- LongMemEval (and LongMemEval-M): Emphasizes multi-session synthesis and preference extraction.
Crucially, the models were evolved on shorter contexts (~100K tokens) but tested on million-token histories to demonstrate their ability to generalize to massive scales.
Key Insights and Ideas
- Scalar Scores are Deceptive: The most important insight is that aggregate scores mask the "exploration boundary." By tracking individual capability dimensions, PRISMEM can preserve and build upon specialized improvements that holistic methods would ignore.
- Capabilities are Interconnected: Memory isn't a set of isolated buckets. The paper defines five core capabilities: Factual Retrieval, Temporal Tracking, Preference Extraction, Multi-session Synthesis, and Adversarial handling (see Table 1). The authors found that failures in one (like temporal tracking) often create "latent error pressure" on others (like synthesis).
- Integration is a Planning Problem: Merging code isn't just about concatenation. By using an LLM to analyze the "traces" of different specialists on the same failure cases, the system can intelligently decide which logic to keep and how to resolve conflicts.
Key Results
PRISMEM significantly outperformed the strongest baselines, including M* and EvolveMem.
- On BEAM-1M, it improved the overall score by 10.54 percentage points.
- On LongMemEval-M, it saw a 7.83 percentage point gain.
- As shown in Table 2, PRISMEM achieved the highest scores in nearly every individual capability category across both benchmarks.
- Ablation studies (see Table 4) confirmed that the capability-driven approach was the primary driver of success, contributing a 10.15 pp boost compared to holistic evolution.
Limitations and Future Work
While highly effective, PRISMEM relies on offline capability annotation—using an LLM to label training tasks with their primary and secondary requirements. While the authors show this can be done automatically, it adds a pre-processing step.
Additionally, the integration stage currently relies on a fixed budget of iterations. Future work could explore more dynamic integration strategies or even more granular capability definitions to further push the boundaries of agentic memory. The authors also suggest that this capability-driven paradigm could be applied to other self-evolving agent components beyond just memory.
Summary updated