作为文件的知识图谱:工具创建与工具使用协同演化的智能体 harness
Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve
AI总结:
该研究提出直接知识图谱交互(DKGI)框架,让智能体直接在节点和边文件上创建工具,在多领域基准上超越最强基线至少6.7个Hit@1点,证明工具创建与使用协同演化的价值。
摘要:
在搜索富含文本的知识图谱时,需要沿着关系进行并检查文本证据。预定义的图接口会限制智能体可访问的证据,即便智能体编写代码来组合工具调用或处理检索到的子图也是如此。我们提出直接知识图谱交互(DKGI),这是一种 harness,其中语言模型智能体直接在完整的节点和边文件上创建图访问工具。智能体编写 Python 代码来沿着关系、组合节点集并选择文本证据,将执行与 shell 搜索和文件检查交错进行。这让智能体能够批量处理大型节点集,同时返回选定文本供模型评估。执行反馈指导工具的创建和修订,而不断演化的工具则决定智能体接下来收集哪些证据。在涵盖三个领域的基准数据集上,无需训练的 DKGI 在每个图上都比最强的已发表基线高出至少 6.7 个 Hit@1 点,即便使用最小的 harness 也是如此。受控 ablation 实验显示了多轮编程相较于仅 shell 访问和预定义图工具的优势,而轨迹显示智能体会修订代码以扩展搜索或解决错误。这些发现凸显了在图搜索过程中允许工具创建与工具使用协同演化的价值。我们的代码和数据可在此 https URL 获取。
英文摘要:
Searching text-rich knowledge graphs requires following relations while examining textual evidence. Predefined graph interfaces constrain what evidence agents can access, even when they write code to combine tool calls or process retrieved subgraphs. We propose direct knowledge graph interaction (DKGI), a harness in which language model agents create graph access tools directly over complete node and edge files. The agent writes Python code to follow relations, combine node sets, and select textual evidence, interleaving execution with shell search and file inspection. This lets agents process large node sets in bulk while returning selected text for the model to assess. Execution feedback guides tool creation and revision, while the evolving tools determine what evidence the agent gathers next. On benchmark datasets spanning three domains, training-free DKGI exceeds the strongest published baseline by at least 6.7 Hit@1 points on every graph, even with a minimal harness. Controlled ablations show the benefits of multi-turn programming over shell-only access and predefined graph tools, while trajectories show agents revising code to extend searches or address errors. These findings highlight the value of allowing tool creation and tool use to co-evolve during graph search. Our code and data are available at https://github.com/leopoldwhite/DKGI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。