[Paper Review] A Dataset for Statutory Reasoning in Tax Law Entailment and Question Answering
This paper introduces the StAtutory Reasoning Assessment (SARA) dataset, a collection of US tax law statutes and natural language questions requiring precise reasoning based on prescriptive rules. Despite fine-tuning state-of-the-art NLP models for legal text, they perform poorly compared to a hand-constructed Prolog-based symbolic system that achieves 100% accuracy, highlighting the challenge of reasoning with legally binding, natural language rules.
Legislation can be viewed as a body of prescriptive rules expressed in natural language. The application of legislation to facts of a case we refer to as statutory reasoning, where those facts are also expressed in natural language. Computational statutory reasoning is distinct from most existing work in machine reading, in that much of the information needed for deciding a case is declared exactly once (a law), while the information needed in much of machine reading tends to be learned through distributional language statistics. To investigate the performance of natural language understanding approaches on statutory reasoning, we introduce a dataset, together with a legal-domain text corpus. Straightforward application of machine reading models exhibits low out-of-the-box performance on our questions, whether or not they have been fine-tuned to the legal domain. We contrast this with a hand-constructed Prolog-based system, designed to fully solve the task. These experiments support a discussion of the challenges facing statutory reasoning moving forward, which we argue is an interesting real-world task that can motivate the development of models able to utilize prescriptive rules specified in natural language.
Motivation & Objective
- To address the lack of large-scale, systematic resources for legal natural language processing, especially for statutory reasoning.
- To investigate whether modern NLP models can effectively reason with prescriptive legal rules expressed in natural language.
- To provide a benchmark dataset that captures the complexity of real-world statutory interpretation in tax law.
- To contrast neural NLP models with symbolic reasoning systems to expose limitations in current approaches.
- To motivate future research in semantic parsing and data-efficient learning for legal NLP.
Proposed method
- The dataset, SARA, is constructed from sections of the US Internal Revenue Code, focusing on rules that define legal terms and conditions.
- Each example consists of a statutory rule (in natural language) and a factual case description, with a question requiring inference based on the rule.
- A Prolog-based symbolic system is hand-coded to represent each statutory rule as logical predicates and perform exact inference on the cases.
- Neural NLP models are fine-tuned on legal-domain text and evaluated on the SARA dataset for entailment and question-answering tasks.
- The performance of both neural and symbolic systems is compared on the same test cases to isolate reasoning capability.
- The dataset is released publicly to support future research in legal NLP and symbolic reasoning.
Experimental results
Research questions
- RQ1Can state-of-the-art neural machine reading models generalize to statutory reasoning tasks in tax law without significant fine-tuning?
- RQ2How does performance on statutory reasoning tasks compare between neural NLP models and symbolic Prolog-based systems?
- RQ3To what extent do current NLP models fail to capture the logical structure of prescriptive legal language?
- RQ4What are the key challenges in building data-efficient, accurate systems for legal reasoning based on natural language statutes?
- RQ5Is semantic parsing necessary to achieve high performance in statutory reasoning, or can end-to-end neural models be made more effective?
Key findings
- Neural NLP models, even when fine-tuned on legal-domain text, exhibit low out-of-the-box performance on the SARA dataset, indicating significant limitations in reasoning with prescriptive legal rules.
- A hand-constructed Prolog-based symbolic system achieves 100% accuracy on all test cases, demonstrating that symbolic reasoning can fully solve the task when rules are correctly encoded.
- The performance gap between neural models and symbolic systems suggests that current NLP approaches are not yet capable of robustly capturing the logical structure of statutory language.
- The dataset reveals that legal text, despite being written in natural language, contains highly structured, rule-based logic that is difficult for distributional NLP models to interpret.
- The scarcity and cost of high-quality legal training data limit the scalability of data-hungry neural models in this domain.
- The results suggest that future progress may depend on improved semantic parsing or more data-efficient learning mechanisms for legal reasoning.
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.