arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03439cs.AIcs.IR

本体到工具的编译用于LLM代理中的可执行语义约束强制

Ontology-to-tools compilation for executable semantic constraint enforcement in LLM agents

University of Cambridge(剑桥大学);CMCL;CMPG

Xiaochi Zhou, Patrick Bulter, Changxuan Yang, Simon D. Rihm, Thitikarn Angkanaporn, Jethro Akroyd, Sebastian Mosbach, Markus Kraft

AI总结:

本体到工具的编译用于LLM代理中的可执行语义约束强制,通过生成知识图谱实例来强制执行语义约束,减少手动工程。

摘要:

我们引入本体到工具的编译作为一种证明概念的机制,用于将大型语言模型(LLMs)与形式领域知识耦合。在The World Avatar(TWA)中,本体规范被编译成可执行的工具接口,这些接口必须由基于LLM的代理使用以创建和修改知识图谱实例,在生成过程中强制执行语义约束,而不是通过事后验证。在扩展TWA的语义代理组合框架中,模型上下文协议(MCP)及相关代理是知识图谱生态系统的重要组成部分,使生成模型、符号约束和外部资源之间能够进行结构化的交互。基于代理的工作流将本体转换为本体感知的工具,并迭代应用这些工具以从非结构化的科学文本中提取、验证和修复结构化知识。使用金属有机多面体合成文献作为示例案例,我们展示了可执行本体语义如何指导LLM行为并减少手动模式和提示工程,建立了将形式知识嵌入生成系统的一般范式。

英文摘要:

We introduce ontology-to-tools compilation as a proof-of-principle mechanism for coupling large language models (LLMs) with formal domain knowledge. Within The World Avatar (TWA), ontological specifications are compiled into executable tool interfaces that LLM-based agents must use to create and modify knowledge graph instances, enforcing semantic constraints during generation rather than through post-hoc validation. Extending TWA's semantic agent composition framework, the Model Context Protocol (MCP) and associated agents are integral components of the knowledge graph ecosystem, enabling structured interaction between generative models, symbolic constraints, and external resources. An agent-based workflow translates ontologies into ontology-aware tools and iteratively applies them to extract, validate, and repair structured knowledge from unstructured scientific text. Using metal-organic polyhedra synthesis literature as an illustrative case, we show how executable ontological semantics can guide LLM behaviour and reduce manual schema and prompt engineering, establishing a general paradigm for embedding formal knowledge into generative systems.

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

↑