First-order logic (FOL) can represent the logical entailment semantics of natural language (NL) sentences, but determining natural language entailment using FOL remains a challenge. To address this, we propose the Entailment-Preserving FOL representations (EPF) task and introduce reference-free evaluation metrics for EPF, the Entailment-Preserving Rate (EPR) family. In EPF, one should generate FOL representations from multi-premise natural language entailment data (e.g. EntailmentBank) so that the automatic prover's result preserves the entailment labels. Experiments show that existing methods for NL-to-FOL translation struggle in EPF. To this extent, we propose a training method specialized for the task, iterative learning-to-rank, which directly optimizes the model's EPR score through a novel scoring function and a learning-to-rank objective. Our method achieves a 1.8-2.7% improvement in EPR and a 17.4-20.6% increase in EPR@16 compared to diverse baselines in three datasets. Further analyses reveal that iterative learning-to-rank effectively suppresses the arbitrariness of FOL representation by reducing the diversity of predicate signatures, and maintains strong performance across diverse inference types and out-of-domain data.
Textual Entailment with Structured Attentions and Composition
Oregon State University(俄勒冈州立大学)
深度学习技术在文本蕴涵任务中越来越受欢迎,克服了传统离散模型的脆弱性,具有硬对齐和逻辑。特别是,最近提出的注意力模型(Rocktäschel等人,2015; Wang and Jiang,2015)通过计算前提和假设句子之间的软词对齐来实现最先进的准确性。然而,仍然存在一个主要的限制:这条工作路线完全忽略了语法和递归,这在许多传统的工作中是有帮助的。我们表明,将注意力模型扩展到前提和假设之间的树节点是有益的。更重要的是,这种子树层次的注意揭示了蕴涵关系的信息。我们研究了这种子树级蕴涵关系的递归组合,它可以被视为自然逻辑框架的软版本(MacCartney和Manning,2009)。实验结果表明,本文提出的结构化注意和蕴涵组合模型能够自自底向上的正确识别和推理蕴涵关系,在准确率上有显著提高。
Enhancing Transformers for Generalizable First-Order Logical Entailment
Department of Computer Science and Engineering, HKUST, Hong Kong SAR, China(香港科技大学计算机科学与工程系);Department of Computer Science and Engineering, Beihang University, Beijing, China(北航计算机科学与工程系);Department of Mathematical Sciences, Tsinghua University, Beijing, China(清华大学数学科学系)
Distributional Sentence Entailment Using Density Matrices
Queen Mary University of London(伦敦玛丽女王大学);University of Oxford(牛津大学)
Coecke et al.(2010)的范畴组合分布模型提出了一种将形式的类型逻辑模型的语法组合与基于语料库的分布语义的经验词表示相结合的方法。本文通过扩展模型来捕获蕴涵关系,从而为该项目做出了贡献。这是通过将词的表示从意义空间中的点扩展到密度算子来实现的,密度算子是空间子空间上的概率分布。定义了相似性的对称度量和蕴涵的非对称度量,其中词汇蕴涵使用冯·诺依曼熵(Kullback-Leibler发散的量子变体)来测量。词汇蕴涵与词表征的组合图相结合,提供了一种在句子层次上获取蕴涵关系的方法。真值理论和语料库为基础的例子。
Flexible Generation of Natural Language Deductions
The University of Texas at Austin(德克萨斯大学奥斯汀分校)
一个可解释的开放领域推理系统需要以透明的形式表达其推理过程。自然语言是一种有吸引力的表示方法--它既具有高度的表达性,又易于人类理解。然而,以逻辑上一致的方式操纵自然语言语句是困难的:模型必须在保持精确的同时应对含义表达方式的变化。在本文中,我们描述了ParaPattern,一种用于构建模型的方法,该模型可以从不同的自然语言输入中生成演绎推理,而无需直接的人类监督。我们训练基于BART的模型(Lewis等人,2020)以生成将特定逻辑运算应用于一个或多个前提语句的结果。至关重要的是,我们开发了一个很大程度上自动化的管道,用于从维基百科构建合适的训练样本。我们使用来自QASC的域外句子成分来评估我们的模型(Khot et al.,2020)和EntailmentBank(Dalvi et al.,2021)数据集以及有针对性的扰动集。我们的研究结果表明,我们的模型比基线系统更准确和灵活。ParaPattern在不使用任何域内训练数据的情况下,对来自EntailmentBank的“替换”操作的示例实现了85%的有效性,与为EntailmentBank微调的模型的性能相匹配。我们的方法的完整源代码是公开的。