跳到正文
arXiv cs.AI· Remo Pareschi·· 3 天前AI 评分35

用组合范畴文法将 LLM 输出提升为神经符号化的组合式推导

From Dependency to Compositionality: A Neurosymbolic Lifting of LLM Outputs via Combinatory Categorial Grammar

AI 导读

一项 arXiv 研究提出神经符号框架,用组合范畴文法(CCG)把 LLM 输出提升为类型化的组合式推导,实现可审计的增量重构。通过 Curry-Howard 对应,该方法扩展到 Solidity、OWL、SQL、Lean 等形式语言,并可分层检查结构失败与幻觉内容。对四个 LLM 生成的 2,922 句子的可行性研究显示提升覆盖率达 97.7%。

正文 · 原文

View PDF HTML (experimental)

Abstract:Large language models (LLMs) generate fluent text by incrementally predicting the next token from a prefix. Critics in the generative tradition argue that such systems lack genuine grammar; replies from the dependency-grammar perspective hold that LLM behavior is well described by local head-dependent structure built word by word. We argue that a sharper observation has been overlooked: the prefix-driven, type-completing dynamics of autoregressive generation align closely with the incremental processing model that Combinatory Categorial Grammar (CCG) was designed to support. We propose a neurosymbolic framework in which LLM outputs are lifted into typed compositional derivations: not claiming that LLMs implement CCG internally, but that their outputs admit a principled, incremental, and auditable CCG reconstruction. Two consequences follow. First, through the Curry-Howard correspondence, the lifting extends to the formal languages LLMs also produce (Solidity, OWL and SQL, Lean), with the type system varying and the architecture held fixed. Second, the lifting supports two layers of checking: a compositional layer that catches structural failures, and a content layer that checks the lifted structure against external knowledge, flagging hallucinated content as early as possible. A current dispute over the Lean formalization of an announced Navier-Stokes proof illustrates the distinction: compilation certifies composition, not correspondence. A feasibility study on 2,922 sentences generated by four LLMs in five registers shows that the lifting covers 97.7% of them, that normal-form and incremental derivations receive identical logical forms wherever both are well-formed, and that most checkable predications are available before the sentence is complete. The account requires of a producer not cognition but a prefix-driven generative profile.
Comments: 27 pages. Under review
Subjects: Artificial Intelligence (cs.AI)
ACM classes: I.2.7; F.4.1; F.4.2; D.2.4
Cite as: arXiv:2607.18961 [cs.AI]
  (or arXiv:2607.18961v3 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2607.18961

arXiv-issued DOI via DataCite

Submission history

From: Remo Pareschi Prof. [view email]
[v1] Tue, 21 Jul 2026 10:52:10 UTC (38 KB)
[v2] Wed, 22 Jul 2026 18:29:15 UTC (38 KB)
[v3] Wed, 2 Dec 2026 18:47:07 UTC (53 KB)

来源:arXiv cs.AI · arxiv.org