- Rating
- 3
- Clarity
- 2
- Confidence
- 4
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
This paper proposes TrajWiki, a memory framework for long-horizon dialogue agents with two core ideas: (1) representing each memory item as a source-grounded evolutionary trajectory composed of immutable episodic snapshots, and (2) compiling these trajectories into a persistent Memory Wiki -- structured and interlinked wiki pages. At inference time, queries are routed hierarchically from wiki pages to memory trajectories to episodic snapshots and source messages, enabling evidence-grounded answer generation with provenance tracing.
The framework is evaluated on LoCoMo (open-domain long-term conversational QA) and MedMT-Bench (long multi-turn medical dialogue). Experiments use both closed-source (GPT-4o-mini) and open-source (Qwen3-8B/32B) backbones. TrajWiki generally outperforms baselines including Full Context, Naive RAG, LangMem, A-MEM, and Mem0, with the strongest gains on multi-hop questions and medical information-contradiction detection. The paper also provides extensive analyses.
Strengths and weaknesses
Strengths
Originality
- The core insight that memory should be modeled as an evolving, provenance-preserving structure is well-motivated. Provenance tracking on top of wiki-style organization addresses a real gap in existing memory systems.
Quality
- The paper provides extensive analyses, including hyperparameter sensitivity, trajectory semantic drift, cost breakdowns, and ablation variants. The breadth is appreciated, though many analyses have limitations discussed in Weaknesses.
- The paper is honest about limitations by explicitly stating that provenance-aware does not mean provenance-perfect. But the quantitative evidence for this self-assessment is deferred to the appendix (see Weaknesses).
- The appendix provides unusually detailed implementation specifics. Together with released code, this substantially lowers the barrier to reproduction.
Weaknesses
Originality
- The Memory Wiki concept closely mirrors the widely-discussed "LLM Wiki" pattern (Karpathy, 2026), but the paper does not cite or position itself against. On top of this existing paradigm, TrajWiki adds provenance-tracking and hierarchical retrieval, but these additions are primarily engineering refinements rather than conceptual breakthroughs. The individual components are standard techniques: embedding-based retrieval with hybrid scoring, reciprocal rank fusion, structured LLM prompts with fallback parsing, and wiki-style knowledge organization.
Quality
- The system's own diagnostics show 61% of answers have unsupported-evidence risk. The mean support gold-reference coverage is only 0.332, indicating that even when gold evidence is retrieved, it often fails to make it into the final answer support. This is a critical finding for a system whose central selling point is source grounding, but these numbers appear only in the appendix. The main body mentions the diagnostics but never presents the quantitative severity.
- The compatibility function appends snapshots to trajectories with max length 15. The paper never clarifies what happens when a trajectory hits this cap — presumably a new trajectory is initiated for the same entity/topic. In realistic deployment with thousands of sessions, this would cause a single entity to fragment across multiple disconnected trajectories. This would (a) rapidly push wiki pages past the 6 trajectories per page threshold, triggering repeated page splits; (b) force the retrieval system to discover and stitch together multiple fragmented trajectories for cross-trajectory questions; and (c) degrade the coverage-aware selection mechanism. The paper provides no mechanism to handle this.
- The system contains dozens of hand-tuned parameters (e.g., compatibility weights, page thresholds, coverage rule, RRF constant; prefilter cap), but the ablation study only evaluates whether an entire layer (wiki, trajectories, snapshots) helps. No experiment tests whether the specific implementation of any component matters. For example, does the five-signal compatibility function outperform cosine-only trajectory matching? Does the four-type wiki taxonomy outperform a simpler entity-only organization? Why were these four categories chosen? The design rationale is absent from the main text.
Clarity
- The key concept "claim" is never defined in the main text. "Episodic snapshot" content structure is also appendix-only. Retrieval scoring functions are placeholders whose actual composition appears in the appendix. The main body provides vocabulary without semantics.
- "Diagnostic provenance" is listed as a contribution highlighted in the abstract, but all quantitative evidence appears exclusively in the appendix.
Significance
- TrajWiki consumes 43.28M tokens for the LoCoMo run, with memory construction alone accounting for 23.71M tokens and 25.66 hours of accumulated provider latency. Ihe practical deployment, TrajWiki might be orders of magnitude more expensive than the baselines it compares against. The paper does not report the cost of baselines (e.g., Mem0 or A-MEM), making it impossible to assess the cost-benefit ratio. For practitioners, it is hard to judge whether the observed accuracy gains justify the much larger memory-construction cost.
Questions
- Provenance quality -> The diagnostic metrics are all automated proxies. Have you considered even a small-scale human evaluation to validate that the provenance chains actually help human auditors identify and correct errors faster?
- In the agent literature, "trajectory" overwhelmingly refers to a sequence of observation-action pairs. In this paper, it means a version history of a knowledge item, which is a fundamentally different concept. Consider using a less overloaded term (e.g., revision history).
- The paper uses the same model as both the answer generator and the LLM judge. This introduces potential self-preference bias, which could inflate absolute Acc scores and may not uniformly affect all systems. Consider using a stronger, independent model as judge.
- The "counterfactual ablation" replays saved intermediate diagnostics without re-running answer generation for ablated variants. This means it can only report retrieval-level proxy metrics but not actual answer quality differences. Why not run proper end-to-end ablations? If the barrier is computational cost, this itself highlights a practical limitation that the system is too expensive to ablate properly.
Limitations
The paper evaluates on medical domain data but never specifies how the memory store is persisted/protected/governed. The storage mechanism (database? filesystem? in-memory?) is undescribed. The system by design permanently retains immutable episodic snapshots (nothing is deleted, only deprecated), but medical data is subject to regulations such as HIPAA and GDPR.
Paper formatting concerns
N/A
Final justification
The rebuttal promises to re-scope the contribution and improves the clarity. It adds meaningful new experiments, but the key concerns (unsupported-answer risk, trajectory fragmentation, heuristic justification, computational cost) are explicitly acknowledged as unsolved.
Response to Reviewer Dspn
We thank the reviewer for the critique. We agree that the paper should better position the Memory Wiki, define core objects in the main text, expose diagnostic severity, and separate measured contributions from limitations. We added a 200-query answer-level follow-up, an independent judge, local sensitivity analysis, and a 24-case human audit.
Positioning, terminology, and clarity
Thank you for pointing us to Karpathy (2026), which we will cite and discuss. We agree that compiling raw sources into a persistent interlinked Wiki is not itself a contribution we should claim. Our narrower contribution is a dialogue-memory architecture whose primary object is a source-grounded revision history: updates remain as immutable snapshots; claims carry source links and lifecycle state (
ADD/REVISE/DEPRECATE); the Wiki is a non-authoritative routing layer; and answering expands from pages to histories, snapshots, and visible sources. Embeddings, hybrid scoring, RRF, structured generation, and fallbacks are standard; we will emphasize the memory representation and separation of revision, organization, and source-grounded retrieval.We agree that “trajectory” is overloaded. We will introduce memory revision trajectory, explicitly distinct from an observation-action rollout, and use “revision history” where possible;
TrajWikiremains the method name. We will define a claim as an atomic source-backed proposition with text, status, source IDs, and quote, and an episodic snapshot as an immutable exchange-level record with summaries/signals, claims, metadata, and raw-message links. Sec. 3 will briefly describe the actual dense, sparse, entity/facet/family, temporal, coverage, and RRF stages, leaving coefficients/fallbacks in the appendix.Bounded histories and design choices
The system does not solve unbounded growth. A history segment is capped at m=15 snapshots; later compatible updates enter a new segment rather than overwriting it. Related segments may share Wiki pages, but there is no explicit lineage, merge, or guarantee of complete cross-segment retrieval.
The choice m=15 is a LoCoMo accuracy-cost decision: most gold evidence is shallow and rank 15 covers the observed long tail. It is not evidence of scalability to thousands of sessions. Pages above six trajectories are sharded and a coverage audit adds rescue pages, but repeated segmentation can still enlarge the candidate set and hurt coverage. We will revise “without unbounded memory expansion”: segment length is bounded, but segment count and storage are not. Lineage links, source-preserving compaction, entity-level supernodes, and adjacent-segment expansion remain future work.
The four page types have distinct roles:
indexis a directory/fallback,entitygroups recurring participants/objects,topiccaptures cross-entity events/themes, andinventorypreserves list/count/item facts. We do not claim this taxonomy is optimal.For scoring constants, we performed a zero-call replay on 200 queries. Across 100 draws perturbing reconstructable Appendix A.5 page/trajectory coefficients by +/-20%, mean top-15 Jaccard overlap was 0.976 for both rankings; mean ranking-stage gold-reference coverage changed from 0.624 to 0.626. This supports only local stability of deterministic query-time ranking. It does not test cosine-only construction matching or entity-only Wiki organization, which require rebuilding trajectories/Wiki and rerunning structured decisions. Those construction-level ablations remain incomplete.
Provenance severity and human validation
The main text underreported diagnostic severity. The original 0.610 unsupported-answer-risk value is an automated proxy, not a human-verified hallucination rate, but the 0.332 mean support gold-reference coverage is an important limitation. In the new 200-query funnel, mean gold-reference retention is 100.0% in raw memory, 81.7% after Wiki reachability, 62.3% after trajectory selection, about 62% in final source context, and 33.6% in final answer support. Losses therefore occur both before retrieval completion and when retrieved evidence becomes answer support. We will move these values into the main body and define “diagnostic provenance” as observable paths/risk indicators, not verified correctness.
We ran an exploratory counterbalanced 24-case audit with two auditors not involved in development. Each case was judged under both views by different auditors; two developers adjudicated support/failure stage before unblinding.
The result is mixed: the TrajWiki view is 4.51x smaller and gives numerically higher stage localization, but full dialogue is better for support verification; exact-stage accuracy remains modest. With N=24, we make no significance claim and obtained no reliable audit-time/correction-success estimate. We therefore do not claim faster human correction, only a more compact audit surface with preliminary localization benefits.
Independent evaluation and answer-level ablations
We agree that same-model judging creates a possible self-preference confound: GPT-4o-mini and Qwen3-8B judged their own settings, while Qwen3-32B used a same-family Qwen3-8B judge. F1/BLEU are unaffected, but absolute judge accuracy may be.
For the follow-up, outputs across full, ablated, and reference systems were evaluated by a method-blinded Claude Sonnet 4.6 judge unused in construction or generation; variant identities were omitted. This removes same-model self-preference from the follow-up, but not retrospectively from Table 1.
We agree that the original counterfactual table was retrieval-only. We reran generation on the same 200 LoCoMo multi-hop queries with GPT-4o-mini, identical instructions, and a common 32K input-plus-output cap. JudgeScore is S=100(Nc+0.5Np)/N; Strict Acc. counts only
CORRECT.CIs are 10,000-draw paired query bootstraps and capture query-sampling uncertainty, not generation stochasticity.
No Wiki Routingbypasses routing but reuses the frozen trajectory store, so it is not a full no-Wiki reconstruction. The results support Wiki routing and source expansion at answer level. Historical depth has a smaller, concentrated benefit despite similar aggregate coverage and is not universally necessary.Simpler systems remain competitive: matched Full Context scores 39.0 and its paired difference from Full includes zero; Naive Dense RAG scores 40.3 with only 1.5K input tokens. Thus, the follow-up does not show universal accuracy/efficiency superiority. It reused frozen stores; construction-level ablations remain incomplete and costly.
Cost and medical-data governance
We lack a fair cost-benefit comparison with Mem0/A-MEM. The 43.28M deployment-token run includes 23.71M construction, 10.84M query retrieval, 6.92M answer generation, and 1.81M mixed repair/validation tokens; 25.66h is accumulated provider-side construction latency, not wall time. Reassigning mixed repairs by phase yields 24.85M upfront reusable and 18.43M query-side tokens: about 2.49M upfront per LoCoMo dialogue sample and 65.3K/query. For Q queries, Cavg(Q)=2.49M/Q+65.3K tokens/query; over 282 queries, the amortized average is about 153.5K.
This demonstrates reuse, not break-even. We did not record comparable end-to-end ledgers for all baselines, so cannot determine whether gains justify the extra cost. We will remove language implying token/monetary break-even. The implementation is computation-heavy and provenance-oriented; its measured efficiency benefit is a 2.35x reduction in query-time trajectory candidates, not lower total cost.
The prototype persists raw messages and derived records in local SQLite plus JSON/JSONL/CSV artifacts. It lacks encryption at rest, application-level access control, tenant isolation, consent/retention enforcement, verified cascading deletion, access auditing, or HIPAA/GDPR compliance. MedMT-Bench only stress-tests long-context memory and contradiction handling; it is not a clinical-safety/compliance evaluation, and the system is not suitable for clinical deployment.
“Immutable” means revisions do not silently overwrite provenance while data remains within an authorized retention period, not indefinite retention. Production deletion must cascade from sources to dependent snapshots, claims, embeddings, trajectory links, Wiki pages, caches, and exports, followed by index rebuilding/verification. High-risk use additionally requires encryption/key management, least-privilege access, tenant isolation, explicit consent/retention controls, freshness metadata, conflict quarantine, strict abstention for unresolved identity, authoritative-source verification, and human oversight.
The revised evidence supports a narrower conclusion: TrajWiki is a provenance-rich, diagnosable architecture with measurable query-time component benefits, but it is not provenance-perfect, cost-minimal, fully ablated at construction time, scalable to unbounded sessions, or ready for regulated medical deployment.