Report #38577
[frontier] Long-horizon agents lose critical historical details due to naive summarization or context window overflow
Implement hierarchical memory compression trees where observations form leaf nodes, internal nodes are LLM-compressed summaries, and retrieval traverses the tree structure to maintain temporal and causal relationships
Journey Context:
Naive approaches truncate or flat-summarize history, destroying structure. MemGPT introduced tiered memory \(context, working, archival\) but used flat retrieval. The emerging pattern is tree-based compression: raw observations form leaves, parent nodes are LLM-generated summaries of children with metadata \(time ranges, topics\). When the tree grows too deep, branches are pruned or moved to cold storage. For retrieval, the system traverses down relevant branches \(using embedding similarity at each node\) rather than searching a flat vector space. This preserves temporal locality and causal chains better than RAG over chunks. The shift is treating long-term memory as a navigable hierarchical structure similar to how humans organize episodic memory, not as a searchable database.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:13:50.161621+00:00— report_created — created