Can an LLM Reason Like a Lawyer? Benchmarking the ability of LLMs to map the facts of a case to the elements of the applicable legal rule
Organizations: Max Planck Institute for Software Systems 67663 Kaiserslautern · Max Planck Institute for Behavioral Economics D 53113 Bonn
Abstract
Legal judgment prediction has made substantial progress in recent years, yet existing work evaluates whether models reach correct conclusions rather than whether they reason correctly. The core of legal decision-making is the mapping of case facts to the elements of an applicable legal provision, a step that prior benchmarks neglect. We introduce LegalReasoningBench, the first benchmark that tests legal syllogism from the perspective of mapping facts of a case to the elements of doctrine. Our benchmark is built on 375 judgments of the European Court of Human Rights (ECtHR) discussing Art. 11 ECHR on freedom of assembly. We exploit that the court routinely splits the decision in a stage reporting the facts of the case, and an evaluation stage in which it uses these facts selectively for justification. We give the (preprocessed) list of facts to 10 downstream LLMs and evaluate their justifications. The pipeline is validated by three expert legal annotators. Downstream models are reasonably accurate in predicting whether Art. 11 has been violated, and which elements of doctrine are critical, but perform substantially worse at attributing specific facts to doctrinal elements. Essentially they make the right decision, but for the wrong reasons. This weakness is invisible under standard evaluation metrics. Our pipeline can easily be adapted to any legal rule that follows the Civil law tradition, i.e. to legal reasoning that requires the mapping of facts to an abstract legal rule.
Figures & tables
| Conclusions | Avg facts | ||||
| Element | Active | Yes | No | List 1 | List 2 |
| Scope | ( ) | ( ) | |||
| Interference | ( ) | ( ) | |||
| Prescribed by law | ( ) | ( ) | |||
| Legitimate aim | ( ) | ( ) | |||
| Necessity | ( ) | ( ) | |||
| Metric | Expert 1 | Expert 2 | Expert 3 | Overall [95% CI] | AC1 |
|---|---|---|---|---|---|
| Violation accuracy | |||||
| Element conclusion accuracy | |||||
| List 2 precision | |||||
| List 3 precision |
| Violation | Element conclusions | Fact mapping F1 | |||||||||||
| DV | DC | FR | DC | FR | |||||||||
| Model | m F1 | Acc | m F1 | Acc | m F1 | Acc | m F1 | Acc | m F1 | Acc | List 1 | List 2 | List 3 |
| Baselines | |||||||||||||
| Uniform | |||||||||||||
| Calibrated | |||||||||||||
| Closed weights | |||||||||||||
| Macro-F1 | Fact mapping F1 | ||||
| Model | Viol. | Elem. | L1 | L2 | L3 |
| Closed weights | |||||
| Claude Sonnet 4.6 | |||||
| GPT-5.4 | |||||
| Gemini 3 Flash | |||||
| Open weights | |||||
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Criterion | Satisfied cases |
|---|---|
| Freedom of assembly | 669 |
| Uniform conclusions | 585 |
| Undisputed facts | 726 |
| Genuine merits discussion | 528 |
| All criteria | 385 |
| Stage | N | Mean | Median | Std | Min | Max | Total (min) |
|---|---|---|---|---|---|---|---|
| Sample selection | 1161 | 3.97 | 3.93 | 0.89 | 2.02 | 11.58 | 76.8 |
| Pre-processing | 375 | 102.40 | 38.05 | 147.06 | 10.47 | 1617.25 | 640.0 |
| Atomic fact division | 375 | 54.96 | 16.09 | 77.85 | 5.11 | 579.38 | 343.5 |
| Conclusion isolation | 375 | 25.24 | 22.80 | 8.56 | 14.85 | 63.34 | 157.7 |
| Fact grounding | 375 | 22.14 | 18.67 | 10.47 | 10.20 | 87.51 | 138.4 |
| Fact mapping | 375 | 42.21 | 34.12 | 24.22 | 17.63 | 194.23 | 263.8 |
| Validation scores (%) | Inter-annotator agreement | |||||||
|---|---|---|---|---|---|---|---|---|
| Metric | Expert 1 | Expert 2 | Expert 3 | Overall | Raw (%) | Fleiss’ | Krippendorff’s | Gwet’s AC1 |
| Violation accuracy | [-0.4ex] | [-0.4ex] | [-0.4ex] | [-0.4ex] | ||||
| Element-conclusion accuracy | [-0.4ex] | [-0.4ex] | [-0.4ex] | [-0.4ex] | ||||
| List 2 precision (lenient) | [-0.4ex] | [-0.4ex] | [-0.4ex] | [-0.4ex] | ||||
| List 2 precision (strict) | [-0.4ex] | [-0.4ex] | [-0.4ex] | [-0.4ex] | ||||
| List 3 precision (lenient) | [-0.4ex] | [-0.4ex] | [-0.4ex] | [-0.4ex] | ||||
| Expert 1 | Expert 2 | Expert 3 | Overall | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Element | Acc | Len. | Str. | Acc | Len. | Str. | Acc | Len. | Str. | Acc | Len. | Str. |
| Scope | ||||||||||||
| Interference | ||||||||||||
| Prescribed by law | ||||||||||||
| Legitimate aim | ||||||||||||
| Necessity | ||||||||||||
| DV | DC | FR | ||||||||||||||||
| Model | TP | TN | FP | FN | Acc | m F1 | TP | TN | FP | FN | Acc | m F1 | TP | TN | FP | FN | Acc | m F1 |
| Closed weights | ||||||||||||||||||
| Claude Sonnet 4.6 | ||||||||||||||||||
| GPT-5.4 | ||||||||||||||||||
| Gemini 3 Flash | ||||||||||||||||||
| Open weights | ||||||||||||||||||
| List 1 ( relevant ) | List 2 ( essential ) | List 3 ( decisive ) | |||||||
| Model | P | R | F1 | P | R | F1 | P | R | F1 |
| Closed weights | |||||||||
| Claude | |||||||||
| GPT-5.4 | |||||||||
| Gemini | |||||||||
| Open weights | |||||||||
| (a) Scope (gold: yes, no) | (b) Interference (gold: yes, no) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | TP | TN | FP | FN | Acc | m F1 | Model | TP | TN | FP | FN | Acc | m F1 |
| Claude | Claude | ||||||||||||
| GPT-5.4 | GPT-5.4 | ||||||||||||
| Gemini | Gemini | ||||||||||||
| OSS 20B | OSS 20B | ||||||||||||
| OSS 120B | OSS 120B | ||||||||||||
| (a) Scope (gold: yes, no) | (b) Interference (gold: yes, no) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | TP | TN | FP | FN | Acc | m F1 | Model | TP | TN | FP | FN | Acc | m F1 |
| Claude | Claude | ||||||||||||
| GPT-5.4 | GPT-5.4 | ||||||||||||
| Gemini | Gemini | ||||||||||||
| OSS 20B | OSS 20B | ||||||||||||
| OSS 120B | OSS 120B | ||||||||||||
| (a) Scope | (b) Interference | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| List 1 | List 2 | List 1 | List 2 | ||||||||||
| Model | P | R | F1 | P | R | F1 | Model | P | R | F1 | P | R | F1 |
| Claude | Claude | ||||||||||||
| GPT-5.4 | GPT-5.4 | ||||||||||||
| Gemini | Gemini | ||||||||||||
| OSS 20B | OSS 20B | ||||||||||||
| Minimal | Partial | Full | |||||||||||||
| Model | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 |
| Closed weights | |||||||||||||||
| Claude Sonnet 4.6 | |||||||||||||||
| GPT-5.4 | |||||||||||||||
| Gemini 3 Flash | |||||||||||||||
| Open weights | |||||||||||||||
| Full (FR) | Staged | |||||||||
| Model | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 |
| Closed weights | ||||||||||
| Claude Sonnet 4.6 | ||||||||||
| GPT-5.4 | ||||||||||
| Gemini 3 Flash | ||||||||||
| Open weights | ||||||||||
| Thinking off | Thinking on | |||||||||
| Model | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 |
| Closed weights | ||||||||||
| Claude Sonnet 4.6 | ||||||||||
| GPT-5.4 | ||||||||||
| Gemini 3 Flash | ||||||||||
| Open weights | ||||||||||
| Zero-shot | Five-shot | |||||||||
| Model | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 |
| Closed weights | ||||||||||
| Claude Sonnet 4.6 | ||||||||||
| GPT-5.4 | ||||||||||
| Gemini 3 Flash | ||||||||||
| Open weights | ||||||||||
| Main benchmark (375 cases) | Post-cutoff (7 cases) | |||||||||
| Model | V | E | L1 | L2 | L3 | V | E | L1 | L2 | L3 |
| Gemini 3 Flash | 63.5 | 51.8 | 51.2 | 47.2 | 57.6 | 100.0 | 66.7 | 33.5 | 32.7 | 27.2 |
| GPT OSS 20B | 31.3 | 39.6 | 27.2 | 26.2 | 46.9 | 53.3 | 54.9 | 19.6 | 21.4 | 12.1 |
| GPT OSS 120B | 39.3 | 43.0 | 32.0 | 30.3 | 50.1 | 53.3 | 52.1 | 22.5 | 21.0 | 17.9 |
| Gemma 4 4B | 32.9 | 43.9 | 39.7 | 39.9 | 62.8 | 65.0 | 55.4 | 24.3 | 23.9 | 20.0 |
| Gemma 4 31B | 59.2 | 44.8 | 51.3 | 49.7 | 67.1 | 78.8 | 61.8 | 32.8 | 34.1 | 25.4 |
| AC1 | Jaccard | |||
|---|---|---|---|---|
| Violation | – | |||
| Element conclusion | – | |||
| List 1 | ||||
| List 2 | ||||
| List 3 |
| Element conclusion | List 1 | List 2 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Element | AC1 | AC1 | Jaccard | AC1 | Jaccard | ||||||
| Scope | – | – | |||||||||
| Interference | – | – | |||||||||
| Prescribed by law | |||||||||||
| Legitimate aim | |||||||||||
| Necessity | |||||||||||
| Macro-F1 | Fact mapping F1 | ||||||||||||
| Model | Viol. | Elem. | L1 | L2 | L3 | ||||||||
| Closed weights | |||||||||||||
| Claude Sonnet 4.6 | {\color[rgb]{0,0.6,0}\bm{\uparrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | |||||||||
| GPT-5.4 | {\color[rgb]{0,0.6,0}\bm{\uparrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | |||||||||
| Gemini 3 Flash | {\color[rgb]{0,0.6,0}\bm{\uparrow}} | {\color[rgb]{0,0.6,0}\bm{\uparrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | {\color[rgb]{0.7,0,0}\bm{\downarrow}} | |||||||||
| Open weights | |||||||||||||
| Element | Article 11: assembly | Article 10: expression |
|---|---|---|
| Scope | Whether an assembly occurred, the applicant participated or attempted to participate, and the assembly was peaceful. | Whether the case concerns expression, access to information or media activity, and the applicant was involved. |
| Interference | Whether a governmental act or omission interfered with freedom of assembly. | Whether a governmental act or omission interfered with freedom of expression, and whether the intervention was a formality, condition, restriction or penalty. |
| Prescribed by law | Foreseeability, accessibility and safeguards against abuse. | Same questions. |
| Legitimate aim | National security, public safety, prevention of disorder or crime, protection of health or morals, and protection of others’ rights and freedoms. | Shared aims, with additional categories for territorial integrity, others’ reputation, preventing disclosure of confidential information, and maintaining judicial authority and impartiality. |
| Necessity | Whether the government adequately balanced the intensity of the intervention against the weight of the legitimate aim. | Same question. |
| Positive obligation | Whether the Court identified a positive obligation and found that the government violated it. | Same questions. |
| Conclusions | Avg facts | ||||
| Element | Active | Yes | No | List 1 | List 2 |
| Scope | ( ) | ( ) | |||
| Interference | ( ) | ( ) | |||
| Prescribed by law | ( ) | ( ) | |||
| Legitimate aim | ( ) | ( ) | |||
| Necessity | ( ) | ( ) | |||