arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.12170cs.AI
收藏

逻辑信息检索的统计解析

Statistical Parsing for Logical Information Retrieval

Greg Coppola, PhD(格雷格·科波拉,博士)

Greg Coppola

AI总结:

本文提出了一种结合LLM和QBBN的逻辑信息检索方法,通过扩展QBBN实现反向推理,构建类型逻辑语言和确定性语法解析器,以提升自然语言处理的结构化解析能力。

摘要:

在之前的论文(Coppola, 2024)中,我们引入了量化布尔贝叶斯网络(QBBN),这是一种逻辑图模型,它将自然演绎的前向片段(Prawitz, 1965)作为概率因子图实现。该工作留下了两个空白:没有否定/反向推理,也没有自然语言解析器。本文在推理、语义和语法方面解决了这两个空白。在推理方面,我们扩展了QBBN,添加了NEG因素,强制P(x) + P(neg x) = 1,使通过反向lambda消息实现反证推理(modus tollens),从而完成Prawitz的简单消解规则。引擎处理了44/44个测试案例,涵盖了22种推理模式。在语义方面,我们提出了一个带角色标记谓词的类型逻辑语言,具有模态量化器和三种层次的表达能力,遵循Prawitz:一阶量化、命题作为参数、以及通过lambda抽象实现的谓词量化。在语法方面,我们提出了一个带类型槽语法的确定性编译器,将句子编译为逻辑形式(33/33正确,无歧义)。LLMs处理歧义(95% PP附着准确率)但无法直接生成结构化解析(12.4% UAS),证实了语法是必要的。架构:LLM预处理,语法解析,LLM重排序,QBBN推理。我们认为这调和了形式语义与Sutton的“苦涩教训”(2019):LLMs消除了杀死形式NLP的标注瓶颈,充当标注者,而QBBN充当验证者。代码:https://github.com/gregorycoppola/world

英文摘要:

In previous work (Coppola, 2024) we introduced the Quantified Boolean Bayesian Network (QBBN), a logical graphical model that implements the forward fragment of natural deduction (Prawitz, 1965) as a probabilistic factor graph. That work left two gaps: no negation/backward reasoning, and no parser for natural language. This paper addresses both gaps across inference, semantics, and syntax. For inference, we extend the QBBN with NEG factors enforcing P(x) + P(neg x) = 1, enabling contrapositive reasoning (modus tollens) via backward lambda messages, completing Prawitz's simple elimination rules. The engine handles 44/44 test cases spanning 22 reasoning patterns. For semantics, we present a typed logical language with role-labeled predicates, modal quantifiers, and three tiers of expressiveness following Prawitz: first-order quantification, propositions as arguments, and predicate quantification via lambda abstraction. For syntax, we present a typed slot grammar that deterministically compiles sentences to logical form (33/33 correct, zero ambiguity). LLMs handle disambiguation (95% PP attachment accuracy) but cannot produce structured parses directly (12.4% UAS), confirming grammars are necessary. The architecture: LLM preprocesses, grammar parses, LLM reranks, QBBN infers. We argue this reconciles formal semantics with Sutton's "bitter lesson" (2019): LLMs eliminate the annotation bottleneck that killed formal NLP, serving as annotator while the QBBN serves as verifier. Code: https://github.com/gregorycoppola/world

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

↑