Introduction
While large language models (LLMs) appear to "solve" deductive reasoning tasks with near-perfect accuracy, they are surprisingly brittle. ROBUSTLR is a new diagnostic benchmark that reveals these models often rely on superficial patterns rather than true logical understanding, failing significantly when faced with minimal logical edits or equivalent rule paraphrases.
The Problem: Spurious Correlations vs. True Logic
In recent years, models like RoBERTa and T5 have shown an impressive ability to perform deductive reasoning—predicting whether a statement is "True," "False," or "Unknown" based on a set of natural language rules and facts. However, the NLP community has long suspected that these models might be "cheating" by exploiting spurious correlations (statistical shortcuts) in the training data rather than actually following logical rules.
If a model truly understands logic, it should be robust. For example, if it knows that "If Sam is tall, then Sam is kind," it should also understand the contrapositive: "If Sam is not kind, then Sam is not tall." It should also not be confused by the addition of irrelevant information or minor changes in logical operators like "and" (conjunction) or "or" (disjunction). ROBUSTLR systematically tests whether models possess this fundamental logical consistency.
Methodology: Logical Perturbations
The authors evaluate several prominent models—RoBERTa-Large, T5 (Large, 3B, and 11B), and GPT-3—using two primary types of logical perturbations:
- Logical Contrast Sets: These involve minimal, meaningful edits to the input that change the logical outcome. For instance, adding a requirement to a rule (changing $p \implies q$ to $p \land t \implies q$) should change the label from "True" to "Unknown" if the new condition $t$ isn't met.
- Logical Equivalence Sets: These test if a model recognizes the same logic in different forms. The authors use standard logical identities such as the contrapositive ($p \implies q \equiv \neg q \implies \neg p$) and distributive laws.
Experimental Results
The study utilizes several synthetic datasets for training and evaluation, including a newly introduced diagnostic set containing 120,000 instances. The results highlight a significant "robustness gap" between in-domain performance and perturbed scenarios.
The Illusion of Competence
Models that achieve near 1.0 F1 scores on standard benchmarks drop to as low as 0.37 on ROBUSTLR. This suggests they are memorizing patterns rather than learning the underlying "laws" of logic. For instance, RoBERTa-Large scored 1.00 F1 on the standard test set but averaged only 0.47 F1 on the Logical Contrast sets.
Key Findings
- Negation is the Hardest Operator: Across all models, logical negation ($\neg$) was the most difficult to master. Performance generally dropped by about 25% as soon as negation perturbations were introduced to conjunction or disjunction rules.
- Scaling and Human Gap: While moving from T5-Large to T5-11B improved performance, even the largest models remained far behind human-level logical consistency. Human annotators achieved an average F1 of 0.88 on contrast sets, while the best model (T5-11B) only reached 0.61.
- Distractors and Zero-Shot Performance: Models perform significantly better when only relevant facts are present; irrelevant "distractor" facts cause performance to dip. Interestingly, GPT-3 performed poorly in zero-shot settings compared to smaller fine-tuned models, likely due to a mismatch between synthetic reasoning styles and its general-purpose training.
Conclusion and Future Work
The authors acknowledge that their benchmark uses synthetic natural language, which is simpler than real-world language. Future research should focus on developing better inductive biases—architectural changes that force models to respect logical structures—rather than just increasing training data. Integrating symbolic logic solvers with neural networks remains a promising path toward truly robust deductive reasoners.
Summary updated