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

逻辑链:基于大语言模型的规则推理

Chain of Logic: Rule-Based Reasoning with Large Language Models

Northwestern University(西北大学);Adobe Research(奥多比研究院);Pattern Data(帕特恩数据公司)

Sergio Servantez, Joe Barrow, Kristian Hammond, Rajiv Jain

AI总结:

本文提出 Chain of Logic 提示方法,通过分解与重组策略引导大语言模型进行组合规则推理,在 LegalBench 的八项任务上优于思维链和 Self-Ask 等方法。

摘要:

规则推理是法律推理的一种基本类型,它使我们能够通过将规则准确地应用于一组事实来得出结论。我们探索将因果语言模型用作规则推理器,特别关注组合规则——由多个元素组成并形成复杂逻辑表达式的规则。关于组合规则的推理具有挑战性,因为它需要多个推理步骤,并关注元素之间的逻辑关系。我们引入了一种新的提示方法,称为 Chain of Logic(逻辑链),它通过分解(将各元素作为独立的逻辑线程来求解)和重组(重新组合这些子答案以解析底层逻辑表达式)来引导规则推理。该方法受到律师使用的 IRAC(Issue, Rule, Application, Conclusion,即争点、规则、应用、结论)框架的启发,这是一种顺序推理方法。我们在来自 LegalBench 基准的八个规则推理任务上评估了 Chain of Logic,这些任务涉及三种不同的组合规则,并证明在使用开源和商业语言模型时,它一致地优于其他提示方法,包括 Chain of Thought(思维链)和 Self-Ask(自问)。

英文摘要:

Rule-based reasoning, a fundamental type of legal reasoning, enables us to draw conclusions by accurately applying a rule to a set of facts. We explore causal language models as rule-based reasoners, specifically with respect to compositional rules - rules consisting of multiple elements which form a complex logical expression. Reasoning about compositional rules is challenging because it requires multiple reasoning steps, and attending to the logical relationships between elements. We introduce a new prompting method, Chain of Logic, which elicits rule-based reasoning through decomposition (solving elements as independent threads of logic), and recomposition (recombining these sub-answers to resolve the underlying logical expression). This method was inspired by the IRAC (Issue, Rule, Application, Conclusion) framework, a sequential reasoning approach used by lawyers. We evaluate chain of logic across eight rule-based reasoning tasks involving three distinct compositional rules from the LegalBench benchmark and demonstrate it consistently outperforms other prompting methods, including chain of thought and self-ask, using open-source and commercial language models.

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

↑