[Paper Review] Chain of Logic: Rule-Based Reasoning with Large Language Models
This paper introduces Chain of Logic, a prompting method that enhances large language models' rule-based reasoning by decomposing compositional legal rules into independent logical elements, reasoning through them step-by-step, and recomposing the results. It outperforms chain-of-thought and self-ask across eight rule-based tasks on LegalBench, demonstrating superior accuracy and interpretability in reasoning with complex logical expressions.
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.
Motivation & Objective
- To improve the ability of large language models to perform rule-based reasoning on complex, compositional legal rules.
- To address the challenge of reasoning with logical expressions formed by multiple rule elements connected by 'and' and 'or' operators.
- To reduce reliance on rule-specific few-shot examples by enabling generalization from a single in-context demonstration of a different rule.
- To create a more interpretable and structured reasoning path inspired by the IRAC legal framework (Issue, Rule, Application, Conclusion).
- To enhance the scalability and efficiency of legal reasoning in LLMs by minimizing hallucination and improving accuracy without fine-tuning.
Proposed method
- The method decomposes a compositional rule into its individual logical elements, treating each as an independent reasoning subtask.
- Each rule element is evaluated in isolation using a sequence of logical inferences, producing a 'sub-answer' of true or false.
- The model then explicitly recomposes these sub-answers using the logical structure (e.g., 'and', 'or') of the original rule to compute the final outcome.
- The approach is inspired by the IRAC framework, particularly the 'application' phase where rule elements are addressed sequentially before synthesis.
- A single in-context demonstration of the Chain of Logic method is used to guide the model to generalize to new rules and fact patterns.
- The method is applied across multiple tasks using both open-source and commercial LLMs, with evaluation on the LegalBench benchmark.
Experimental results
Research questions
- RQ1Can a prompting method improve LLMs' performance on rule-based reasoning tasks involving compositional logical expressions?
- RQ2Does Chain of Logic generalize better than existing prompting methods like chain-of-thought and self-ask when given only a single example of a different rule?
- RQ3Can decomposition and recomposition of rule elements lead to more accurate and interpretable reasoning paths in legal reasoning tasks?
- RQ4How does Chain of Logic perform across diverse rule-based reasoning tasks with varying rule complexity and structure?
- RQ5To what extent can this method reduce hallucination and improve reasoning fidelity in legal LLM applications?
Key findings
- Chain of Logic consistently outperforms chain-of-thought and self-ask across eight rule-based reasoning tasks from the LegalBench benchmark.
- The method achieves higher accuracy on compositional rules involving complex logical expressions formed by 'and' and 'or' operators.
- Even with only a single in-context example of a different rule, the model generalizes effectively to new rules and fact patterns.
- The approach produces a coherent, interpretable reasoning path that mirrors human legal reasoning, enhancing transparency.
- The method reduces model hallucination by structuring reasoning into discrete, verifiable logical steps.
- The performance gain is observed across both open-source and commercial LLMs, indicating broad applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.