paper-with-me

홈 › Papers

TokenMizer: Graph-Structured Session Memory for Long-Horizon LLM Context Management

2026-06-04 · Shweta Mishra arxiv

Long-horizon LLM sessions outlive their context windows, and the standard mitigations - truncation, summarization, retrieval - share a structural flaw: they treat history as flat text, discarding precisely the content that makes a session resumable: decisions and their rationales, task status, and file modification history. We present TokenMizer, an open-source transparent proxy that maintains session history as a typed knowledge graph and, at context boundaries, replaces the raw transcript with a token-budgeted serialization of session state. The schema comprises 14 node types and 7 edge types under an 8-state lifecycle in which decisions can be superseded or explicitly invalidated; bitemporal validity intervals support time-travel queries; and first-class decision-transition records preserve why each decision replaced its predecessor (trigger, reason, evidence). Version 0.3.1 embeds this memory core in a production-shaped serving layer - SSE streaming, security middleware, nine provider adapters, a monitoring dashboard, graph exports (D3 JSON, self-contained interactive HTML, Obsidian Canvas) - and exposes checkpoint/resume to agents as Model Context Protocol tools. The evaluation is deliberately minimal and fully provenanced: three synthetic sessions, heuristic-only extraction, one plain-summary baseline, every value traceable to a single versioned results file. Graph extraction ties the baseline on task recall (75.6%) and exceeds it on decision recall (85.0% vs. 70.0%) and file recall (100% vs. 91.7%), with 201-302-token resume blocks extracted in 8.1-529.9 ms per session. At n=3 these results are directional; ceiling effects and baseline weaknesses are analyzed explicitly. Code, benchmark runner, and the exact results file are released under the MIT licence.

📄 PDF Abstract BibTeX arXiv:2606.06337

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

EngramaBench: Evaluating Long-Term Conversational Memory with Structured Graph Retrieval

2026-04-23 · Julian Acuna arxiv

Large language model assistants are increasingly expected to retain and reason over information accumulated across many sessions. We introduce EngramaBench, a benchmark for long-term conversational memory built around fi…

MRMS: A Multi-Resolution Memory Substrate for Long-Lived AI Agents

2026-07-06 · Jizhizi Li, Amy Shi-Nash arxiv

Long-lived AI agents require continuity across interactions, but continuity cannot be obtained by simply extending the prompt window. An agent must preserve useful prior experience, retrieve it selectively, distinguish p…

Psy-Chronicle:A Structured Pipeline for Synthesizing Long-Horizon Campus Psychological Counseling Dialogues

2026-05-21 · Chaogui Gou arxiv

In recent years, large language models have shown substantial potential in psychological support tasks. However, existing psychological counseling data mostly rely on single-turn question answering or short multi-turn di…

Response GenerationQuestion Answering

FTA-Mem: Fact-Time-Affect Anchored Memory for Low-Density Long-Term Dialogue

2026-08-17 · Chang Liu, Shuyi Zhang, Changsheng Ma, Yongfeng Tao 외 arxiv

Long-term emotional-support agents require memory mechanisms for personalized understanding across sessions. However, emotional-support dialogue is often low-density: turns are incomplete, evidence is scattered, and user…

Question AnsweringAnswer Generation

APEX-MEM: Agentic Semi-Structured Memory with Temporal Reasoning for Long-Term Conversational AI

2026-04-15 · Pratyay Banerjee, Masud Moshtaghi, Shivashankar Subramanian, Amita Misra 외 arxiv

Large language models still struggle with reliable long-term conversational memory: simply enlarging context windows or applying naive retrieval often introduces noise and destabilizes responses. We present APEX-MEM, a c…

Question Answering