JustLogic: A Comprehensive Benchmark for Evaluating Deductive Reasoning in Large Language Models
Organizations: Raffles Institution, Singapore · College of Computing & Data Science, Nanyang Technological University, Singapore
Abstract
Logical reasoning is a critical component of Large Language Models (LLMs), and substantial research efforts in recent years have aimed to enhance their deductive reasoning abilities. However, existing deductive reasoning benchmarks suffer from significant constraints that restrict their utility, i.e., the lack of task complexity, the presence of prior knowledge as a confounder, and superficial error analysis. To address these deficiencies, we introduce JustLogic, a synthetically generated benchmark for evaluating deduction in propositional logic. Within this fragment, JustLogic is (i) complex, capable of generating a diverse range of linguistic patterns, vocabulary, and argument structures, (ii) prior knowledge independent, substantially reducing the advantage of models possessing prior knowledge so that questions are answerable from the given premises alone, and (iii) capable of in-depth error analysis on the heterogeneous effects of proof size and argument form on model accuracy. Our experimental results on JustLogic reveal that (i) several state-of-the-art (SOTA) reasoning LLMs score above the human average on JustLogic, although only DeepSeek R1's margin is significant on the matched items after correction for multiple comparisons, and (ii) the evaluated non-reasoning models score below the human average. Given the small human study (18 participants, seven questions each), these comparisons are indicative. All code and data are available at https://github.com/michaelchen-lab/JustLogic
Figures & tables
| High NL Complexity | High Arg. Complexity | Prior Knowledge Independence | In-Depth Error Analysis | Logical Language | Task Type | |
| CLUTRR | ✗ | ✓ | ✓ | ✓ | Relational (family-relation graph) | Relation prediction |
| ProofWriter | ✗ | ✓ | ✓ | Propositional rules | Entailment, closed-world | |
| ProntoQA-OOD | ✗ | ✓ | ✓ | Propositional / simple quantification | Proof generation | |
| LogiQA 2.0 | ✓ | ✗ | ✗ | Informal, no formal system | Multiple choice | |
| Formal Notation | Sample Expression | No. of Expr. | |
| Basic | The claim that holds true. | 16 | |
| Negation | The claim that does not reflect reality. | 15 | |
| Conditional | Once we know that , we also know that . | 11 | |
| Disjunction | It is a fact that either or . | 8 | |
| Natural Language | Argument | |||
| Reading Difficulty | Vocab. (Domains) | Structural Scale | Arg. Structures | |
| CLUTRR | 6.67 | 1396 (1) | 1 - | |
| ProofWriter | 0.96 | 101 (×) | 1 - | |
| LogiQA 2.0 | 17.10 | 10004 (>10) | × | × |
| Accuracy (%) | Random (%) | ||
| CLUTRR | 2.0 | 8.3 | 6.3 |
| ProofWriter | 3.7 | 37.0 | 33.3 |
| LogiQA 2.0 | 27.1 | 52.1 | 25.0 |
| FOLIO | 6.7 | 40.0 | 33.3 |
| 0-shot | Few-shot | CoT | CoT 95% CI | |
| Random Probability | 33.3 | 33.3 | 33.3 | - |
| Llama3-8B-Instruct | 49.8 | 41.8 | 57.8 | [54.8, 60.8] |
| Llama3-70B-Instruct | 53.1 | 57.8 | 64.6 | [61.6, 67.4] |
| GPT-4o-mini | 53.0 | 54.7 | 51.8 | [48.8, 54.8] |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Formal Notation | Example | |
| Modus Ponens | If the sky is blue, then the dog is happy. The sky is blue. Therefore, the dog is happy. | |
| Modus Tollens | If the sky is blue, then the dog is happy. The dog is not happy. Therefore, the sky is not blue. | |
| Hypothetical Syllogism | If the sky is blue, then the dog is happy. If the dog is happy, the owner is happy. Therefore, if the sky is blue, the owner is happy. | |
| Disjunctive Syllogism | Either the dog is barking or the dog is asleep. The dog is not barking. Therefore, the dog is asleep. | |
| Proof size | Longest chain range | Longest chain mean | Chain proof size (%) |
| 1 | 1 | 1.00 | 0.0 |
| 2 | 2 | 2.00 | 0.0 |
| 3 | 2–3 | 2.51 | 48.7 |
| 4 | 2–4 | 3.14 | 78.3 |
| Benchmark | Sample Text |
| CLUTRR ( Sinha et al., 2019 ) | Lorraine and her brother Kevin went to see a movie. Clarence took his granddaughter Lorraine to the movies and they enjoyed themselves. |
| ProofWriter ( Tafjord et al., 2020 ) | The bald eagle is not rough. The bear does not need the bald eagle. The dog needs the bear. If someone is rough then they chase the bald eagle. If someone needs the bear then they are not blue… |
| ProntoQA-OOD ( Saparov et al., 2024 ) | Lempuses are bitter. Every lempus is a lorpus. Brimpuses are vumpuses. Tumpuses are impuses. Each impus is not hot. Every numpus is a sterpus. Each shumpus is brown. Sterpuses are fast. Every vumpus is not small… |
| SimpleLogic Zhang et al. (2022) | If messy and hypocritical and lonely, then shiny. If tame, then friendly. If plain and shiny and homely, then nervous. If tender, then hypocritical. If dull and impatient and plain, then tame. If spotless, then perfect. If elegant and tender, then homely… |
| Accuracy (%) | Random (%) | ||
| CLUTRR | 5.4 | 11.7 | 6.3 |
| ProofWriter | 8.6 | 24.7 | 33.3 |
| LogiQA 2.0 | 23.3 | 48.3 | 25.0 |
| FOLIO | 10.0 | 43.3 | 33.3 |
| GPT-4 | Llama3-70B-Instruct | |
| CLUTRR | 0.7 | 9.7 |
| ProofWriter | 2.7 | 4.6 |
| LogiQA 2.0 | 25.4 | 25.0 |
| FOLIO | 9.6 | 8.1 |
| 0-shot | Few-shot | CoT | SC-CoT | ToT | CoT (w/o prop. logic) | |
| Llama3-8B-Instruct | 49.8 | 41.8 | 57.8 | 54.6 | 38.6 | 54.0 |
| Llama3-70B-Instruct | 53.1 | 57.8 | 64.6 | 58.6 | 60.6 | 58.3 |
| GPT-4o-mini | 53.0 | 54.7 | 51.8 | 50.3 | 48.6 | 50.0 |
| GPT-4o | 53.8 | 58.3 | 65.6 | 67.1 | 71.4 | 67.4 |
| Overall | True | False | Uncertain | Predicted Uncertain (%) | |
| GPT-5.5 | 88.8 | 86.9 | 83.2 | 95.6 | 43.0 |
| Gemini 2.5 Flash | 82.0 | 76.5 | 74.9 | 93.7 | 45.4 |
| DeepSeek R1 | 80.9 | 78.6 | 69.3 | 95.5 | 43.4 |
| OpenAI o1 | 72.9 | 63.0 | 63.6 | 95.2 | 50.0 |
| Accuracy | 95% CI | |
| GPT-5.5 | 87.1 | [77.3, 93.1] |
| DeepSeek R1 | 85.7 | [75.7, 92.1] |
| Gemini 2.5 Flash | 81.4 | [70.8, 88.8] |
| OpenAI o1 | 72.9 | [61.5, 81.9] |
| JustLogic (proof size) | LogiQA 2.0 | FOLIO | ||||
| 1–3 | 4–5 | 6–7 | 8–11 | |||
| GPT-4o | 77.3 | 63.3 | 57.3 | 53.0 | 64.5 | 76.3 |
| DeepSeek R1 | 90.0 | 83.3 | 68.0 | 65.0 | 87.6 | 86.2 |
| Baseline | Length | Conjunction | Length effect | Operator effect | |
| Gemini 2.5 Flash | 88.9 | 89.1 | 87.1 | ||
| DeepSeek R1 | 87.1 | 85.7 | 86.6 | ||
| GPT-4o | 71.1 | 70.9 | 70.9 | ||
| Llama3-70B | 66.0 | 64.6 | 65.1 | ||
| Overall | True | False | Uncertain | |
| Query-only TF-IDF + logistic regression | 63.2 | 57.3 | 65.8 | 66.5 |
| TF-IDF (paragraph + query) | 38.4 | 41.3 | 31.0 | 42.5 |
| Bag-of-words (paragraph + query) | 37.0 | 37.5 | 31.9 | 41.4 |
| Lexical-overlap rule, surface text only | 71.8 | 64.2 | 64.9 | 85.3 |
| Table 5 | True/False only | Where the rule is wrong | ||
| GPT-5.5 | 88.8 | 85.1 | 83.2 | |
| Gemini 2.5 Flash | 82.0 | 75.7 | 73.8 | |
| DeepSeek R1 | 80.9 | 74.2 | 66.2 | |
| OpenAI o1 | 72.9 | 63.3 | 68.4 | |