Chain of Logic: Rule-Based Reasoning with Large Language Models
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- BLT: Can Large Language Models Handle Basic Legal Text?2024
- Large Legal Fictions: Profiling Legal Hallucinations in Large Language ModelsJournal of Legal Analysis, 2024
- Computable Contracts by Extracting Obligation Logic Graphs2023
- Measuring and Narrowing the Compositionality Gap in Language Models2023
- Reframing Instructional Prompts to GPTk’s Language2022
- Text Modular Networks: Learning to Decompose Tasks in the Language of Existing Models2021
- Answering Complex Open-domain Questions Through Iterative Query Generation2019
- Interpretation of Natural Language Rules in Conversational Machine Reading2018
- The Web as a Knowledge-Base for Answering Complex Questions2018
- Program Induction by Rationale Generation: Learning to Solve and Explain Algebraic Word Problems2017