RobustLR: A Diagnostic Benchmark for Evaluating Logical Robustness of Deductive Reasoners

Soumya Sanyal, Zeyi Liao, Xiang Ren

Abstract

Recent advancements in Transformer-based language models (LMs) have demonstrated impressive performance on deductive reasoning tasks. However, it remains unclear whether these models are genuinely following logical rules or merely exploiting statistical shortcuts. We introduce ROBUSTLR, a diagnostic benchmark designed to evaluate the logical robustness of deductive reasoners. By employing logical contrast sets and equivalence sets, we probe the consistency of model predictions under minimal logical edits and equivalent rule rewritings. Our evaluation of state-of-the-art models, including T5 and RoBERTa, reveals a significant performance gap, particularly when negation is introduced, suggesting that current LMs lack a deep semantic understanding of fundamental logical operators.

Introduction

The ability to derive conclusions from a set of facts and rules—deductive reasoning—is a cornerstone of human intelligence. While modern language models achieve near-perfect scores on standard reasoning benchmarks, there is growing concern that they function as "Clever Hans" models, relying on spurious correlations such as fact counts or specific word patterns. True deductive reasoning requires logical robustness: the ability to maintain consistent and correct predictions even when the input is minimally edited or when a rule is paraphrased into a logically equivalent form. ROBUSTLR addresses this by systematically testing models across fundamental logical operators: conjunction ($\land$), disjunction ($\lor$), and negation ($\neg$).

Methodology and Datasets

ROBUSTLR evaluates models across two primary dimensions:

  1. Logical Contrast Sets: These involve minimal edits to a base theory that change the logical outcome. For instance, adding a condition to a rule (conjunction perturbation) might change a conclusion from True to Unknown.
  2. Logical Equivalence Sets: These test if a model recognizes that different linguistic structures represent the same logic, such as Contraposition (replacing "If $P$ then $Q$" with "If not $Q$ then not $P$"). In these cases, the logical label should remain invariant despite changes in the surface form.
Figure 4: Examples of logical perturbations used in ROBUSTLR, including conjunction, disjunction, and contraposition rewrites.

To ensure the benchmark measures reasoning rather than memorization, the authors utilized a sampling algorithm to filter out statistical shortcuts. The study evaluated several models, including RoBERTa-Large, various sizes of T5 (Large, 3B, and 11B), and GPT-3. Training was conducted on synthetic datasets designed to teach specific operators (NOT, AND+NOT, OR+NOT, and ALL), while the ROBUSTLR benchmark itself consists of 120,000 evaluation instances.

Key Results and Analysis

The evaluation revealed a stark contrast between in-distribution performance and logical robustness. While models achieved nearly 100% accuracy on their training distributions, their performance plummeted on the ROBUSTLR benchmark.

The "Negation Wall"

Negation proved to be the most significant hurdle for current language models. Performance consistently dropped whenever negation was introduced into a perturbation. This "negation wall" suggests that LMs struggle to internalize the semantics of "not," even when scaled to billions of parameters.

Figure 5: Performance of RoBERTa and T5 models across different logical operators. Note the significant performance drop in categories involving negation (NEG).

Comparative Performance

  • Contrast Set Degradation: On Logical Contrast sets, models that previously scored ~99% dropped to weighted F1 scores between 0.39 and 0.58.
  • Equivalence Failures: In the Contrapositive Equivalence set, performance dropped by approximately 20% compared to base theories, indicating that models do not treat logically equivalent statements as identical.
  • Human-Machine Gap: Human participants (CS graduate students) achieved 88% on Contrast sets and 91% on Equivalence sets, far outperforming even the largest fine-tuned models.
  • Scaling Limitations: While the 11B-parameter T5 model showed improvements over smaller versions, it still failed to reach human-level robustness, particularly on tasks involving complex logical combinations.

Conclusion

The findings from ROBUSTLR highlight a fundamental fragility in the reasoning capabilities of current language models. High accuracy on standard benchmarks is often a poor proxy for actual logical understanding. The persistent struggle with negation and logical equivalence suggests that simply increasing model size or data volume is insufficient. Future research should focus on developing inductive biases—architectural modifications or training objectives—that explicitly encourage models to learn the underlying semantics of logical operators rather than relying on surface-level patterns.

Summary updated

BibTeX
@inproceedings{sanyal2022robustlr,
  author = {Soumya Sanyal and Zeyi Liao and Xiang Ren},
  title = {{RobustLR: A Diagnostic Benchmark for Evaluating Logical Robustness of Deductive Reasoners}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.653},
}
Figure