[Paper Review] Can GPT-3 Perform Statutory Reasoning?
The paper evaluates GPT-3 (text-davinci-003) on statutory reasoning using the SARA dataset, finds improved performance over prior methods but identifies specific errors and reveals GPT-3’s imperfect knowledge of U.S. statutes, plus poor reasoning on synthetic unseen statutes.
Statutory reasoning is the task of reasoning with facts and statutes, which are rules written in natural language by a legislature. It is a basic legal skill. In this paper we explore the capabilities of the most capable GPT-3 model, text-davinci-003, on an established statutory-reasoning dataset called SARA. We consider a variety of approaches, including dynamic few-shot prompting, chain-of-thought prompting, and zero-shot prompting. While we achieve results with GPT-3 that are better than the previous best published results, we also identify several types of clear errors it makes. We investigate why these errors happen. We discover that GPT-3 has imperfect prior knowledge of the actual U.S. statutes on which SARA is based. More importantly, we create simple synthetic statutes, which GPT-3 is guaranteed not to have seen during training. We find GPT-3 performs poorly at answering straightforward questions about these simple synthetic statutes.
Motivation & Objective
- Assess GPT-3’s capability to perform statutory reasoning using a benchmark of U.S. tax-code questions (SARA).
- Investigate how prompting strategies (zero-shot, few-shot, chain-of-thought) influence accuracy.
- Examine GPT-3’s knowledge of the U.S. Code and its ability to reason on synthetic statutes unseen during training.
- Analyze errors to identify whether limitations stem from prior knowledge, prompt design, or inherent model reasoning.
- Provide insights to guide future research in statutory reasoning for large language models.
Proposed method
- Use the SARA dataset comprising nine U.S. tax code sections and 376 cases (Entailment/Contradiction questions).
- Test GPT-3 (text-davinci-003) under multiple prompting regimes: zero-shot, 4-shot dynamic prompting, and 10-shot hand-crafted chain-of-thought prompts.
- Evaluate prompts with and without including statute text in prompts to assess reliance on prior knowledge.
- Apply an Answer Extraction step when GPT-3 does not output a clear Entailment/Contradiction result.
- Incorporate “Let’s think step by step” prompts to test impact on reasoning.
- Compare GPT-3 results to prior BERT-based state-of-the-art baselines and majority baselines.

Experimental results
Research questions
- RQ1How well can GPT-3 perform basic statutory reasoning on a structured dataset of U.S. tax code questions?
- RQ2What is the impact of different prompting strategies on GPT-3’s statutory reasoning accuracy?
- RQ3To what extent does GPT-3 rely on prior knowledge of the U.S. Code versus reasoning from given statutes?
- RQ4How does GPT-3 perform on synthetic statutes it has never seen, and what does this reveal about its reasoning capabilities?
- RQ5Does prompting with step-by-step reasoning improve correctness, and are there systematic errors in its outputs?
Key findings
- GPT-3 shows improved performance over previous approaches on SARA but still exhibits clear errors in statutory reasoning.
- Prompting strategy significantly affects accuracy; zero-shot, 4-shot dynamic, and chain-of-thought prompts yield varied results, with limited systematic gains from step-by-step prompts.
- GPT-3 has imperfect, sometimes incorrect knowledge of the U.S. Code, and can confuse sections or misstate subparagraphs.
- When tested on synthetic statutes unseen during training, GPT-3 performs poorly (around 78% zero-shot, 81% two-shot on simple 2-wide 2-deep statutes, decreasing with increased depth/width).
- Two-shot prompting improves performance over zero-shot but remains far from perfect for more complex statutes (e.g., 3-wide, 3-deep).
- On SARA, GPT-3 achieves up to around 71% aggregate accuracy in the best setups, surpassing prior state-of-the-art but leaving substantial room for improvement.
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.