-
Notifications
You must be signed in to change notification settings - Fork 2
research(memory): event segmentation-based episodic boundary detection for compaction (ES-Mem) #1855
Description
Source
ES-Mem: Event Segmentation-Based Memory for Long-Term Dialogue Agents — arXiv 2601.07582, January 2026
Core Idea
Applies cognitive Event Segmentation Theory to partition long conversation histories at natural semantic boundaries ("events") rather than fixed token counts. Builds a hierarchical memory structure anchored to event boundaries. Event-aware retrieval outperforms surface similarity lookup on long-term dialogue benchmarks.
Applicability to Zeph: MEDIUM-HIGH
Zeph's chunked compaction divides history by token count (configurable compaction_preserve_tail). This produces summary chunks that may split mid-task, degrading summarization coherence. Event-based segmentation would produce semantically coherent units, improving both summarization quality and episodic retrieval precision.
This is directly complementary to #1608 (episodic-to-semantic promotion) — better boundaries mean better promotion candidates.
Implementation Sketch
- Add
EventBoundaryDetector: a lightweight LLM call (or heuristic using turn transitions: tool_use→user, topic shift signals) that emits boundary markers before chunked compaction. - Align compaction chunk boundaries to detected event boundaries instead of hard token counts.
- Store event metadata (boundary type, event summary) in a new
episodic_eventsSQLite table. - Use event boundaries as retrieval anchors in
SemanticMemory::recall(). - Gate behind
[memory.compression] event_segmentation = true.
Implementation Complexity
MEDIUM — boundary detection can start as heuristic (no extra LLM call), upgrade to LLM-based later. SQLite schema addition is straightforward.
See Also
- research: structured anchored summarization for context compression #1607 (structured anchored summarization)
- research: episodic-to-semantic memory promotion for long-term knowledge retention #1608 (episodic-to-semantic memory promotion)
- research(memory): AOI three-layer hierarchical memory architecture #1839 (AOI three-layer hierarchical memory)
ChunkedCompactorinzeph-memory