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

使用上下文敏感的声明式语法扩展合成逻辑推理数据集

Scaling Synthetic Logical Reasoning Datasets with Context-Sensitive Declarative Grammars

Univ. Lille(里尔大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Centrale Lille(里尔中央理工大学);UMR 9189 - CRIStAL(UMR 9189 - CRIStAL(国家信息、自动化与数字科学研究所联合研究单位-里尔科学技术与人工智能研究中心))

Damien Sileo

AI总结:

针对现有逻辑推理数据集生成方法存在的偏向性与扩展性问题,本文提出带上下文敏感规则的通用声明式框架,结合语义约束与精细表述生成一阶逻辑问题,用小模型在FOLIO数据集上取得超GPT-4 12%的SOTA准确率。

摘要:

逻辑推理仍是自然语言处理领域的一大挑战,但可通过训练语言模型在程序生成的问题上模仿定理证明器来提升该能力。以往研究采用领域特定的证明生成算法,这会使推理偏向特定证明轨迹,且限制了可审计性与可扩展性。我们提出了一个更简单、更通用的声明式框架,该框架具备灵活的上下文敏感规则,可衔接多种语言(具体为简化英语与TPTP定理证明语言)。我们通过选择最多32个前提和1个假设来构建一阶逻辑问题。实验证明,生成过程中引入语义约束、对谓词进行精细的英语表述,可增强逻辑推理能力,且不会损害自然英语任务的表现。我们使用规模相对较小的DeBERTa-v3模型,在人工编写的逻辑数据集FOLIO上取得了当前最优准确率,无论是否使用外部求解器,准确率均比GPT-4高出12%。

英文摘要:

Logical reasoning remains a challenge for natural language processing, but it can be improved by training language models to mimic theorem provers on procedurally generated problems. Previous work used domain-specific proof generation algorithms, which biases reasoning toward specific proof traces and limits auditability and extensibility. We present a simpler and more general declarative framework with flexible context-sensitive rules binding multiple languages (specifically, simplified English and the TPTP theorem-proving language). We construct first-order logic problems by selecting up to 32 premises and one hypothesis. We demonstrate that using semantic constraints during generation and careful English verbalization of predicates enhances logical reasoning without hurting natural English tasks. We use relatively small DeBERTa-v3 models to achieve state-of-the-art accuracy on the FOLIO human-authored logic dataset, surpassing GPT-4 in accuracy with or without an external solver by 12%.

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

↑