arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05861cs.AIcs.LG
收藏

部分可观测环境中的时序知识图谱记忆

Temporal Knowledge-Graph Memory in a Partially Observable Environment

HumemAI;Vrije Universiteit Amsterdam(范·艾克大学阿姆斯特丹);ELLIS Institute Finland & Abo Akademi University(芬兰ELLIS研究所及阿博阿卡迪米大学)

Taewoon Kim, Vincent François-Lavet, Michael Cochez

AI总结:

该研究提出了一种基于时序知识图谱的记忆机制,通过在部分可观测环境中测试,展示了符号智能体在QA任务中比神经基线高出四倍的准确率。

摘要:

在部分可观测环境中,智能体需要持久记忆来整合随时间变化的观察。虽然知识图谱(KGs)为这种动态状态提供了自然的表示方式,但现有基准测试很少让智能体接触到一个环境,其中世界动态和智能体的记忆都是显式图状的。我们引入了Room Environment v3,这是一个可配置的环境,其隐藏状态是一个RDF知识图谱,其观察结果是RDF三元组。当智能体将这些观察存储在长期记忆中时,可以将其扩展为时序知识图谱。该环境在网格大小、房间数量、内墙和移动物体数量等方面易于调整。我们定义了一种轻量级的时序知识图谱记忆,基于RDF-star风格的限定词(time_added, last_accessed, num_recalled),并评估了几种符号基线模型在不同容量约束下维护和查询该记忆的方式。两种神经序列模型(LSTM和Transformer)作为没有显式知识图谱结构的对比基线。智能体在一种布局上训练,并在另一种布局上进行评估,该布局具有相同的动态但不同的查询顺序,从而暴露了训练-测试泛化差距。在此设置中,时序限定词导致了更稳定的性能,且符号时序知识图谱(符号TKG)智能体在相同环境和查询条件下,测试QA(问题-答案)准确率比神经基线高出约四倍。该环境、智能体实现和实验脚本已发布以供可重复研究,网址为https://github.com/humemai/agent-room-env-v3和https://github.com/humemai/room-env。

英文摘要:

Agents in partially observable environments require persistent memory to integrate observations over time. While KGs (knowledge graphs) provide a natural representation for such evolving state, existing benchmarks rarely expose agents to environments where both the world dynamics and the agent's memory are explicitly graph-shaped. We introduce the Room Environment v3, a configurable environment whose hidden state is an RDF KG and whose observations are RDF triples. The agent may extend these observations into a temporal KG when storing them in long-term memory. The environment is easily adjustable in terms of grid size, number of rooms, inner walls, and moving objects. We define a lightweight temporal KG memory for agents, based on RDF-star-style qualifiers (time_added, last_accessed, num_recalled), and evaluate several symbolic baselines that maintain and query this memory under different capacity constraints. Two neural sequence models (LSTM and Transformer) serve as contrasting baselines without explicit KG structure. Agents train on one layout and are evaluated on a held-out layout with the same dynamics but a different query order, exposing train-test generalization gaps. In this setting, temporal qualifiers lead to more stable performance, and the symbolic TKG (temporal knowledge graph) agent achieves roughly fourfold higher test QA (question-answer) accuracy than the neural baselines under the same environment and query conditions. The environment, agent implementations, and experimental scripts are released for reproducible research at https://github.com/humemai/agent-room-env-v3 and https://github.com/humemai/room-env.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑