arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.20413cs.CL
收藏

透过镜子,以及Horn子句程序在那边发现了什么

Through the Looking Glass, and what Horn Clause Programs Found There

University of North Texas(北得克萨斯大学)

Paul Tarau

AI总结:

本文探讨对偶Horn子句程序支持构造性否定,通过编译至Horn子句实现无性能损失执行,并应用于LLM推理链以增强生成式AI的可解释性。

摘要:

对偶Horn子句反映了Horn子句的关键性质。本文探索了“镜子的另一面”,以揭示一些预期和意料之外的对称性及其实际用途。我们重新审视对偶Horn子句,将其作为一种支持目标驱动前向推理的构造性否定的使能者,该构造性否定在直觉主义和经典逻辑中均有效。特别地,我们探讨了在以对偶Horn子句程序表示的背景理论语境下,证伪反事实假设的能力。与作为失败的否定不同,使用对偶Horn子句程序时,其计算答案中的变量绑定提供了语句为何被成功证伪的解释。此外,在命题情况下,与ASP系统中通过稳定模型语义实现的作为失败的否定不同,且类似于Horn子句程序,对偶Horn子句程序具有多项式复杂度。在通过元解释器指定其执行模型后,我们设计了一种从对偶Horn子句程序到Horn子句程序的编译方案,确保其执行无性能损失,并设计了嵌入式SymLP语言以支持Horn子句和对偶Horn子句程序的结合。作为(激励性)应用,我们将LLM推理链转换为命题Horn和对偶Horn子句,它们协同工作以构造性地证明和证伪目标,并通过推理链的可解释性增强生成式AI。

英文摘要:

Dual Horn clauses mirror key properties of Horn clauses. This paper explores the ``other side of the looking glass'' to reveal some expected and unexpected symmetries and their practical uses. We revisit Dual Horn clauses as enablers of a form of constructive negation that supports goal-driven forward reasoning and is valid both intuitionistically and classically. In particular, we explore the ability to falsify a counterfactual hypothesis in the context of a background theory expressed as a Dual Horn clause program. With Dual Horn clause programs, by contrast to negation as failure, the variable bindings in their computed answers provide explanations for the reasons why a statement is successfully falsified. Moreover, in the propositional case, by contrast to negation as failure as implemented with stable models semantics in ASP systems, and similarly to Horn clause programs, Dual Horn clause programs have polynomial complexity. After specifying their execution model with a metainterpreter, we devise a compilation scheme from Dual Horn clause programs to Horn clause programs, ensuring their execution with no performance penalty and we design the embedded SymLP language to support combined Horn clause and Dual Horn clause programs. As a (motivating) application, we cast LLM reasoning chains into propositional Horn and Dual Horn clauses that work together to constructively prove and disprove goals and enhance Generative AI with explainability of reasoning chains.

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

↑