-
Notifications
You must be signed in to change notification settings - Fork 2
research(memory): All-Mem lifelong memory — online fast-path writes + offline topology-edit consolidation, no destructive summarization (arXiv:2603.19595) #2270
Description
Summary
All-Mem (arXiv:2603.19595, March 2026) — decouples online ingestion (fast path: lightweight writes with sparse revisable links to a bounded visible surface) from periodic offline consolidation (slow path: LLM-driven SPLIT/MERGE/UPDATE topology edits with confidence gating). Avoids destructive summarization — original evidence is always preserved and reachable via typed hop-bounded links. Evaluated on LOCOMO and LONGMEMEVAL, outperforms representative baselines on retrieval and QA.
Applicability to Zeph
Zeph's SemanticMemory orchestrator currently runs compaction as a blocking consolidation pass (zeph-memory). All-Mem maps directly:
- Online fast path → agent turn writes:
memory_savecalls go to a lightweight layer (current episodic SQLite table, minimal processing) - Offline slow path → background consolidation: a
tokio::spawntask runs SPLIT/MERGE/UPDATE operators periodically (similar to existing tier promotion loop inzeph_memory::tiers) - Evidence preservation: current compaction destroys raw turns (known limitation); All-Mem's linked topology approach preserves originals reachable via graph hops — complements the existing graph memory (
zeph_memory::graph) - Typed hop-bounded links: aligns with existing
GraphEdgewithrelation_typeandmax_hopsconfig in spreading activation
Implementation Sketch
- Restructure
SemanticMemorywrite path: all writes go to a fast lightweight layer first - Add 3 topology operators to background consolidation: SPLIT (divide a broad memory into specifics), MERGE (consolidate repetitive memories), UPDATE (replace outdated claim)
- Use confidence gating: only apply operator when LLM confidence > threshold
- Preserve original evidence: mark consolidated entries as
consolidated=truewithsource_idspointer list, never delete originals
Related
Complements #2231 (MAGMA multi-graph memory) and #2262 (TiMem hierarchical tree). All-Mem specifically solves the online/offline split and evidence preservation problems that neither MAGMA nor TiMem address directly.
Source: https://arxiv.org/abs/2603.19595