arXiv:2511.06179cs.DBcs.AI2025-11被引 1

用时空语义图结构统一长期记忆,避免信息漂移。

MemoriesDB: A Temporal-Semantic-Relational Database for Long-Term Agent Memory / Modeling Experience as a Graph of Temporal-Semantic Surfaces

  • 将记忆建模为时间-语义-关系三元体,统一存储事件发生时间、含义及关联。
  • 支持按时间范围检索、混合语义搜索与轻量结构推理,单查询完成。
  • 基于PostgreSQL实现原型,可扩展至列式存储与分布式系统,适合智能体长期记忆场景。

我们提出MemoriesDB,一种统一的数据架构,旨在避免长期计算记忆中时间、语义和关系的退化。每个记忆是一个同时编码事件发生时间、语义意义及其与其他事件关联的时序-语义-关系实体。该架构基于PostgreSQL与pgvector扩展构建,融合时间序列数据存储、向量数据库与图系统特性于单一追加只读模式。每个记忆以微秒级时间戳唯一标记,并附带低维与高维归一化嵌入以捕捉语义上下文。记忆间的有向边携带标签和每边元数据,支持同一顶点间的多重上下文链接。这些结构共同构成一系列时间索引的时序-语义曲面,在1+1维相似性场中以方向箭头投影,追踪语义随时间的演化并保持跨时间一致性。该形式支持高效的时间限定检索、混合语义搜索与轻量级结构推理,且可在单一查询路径中完成。工作原型展示了在标准关系型基础设施上的可扩展召回与上下文增强效果,并讨论了向列式后端、分布式集群与涌现主题建模的扩展方向。

原文摘要 · Abstract (English)

We introduce MemoriesDB, a unified data architecture designed to avoid decoherence across time, meaning, and relation in long-term computational memory. Each memory is a time-semantic-relational entity-a structure that simultaneously encodes when an event occurred, what it means, and how it connects to other events. Built initially atop PostgreSQL with pgvector extensions, MemoriesDB combines the properties of a time-series datastore, a vector database, and a graph system within a single append-only schema. Each memory is represented as a vertex uniquely labeled by its microsecond timestamp and accompanied by low- and high-dimensional normalized embeddings that capture semantic context. Directed edges between memories form labeled relations with per-edge metadata, enabling multiple contextual links between the same vertices. Together these constructs form a time-indexed stack of temporal-semantic surfaces, where edges project as directional arrows in a 1+1-dimensional similarity field, tracing the evolution of meaning through time while maintaining cross-temporal coherence. This formulation supports efficient time-bounded retrieval, hybrid semantic search, and lightweight structural reasoning in a single query path. A working prototype demonstrates scalable recall and contextual reinforcement using standard relational infrastructure, and we discuss extensions toward a columnar backend, distributed clustering, and emergent topic modeling.

长期记忆图数据库智能体

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。