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

基于定理证明的神经语义解析评估

A Theorem-Proving-Based Evaluation of Neural Semantic Parsing

Kyoto University(京都大学);Keio University(庆应大学);Kikagaku Inc.(麒麟株式会社)

Hayate Funakura, Hyunsoo Kim, Koji Mineshima

AI总结:

本文指出 Smatch 等图匹配指标仅捕捉表面重叠而非逻辑等价,通过结合自动定理证明重新评估神经语义解析器,发现图匹配表现好的模型常无法生成逻辑等价公式,归一化能提升逻辑充分性,凸显了逻辑敏感评估的必要性。

摘要:

诸如 Smatch 等图匹配指标是评估神经语义解析器的事实标准,但它们仅捕捉表面重叠而非逻辑等价。我们通过将图匹配与自动定理证明相结合来重新评估评估方法。我们比较了构建解析器的两种方法:监督微调(T5-Small/Base)和少样本上下文学习(GPT-4o/4.1/5),并在归一化与未归一化目标下进行测试。我们使用图匹配、借助一阶逻辑定理证明器对源公式与目标公式间的双向蕴含关系判定,以及格式规范性来评估输出。在各种设置下,我们发现图匹配表现良好的模型往往无法生成逻辑等价的公式。归一化减少了偶然的目标变异性,提升了格式规范性,并增强了逻辑充分性。错误分析表明,随着公式复杂度增加以及涉及并列结构、介词短语和被动语态时,性能会下降;主要失败涉及变量绑定与索引,以及谓词命名。这些发现凸显了基于图的指标在面向推理应用中的局限性,并促使人们采用逻辑敏感的评估与训练目标,以及简化、归一化的目标表示。我们实验的所有代码和数据均公开可用。

英文摘要:

Graph-matching metrics such as Smatch are the de facto standard for evaluating neural semantic parsers, yet they capture surface overlap rather than logical equivalence. We reassess evaluation by pairing graph-matching with automated theorem proving. We compare two approaches to building parsers: supervised fine-tuning (T5-Small/Base) and few-shot in-context learning (GPT-4o/4.1/5), under normalized and unnormalized targets. We evaluate outputs using graph-matching, bidirectional entailment between source and target formulas with a first-order logic theorem prover, and well-formedness. Across settings, we find that models performing well on graph-matching often fail to produce logically equivalent formulas. Normalization reduces incidental target variability, improves well-formedness, and strengthens logical adequacy. Error analysis shows performance degrades with increasing formula complexity and with coordination, prepositional phrases, and passive voice; the dominant failures involve variable binding and indexing, and predicate naming. These findings highlight limits of graph-based metrics for reasoning-oriented applications and motivate logic-sensitive evaluation and training objectives together with simplified, normalized target representations. All code and data for our experiments are publicly available.

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

↑