Can Agent Memory Systems Track Evolving State?

Xinyi Fan, Miri Liu, Ruozhen Yang, Siru Ouyang, Jiawei HanarXiv 2026

TL;DR

Current LLM agent memory systems excel at recalling past facts but struggle when those facts change over time, leading to a failure mode called "state drift." This paper introduces StateMemBench, a new benchmark designed to isolate and evaluate state tracking, alongside StateMem, a state-first memory framework that explicitly tracks updates and dependencies to boost state-tracking accuracy by up to 1.8x.

What Problem Does This Paper Address?

As LLM agents are deployed for increasingly complex, multi-session tasks (like managing research pipelines or writing software), they must rely on long-term memory. While existing memory systems focus heavily on recall—the ability to fetch a relevant fact from the past—they overlook how facts change over time.

When a user revises a constraint, budget, or decision across multiple sessions, the agent must track the currently operative state of the world. If the agent retrieves a stale fact and treats it as current, it suffers from state drift. This paper addresses the lack of evaluation metrics and architectural support for explicit state tracking in agent memory systems, proving that state drift is a major bottleneck even when models have perfect retrieval capabilities.

Recall vs. State-Tracking Capability

Methods

The authors introduce StateMem, a state-first memory method that models conversational history as a dependency graph of structured "state units." Each state unit contains an ID, content, priority, source, and explicit links to other units (derived_from or coupled_with).

StateMem operates in three distinct stages:

  1. Ingestion: A TurnEncoder uses an LLM call after each turn to parse the conversation into structured state units.
  2. Update: A deterministic, LLM-free Rechecker traverses the dependency graph. When a fact is updated, it marks the old unit as superseded and automatically flags downstream dependent units as needs_recheck (stale).
  3. Test Time: The system assembles the active states and provides explicit recompute guidance to the LLM, forcing it to recalculate stale values before generating a final answer.

Additionally, the authors decouple this logic into StateMemWrapper, a lightweight, answer-time prompt wrapper. It requires zero extra LLM calls or per-turn processing and can be plugged directly over any existing memory backend (e.g., GraphRAG, Mem0, or BM25) to resolve state histories lazily at query time.

Figure 2: StateMem has three stages: an ingestion stage in which a conversation turn is parsed into state units, an update stage that updates the value of existing units, and a test time stage where the agent draws upon the valid state to answer the question. Here, we show how StateMem would handle a finance-based scenario.

Datasets

The paper introduces StateMemBench, a multi-domain benchmark consisting of 234 multi-session scenarios (generating 322 graded probes) across two conversation length regimes (Short: ~165 turns; Long: ~600 turns). It spans three distinct domains:

  • Research: Simulates collaborative project states and rule-based decisions.
  • Shopping: Focuses on evolving user constraints and item quantities.
  • Personal Finance: Tracks tiered rules and changing financial inputs.

StateMemBench uses a closed-pool grading setup. For every probe, the evaluation pool contains the gold truth, the specific "drift target" (the stale answer an un-tracked system would anchor on), and neutral distractors. This design cleanly separates state-tracking failures from reasoning or formatting errors.

The authors also adapt and evaluate state drift on existing memory benchmarks, including LongMemEval, MemoryArena, and $\tau^2$-bench.

Key Insights and Ideas

  • Perfect Retrieval Does Not Fix State Drift: On oracle tests where all historical facts are guaranteed to be present in the prompt context, frontier models still frequently fail because they anchor on older, louder, or more frequently mentioned stale facts.
  • Drift is a Dominant Failure Mode: In evaluations of existing benchmarks, state drift was found to be the single largest cause of failure, accounting for up to 63.5% of confirmed errors in MemoryArena-Shopping and 44.4% in LongMemEval.
  • Reasoning is Not the Bottleneck: Enabling explicit reasoning traces (like Chain-of-Thought/thinking tokens) does not mitigate state drift. The failure stems from poor state maintenance and structure, not raw reasoning capacity.
  • State Tracking is Separable: Because state tracking can be handled entirely at answer time via structural prompting, it can be treated as an independent layer from the underlying storage/retrieval mechanism.

Key Results

  • StateMem Benchmarking: On StateMemBench, StateMem achieved the highest accuracy among all evaluated memory systems. It outperformed the strongest same-backbone baseline by 1.8x (0.205 $\rightarrow$ 0.363) on DeepSeek-V4-Flash and 1.6x (0.149 $\rightarrow$ 0.233) on Qwen-3.5-9B, even beating raw long-context baselines.
  • Wrapper Performance: Applying the plug-and-play StateMemWrapper yielded massive performance leaps across all six evaluated backends, lifting current-state accuracy by +32 to +67 points on StateMemBench.
  • Ablation Highlights: Performance gains were driven primarily by supersession marking (explicitly flagging when a fact is overridden) and recompute guidance (prompting the model to trace through changed inputs).

Limitations and Future Work

  • Synthetic Data Reliance: StateMemBench relies on synthetically generated scenarios and programmatic evaluation traps, which might underrepresent the ambiguity of real-world human conversations.
  • Context Window Scale: The long-horizon scenarios tested (~7k–15k tokens) are still well within the physical context windows of modern frontier LLMs, leaving state drift at the million-token scale unexamined.
  • Compute Overhead: Running the TurnEncoder at every single turn to maintain the StateMem store is significantly more resource-intensive and costly than standard long-context or passive retrieval methods.

Future work could focus on reducing this per-turn ingestion overhead and scaling explicit dependency tracking to ultra-long conversational horizons.

Summary updated

BibTeX
@misc{fan2026can,
  author = {Xinyi Fan and Miri Liu and Ruozhen Yang and Siru Ouyang and Jiawei Han},
  title = {{Can Agent Memory Systems Track Evolving State?}},
  year = {2026},
  eprint = {2608.19652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.19652},
}
Figure