Skip to content

research(memory): All-Mem lifelong memory — online fast-path writes + offline topology-edit consolidation, no destructive summarization (arXiv:2603.19595) #2270

@bug-ops

Description

@bug-ops

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:

  1. Online fast path → agent turn writes: memory_save calls go to a lightweight layer (current episodic SQLite table, minimal processing)
  2. Offline slow path → background consolidation: a tokio::spawn task runs SPLIT/MERGE/UPDATE operators periodically (similar to existing tier promotion loop in zeph_memory::tiers)
  3. 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)
  4. Typed hop-bounded links: aligns with existing GraphEdge with relation_type and max_hops config in spreading activation

Implementation Sketch

  • Restructure SemanticMemory write 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=true with source_ids pointer 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

Metadata

Metadata

Assignees

Labels

P2High value, medium complexitymemoryzeph-memory crate (SQLite)researchResearch-driven improvement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions