Search papers, labs, and topics across Lattice.
This paper introduces WorldDB, a novel memory engine designed to address the limitations of existing retrieval-augmented generation systems by implementing a vector graph-of-worlds structure that allows for recursive composition and immutable content-addressed nodes. By incorporating write-time programs for edge types, WorldDB enables sophisticated handling of knowledge updates and contradictions, resulting in a significant performance improvement over previous systems. In evaluations, WorldDB achieved an overall accuracy of 96.40% on the LongMemEval benchmark, outperforming the state-of-the-art by over 5 percentage points and demonstrating exceptional capabilities in temporal reasoning and knowledge synthesis.
WorldDB's unique graph-of-worlds architecture allows for unprecedented accuracy in long-term memory tasks, outperforming existing systems by a notable margin.
Persistent memory is the bottleneck separating stateless chatbots from long-running agentic systems. Retrieval-augmented generation (RAG) over flat vector stores fragments facts into chunks, loses cross-session identity, and has no first-class notion of supersession or contradiction. Recent bitemporal knowledge-graph systems (Graphiti, Memento, Hydra DB) add typed edges and valid-time metadata, but the graph itself remains flat: no recursive composition, no content-addressed invariants on nodes, and edge types carry no behavior beyond a label. We present WorldDB, a memory engine built on three commitments: (i) every node is a world -- a container with its own interior subgraph, ontology scope, and composed embedding, recursive to arbitrary depth; (ii) nodes are content-addressed and immutable, so any edit produces a new hash at the node and every ancestor, giving a Merkle-style audit trail for free; (iii) edges are write-time programs -- each edge type ships on_insert/on_delete/on_query_rewrite handlers (supersession closes validity, contradicts preserves both sides, same_as stages a merge proposal), so no raw append path exists. On LongMemEval-s (500 questions, ~115k-token conversational stacks), WorldDB with Claude Opus 4.7 as answerer achieves 96.40% overall / 97.11% task-averaged accuracy, a +5.61pp improvement over the previously reported Hydra DB state-of-the-art (90.79%) and +11.20pp over Supermemory (85.20%), with perfect single-session-assistant recall and robust performance on temporal reasoning (96.24%), knowledge update (98.72%), and preference synthesis (96.67%). Ablations show that the engine's graph layer -- resolver-unified entities and typed refers_to edges -- contributes +7.0pp task-averaged independently of the underlying answerer.