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

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

1 Jul 2026arXiv:2607.00339added by Syntology

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

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Conversational data is increasingly used as a persistent source of user state for long-running assistants and AI agents. However, querying this data remains challenging because conversations naturally evolve: plans are revised, preferences change, and later messages frequently supersede or contradict earlier information. Existing long-memory pipelines largely treat memories as independent text or vector objects. This approach often retrieves semantically similar but stale evidence, offering limited support for state-aware reasoning. To address this problem, we present TRACE, a query processing framework over temporal evidence graphs for evolving conversational data. TRACE models conversations as a hierarchical graph spanning events, sessions, and topics, enriched with typed temporal, causal, update, and contradiction relations. Crucially, the framework maintains validity annotations so obsolete facts remain accessible for historical queries but are discounted for current-state answers. At query time, TRACE combines vector-based note retrieval with graph-guided evidence search, generating validity-aware support paths and a hybrid context for answer generation. This design separates lexical recall from evidence reconstruction, enabling bounded query-time reasoning over long conversational histories. Experiments on long-conversation query-answering (QA) benchmarks show that TRACE improves temporal and multi-hop reasoning, with ablations highlighting the importance of hierarchy, update-aware seeding, and path-grounded evidence.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.00339")

Code

Syntology Ran 12 of 14 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

MorinWang/TRACE found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 12 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
2unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from MorinWang/TRACE. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_nickname_map MorinWang/TRACE/trace/event_extractor.py found in paper text by Syntology ran MIT (permissive) · ae721796fa294a27 · report
extract_json_block MorinWang/TRACE/trace/parsing_utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 018899f9ff80edc8 · report
format_turn_for_memory MorinWang/TRACE/trace/dataset_adapter.py found in paper text by Syntology ran MIT (permissive) · 2a670410f656592c · report
inject_topic_nodes MorinWang/TRACE/trace/session_injector.py found in paper text by Syntology ran MIT (permissive) · c95a57dc8a89713b · report
normalize_lme_role MorinWang/TRACE/trace/dataset_adapter.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 8993fe2601f2da08 · report
normalize_participants MorinWang/TRACE/trace/event_extractor.py found in paper text by Syntology ran MIT (permissive) · 675f4e3a054bcf7f · report
parse_longmemeval_date MorinWang/TRACE/trace/dataset_adapter.py found in paper text by Syntology ran MIT (permissive) · 2765833e486981a5 · report
strip_markdown_fences MorinWang/TRACE/trace/llm_text_io.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 21854723dac05890 · report
strip_markdown_fences MorinWang/TRACE/trace/parsing_utils.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 5440cdf99219bc9c · report
try_parse_date MorinWang/TRACE/trace/parsing_utils.py found in paper text by Syntology ran MIT (permissive) · 70605eacf8e400d2 · report
validate_edge_type MorinWang/TRACE/trace/event_schema.py found in paper text by Syntology ran MIT (permissive) · 860897df3ea15ce4 · report
validate_event_type MorinWang/TRACE/trace/event_schema.py found in paper text by Syntology ran MIT (permissive) · 0cad76b60328f8a8 · report
parse_analyze_content MorinWang/TRACE/trace/llm_text_io.py found in paper text by Syntology unverified MIT (permissive) · 02583dd626081175 · report
parse_with_json_fallback MorinWang/TRACE/trace/llm_text_io.py found in paper text by Syntology unverified MIT (permissive) · fd3c19ff87593021 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.00339, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections