跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2611.29709 (cs)
[提交于 2026年11月22日]

标题:Cache the Knowledge, Not Just the Prompt: Dynamic Datalog as the Action Language for LLM Agents

作者:Bruno Rucy Carneiro Alves de Lima, Victor Henrique Cabral Pinheiro
查看论文《Cache the Knowledge, Not Just the Prompt: Dynamic Datalog as the Action Language for LLM Agents》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:An LLM agent that answers questions about a knowledge graph writes a program per question, and its tools evaluate each from scratch. We give the agent a Datalog REPL, a session over a dynamic Datalog engine, in which rules are inserted and retracted like facts while derived facts stay current. Prompt caching reuses the model's processing of what a session shares, and the Datalog REPL reuses the evaluation of it. On chains of questions over three knowledge graphs, agents reuse a relation that the REPL keeps in 179 of 180 cases, with two models, and write fewer output tokens: SQL and Python agents write 23 to 82% more. With SQL tables or a Python namespace, Claude Haiku 5.5 stores almost nothing for later questions, and a chain of seven questions at 13 million facts takes it a median of 48 and 56 s, against 31 s with the REPL. Claude Opus 5.5 matches the REPL by storing tables in SQL, and when the data changes it stores views, which are evaluated again at every read. A relation that the REPL keeps is read like a table and stays current like a view. Datalog is a niche language beside SQL and Python, and with thinking enabled the models answer as accurately with it.
评论: Accepted for publication at AICCC 26
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2611.29709 [cs.PL]
  (或者 arXiv:2611.29709v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2611.29709

提交历史

来自:Bruno Rucy Carneiro Alves De Lima
[v1] 2026年11月22日 星期日 19:20:27 UTC (347 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站