RuleBert:将软规则教授给预训练的语言模型
RuleBert: Teaching Soft Rules to Pre-trained Language Models
摘要:
虽然预训练的语言模型(PLM)是解决许多自然语言处理问题的首选解决方案,但它们在捕获和使用常识知识方面的能力仍然非常有限。事实上,即使信息以近似(软)逻辑规则的形式可用,也不清楚如何将其传输到PLM以提高其演绎推理任务的性能。在这里,我们的目标是通过教授PLM如何使用软Horn规则进行推理来弥合这一差距。我们引入了一个分类任务,在给定的事实和软规则,PLM应该返回一个预测与给定的假设的概率。我们发布了这个任务的第一个数据集,我们提出了一个修改后的损失函数,使PLM能够学习如何预测任务的精确概率。我们的评估结果表明,得到的微调模型实现了非常高的性能,即使在训练时看不到的逻辑规则上也是如此。此外,我们证明了规则表达的逻辑概念被转移到微调模型,在外部数据集上产生最先进的结果。
英文摘要:
While pre-trained language models (PLMs) are the go-to solution to tackle many natural language processing problems, they are still very limited in their ability to capture and to use common-sense knowledge. In fact, even if information is available in the form of approximate (soft) logical rules, it is not clear how to transfer it to a PLM in order to improve its performance for deductive reasoning tasks. Here, we aim to bridge this gap by teaching PLMs how to reason with soft Horn rules. We introduce a classification task where, given facts and soft rules, the PLM should return a prediction with a probability for a given hypothesis. We release the first dataset for this task, and we propose a revised loss function that enables the PLM to learn how to predict precise probabilities for the task. Our evaluation results show that the resulting fine-tuned models achieve very high performance, even on logical rules that were unseen at training. Moreover, we demonstrate that logical notions expressed by the rules are transferred to the fine-tuned model, yielding state-of-the-art results on external datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。