TRACE: State-Aware Query Processing over Temporal Evidence Graphs for Conversational Data

Maolin Wang, Yu Wang, Zichun Liu, Baiyuan Qiu, Chenbin Zhang, Jiguang Shen, Haoran Yang, Hao MiaoarXiv 2026

TL;DR

TRACE is a novel query-processing framework that structures long-term conversational memory as a hierarchical, temporal evidence graph rather than flat vector chunks. By explicitly tracking updates, contradictions, and factual validity over time, TRACE ensures that AI agents reason using the current state of a conversation instead of retrieving stale, obsolete information.

What Problem Does This Paper Address?

As AI assistants and agents handle longer, multi-session interactions, they rely heavily on long-term memory pipelines. However, human conversations naturally evolve: plans change, preferences shift, and new statements frequently supersede or contradict older ones.

Standard Retrieval-Augmented Generation (RAG) pipelines treat past conversations as independent text snippets or vector objects. When an agent queries this memory, dense retrieval pulls chunks based purely on semantic similarity. If a user previously planned a trip to Paris but later changed the destination to Rome, a standard vector search might still pull the older "Paris" chunk simply because it highly correlates lexically with a travel query. This mismatch leads to "outdated leakage"—where the model hallucinates answers grounded in stale context. TRACE addresses this data-management challenge by introducing valid-time tracking and update propagation to conversational AI.

Methods

TRACE splits its architecture into an offline graph-construction phase and an online query-processing phase.

1. Offline Graph Construction

Instead of storing flat text chunks, TRACE builds a Temporal Evidence Graph ($G^\star$) through four main steps:

  • Event Distillation: Extracts atomic, state-bearing events and local relationships from session summaries.
  • Cross-Session Linking: Connects events across different sessions. To avoid an $O(|V_e|^2)$ combinatorial explosion, a candidate gate filters pairs based on participant overlap and topic clustering.
  • Temporal & Evolution Edge Inference: Identifies how events relate. Edges are categorized into support (causes, enables, prevents, before) and evolution (updates, contradicts) families.
  • Hierarchy Injection: Binds events to sessions, and sessions to topics, creating a hypergraph structure that allows multi-granularity navigation.
Fig. 1. Offline graph construction. Beginning with session-level summaries derived from note memory N, TRACE produces the evidence graph G⋆through four sequential steps: session-level event distillation, cross-session linking via candidate gating, temporal and evolution edge inference, and hierarchy injection.

2. Validity Propagation

When an updates edge is detected between a new event ($e_n$) and an old event ($e_o$), TRACE applies a three-valued validity scheme:

  • $v(e) = 1$: Currently valid.
  • $v(e) = 0$: Fully superseded (obsolete).
  • $v(e) = 0.5$: Partially suspect/uncertain (propagated to downstream causal dependents of an obsolete event).

3. Online Query Processing

At query time, TRACE bridges unstructured text queries to the structured graph:

  • Seed Selection & Augmentation: Maps initial dense retrieval notes to event vertices, then expands the seed set via entity lookup, evolution edges, and topic hierarchies.
  • Bounded Bidirectional Traversal: Traverses the graph to find chains of evidence, pruning paths that cross invalidated causal links or violate chronological order.
  • Multi-Signal Ranking: Scores paths based on neural relevance, structural path confidence, temporal consistency, and update validity.
  • Context Assembly & Answer Planning: Generates a hybrid context combining raw text notes (for lexical grounding) and structured graph paths. It applies a specific answer plan tailored to the query's shape (e.g., date-normalization for temporal queries, preference profiling for tracking user shifts).
Fig. 2. Online query processing pipeline. Given a query q, TRACE performs seed selection, bounded bidirectional path generation with pruning, evidence ranking, hybrid context assembly with answer planning, answer generation from the assembled context, and optional post-hoc evidence tracing.

Datasets

The authors evaluated TRACE on two established long-context conversational benchmarks and one newly introduced diagnostic dataset:

  • LoCoMo: A dataset averaging 24K tokens per dialogue with 1,540 questions.
  • LongMemEvalS: A haystack-scale dataset averaging ~115K tokens per dialogue history.
  • The Stress Test (New): A targeted, update-heavy benchmark of 59 manually re-authored items derived from LoCoMo. It specifically isolates four update types (e.g., fact overrides, chain modifications) and evaluates both valid_acc (correct current state) and outdated_leakage (returning superseded facts).

Key Insights and Ideas

  • Semantic Similarity $\neq$ Authoritative State: The paper proves that relevance-centric retrieval inherently fails when facts change over time. Memory systems must separate lexical recall from evidence reconstruction.
  • Hierarchy as a Navigational Shortcut: Injecting structural vertices (sessions and topics) prevents the system from getting lost in event-level details, acting as a structural scaffold that speeds up cross-session graph traversal at scale.
  • Decoupling Evidence from Reasoning Instructions: By separating the retrieved context (the graph paths) from the execution strategy (the query-shape answer plans), the same underlying evidence can be successfully reused under different logical constraints.

Key Results

TRACE demonstrated substantial improvements over strong baselines like Nemori, A-Mem, and Mem0 across multiple LLM backbones (GPT-4o-mini and DeepSeek-V4-Flash):

  • LoCoMo Benchmark: Under GPT-4o-mini, TRACE outperformed the strongest retrieval baseline (Nemori) by +5.7 percentage points (pp) overall, with the highest gains on Temporal (+18.6 pp) and Multi-Hop (+8.9 pp) questions.
  • LongMemEvalS Benchmark: TRACE achieved near-ceiling performance on single-session assistant tasks and improved by over +50 pp on single-session preference aggregation tasks compared to baselines.
  • Stress Test: TRACE achieved the highest strict net score (+0.314) and successfully matched the low outdated leakage (0.076) of a Full-Context model while using 5× fewer tokens, demonstrating high data efficiency.

Limitations and Future Work

  • Bounded Traversal Limits: Bounded path traversal can occasionally miss supporting evidence if it is distributed too broadly across a massive conversation, leaving a slight accuracy gap compared to processing the entire context window.
  • Graph Construction Overhead: Building the graph offline is computationally expensive, taking hours for large datasets due to the volume of pairwise LLM calls required for edge classification. The authors note that incremental graph construction is a critical next step for real-world deployment.
  • Granularity of Time Anchors: Temporal ordering is currently resolved primarily at the session level. Moving to turn-level time-anchor resolution would further reduce temporal edge errors.

Summary updated

BibTeX
@misc{wang2026trace,
  author = {Maolin Wang and Yu Wang and Zichun Liu and Baiyuan Qiu and Chenbin Zhang and Jiguang Shen and Haoran Yang and Hao Miao},
  title = {{TRACE: State-Aware Query Processing over Temporal Evidence Graphs for Conversational Data}},
  year = {2026},
  eprint = {2607.00339},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.00339},
}
Figure